zx/public/mer/js/chunk-65d2bc1c.84398319.js

41 lines
2.6 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65d2bc1c"],{"01b0":function(e,t,n){},"0632":function(e,t,n){},"0829":function(e,t,n){},"0876":function(e,t,n){},"0a33":function(e,t,n){},"0baa":function(e,t,n){},"0bda":function(e,t,n){},"0d30":function(e,t,n){},"10f4":function(e,t,n){},"133b":function(e,t,n){},"1f26":function(e,t,n){},"27e6":function(e,t,n){},"29a1":function(e,t,n){},"2a04":function(e,t,n){},"2ab7":function(e,t,n){},"30d5":function(e,t,n){},"30db":function(e,t,n){"use strict";(function(e,i){n.d(t,"h",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return _})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return w})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return S})),n.d(t,"i",(function(){return B})),n.d(t,"a",(function(){return E}));var o="en",r=!1,s=!1,a=!1,u=!1,l=!1,c=!1,d=void 0,h=void 0,A="undefined"!==typeof e&&"undefined"!==typeof e.versions&&"undefined"!==typeof e.versions.electron&&"renderer"===e.type;if("object"!==typeof navigator||A){if("object"===typeof e){r="win32"===e.platform,s="darwin"===e.platform,a="linux"===e.platform,d=o,o;var p=Object({VUE_APP_BASE_API:"",VUE_APP_WS_URL:"",NODE_ENV:"production",BASE_URL:"/"})["VSCODE_NLS_CONFIG"];if(p)try{var f=JSON.parse(p),g=f.availableLanguages["*"];d=f.locale,g||o,f._translationsConfigFile}catch(x){}u=!0}}else h=navigator.userAgent,r=h.indexOf("Windows")>=0,s=h.indexOf("Macintosh")>=0,c=h.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,a=h.indexOf("Linux")>=0,l=!0,d=navigator.language,d;var m=r,v=s,_=a,y=u,w=l,b=c,C="object"===typeof self?self:"object"===typeof i?i:{},S=C,B=function(){if(S.setImmediate)return S.setImmediate.bind(S);if("function"===typeof S.postMessage&&!S.importScripts){var t=[];S.addEventListener("message",(function(e){if(e.data&&e.data.vscodeSetImmediateId)for(var n=0,i=t.length;n<i;n++){var o=t[n];if(o.id===e.data.vscodeSetImmediateId)return t.splice(n,1),void o.callback()}}));var n=0;return function(e){var i=++n;t.push({id:i,callback:e}),S.postMessage({vscodeSetImmediateId:i},"*")}}if("undefined"!==typeof e&&"function"===typeof e.nextTick)return e.nextTick.bind(e);var i=Promise.resolve();return function(e){return i.then(e)}}(),E=s?2:r?1:3}).call(this,n("4362"),n("c8ba"))},"386b":function(e,t,n){var i=n("5ca1"),o=n("79e5"),r=n("be13"),s=/"/g,a=function(e,t,n,i){var o=String(r(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(i).replace(s,"&quot;")+'"'),a+">"+o+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(a),i(i.P+i.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},"38a2b":function(e,t,n){},"3a19":function(e,t,n){},"41a01":function(e,t,n){},"42f0":function(e,t,n){},"44c7":function(e,t,n){},"4d3d":function(e,t,n){},"4e2b":function(e,t,n){"use strict";var i=n("dc62"),o=n.n(i),r=n("454f"),s=n.n(r),a=n("25b0"),u=n.n(a);function l(e,t){return l=u.a?u.a.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=o()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),s()(e,"prototype",{writable:!1}),t&&l(e,t)}n.d(t,"a",(function(){return c}))},5029:function(e,t,n){},5110:function(e,t,n){(function(e){
/*!
Copyright (c) 2014 Taylor Hakes
Copyright (c) 2014 Forbes Lindesay
*/
(function(e,t){t()})(0,(function(){"use strict";function t(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}var n=setTimeout;function i(){}function o(e,t){return function(){e.apply(t,arguments)}}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(o){return void u(t.promise,o)}a(t.promise,i)}else(1===e._state?a:u)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof r)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void d(o(n,t),e)}e._state=1,e._value=t,l(e)}catch(i){u(e,i)}}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&r._immediateFn((function(){e._handled||r._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,a(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(i){if(n)return;n=!0,u(t,i)}}r.prototype["catch"]=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(i);return s(this,new c(e,t,n)),n},r.prototype["finally"]=t,r.all=function(e){return new r((function(t,n){if(!e||"undefined"===typeof e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var o=i.length;function r(e,s){try{if(s&&("object"===typeof s||"function"===typeof s)){var a=s.then;if("function"===typeof a)return void a.call(s,(function(t){r(e,t)}),n)}i[e]=s,0===--o&&t(i)}catch(u){n(u)}}for(var s=0;s<i.length;s++)r(s,i[s])}))},r.resolve=function(e){return e&&"object"===typeof e&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var i=0,o=e.length;i<o;i++)e[i].then(t,n)}))},r._immediateFn="function"===typeof setImmediate&&function(e){setImmediate(e)}||function(e){n(e,0)},r._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var h=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof e)return e;throw new Error("unable to locate global object")}();"Promise"in h?h.Promise.prototype["finally"]||(h.Promise.prototype["finally"]=t):h["Promise"]=r}))}).call(this,n("c8ba"))},"52c8":function(e,t,n){},"54f2":function(e,t,n){},"56dc":function(e,t,n){},"56f3":function(e,t,n){},"5cdb":function(e,t,n){},"5d70":function(e,t,n){},"607c":function(e,t,n){},"6fad":function(e,t,n){(function(t,n){e.exports=n()})(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=141)}([function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},function(e,t,n){e.exports=n(142)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return r})),n.d(t,"__rest",(function(){return s})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return l})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return h})),n.d(t,"__exportStar",(function(){return A})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return f})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return m})),n.d(t,"__spreadArray",(function(){return v})),n.d(t,"__await",(function(){return _})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return b})),n.d(t,"__makeTemplateObject",(function(){return C})),n.d(t,"__importStar",(function(){return B})),n.d(t,"__importDefault",(function(){return E})),n.d(t,"__classPrivateFieldGet",(function(){return x})),n.d(t,"__classPrivateFieldSet",(function(){return L}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function s(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function a(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 u(e,t){return function(n,i){t(n,i,e)}}function l(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))}function d(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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}var h=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function A(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||h(t,e,n)}function p(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(i=r.next()).done)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(o)throw o.error}}return s}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}function v(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||a(e,t)}))})}function a(e,t){try{u(o[e](t))}catch(n){d(r[0][3],n)}}function u(e){e.value instanceof _?Promise.resolve(e.value.v).then(l,c):d(r[0][2],e)}function l(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}}function w(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:_(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof p?p(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){t=e[n](t),o(i,r,t.done,t.value)}))}}function o(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t};function B(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&h(t,e,n);return S(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function L(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(89)),s=i(n(4)),a=i(n(26)),u=i(n(17)),l=i(n(121)),c=i(n(27)),d=i(n(91)),h=i(n(70)),A=i(n(28)),p=i(n(57));(0,o["default"])(t,"__esModule",{value:!0}),t.DomElement=void 0;var f=n(2),g=n(6),m=[];function v(e){var t=document.createElement("div");t.innerHTML=e;var n=t.children;return g.toArray(n)}function _(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}function y(e){var t=document.querySelectorAll(e);return g.toArray(t)}function w(e){var t=[],n=[];return t=(0,r["default"])(e)?e:e.split(";"),(0,s["default"])(t).call(t,(function(e){var t,i=(0,a["default"])(t=e.split(":")).call(t,(function(e){return(0,u["default"])(e).call(e)}));2===i.length&&n.push(i[0]+":"+i[1])})),n}var b=function(){function e(t){if(this.elems=[],this.length=this.elems.length,this.dataSource=new l["default"],t){if(t instanceof e)return t;var n=[],i=t instanceof Node?t.nodeType:-1;if(this.selector=t,1===i||9===i)n=[t];else if(_(t))n=g.toArray(t);else if(t instanceof Array)n=t;else if("string"===typeof t){var o,r=(0,u["default"])(o=t.replace("/\n/mg","")).call(o);n=0===(0,c["default"])(r).call(r,"<")?v(r):y(r)}var s=n.length;if(!s)return this;for(var a=0;a<s;a++)this.elems.push(n[a]);this.length=s}}return(0,o["default"])(e.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){for(var t=0;t<this.length;t++){var n=this.elems[t],i=e.call(n,n,t);if(!1===i)break}return this},e.prototype.clone=function(e){var t;void 0===e&&(e=!1);var n=[];return(0,s["default"])(t=this.elems).call(t,(function(t){n.push(t.cloneNode(!!e))})),C(n)},e.prototype.get=function(e){void 0===e&&(e=0);var t=this.length;return e>=t&&(e%=t),C(this.elems[e])},e.prototype.first=function(){return this.get(0)},e.prototype.last=function(){var e=this.length;return this.get(e-1)},e.prototype.on=function(e,t,n){var i;return e?("function"===typeof t&&(n=t,t=""),(0,s["default"])(i=this).call(i,(function(i){if(t){var o=function(e){var i=e.target;i.matches(t)&&n.call(i,e)};i.addEventListener(e,o),m.push({elem:i,selector:t,fn:n,agentFn:o})}else i.addEventListener(e,n)}))):this},e.prototype.off=function(e,t,n){var i;return e?("function"===typeof t&&(n=t,t=""),(0,s["default"])(i=this).call(i,(function(i){if(t){for(var o=-1,r=0;r<m.length;r++){var s=m[r];if(s.selector===t&&s.fn===n&&s.elem===i){o=r;break}}if(-1!==o){var a=(0,d["default"])(m).call(m,o,1)[0].agentFn;i.removeEventListener(e,a)}}else i.removeEventListener(e,n)}))):this},e.prototype.attr=function(e,t){var n;return null==t?this.elems[0].getAttribute(e)||"":(0,s["default"])(n=this).call(n,(function(n){n.setAttribute(e,t)}))},e.prototype.removeAttr=function(e){var t;(0,s["default"])(t=this).call(t,(function(t){t.removeAttribute(e)}))},e.prototype.addClass=function(e){var t;return e?(0,s["default"])(t=this).call(t,(function(t){if(t.className){var n=t.className.split(/\s/);n=(0,h["default"])(n).call(n,(function(e){return!!(0,u["default"])(e).call(e)})),(0,c["default"])(n).call(n,e)<0&&n.push(e),t.className=n.join(" ")}else t.className=e})):this},e.prototype.removeClass=function(e){var t;return e?(0,s["default"])(t=this).call(t,(function(t){if(t.className){var n=t.className.split(/\s/);n=(0,h["default"])(n).call(n,(function(t){return t=(0,u["default"])(t).call(t),!(!t||t===e)})),t.className=n.join(" ")}})):this},e.prototype.hasClass=function(e){if(!e)return!1;var t=this.elems[0];if(!t.className)return!1;var n=t.className.split(/\s/);return(0,A["default"])(n).call(n,e)},e.prototype.css=function(e,t){var n,i;return i=""==t?"":e+":"+t+";",(0,s["default"])(n=this).call(n,(function(t){var n,o=(0,u["default"])(n=t.getAttribute("style")||"").call(n);if(o){var r=w(o);r=(0,a["default"])(r).call(r,(function(t){return 0===(0,c["default"])(t).call(t,e)?i:t})),""!=i&&(0,c["default"])(r).call(r,i)<0&&r.push(i),""==i&&(r=w(r)),t.setAttribute("style",r.join("; "))}else t.setAttribute("style",i)}))},e.prototype.getBoundingClientRect=function(){var e=this.elems[0];return e.getBoundingClientRect()},e.prototype.show=function(){return this.css("display","block")},e.prototype.hide=function(){return this.css("display","none")},e.prototype.children=function(){var e=this.elems[0];return e?C(e.children):null},e.prototype.childNodes=function(){var e=this.elems[0];return e?C(e.childNodes):null},e.prototype.replaceChildAll=function(e){var t=this.getNode(),n=this.elems[0];while(n.hasChildNodes())t.firstChild&&n.removeChild(t.firstChild);this.append(e)},e.prototype.append=function(e){var t;return(0,s["default"])(t=this).call(t,(function(t){(0,s["default"])(e).call(e,(function(e){t.appendChild(e)}))}))},e.prototype.remove=function(){var e;return(0,s["default"])(e=this).call(e,(function(e){if(e.remove)e.remove();else{var t=e.parentElement;t&&t.removeChild(e)}}))},e.prototype.isContain=function(e){var t=this.elems[0],n=e.elems[0];return t.contains(n)},e.prototype.getNodeName=function(){var e=this.elems[0];return e.nodeName},e.prototype.getNode=function(e){var t;return void 0===e&&(e=0),t=this.elems[e],t},e.prototype.find=function(e){var t=this.elems[0];return C(t.querySelectorAll(e))},e.prototype.text=function(e){var t;if(e)return(0,s["default"])(t=this).call(t,(function(t){t.innerHTML=e}));var n=this.elems[0];return n.innerHTML.replace(/<[^>]+>/g,(function(){return""}))},e.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},e.prototype.val=function(){var e,t=this.elems[0];return(0,u["default"])(e=t.value).call(e)},e.prototype.focus=function(){var e;return(0,s["default"])(e=this).call(e,(function(e){e.focus()}))},e.prototype.prev=function(){var e=this.elems[0];return C(e.previousElementSibling)},e.prototype.next=function(){var e=this.elems[0];return C(e.nextElementSibling)},e.prototype.getNextSibling=function(){var e=this.elems[0];return C(e.nextSibling)},e.prototype.parent=function(){var e=this.elems[0];return C(e.parentElement)},e.prototype.parentUntil=function(e,t){var n=t||this.elems[0];if("BODY"===n.nodeName)return null;var i=n.parentElement;return null===i?null:i.matches(e)?C(i):this.parentUntil(e,i)},e.prototype.parentUntilEditor=function(e,t,n){var i=n||this.elems[0];if(C(i).equal(t.$textContainerElem)||C(i).equal(t.$toolbarElem))return null;var o=i.parentElement;return null===o?null:o.matches(e)?C(o):this.parentUntilEditor(e,t,o)},e.prototype.equal=function(t){return t instanceof e?this.elems[0]===t.elems[0]:t instanceof HTMLElement&&this.elems[0]===t},e.prototype.insertBefore=function(e){var t,n=C(e),i=n.elems[0];return i?(0,s["default"])(t=this).call(t,(function(e){var t=i.parentNode;null===t||void 0===t||t.insertBefore(e,i)})):this},e.prototype.insertAfter=function(e){var t,n=C(e),i=n.elems[0],o=i&&i.nextSibling;return i?(0,s["default"])(t=this).call(t,(function(e){var t=i.parentNode;o?t.insertBefore(e,o):t.appendChild(e)})):this},e.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},e.prototype.getNodeTop=function(e){if(this.length<1)return this;var t=this.parent();return e.$textElem.equal(this)||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},e.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},e.prototype.scrollTop=function(e){var t=this.elems[0];t.scrollTo({top:e})},e}();function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new((0,p["default"])(b).apply(b,f.__spreadArrays([void 0],e)))}t.DomElement=b,t["default"]=C},function(e,t,n){e.exports=n(180)},function(e,t,n){"use strict";var i=n(8),o=n(71).f,r=n(101),s=n(9),a=n(40),u=n(19),l=n(16),c=function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,d,h,A,p,f,g,m,v,_=e.target,y=e.global,w=e.stat,b=e.proto,C=y?i:w?i[_]:(i[_]||{}).prototype,S=y?s:s[_]||(s[_]={}),B=S.prototype;for(A in t)n=r(y?A:_+(w?".":"#")+A,e.forced),d=!n&&C&&l(C,A),f=S[A],d&&(e.noTargetGet?(v=o(C,A),g=v&&v.value):g=C[A]),p=d&&g?g:t[A],d&&typeof f===typeof p||(m=e.bind&&d?a(p,i):e.wrap&&d?c(p):b&&"function"==typeof p?a(Function.call,p):p,(e.sham||p&&p.sham||f&&f.sham)&&u(m,"sham",!0),S[A]=m,b&&(h=_+"Prototype",l(s,h)||u(s,h,{}),s[h][A]=p,e.real&&B&&!B[A]&&u(B,A,p)))}},function(e,t,n){"use strict";var i=n(0),o=i(n(92)),r=i(n(1)),s=i(n(256)),a=i(n(45)),u=i(n(46)),l=i(n(89)),c=i(n(26));(0,r["default"])(t,"__esModule",{value:!0}),t.hexToRgb=t.getRandomCode=t.toArray=t.deepClone=t.isFunction=t.debounce=t.throttle=t.arrForEach=t.forEach=t.replaceSpecialSymbol=t.replaceHtmlSymbol=t.getRandom=t.UA=void 0;var d=n(2),h=function(){function e(){this._ua=navigator.userAgent;var e=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(e&&"Edge"==e[1]&&(0,s["default"])(e[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}return e.prototype.isIE=function(){return"ActiveXObject"in window},e.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},e}();function A(e){var t;return void 0===e&&(e=""),e+(0,a["default"])(t=Math.random().toString()).call(t,2)}function p(e){return e.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")}function f(e){return e.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=t(n,e[n]);if(!1===i)break}}function m(e,t){var n,i,o,r=e.length||0;for(n=0;n<r;n++)if(i=e[n],o=t.call(e,i,n),!1===o)break}function v(e,t){void 0===t&&(t=200);var n=!1;return function(){for(var i=this,o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];n||(n=!0,(0,u["default"])((function(){n=!1,e.call.apply(e,d.__spreadArrays([i],o))}),t))}}function _(e,t){void 0===t&&(t=200);var n=0;return function(){for(var i=this,o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];n&&window.clearTimeout(n),n=(0,u["default"])((function(){n=0,e.call.apply(e,d.__spreadArrays([i],o))}),t)}}function y(e){return"function"===typeof e}function w(e){if("object"!==(0,o["default"])(e)||"function"==typeof e||null===e)return e;var t;for(var n in(0,l["default"])(e)&&(t=[]),(0,l["default"])(e)||(t={}),e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=w(e[n]));return t}function b(e){return(0,a["default"])(Array.prototype).call(e)}function C(){var e;return(0,a["default"])(e=Math.random().toString(36)).call(e,-5)}function S(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(null==t)return null;var n=(0,c["default"])(t).call(t,(function(e){return(0,s["default"])(e,16)})),i=n[1],o=n[2],r=n[3];return"rgb("+i+", "+o+", "+r+")"}t.UA=new h,t.getRandom=A,t.replaceHtmlSymbol=p,t.replaceSpecialSymbol=f,t.forEach=g,t.arrForEach=m,t.throttle=v,t.debounce=_,t.isFunction=y,t.deepClone=w,t.toArray=b,t.getRandomCode=C,t.hexToRgb=S},function(e,t,n){"use strict";var i=n(0),o=i(n(1));function r(){}(0,o["default"])(t,"__esModule",{value:!0}),t.EMPTY_P_REGEX=t.EMPTY_P_LAST_REGEX=t.EMPTY_P=t.urlRegex=t.EMPTY_FN=void 0,t.EMPTY_FN=r,t.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/g,t.EMPTY_P='<p data-we-empty-p=""><br></p>',t.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,t.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(145))},function(e,t){e.exports={}},function(e,t,n){var i=n(8),o=n(74),r=n(16),s=n(64),a=n(76),u=n(106),l=o("wks"),c=i.Symbol,d=u?c:c&&c.withoutSetter||s;e.exports=function(e){return r(l,e)||(a&&r(c,e)?l[e]=c[e]:l[e]=d("Symbol."+e)),l[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var i=n(9),o=n(16),r=n(93),s=n(18).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});o(t,e)||s(t,e,{value:r.f(e)})}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t,n){var i=n(11);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var i=n(9);e.exports=function(e){return i[e+"Prototype"]}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=n(192)},function(e,t,n){var i=n(14),o=n(100),r=n(25),s=n(60),a=Object.defineProperty;t.f=i?a:function(e,t,n){if(r(e),t=s(t,!0),r(n),o)try{return a(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(14),o=n(18),r=n(48);e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var i=function(){var e;return function(){return"undefined"===typeof e&&(e=Boolean(window&&document&&document.all&&!window.atob)),e}}(),o=function(){var e={};return function(t){if("undefined"===typeof e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(i){n=null}e[t]=n}return e[t]}}(),r=[];function s(e){for(var t=-1,n=0;n<r.length;n++)if(r[n].identifier===e){t=n;break}return t}function a(e,t){for(var n={},i=[],o=0;o<e.length;o++){var a=e[o],u=t.base?a[0]+t.base:a[0],l=n[u]||0,c="".concat(u," ").concat(l);n[u]=l+1;var d=s(c),h={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(r[d].references++,r[d].updater(h)):r.push({identifier:c,updater:f(h,t),references:1}),i.push(c)}return i}function u(e){var t=document.createElement("style"),i=e.attributes||{};if("undefined"===typeof i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"===typeof e.insert)e.insert(t);else{var s=o(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}function l(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}var c=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function d(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=c(t,o);else{var r=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function h(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!==typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var A=null,p=0;function f(e,t){var n,i,o;if(t.singleton){var r=p++;n=A||(A=u(t)),i=d.bind(null,n,r,!1),o=d.bind(null,n,r,!0)}else n=u(t),i=h.bind(null,n,t),o=function(){l(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){t=t||{},t.singleton||"boolean"===typeof t.singleton||(t.singleton=i()),e=e||[];var n=a(e,t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=n[i],u=s(o);r[u].references--}for(var l=a(e,t),c=0;c<n.length;c++){var d=n[c],h=s(d);0===r[h].references&&(r[h].updater(),r.splice(h,1))}n=l}}}},function(e,t,n){"use strict";function i(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"===typeof btoa){var r=o(i),s=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(s).concat([r]).join("\n")}return[n].join("\n")}function o(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=i(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"===typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var u=[].concat(e[a]);i&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){var i=n(14),o=n(11),r=n(16),s=Object.defineProperty,a={},u=function(e){throw e};e.exports=function(e,t){if(r(a,e))return a[e];t||(t={});var n=[][e],l=!!r(t,"ACCESSORS")&&t.ACCESSORS,c=r(t,0)?t[0]:u,d=r(t,1)?t[1]:void 0;return a[e]=!!n&&!o((function(){if(l&&!i)return!0;var e={length:-1};l?s(e,1,{enumerable:!0,get:u}):e[1]=1,n.call(e,c,d)}))}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(95)),a=function(e){function t(t,n){return e.call(this,t,n)||this}return r.__extends(t,e),t}(s["default"]);t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(46));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3)),l=a.__importDefault(n(95)),c=a.__importDefault(n(134)),d=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;i.title=n.i18next.t("menus.dropListMenu."+i.title);var a,l="zh-CN"===n.config.lang?"":"w-e-drop-list-tl";""!==l&&"list"===i.type&&(0,r["default"])(a=i.list).call(a,(function(e){var t=e.$elem,n=u["default"](t.children());if(n.length>0){var i=null===n||void 0===n?void 0:n.getNodeName();i&&"I"===i&&t.addClass(l)}}));var d=new c["default"](o,i);return o.dropList=d,t.on("click",(function(){var e;null!=n.selection.getRange()&&(t.css("z-index",n.zIndex.get("menu")),(0,r["default"])(e=n.txt.eventHooks.dropListMenuHoverEvents).call(e,(function(e){return e()})),d.show())})).on("mouseleave",(function(){t.css("z-index","auto"),d.hideTimeoutId=(0,s["default"])((function(){d.hide()}))})),o}return a.__extends(t,e),t}(l["default"]);t["default"]=d},function(e,t,n){var i=n(13);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){e.exports=n(188)},function(e,t,n){e.exports=n(201)},function(e,t,n){e.exports=n(213)},function(e,t,n){e.exports=n(283)},function(e,t,n){var i=n(72),o=n(49);e.exports=function(e){return i(o(e))}},function(e,t,n){var i=n(49);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(40),o=n(72),r=n(31),s=n(35),a=n(88),u=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,c=4==e,d=6==e,h=5==e||d;return function(A,p,f,g){for(var m,v,_=r(A),y=o(_),w=i(p,f,3),b=s(y.length),C=0,S=g||a,B=t?S(A,b):n?S(A,0):void 0;b>C;C++)if((h||C in y)&&(m=y[C],v=w(m,C,_),e))if(t)B[C]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:u.call(B,m)}else if(c)return!1;return d?-1:l||c?c:B}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(29)),a=i(n(132));(0,o["default"])(t,"__esModule",{value:!0});var u=n(2),l=u.__importDefault(n(3)),c=n(7),d=function(){function e(t,n){this.menu=t,this.conf=n,this.$container=l["default"]('<div class="w-e-panel-container"></div>');var i=t.editor;i.txt.eventHooks.clickEvents.push(e.hideCurAllPanels),i.txt.eventHooks.toolbarClickEvents.push(e.hideCurAllPanels),i.txt.eventHooks.dropListMenuHoverEvents.push(e.hideCurAllPanels)}return e.prototype.create=function(){var t=this,n=this.menu;if(!e.createdMenus.has(n)){var i=this.conf,o=this.$container,a=i.width||300,d=n.editor.$toolbarElem.getBoundingClientRect(),h=n.$elem.getBoundingClientRect(),A=d.height+d.top-h.top,p=(d.width-a)/2+d.left-h.left,f=300;Math.abs(p)>f&&(p=h.left<document.documentElement.clientWidth/2?-h.width/2:-a+h.width/2),o.css("width",a+"px").css("margin-top",A+"px").css("margin-left",p+"px").css("z-index",n.editor.zIndex.get("panel"));var g=l["default"]('<i class="w-e-icon-close w-e-panel-close"></i>');o.append(g),g.on("click",(function(){t.remove()}));var m=l["default"]('<ul class="w-e-panel-tab-title"></ul>'),v=l["default"]('<div class="w-e-panel-tab-content"></div>');o.append(m).append(v);var _=i.height;_&&v.css("height",_+"px").css("overflow-y","auto");var y=i.tabs||[],w=[],b=[];(0,r["default"])(y).call(y,(function(e,t){if(e){var n=e.title||"",i=e.tpl||"",o=l["default"]('<li class="w-e-item">'+n+"</li>");m.append(o);var s=l["default"](i);v.append(s),w.push(o),b.push(s),0===t?(o.data("active",!0),o.addClass("w-e-active")):s.hide(),o.on("click",(function(){o.data("active")||((0,r["default"])(w).call(w,(function(e){e.data("active",!1),e.removeClass("w-e-active")})),(0,r["default"])(b).call(b,(function(e){e.hide()})),o.data("active",!0),o.addClass("w-e-active"),s.show())}))}})),o.on("click",(function(e){e.stopPropagation()})),n.$elem.append(o),i.setLinkValue&&i.setLinkValue(o,"text"),i.setLinkValue&&i.setLinkValue(o,"link"),(0,r["default"])(y).call(y,(function(e,n){if(e){var i=e.events||[];(0,r["default"])(i).call(i,(function(e){var i,o=e.selector,r=e.type,a=e.fn||c.EMPTY_FN,l=b[n],d=null!==(i=e.bindEnter)&&void 0!==i&&i,h=function(e){return u.__awaiter(t,void 0,void 0,(function(){var t;return u.__generator(this,(function(n){switch(n.label){case 0:return e.stopPropagation(),[4,a(e)];case 1:return t=n.sent(),t&&this.remove(),[2]}}))}))};(0,s["default"])(l).call(l,o).on(r,h),d&&"click"===r&&l.on("keyup",(function(e){13==e.keyCode&&h(e)}))}))}}));var C=(0,s["default"])(o).call(o,"input[type=text],textarea");C.length&&C.get(0).focus(),e.hideCurAllPanels(),n.setPanel(this),e.createdMenus.add(n)}},e.prototype.remove=function(){var t=this.menu,n=this.$container;n&&n.remove(),e.createdMenus["delete"](t)},e.hideCurAllPanels=function(){var t;0!==e.createdMenus.size&&(0,r["default"])(t=e.createdMenus).call(t,(function(e){var t=e.panel;t&&t.remove()}))},e.createdMenus=new a["default"],e}();t["default"]=d},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(62),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},function(e,t,n){var i=n(9),o=n(8),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e])||r(o[e]):i[e]&&i[e][t]||o[e]&&o[e][t]}},function(e,t,n){var i=n(81),o=n(18).f,r=n(19),s=n(16),a=n(170),u=n(10),l=u("toStringTag");e.exports=function(e,t,n,u){if(e){var c=n?e:e.prototype;s(c,l)||o(c,l,{configurable:!0,value:t}),u&&!i&&r(c,"toString",a)}}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(95)),a=function(e){function t(t,n){return e.call(this,t,n)||this}return r.__extends(t,e),t.prototype.setPanel=function(e){this.panel=e},t}(s["default"]);t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(57));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3)),l=function(){function e(e,t,n){this.editor=e,this.$targetElem=t,this.conf=n,this._show=!1,this._isInsertTextContainer=!1;var i=u["default"]("<div></div>");i.addClass("w-e-tooltip"),this.$container=i}return e.prototype.getPositionData=function(){var e=this.$container,t=0,n=0,i=20,o=document.documentElement.scrollTop,r=this.$targetElem.getBoundingClientRect(),s=this.editor.$textElem.getBoundingClientRect(),a=this.$targetElem.getOffsetData(),l=u["default"](a.parent),c=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=l.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var d=l.getBoundingClientRect().height,h=a.top,A=a.left,p=a.height,f=h-c;f>i+5?(t=f-i-15,e.addClass("w-e-tooltip-up")):f+p+i<d?(t=f+p+10,e.addClass("w-e-tooltip-down")):(t=(f>0?f:0)+i+10,e.addClass("w-e-tooltip-down")),n=A<0?0:A}else r.top<i||r.top-s.top<i?(t=r.bottom+o+5,e.addClass("w-e-tooltip-down")):(t=r.top+o-i-15,e.addClass("w-e-tooltip-up")),n=r.left<0?0:r.left;return{top:t,left:n}},e.prototype.appendMenus=function(){var e=this,t=this.conf,n=this.editor,i=this.$targetElem,o=this.$container;(0,r["default"])(t).call(t,(function(t,r){var s=t.$elem,a=u["default"]("<div></div>");a.addClass("w-e-tooltip-item-wrapper "),a.append(s),o.append(a),s.on("click",(function(o){o.preventDefault();var r=t.onClick(n,i);r&&e.remove()}))}))},e.prototype.create=function(){var e,t,n=this.editor,i=this.$container;this.appendMenus();var o=this.getPositionData(),r=o.top,a=o.left;i.css("top",r+"px"),i.css("left",a+"px"),i.css("z-index",n.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(i):u["default"]("body").append(i),this._show=!0,n.beforeDestroy((0,s["default"])(e=this.remove).call(e,this)),n.txt.eventHooks.onBlurEvents.push((0,s["default"])(t=this.remove).call(t,this))},e.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,o["default"])(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t["default"]=l},function(e,t,n){var i=n(41);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var i,o,r,s=n(165),a=n(8),u=n(13),l=n(19),c=n(16),d=n(63),h=n(51),A=a.WeakMap,p=function(e){return r(e)?o(e):i(e,{})},f=function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(s){var g=new A,m=g.get,v=g.has,_=g.set;i=function(e,t){return _.call(g,e,t),t},o=function(e){return m.call(g,e)||{}},r=function(e){return v.call(g,e)}}else{var y=d("state");h[y]=!0,i=function(e,t){return l(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},r=function(e){return c(e,y)}}e.exports={set:i,get:o,has:r,enforce:p,getterFor:f}},function(e,t){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){e.exports=n(261)},function(e,t,n){e.exports=n(265)},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0;var s=n(2),a=n(137),u=s.__importDefault(n(3));function l(e){var t=[];return(0,r["default"])(e).call(e,(function(e){var n=e.getNodeName();if(n!==a.ListType.OrderedList&&n!==a.ListType.UnorderedList)t.push(e);else if(e.prior)t.push(e.prior);else{var i=e.children();null===i||void 0===i||(0,r["default"])(i).call(i,(function(e){t.push(u["default"](e))}))}})),t}function c(e,t,n){var i=e.selection,o=document.createRange();t.length>1?(o.setStart(t.elems[0],0),o.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):o.selectNodeContents(t.elems[0]),n&&o.collapse(!1),i.saveRange(o),i.restoreSelection()}function d(e){var t;return e.prior?e.prior:u["default"](null===(t=e.children())||void 0===t?void 0:t.elems[0])}function h(e){var t;return e.prior?e.prior:u["default"](null===(t=e.children())||void 0===t?void 0:t.last().elems[0])}function A(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)}function p(e){return document.createElement(e)}function f(){return document.createDocumentFragment()}function g(e,t,n){return void 0===n&&(n="li"),(0,r["default"])(e).call(e,(function(e){var i=p(n);i.innerHTML=e.html(),t.appendChild(i),e.remove()})),t}t.filterSelectionNodes=l,t.updateRange=c,t.getStartPoint=d,t.getEndPoint=h,t.insertBefore=A,t.createElement=p,t.createDocumentFragment=f,t.createElementFragment=g},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var i=n(164).charAt,o=n(42),r=n(75),s="String Iterator",a=o.set,u=o.getterFor(s);r(String,"String",(function(e){a(this,{type:s,string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=i(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t){e.exports={}},function(e,t,n){var i=n(107),o=n(80);e.exports=Object.keys||function(e){return i(e,o)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n,o){o&&o.enumerable?e[t]=n:i(e,t,n)}},function(e,t,n){n(173);var i=n(174),o=n(8),r=n(65),s=n(19),a=n(44),u=n(10),l=u("toStringTag");for(var c in i){var d=o[c],h=d&&d.prototype;h&&r(h)!==l&&s(h,l,c),a[c]=a.Array}},function(e,t,n){var i=n(34);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(11),o=n(10),r=n(86),s=o("species");e.exports=function(e){return r>=51||!i((function(){var t=[],n=t.constructor={};return n[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){e.exports=n(222)},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.ListHandle=void 0;var r=n(2),s=r.__importDefault(n(373)),a=function(){function e(e){this.options=e,this.selectionRangeElem=new s["default"]}return e}();t.ListHandle=a},function(e,t,n){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!i.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:i},function(e,t,n){var i=n(13);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(74),o=n(64),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},function(e,t,n){var i=n(81),o=n(34),r=n(10),s=r("toStringTag"),a="Arguments"==o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=i?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=Object(e),s))?n:a?o(t):"Object"==(i=o(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,n){var i=n(25),o=n(112),r=n(35),s=n(40),a=n(113),u=n(114),l=function(e,t){this.stopped=e,this.result=t},c=e.exports=function(e,t,n,c,d){var h,A,p,f,g,m,v,_=s(t,n,c?2:1);if(d)h=e;else{if(A=a(e),"function"!=typeof A)throw TypeError("Target is not iterable");if(o(A)){for(p=0,f=r(e.length);f>p;p++)if(g=c?_(i(v=e[p])[0],v[1]):_(e[p]),g&&g instanceof l)return g;return new l(!1)}h=A.call(e)}m=h.next;while(!(v=m.call(h)).done)if(g=u(h,_,v.value,c),"object"==typeof g&&g&&g instanceof l)return g;return new l(!1)};c.stop=function(e){return new l(!0,e)}},function(e,t,n){"use strict";var i=n(11);e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},function(e,t,n){"use strict";var i=n(60),o=n(18),r=n(48);e.exports=function(e,t,n){var s=i(t);s in e?o.f(e,s,r(0,n)):e[s]=n}},function(e,t,n){e.exports=n(209)},function(e,t,n){var i=n(14),o=n(59),r=n(48),s=n(30),a=n(60),u=n(16),l=n(100),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=s(e),t=a(t,!0),l)try{return c(e,t)}catch(n){}if(u(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){var i=n(11),o=n(34),r="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?r.call(e,""):Object(e)}:Object},function(e,t,n){var i=n(8),o=n(13),r=i.document,s=o(r)&&o(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},function(e,t,n){var i=n(43),o=n(103);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";var i=n(5),o=n(167),r=n(105),s=n(171),a=n(37),u=n(19),l=n(53),c=n(10),d=n(43),h=n(44),A=n(104),p=A.IteratorPrototype,f=A.BUGGY_SAFARI_ITERATORS,g=c("iterator"),m="keys",v="values",_="entries",y=function(){return this};e.exports=function(e,t,n,c,A,w,b){o(n,t,c);var C,S,B,E=function(e){if(e===A&&k)return k;if(!f&&e in D)return D[e];switch(e){case m:return function(){return new n(this,e)};case v:return function(){return new n(this,e)};case _:return function(){return new n(this,e)}}return function(){return new n(this)}},x=t+" Iterator",L=!1,D=e.prototype,N=D[g]||D["@@iterator"]||A&&D[A],k=!f&&N||E(A),I="Array"==t&&D.entries||N;if(I&&(C=r(I.call(new e)),p!==Object.prototype&&C.next&&(d||r(C)===p||(s?s(C,p):"function"!=typeof C[g]&&u(C,g,y)),a(C,x,!0,!0),d&&(h[x]=y))),A==v&&N&&N.name!==v&&(L=!0,k=function(){return N.call(this)}),d&&!b||D[g]===k||u(D,g,k),h[t]=k,A)if(S={values:E(v),keys:w?k:E(m),entries:E(_)},b)for(B in S)(f||L||!(B in D))&&l(D,B,S[B]);else i({target:t,proto:!0,forced:f||L},S);return S}},function(e,t,n){var i=n(11);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},function(e,t,n){var i,o=n(25),r=n(169),s=n(80),a=n(51),u=n(108),l=n(73),c=n(63),d=">",h="<",A="prototype",p="script",f=c("IE_PROTO"),g=function(){},m=function(e){return h+p+d+e+h+"/"+p+d},v=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e,t=l("iframe"),n="java"+p+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},y=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}y=i?v(i):_();var e=s.length;while(e--)delete y[A][s[e]];return y()};a[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[A]=o(e),n=new g,g[A]=null,n[f]=e):n=y(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(30),o=n(35),r=n(79),s=function(e){return function(t,n,s){var a,u=i(t),l=o(u.length),c=r(s,l);if(e&&n!=n){while(l>c)if(a=u[c++],a!=a)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},function(e,t,n){var i=n(62),o=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?o(n+t,0):r(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var i=n(10),o=i("toStringTag"),r={};r[o]="z",e.exports="[object z]"===String(r)},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var i=n(36);e.exports=i("navigator","userAgent")||""},function(e,t,n){"use strict";var i=n(41),o=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){var i,o,r=n(8),s=n(84),a=r.process,u=a&&a.versions,l=u&&u.v8;l?(i=l.split("."),o=i[0]+i[1]):s&&(i=s.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/),i&&(o=i[1]))),e.exports=o&&+o},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(6),l=s.__importDefault(n(267)),c=s.__importDefault(n(280)),d=s.__importDefault(n(281)),h=s.__importDefault(n(282)),A=s.__importDefault(n(301)),p=s.__importStar(n(416)),f=s.__importDefault(n(417)),g=s.__importDefault(n(418)),m=s.__importDefault(n(419)),v=s.__importStar(n(420)),_=s.__importDefault(n(423)),y=s.__importDefault(n(424)),w=s.__importDefault(n(425)),b=s.__importDefault(n(427)),C=s.__importDefault(n(437)),S=s.__importDefault(n(440)),B=s.__importStar(n(441)),E=s.__importDefault(n(23)),x=s.__importDefault(n(134)),L=s.__importDefault(n(24)),D=s.__importDefault(n(33)),N=s.__importDefault(n(38)),k=s.__importDefault(n(39)),I=1,F=function(){function e(e,t){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+I++,this.toolbarSelector=e,this.textSelector=t,p.selectorValidator(this),this.config=u.deepClone(l["default"]),this.$toolbarElem=a["default"]("<div></div>"),this.$textContainerElem=a["default"]("<div></div>"),this.$textElem=a["default"]("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new c["default"](this),this.cmd=new d["default"](this),this.txt=new h["default"](this),this.menus=new A["default"](this),this.zIndex=new y["default"],this.change=new w["default"](this),this.history=new b["default"](this),this.onSelectionChange=new S["default"](this);var n=C["default"](this),i=n.disable,o=n.enable;this.disable=i,this.enable=o,this.isEnable=!0}return e.prototype.initSelection=function(e){f["default"](this,e)},e.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),m["default"](this),p["default"](this),this.txt.init(),this.menus.init(),v["default"](this),this.initSelection(!0),g["default"](this),this.change.observe(),this.history.observe(),B["default"](this)},e.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},e.prototype.destroy=function(){var e,t=this;(0,r["default"])(e=this.beforeDestroyHooks).call(e,(function(e){return e.call(t)})),this.$toolbarElem.remove(),this.$textContainerElem.remove()},e.prototype.fullScreen=function(){v.setFullScreen(this)},e.prototype.unFullScreen=function(){v.setUnFullScreen(this)},e.prototype.scrollToHead=function(e){_["default"](this,e)},e.registerMenu=function(t,n){n&&"function"===typeof n&&(e.globalCustomMenuConstructorList[t]=n)},e.prototype.registerPlugin=function(e,t){B.registerPlugin(e,t,this.pluginsFunctionList)},e.registerPlugin=function(t,n){B.registerPlugin(t,n,e.globalPluginsFunctionList)},e.$=a["default"],e.BtnMenu=E["default"],e.DropList=x["default"],e.DropListMenu=L["default"],e.Panel=D["default"],e.PanelMenu=N["default"],e.Tooltip=k["default"],e.globalCustomMenuConstructorList={},e.globalPluginsFunctionList={},e}();t["default"]=F},function(e,t,n){var i=n(13),o=n(55),r=n(10),s=r("species");e.exports=function(e,t){var n;return o(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?i(n)&&(n=n[s],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){var i=n(49),o=n(68),r="["+o+"]",s=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),u=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(s,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},function(e,t,n){e.exports=n(205)},function(e,t,n){var i=n(227),o=n(230);function r(t){return e.exports=r="function"===typeof o&&"symbol"===typeof i?function(e){return typeof e}:function(e){return e&&"function"===typeof o&&e.constructor===o&&e!==o.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t,n){var i=n(10);t.f=i},function(e,t,n){e.exports=n(306)},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(33)),u=function(){function e(e,t){var n=this;this.$elem=e,this.editor=t,this._active=!1,e.on("click",(function(e){var i;a["default"].hideCurAllPanels(),(0,r["default"])(i=t.txt.eventHooks.menuClickEvents).call(i,(function(e){return e()})),e.stopPropagation(),null!=t.selection.getRange()&&n.clickHandler(e)}))}return e.prototype.clickHandler=function(e){},e.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},e.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,o["default"])(e.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(28));function s(e){var n=e.elems[0];while(n&&(0,r["default"])(i=t.EXTRA_TAG).call(i,n.nodeName)){var i;if(n=n.parentElement,"A"===n.nodeName)return n}}function a(e){var t,n=e.selection.getSelectionContainerElem();if(!(null===(t=null===n||void 0===n?void 0:n.elems)||void 0===t?void 0:t.length))return!1;if("A"===n.getNodeName())return!0;var i=s(n);return!(!i||"A"!==i.nodeName)}(0,o["default"])(t,"__esModule",{value:!0}),t.getParentNodeA=t.EXTRA_TAG=void 0,t.EXTRA_TAG=["B","FONT","I","STRIKE"],t.getParentNodeA=s,t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(57)),s=i(n(4)),a=i(n(27));(0,o["default"])(t,"__esModule",{value:!0});var u=n(2),l=n(6),c=u.__importDefault(n(135)),d=u.__importDefault(n(136)),h=function(){function e(e){this.editor=e}return e.prototype.insertImg=function(e,t,n){var i=this.editor,o=i.config,r="validate.",s=function(e,t){return void 0===t&&(t=r),i.i18next.t(t+e)},a=e.replace(/</g,"&lt;").replace(/>/g,"&gt;");a=a.replace("'",'"');var u="";n&&(u=n.replace("'",'"'),u="data-href='"+encodeURIComponent(u)+"' ");var l="";t&&(l=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),l=l.replace("'",'"'),l="alt='"+l+"' "),i.cmd["do"]("insertHTML","<img src='"+a+"' "+l+u+'style="max-width:100%;" contenteditable="false"/>'),o.linkImgCallback(e,t,n);var c=document.createElement("img");c.onload=function(){c=null},c.onerror=function(){o.customAlert(s("插入图片错误"),"error","wangEditor: "+s("插入图片错误")+""+s("图片链接")+' "'+e+'"'+s("下载链接失败")),c=null},c.onabort=function(){return c=null},c.src=e},e.prototype.uploadImg=function(e){var t=this;if(e.length){var n=this.editor,i=n.config,o="validate.",u=function(e){return n.i18next.t(o+e)},h=i.uploadImgServer,A=i.uploadImgShowBase64,p=i.uploadImgMaxSize,f=p/1024/1024,g=i.uploadImgMaxLength,m=i.uploadFileName,v=i.uploadImgParams,_=i.uploadImgParamsWithUrl,y=i.uploadImgHeaders,w=i.uploadImgHooks,b=i.uploadImgTimeout,C=i.withCredentials,S=i.customUploadImg;if(S||h||A){var B=[],E=[];if(l.arrForEach(e,(function(e){if(e){var t=e.name||e.type.replace("/","."),i=e.size;if(t&&i){var o=n.config.uploadImgAccept.join("|"),r=".("+o+")$",s=new RegExp(r,"i");!1!==s.test(t)?p<i?E.push("【"+t+"】"+u("大于")+" "+f+"M"):B.push(e):E.push("【"+t+"】"+u("不是图片"))}}})),E.length)i.customAlert(u("图片验证未通过")+": \n"+E.join("\n"),"warning");else if(0!==B.length)if(B.length>g)i.customAlert(u("一次最多上传")+g+u("张图片"),"warning");else if(S&&"function"===typeof S){var x;S(B,(0,r["default"])(x=this.insertImg).call(x,this))}else{var L=new FormData;if((0,s["default"])(B).call(B,(function(e,t){var n=m||e.name;B.length>1&&(n+=t+1),L.append(n,e)})),h){var D=h.split("#");h=D[0];var N=D[1]||"";(0,s["default"])(l).call(l,v,(function(e,t){_&&((0,a["default"])(h).call(h,"?")>0?h+="&":h+="?",h=h+e+"="+t),L.append(e,t)})),N&&(h+="#"+N);var k=c["default"](h,{timeout:b,formData:L,headers:y,withCredentials:!!C,beforeSend:function(e){if(w.before)return w.before(e,n,B)},onTimeout:function(e){i.customAlert(u("上传图片超时"),"error"),w.timeout&&w.timeout(e,n)},onProgress:function(e,t){var i=new d["default"](n);t.lengthComputable&&(e=t.loaded/t.total,i.show(e))},onError:function(e){i.customAlert(u("上传图片错误"),"error",u("上传图片错误")+""+u("服务器返回状态")+": "+e.status),w.error&&w.error(e,n)},onFail:function(e,t){i.customAlert(u("上传图片失败"),"error",u("上传图片返回结果错误")+""+u("返回结果")+": "+t),w.fail&&w.fail(e,n,t)},onSuccess:function(e,o){if(w.customInsert){var a;w.customInsert((0,r["default"])(a=t.insertImg).call(a,t),o,n)}else{if("0"!=o.errno)return i.customAlert(u("上传图片失败"),"error",u("上传图片返回结果错误")+""+u("返回结果")+" errno="+o.errno),void(w.fail&&w.fail(e,n,o));var l=o.data;(0,s["default"])(l).call(l,(function(e){"string"===typeof e?t.insertImg(e):t.insertImg(e.url,e.alt,e.href)})),w.success&&w.success(e,n,o)}}});"string"===typeof k&&i.customAlert(k,"error")}else A&&l.arrForEach(e,(function(e){var n=t,i=new FileReader;i.readAsDataURL(e),i.onload=function(){if(this.result){var e=this.result.toString();n.insertImg(e,e)}}}))}else i.customAlert(u("传入的文件不合法"),"warning")}}},e}();t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(410)),s=i(n(4)),a=i(n(45));function u(e){return!!e.length&&"w-e-todo"===e.attr("class")}function l(e){var t=e.selection.getSelectionRangeTopNodes();if(0!==t.length)return(0,r["default"])(t).call(t,(function(e){return u(e)}))}function c(e,t,n){var i;if(e.hasChildNodes()){var o=e.cloneNode(),r=!1;""===t.nodeValue&&(r=!0);var a=[];return(0,s["default"])(i=e.childNodes).call(i,(function(e){if(!d(e,t)&&r&&(o.appendChild(e.cloneNode(!0)),"BR"!==e.nodeName&&a.push(e)),d(e,t)){if(1===e.nodeType){var i=c(e,t,n);i&&""!==i.textContent&&(null===o||void 0===o||o.appendChild(i))}if(3===e.nodeType&&t.isEqualNode(e)){var s=h(e,n);o.textContent=s}r=!0}})),(0,s["default"])(a).call(a,(function(e){var t=e;t.remove()})),o}}function d(e,t){return 3===e.nodeType?e.nodeValue===t.nodeValue:e.contains(t)}function h(e,t,n){void 0===n&&(n=!0);var i=e.nodeValue,o=null===i||void 0===i?void 0:(0,a["default"])(i).call(i,0,t);if(i=null===i||void 0===i?void 0:(0,a["default"])(i).call(i,t),!n){var r=i;i=o,o=r}return e.nodeValue=o,i}(0,o["default"])(t,"__esModule",{value:!0}),t.dealTextNode=t.isAllTodo=t.isTodo=t.getCursorNextNode=void 0,t.isTodo=u,t.isAllTodo=l,t.getCursorNextNode=c,t.dealTextNode=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(430),s=function(){function e(e){this.maxSize=e,this.isRe=!1,this.data=new r.CeilStack(e),this.revokeData=new r.CeilStack(e)}return(0,o["default"])(e.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),e.prototype.resetMaxSize=function(e){this.data.resetMax(e),this.revokeData.resetMax(e)},e.prototype.save=function(e){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(e),this},e.prototype.revoke=function(e){!this.isRe&&(this.isRe=!0);var t=this.data.outstack();return!!t&&(this.revokeData.instack(t),e(t),!0)},e.prototype.restore=function(e){!this.isRe&&(this.isRe=!0);var t=this.revokeData.outstack();return!!t&&(this.data.instack(t),e(t),!0)},e}();t["default"]=s},function(e,t,n){var i=n(14),o=n(11),r=n(73);e.exports=!i&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(11),o=/#|\.prototype\./,r=function(e,t){var n=a[s(e)];return n==l||n!=u&&("function"==typeof t?i(t):!!t)},s=r.normalize=function(e){return String(e).replace(o,".").toLowerCase()},a=r.data={},u=r.NATIVE="N",l=r.POLYFILL="P";e.exports=r},function(e,t,n){var i=n(103),o=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return o.call(e)}),e.exports=i.inspectSource},function(e,t,n){var i=n(8),o=n(166),r="__core-js_shared__",s=i[r]||o(r,{});e.exports=s},function(e,t,n){"use strict";var i,o,r,s=n(105),a=n(19),u=n(16),l=n(10),c=n(43),d=l("iterator"),h=!1,A=function(){return this};[].keys&&(r=[].keys(),"next"in r?(o=s(s(r)),o!==Object.prototype&&(i=o)):h=!0),void 0==i&&(i={}),c||u(i,d)||a(i,d,A),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:h}},function(e,t,n){var i=n(16),o=n(31),r=n(63),s=n(168),a=r("IE_PROTO"),u=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=o(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){var i=n(76);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var i=n(16),o=n(30),r=n(78).indexOf,s=n(51);e.exports=function(e,t){var n,a=o(e),u=0,l=[];for(n in a)!i(s,n)&&i(a,n)&&l.push(n);while(t.length>u)i(a,n=t[u++])&&(~r(l,n)||l.push(n));return l}},function(e,t,n){var i=n(36);e.exports=i("document","documentElement")},function(e,t,n){var i=n(8);e.exports=i.Promise},function(e,t,n){var i=n(53);e.exports=function(e,t,n){for(var o in t)n&&n.unsafe&&e[o]?e[o]=t[o]:i(e,o,t[o],n);return e}},function(e,t,n){"use strict";var i=n(36),o=n(18),r=n(10),s=n(14),a=r("species");e.exports=function(e){var t=i(e),n=o.f;s&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(10),o=n(44),r=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[r]===e)}},function(e,t,n){var i=n(65),o=n(44),r=n(10),s=r("iterator");e.exports=function(e){if(void 0!=e)return e[s]||e["@@iterator"]||o[i(e)]}},function(e,t,n){var i=n(25);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}}},function(e,t,n){var i=n(10),o=i("iterator"),r=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(u){}return n}},function(e,t,n){var i=n(25),o=n(41),r=n(10),s=r("species");e.exports=function(e,t){var n,r=i(e).constructor;return void 0===r||void 0==(n=i(r)[s])?t:o(n)}},function(e,t,n){var i,o,r,s=n(8),a=n(11),u=n(34),l=n(40),c=n(108),d=n(73),h=n(118),A=s.location,p=s.setImmediate,f=s.clearImmediate,g=s.process,m=s.MessageChannel,v=s.Dispatch,_=0,y={},w="onreadystatechange",b=function(e){if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},C=function(e){return function(){b(e)}},S=function(e){b(e.data)},B=function(e){s.postMessage(e+"",A.protocol+"//"+A.host)};p&&f||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return y[++_]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(_),_},f=function(e){delete y[e]},"process"==u(g)?i=function(e){g.nextTick(C(e))}:v&&v.now?i=function(e){v.now(C(e))}:m&&!h?(o=new m,r=o.port2,o.port1.onmessage=S,i=l(r.postMessage,r,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||a(B)||"file:"===A.protocol?i=w in d("script")?function(e){c.appendChild(d("script"))[w]=function(){c.removeChild(this),b(e)}}:function(e){setTimeout(C(e),0)}:(i=B,s.addEventListener("message",S,!1))),e.exports={set:p,clear:f}},function(e,t,n){var i=n(84);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},function(e,t,n){var i=n(25),o=n(13),r=n(85);e.exports=function(e,t){if(i(e),o(t)&&t.constructor===e)return t;var n=r.f(e),s=n.resolve;return s(t),n.promise}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){e.exports=n(197)},function(e,t,n){"use strict";var i=n(5),o=n(8),r=n(123),s=n(11),a=n(19),u=n(66),l=n(83),c=n(13),d=n(37),h=n(18).f,A=n(32).forEach,p=n(14),f=n(42),g=f.set,m=f.getterFor;e.exports=function(e,t,n){var f,v=-1!==e.indexOf("Map"),_=-1!==e.indexOf("Weak"),y=v?"set":"add",w=o[e],b=w&&w.prototype,C={};if(p&&"function"==typeof w&&(_||b.forEach&&!s((function(){(new w).entries().next()})))){f=t((function(t,n){g(l(t,f,e),{type:e,collection:new w}),void 0!=n&&u(n,t[y],t,v)}));var S=m(e);A(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in b)||_&&"clear"==e||a(f.prototype,e,(function(n,i){var o=S(this).collection;if(!t&&_&&!c(n))return"get"==e&&void 0;var r=o[e](0===n?0:n,i);return t?this:r}))})),_||h(f.prototype,"size",{configurable:!0,get:function(){return S(this).collection.size}})}else f=n.getConstructor(t,e,v,y),r.REQUIRED=!0;return d(f,e,!1,!0),C[e]=f,i({global:!0,forced:!0},C),_||n.setStrong(f,e,v),f}},function(e,t,n){var i=n(51),o=n(13),r=n(16),s=n(18).f,a=n(64),u=n(200),l=a("meta"),c=0,d=Object.isExtensible||function(){return!0},h=function(e){s(e,l,{value:{objectID:"O"+ ++c,weakData:{}}})},A=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,l)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[l].objectID},p=function(e,t){if(!r(e,l)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[l].weakData},f=function(e){return u&&g.REQUIRED&&d(e)&&!r(e,l)&&h(e),e},g=e.exports={REQUIRED:!1,fastKey:A,getWeakData:p,onFreeze:f};i[l]=!0},function(e,t,n){"use strict";var i=n(18).f,o=n(77),r=n(110),s=n(40),a=n(83),u=n(66),l=n(75),c=n(111),d=n(14),h=n(123).fastKey,A=n(42),p=A.set,f=A.getterFor;e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,i){a(e,c,t),p(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=i&&u(i,e[l],e,n)})),A=f(t),g=function(e,t,n){var i,o,r=A(e),s=m(e,t);return s?s.value=n:(r.last=s={index:o=h(t,!0),key:t,value:n,previous:i=r.last,next:void 0,removed:!1},r.first||(r.first=s),i&&(i.next=s),d?r.size++:e.size++,"F"!==o&&(r.index[o]=s)),e},m=function(e,t){var n,i=A(e),o=h(t);if("F"!==o)return i.index[o];for(n=i.first;n;n=n.next)if(n.key==t)return n};return r(c.prototype,{clear:function(){var e=this,t=A(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=A(t),i=m(t,e);if(i){var o=i.next,r=i.previous;delete n.index[i.index],i.removed=!0,r&&(r.next=o),o&&(o.previous=r),n.first==i&&(n.first=o),n.last==i&&(n.last=r),d?n.size--:t.size--}return!!i},forEach:function(e){var t,n=A(this),i=s(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!m(this,e)}}),r(c.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&i(c.prototype,"size",{get:function(){return A(this).size}}),c},setStrong:function(e,t,n){var i=t+" Iterator",o=f(t),r=f(i);l(e,t,(function(e,t){p(this,{type:i,target:e,state:o(e),kind:t,last:void 0})}),(function(){var e=r(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},function(e,t,n){var i=n(12);i("iterator")},function(e,t,n){var i=n(107),o=n(80),r=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){e.exports=n(268)},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={zIndex:1e4}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0}),t.getPasteImgs=t.getPasteHtml=t.getPasteText=void 0;var s=n(2),a=n(6),u=s.__importDefault(n(292));function l(e){var t=e.clipboardData,n="";return n=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),a.replaceHtmlSymbol(n)}function c(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=e.clipboardData,o="";if(i&&(o=i.getData("text/html")),!o){var r=l(e);if(!r)return"";o="<p>"+r+"</p>"}return o=o.replace(/<(\d)/gm,(function(e,t){return"&lt;"+t})),o=o.replace(/<(\/?meta.*?)>/gim,""),o=u["default"](o,t,n),o}function d(e){var t,n=[],i=l(e);if(i)return n;var o=null===(t=e.clipboardData)||void 0===t?void 0:t.items;return o?((0,r["default"])(a).call(a,o,(function(e,t){var i=t.type;/image/i.test(i)&&n.push(t.getAsFile())})),n):n}t.getPasteText=l,t.getPasteHtml=c,t.getPasteImgs=d},function(e,t,n){e.exports=n(294)},function(e,t,n){e.exports=n(310)},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(46));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3)),l=n(7),c=function(){function e(e,t){var n=this;this.hideTimeoutId=0,this.menu=e,this.conf=t;var i=u["default"]('<div class="w-e-droplist"></div>'),o=u["default"]("<p>"+t.title+"</p>");o.addClass("w-e-dp-title"),i.append(o);var a=t.list||[],c=t.type||"list",d=t.clickHandler||l.EMPTY_FN,h=u["default"]('<ul class="'+("list"===c?"w-e-list":"w-e-block")+'"></ul>');(0,r["default"])(a).call(a,(function(e){var t=e.$elem,i=e.value,o=u["default"]('<li class="w-e-item"></li>');t&&(o.append(t),h.append(o),o.on("click",(function(e){d(i),e.stopPropagation(),n.hideTimeoutId=(0,s["default"])((function(){n.hide()}))})))})),i.append(h),i.on("mouseleave",(function(){n.hideTimeoutId=(0,s["default"])((function(){n.hide()}))})),this.$container=i,this.rendered=!1,this._show=!1}return e.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e=this.menu,t=e.$elem,n=this.$container;if(!this._show){if(this.rendered)n.show();else{var i=t.getBoundingClientRect().height||0,o=this.conf.width||100;n.css("margin-top",i+"px").css("width",o+"px"),t.append(n),this.rendered=!0}this._show=!0}},e.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,o["default"])(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(92)),r=i(n(1)),s=i(n(4));(0,r["default"])(t,"__esModule",{value:!0});var a=n(6);function u(e,t){var n=new XMLHttpRequest;if(n.open("POST",e),n.timeout=t.timeout||1e4,n.ontimeout=function(){console.error("wangEditor - 请求超时"),t.onTimeout&&t.onTimeout(n)},n.upload&&(n.upload.onprogress=function(e){var n=e.loaded/e.total;t.onProgress&&t.onProgress(n,e)}),t.headers&&(0,s["default"])(a).call(a,t.headers,(function(e,t){n.setRequestHeader(e,t)})),n.withCredentials=!!t.withCredentials,t.beforeSend){var i=t.beforeSend(n);if(i&&"object"===(0,o["default"])(i)&&i.prevent)return i.msg}return n.onreadystatechange=function(){if(4===n.readyState){var e=n.status;if(!(e<200)&&!(e>=300&&e<400)){if(e>=400)return console.error("wangEditor - XHR 报错,状态码 "+e),void(t.onError&&t.onError(n));var i,r=n.responseText;if("object"!==(0,o["default"])(r))try{i=JSON.parse(r)}catch(s){return console.error("wangEditor - 返回结果不是 JSON 格式",r),void(t.onFail&&t.onFail(n,r))}else i=r;t.onSuccess(n,i)}}},n.send(t.formData||null),n}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(342)),s=i(n(46));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3)),l=function(){function e(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=u["default"]('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return e.prototype.show=function(e){var t=this;if(!this.isShow){this.isShow=!0;var n=this.$bar,i=this.$textContainer;i.append(n),(0,r["default"])()-this.time>100&&e<=1&&(n.css("width",100*e+"%"),this.time=(0,r["default"])());var o=this.timeoutId;o&&clearTimeout(o),this.timeoutId=(0,s["default"])((function(){t.hide()}),500)}},e.prototype.hide=function(){var e=this.$bar;e.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},e}();t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.ListType=void 0;var r,s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(24)),l=n(47),c=s.__importStar(n(371));(function(e){e["OrderedList"]="OL",e["UnorderedList"]="UL"})(r=t.ListType||(t.ListType={}));var d=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="序列">\n <i class="w-e-icon-list2"></i>\n </div>'),o={width:130,title:"序列",type:"list",list:[{$elem:a["default"]('\n <p>\n <i class="w-e-icon-list2 w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.list.无序列表")+"\n <p>"),value:r.UnorderedList},{$elem:a["default"]('<p>\n <i class="w-e-icon-list-numbered w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.list.有序列表")+"\n <p>"),value:r.OrderedList}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,o)||this,n}return s.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();void 0!==n&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},t.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},t.prototype.handleSelectionRangeNodes=function(e){var t=this.editor,n=t.selection,i=e.toLowerCase(),o=n.getSelectionContainerElem(),r=n.getSelectionStartElem().getNodeTop(t),s=n.getSelectionEndElem().getNodeTop(t);if(this.validator(r,s,t.$textElem)){var a=n.getRange(),u=null===a||void 0===a?void 0:a.collapsed;t.$textElem.equal(o)||(o=o.getNodeTop(t));var d,h={editor:t,listType:e,listTarget:i,$selectionElem:o,$startElem:r,$endElem:s};d=this.isOrderElem(o)?c.ClassType.Wrap:this.isOrderElem(r)&&this.isOrderElem(s)?c.ClassType.Join:this.isOrderElem(r)?c.ClassType.StartJoin:this.isOrderElem(s)?c.ClassType.EndJoin:c.ClassType.Other;var A=new c["default"](c.createListHandle(d,h,a));l.updateRange(t,A.getSelectionRangeElem(),!!u)}},t.prototype.isOrderElem=function(e){var t=e.getNodeName();return t===r.OrderedList||t===r.UnorderedList},t.prototype.tryChangeActive=function(){},t}(u["default"]);t["default"]=d},function(e,t,n){e.exports=n(395)},function(e,t,n){"use strict";var i=n(0),o=i(n(1));function r(e){var t=e.selection.getSelectionContainerElem();return!!(null===t||void 0===t?void 0:t.length)&&!("CODE"!=t.getNodeName()&&"PRE"!=t.getNodeName()&&"CODE"!=t.parent().getNodeName()&&"PRE"!=t.parent().getNodeName()&&!/hljs/.test(t.parent().attr("class")))}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(29));(0,o["default"])(t,"__esModule",{value:!0}),t.todo=void 0;var s=n(2),a=s.__importDefault(n(3)),u=function(){function e(e){var t;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=a["default"](this.template),this.$child=null===(t=null===e||void 0===e?void 0:e.childNodes())||void 0===t?void 0:t.clone(!0)}return e.prototype.init=function(){var e=this.$child,t=this.getInputContainer();e&&e.insertAfter(t)},e.prototype.getInput=function(){var e=this.$todo,t=(0,r["default"])(e).call(e,"input");return t},e.prototype.getInputContainer=function(){var e=this.getInput().parent();return e},e.prototype.getTodo=function(){return this.$todo},e}();function l(e){var t=new u(e);return t.init(),t}t.todo=u,t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2);n(146),n(148),n(152),n(154),n(156),n(158),n(160);var s=r.__importDefault(n(87));r.__exportStar(n(442),t);try{document}catch(a){throw new Error("请在浏览器环境下运行")}t["default"]=s["default"]},function(e,t,n){var i=n(143);e.exports=i},function(e,t,n){n(144);var i=n(9),o=i.Object,r=e.exports=function(e,t,n){return o.defineProperty(e,t,n)};o.defineProperty.sham&&(r.sham=!0)},function(e,t,n){var i=n(5),o=n(14),r=n(18);i({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:r.f})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){var i=n(20),o=n(147);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n background-color: #fff;\n /*表情菜单样式*/\n /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n font-size: 32px !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n font-size: 24px !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n font-size: 18.72px !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n font-size: 16px !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n font-size: 13.28px !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n font-size: 16px !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n cursor: pointer;\n display: inline-block;\n font-size: 18px;\n padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n cursor: pointer;\n display: block;\n height: 0px;\n border: 0;\n border-top: 3px solid #ccc;\n margin: 20px 0;\n}\n.w-e-clear-fix:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-drop-list-item {\n position: relative;\n top: 1px;\n padding-right: 7px;\n color: #333 !important;\n}\n.w-e-drop-list-tl {\n padding-left: 10px;\n text-align: left;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(149);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21),o=n(150),r=n(151);t=i(!1);var s=o(r);t.push([e.i,"@font-face {\n font-family: 'w-e-icon';\n src: url("+s+') format(\'truetype\');\n font-weight: normal;\n font-style: normal;\n}\n[class^="w-e-icon-"],\n[class*=" w-e-icon-"] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'w-e-icon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.w-e-icon-close:before {\n content: "\\f00d";\n}\n.w-e-icon-upload2:before {\n content: "\\e9c6";\n}\n.w-e-icon-trash-o:before {\n content: "\\f014";\n}\n.w-e-icon-header:before {\n content: "\\f1dc";\n}\n.w-e-icon-pencil2:before {\n content: "\\e906";\n}\n.w-e-icon-paint-brush:before {\n content: "\\f1fc";\n}\n.w-e-icon-image:before {\n content: "\\e90d";\n}\n.w-e-icon-play:before {\n content: "\\e912";\n}\n.w-e-icon-location:before {\n content: "\\e947";\n}\n.w-e-icon-undo:before {\n content: "\\e965";\n}\n.w-e-icon-redo:before {\n content: "\\e966";\n}\n.w-e-icon-quotes-left:before {\n content: "\\e977";\n}\n.w-e-icon-list-numbered:before {\n content: "\\e9b9";\n}\n.w-e-icon-list2:before {\n content: "\\e9bb";\n}\n.w-e-icon-link:before {\n content: "\\e9cb";\n}\n.w-e-icon-happy:before {\n content: "\\e9df";\n}\n.w-e-icon-bold:before {\n content: "\\ea62";\n}\n.w-e-icon-underline:before {\n content: "\\ea63";\n}\n.w-e-icon-italic:before {\n content: "\\ea64";\n}\n.w-e-icon-strikethrough:before {\n content: "\\ea65";\n}\n.w-e-icon-table2:before {\n content: "\\ea71";\n}\n.w-e-icon-paragraph-left:before {\n content: "\\ea77";\n}\n.w-e-icon-paragraph-center:before {\n content: "\\ea78";\n}\n.w-e-icon-paragraph-right:before {\n content: "\\ea79";\n}\n.w-e-icon-paragraph-justify:before {\n content: "\\ea7a";\n}\n.w-e-icon-terminal:before {\n content: "\\f120";\n}\n.w-e-icon-page-break:before {\n content: "\\ea68";\n}\n.w-e-icon-cancel-circle:before {\n content: "\\ea0d";\n}\n.w-e-icon-font:before {\n content: "\\ea5c";\n}\n.w-e-icon-text-heigh:before {\n content: "\\ea5f";\n}\n.w-e-icon-paint-format:before {\n content: "\\e90c";\n}\n.w-e-icon-indent-increase:before {\n content: "\\ea7b";\n}\n.w-e-icon-indent-decrease:before {\n content: "\\ea7c";\n}\n.w-e-icon-row-height:before {\n content: "\\e9be";\n}\n.w-e-icon-fullscreen_exit:before {\n content: "\\e900";\n}\n.w-e-icon-fullscreen:before {\n content: "\\e901";\n}\n.w-e-icon-split-line:before {\n content: "\\ea0b";\n}\n.w-e-icon-checkbox-checked:before {\n content: "\\ea52";\n}\n',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){"use strict";n.r(t),t["default"]="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,n){var i=n(20),o=n(153);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,'.w-e-toolbar {\n display: flex;\n padding: 0 6px;\n flex-wrap: wrap;\n position: relative;\n /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n position: relative;\n display: flex;\n width: 40px;\n height: 40px;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n color: #333;\n}\n.w-e-toolbar .w-e-active i {\n color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n color: #1e88e5;\n}\n.w-e-menu-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-menu-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-item-wrapper {\n font-size: 14px;\n margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(155);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,'.w-e-text-container {\n position: relative;\n height: 100%;\n}\n.w-e-text-container .w-e-progress {\n position: absolute;\n background-color: #1e88e5;\n top: 0;\n left: 0;\n height: 1px;\n}\n.w-e-text-container .placeholder {\n color: #D4D4D4;\n position: absolute;\n font-size: 11pt;\n line-height: 22px;\n left: 10px;\n top: 10px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n z-index: -1;\n}\n.w-e-text {\n padding: 0 10px;\n overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n margin: 10px 0;\n line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n display: block;\n border-left: 8px solid #d0e5f2;\n padding: 5px 10px;\n margin: 10px 0;\n line-height: 1.4;\n font-size: 100%;\n background-color: #f1f1f1;\n}\n.w-e-text code {\n display: inline-block;\n background-color: #f1f1f1;\n border-radius: 3px;\n padding: 3px 5px;\n margin: 0 3px;\n}\n.w-e-text pre code {\n display: block;\n}\n.w-e-text table {\n border-top: 1px solid #ccc;\n border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n border-bottom: 1px solid #ccc;\n border-right: 1px solid #ccc;\n padding: 3px 5px;\n min-height: 30px;\n height: 30px;\n}\n.w-e-text table th {\n border-bottom: 2px solid #ccc;\n text-align: center;\n background-color: #f1f1f1;\n}\n.w-e-text:focus {\n outline: none;\n}\n.w-e-text img {\n cursor: pointer;\n}\n.w-e-text img:hover {\n box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n list-style: none;\n font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n position: relative;\n left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n position: absolute;\n margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n top: 50%;\n margin-top: -6px;\n}\n.w-e-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n cursor: pointer;\n font-size: 14px;\n margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n color: #ccc;\n text-decoration: underline;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(157);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,'.w-e-menu .w-e-panel-container {\n position: absolute;\n top: 0;\n left: 50%;\n border: 1px solid #ccc;\n border-top: 0;\n box-shadow: 1px 1px 2px #ccc;\n color: #333;\n background-color: #fff;\n text-align: left;\n /* 为 emotion panel 定制的样式 */\n /* 上传图片、上传视频的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n margin: 2px 5px 0 0;\n cursor: pointer;\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n list-style: none;\n display: flex;\n font-size: 14px;\n margin: 2px 10px 0 10px;\n border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n padding: 3px 5px;\n color: #999;\n cursor: pointer;\n margin: 0 3px;\n position: relative;\n top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n color: #333;\n border-bottom: 1px solid #333;\n cursor: default;\n font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n padding: 10px 15px 10px 15px;\n font-size: 16px;\n /* 输入框的样式 */\n /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n width: 100%;\n border: 1px solid #ccc;\n padding: 5px;\n margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n border: none;\n border-bottom: 1px solid #ccc;\n font-size: 14px;\n height: 20px;\n color: #333;\n text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n width: 30px;\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n display: block;\n width: 100%;\n margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n font-size: 14px;\n color: #1e88e5;\n border: none;\n padding: 5px 10px;\n background-color: #fff;\n cursor: pointer;\n border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n float: left;\n margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n float: right;\n margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n cursor: pointer;\n font-size: 18px;\n padding: 0 3px;\n display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container,\n.w-e-menu .w-e-panel-container .w-e-up-video-container {\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {\n display: inline-block;\n color: #999;\n cursor: pointer;\n font-size: 60px;\n line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(159);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,".w-e-toolbar .w-e-droplist {\n position: absolute;\n left: 0;\n top: 0;\n background-color: #fff;\n border: 1px solid #f1f1f1;\n border-right-color: #ccc;\n border-bottom-color: #ccc;\n}\n.w-e-toolbar .w-e-droplist .w-e-dp-title {\n text-align: center;\n color: #999;\n line-height: 2;\n border-bottom: 1px solid #f1f1f1;\n font-size: 13px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list {\n list-style: none;\n line-height: 1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {\n color: #333;\n padding: 5px 0;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block {\n list-style: none;\n text-align: left;\n padding: 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {\n display: inline-block;\n padding: 3px 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0),o=i(n(161));Element.prototype.matches||(Element.prototype.matches=function(e){var t=this.ownerDocument.querySelectorAll(e),n=t.length;for(n;n>=0;n--)if(t.item(n)===this)break;return n>-1}),o["default"]||(window.Promise=o["default"])},function(e,t,n){e.exports=n(162)},function(e,t,n){var i=n(163);e.exports=i},function(e,t,n){n(61),n(50),n(54),n(175),n(178),n(179);var i=n(9);e.exports=i.Promise},function(e,t,n){var i=n(62),o=n(49),r=function(e){return function(t,n){var r,s,a=String(o(t)),u=i(n),l=a.length;return u<0||u>=l?e?"":void 0:(r=a.charCodeAt(u),r<55296||r>56319||u+1===l||(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)}};e.exports={codeAt:r(!1),charAt:r(!0)}},function(e,t,n){var i=n(8),o=n(102),r=i.WeakMap;e.exports="function"===typeof r&&/native code/.test(o(r))},function(e,t,n){var i=n(8),o=n(19);e.exports=function(e,t){try{o(i,e,t)}catch(n){i[e]=t}return t}},function(e,t,n){"use strict";var i=n(104).IteratorPrototype,o=n(77),r=n(48),s=n(37),a=n(44),u=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(i,{next:r(1,n)}),s(e,l,!1,!0),a[l]=u,e}},function(e,t,n){var i=n(11);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var i=n(14),o=n(18),r=n(25),s=n(52);e.exports=i?Object.defineProperties:function(e,t){r(e);var n,i=s(t),a=i.length,u=0;while(a>u)o.f(e,n=i[u++],t[n]);return e}},function(e,t,n){"use strict";var i=n(81),o=n(65);e.exports=i?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){var i=n(25),o=n(172);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return i(n),o(r),t?e.call(n,r):n.__proto__=r,n}}():void 0)},function(e,t,n){var i=n(13);e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var i=n(30),o=n(82),r=n(44),s=n(42),a=n(75),u="Array Iterator",l=s.set,c=s.getterFor(u);e.exports=a(Array,"Array",(function(e,t){l(this,{type:u,target:i(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var i,o,r,s,a=n(5),u=n(43),l=n(8),c=n(36),d=n(109),h=n(53),A=n(110),p=n(37),f=n(111),g=n(13),m=n(41),v=n(83),_=n(34),y=n(102),w=n(66),b=n(115),C=n(116),S=n(117).set,B=n(176),E=n(119),x=n(177),L=n(85),D=n(120),N=n(42),k=n(101),I=n(10),F=n(86),M=I("species"),O="Promise",T=N.get,P=N.set,R=N.getterFor(O),U=d,H=l.TypeError,Q=l.document,V=l.process,W=c("fetch"),K=L.f,z=K,j="process"==_(V),G=!!(Q&&Q.createEvent&&l.dispatchEvent),q="unhandledrejection",Y="rejectionhandled",X=0,J=1,Z=2,$=1,ee=2,te=k(O,(function(){var e=y(U)!==String(U);if(!e){if(66===F)return!0;if(!j&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!U.prototype["finally"])return!0;if(F>=51&&/native code/.test(U))return!1;var t=U.resolve(1),n=function(e){e((function(){}),(function(){}))},i=t.constructor={};return i[M]=n,!(t.then((function(){}))instanceof n)})),ne=te||!b((function(e){U.all(e)["catch"]((function(){}))})),ie=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},oe=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;B((function(){var o=t.value,r=t.state==J,s=0;while(i.length>s){var a,u,l,c=i[s++],d=r?c.ok:c.fail,h=c.resolve,A=c.reject,p=c.domain;try{d?(r||(t.rejection===ee&&ue(e,t),t.rejection=$),!0===d?a=o:(p&&p.enter(),a=d(o),p&&(p.exit(),l=!0)),a===c.promise?A(H("Promise-chain cycle")):(u=ie(a))?u.call(a,h,A):h(a)):A(o)}catch(f){p&&!l&&p.exit(),A(f)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&se(e,t)}))}},re=function(e,t,n){var i,o;G?(i=Q.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),l.dispatchEvent(i)):i={promise:t,reason:n},(o=l["on"+e])?o(i):e===q&&x("Unhandled promise rejection",n)},se=function(e,t){S.call(l,(function(){var n,i=t.value,o=ae(t);if(o&&(n=D((function(){j?V.emit("unhandledRejection",i,e):re(q,e,i)})),t.rejection=j||ae(t)?ee:$,n.error))throw n.value}))},ae=function(e){return e.rejection!==$&&!e.parent},ue=function(e,t){S.call(l,(function(){j?V.emit("rejectionHandled",e):re(Y,e,t.value)}))},le=function(e,t,n,i){return function(o){e(t,n,o,i)}},ce=function(e,t,n,i){t.done||(t.done=!0,i&&(t=i),t.value=n,t.state=Z,oe(e,t,!0))},de=function(e,t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(e===n)throw H("Promise can't be resolved itself");var o=ie(n);o?B((function(){var i={done:!1};try{o.call(n,le(de,e,i,t),le(ce,e,i,t))}catch(r){ce(e,i,r,t)}})):(t.value=n,t.state=J,oe(e,t,!1))}catch(r){ce(e,{done:!1},r,t)}}};te&&(U=function(e){v(this,U,O),m(e),i.call(this);var t=T(this);try{e(le(de,this,t),le(ce,this,t))}catch(n){ce(this,t,n)}},i=function(e){P(this,{type:O,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},i.prototype=A(U.prototype,{then:function(e,t){var n=R(this),i=K(C(this,U));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=j?V.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=X&&oe(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i,t=T(e);this.promise=e,this.resolve=le(de,e,t),this.reject=le(ce,e,t)},L.f=K=function(e){return e===U||e===r?new o(e):z(e)},u||"function"!=typeof d||(s=d.prototype.then,h(d.prototype,"then",(function(e,t){var n=this;return new U((function(e,t){s.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return E(U,W.apply(l,arguments))}}))),a({global:!0,wrap:!0,forced:te},{Promise:U}),p(U,O,!1,!0),f(O),r=c(O),a({target:O,stat:!0,forced:te},{reject:function(e){var t=K(this);return t.reject.call(void 0,e),t.promise}}),a({target:O,stat:!0,forced:u||te},{resolve:function(e){return E(u&&this===r?U:this,e)}}),a({target:O,stat:!0,forced:ne},{all:function(e){var t=this,n=K(t),i=n.resolve,o=n.reject,r=D((function(){var n=m(t.resolve),r=[],s=0,a=1;w(e,(function(e){var u=s++,l=!1;r.push(void 0),a++,n.call(t,e).then((function(e){l||(l=!0,r[u]=e,--a||i(r))}),o)})),--a||i(r)}));return r.error&&o(r.value),n.promise},race:function(e){var t=this,n=K(t),i=n.reject,o=D((function(){var o=m(t.resolve);w(e,(function(e){o.call(t,e).then(n.resolve,i)}))}));return o.error&&i(o.value),n.promise}})},function(e,t,n){var i,o,r,s,a,u,l,c,d=n(8),h=n(71).f,A=n(34),p=n(117).set,f=n(118),g=d.MutationObserver||d.WebKitMutationObserver,m=d.process,v=d.Promise,_="process"==A(m),y=h(d,"queueMicrotask"),w=y&&y.value;w||(i=function(){var e,t;_&&(e=m.domain)&&e.exit();while(o){t=o.fn,o=o.next;try{t()}catch(n){throw o?s():r=void 0,n}}r=void 0,e&&e.enter()},_?s=function(){m.nextTick(i)}:g&&!f?(a=!0,u=document.createTextNode(""),new g(i).observe(u,{characterData:!0}),s=function(){u.data=a=!a}):v&&v.resolve?(l=v.resolve(void 0),c=l.then,s=function(){c.call(l,i)}):s=function(){p.call(d,i)}),e.exports=w||function(e){var t={fn:e,next:void 0};r&&(r.next=t),o||(o=t,s()),r=t}},function(e,t,n){var i=n(8);e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";var i=n(5),o=n(41),r=n(85),s=n(120),a=n(66);i({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=r.f(t),i=n.resolve,u=n.reject,l=s((function(){var n=o(t.resolve),r=[],s=0,u=1;a(e,(function(e){var o=s++,a=!1;r.push(void 0),u++,n.call(t,e).then((function(e){a||(a=!0,r[o]={status:"fulfilled",value:e},--u||i(r))}),(function(e){a||(a=!0,r[o]={status:"rejected",reason:e},--u||i(r))}))})),--u||i(r)}));return l.error&&u(l.value),n.promise}})},function(e,t,n){"use strict";var i=n(5),o=n(43),r=n(109),s=n(11),a=n(36),u=n(116),l=n(119),c=n(53),d=!!r&&s((function(){r.prototype["finally"].call({then:function(){}},(function(){}))}));i({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=u(this,a("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),o||"function"!=typeof r||r.prototype["finally"]||c(r.prototype,"finally",a("Promise").prototype["finally"])},function(e,t,n){n(54);var i=n(181),o=n(65),r=Array.prototype,s={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===r||e instanceof Array&&t===r.forEach||s.hasOwnProperty(o(e))?i:t}},function(e,t,n){var i=n(182);e.exports=i},function(e,t,n){n(183);var i=n(15);e.exports=i("Array").forEach},function(e,t,n){"use strict";var i=n(5),o=n(184);i({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(e,t,n){"use strict";var i=n(32).forEach,o=n(67),r=n(22),s=o("forEach"),a=r("forEach");e.exports=s&&a?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var i=n(186);e.exports=i},function(e,t,n){n(187);var i=n(9);e.exports=i.Array.isArray},function(e,t,n){var i=n(5),o=n(55);i({target:"Array",stat:!0},{isArray:o})},function(e,t,n){var i=n(189);e.exports=i},function(e,t,n){var i=n(190),o=Array.prototype;e.exports=function(e){var t=e.map;return e===o||e instanceof Array&&t===o.map?i:t}},function(e,t,n){n(191);var i=n(15);e.exports=i("Array").map},function(e,t,n){"use strict";var i=n(5),o=n(32).map,r=n(56),s=n(22),a=r("map"),u=s("map");i({target:"Array",proto:!0,forced:!a||!u},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(193);e.exports=i},function(e,t,n){var i=n(194),o=String.prototype;e.exports=function(e){var t=e.trim;return"string"===typeof e||e===o||e instanceof String&&t===o.trim?i:t}},function(e,t,n){n(195);var i=n(15);e.exports=i("String").trim},function(e,t,n){"use strict";var i=n(5),o=n(90).trim,r=n(196);i({target:"String",proto:!0,forced:r("trim")},{trim:function(){return o(this)}})},function(e,t,n){var i=n(11),o=n(68),r="…";e.exports=function(e){return i((function(){return!!o[e]()||r[e]()!=r||o[e].name!==e}))}},function(e,t,n){var i=n(198);e.exports=i},function(e,t,n){n(199),n(61),n(50),n(54);var i=n(9);e.exports=i.Map},function(e,t,n){"use strict";var i=n(122),o=n(124);e.exports=i("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){var i=n(11);e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var i=n(202);e.exports=i},function(e,t,n){var i=n(203),o=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===o||e instanceof Array&&t===o.indexOf?i:t}},function(e,t,n){n(204);var i=n(15);e.exports=i("Array").indexOf},function(e,t,n){"use strict";var i=n(5),o=n(78).indexOf,r=n(67),s=n(22),a=[].indexOf,u=!!a&&1/[1].indexOf(1,-0)<0,l=r("indexOf"),c=s("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:u||!l||!c},{indexOf:function(e){return u?a.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(206);e.exports=i},function(e,t,n){var i=n(207),o=Array.prototype;e.exports=function(e){var t=e.splice;return e===o||e instanceof Array&&t===o.splice?i:t}},function(e,t,n){n(208);var i=n(15);e.exports=i("Array").splice},function(e,t,n){"use strict";var i=n(5),o=n(79),r=n(62),s=n(35),a=n(31),u=n(88),l=n(69),c=n(56),d=n(22),h=c("splice"),A=d("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,f=Math.min,g=9007199254740991,m="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!h||!A},{splice:function(e,t){var n,i,c,d,h,A,v=a(this),_=s(v.length),y=o(e,_),w=arguments.length;if(0===w?n=i=0:1===w?(n=0,i=_-y):(n=w-2,i=f(p(r(t),0),_-y)),_+n-i>g)throw TypeError(m);for(c=u(v,i),d=0;d<i;d++)h=y+d,h in v&&l(c,d,v[h]);if(c.length=i,n<i){for(d=y;d<_-i;d++)h=d+i,A=d+n,h in v?v[A]=v[h]:delete v[A];for(d=_;d>_-i+n;d--)delete v[d-1]}else if(n>i)for(d=_-i;d>y;d--)h=d+i-1,A=d+n-1,h in v?v[A]=v[h]:delete v[A];for(d=0;d<n;d++)v[d+y]=arguments[d+2];return v.length=_-i+n,c}})},function(e,t,n){var i=n(210);e.exports=i},function(e,t,n){var i=n(211),o=Array.prototype;e.exports=function(e){var t=e.filter;return e===o||e instanceof Array&&t===o.filter?i:t}},function(e,t,n){n(212);var i=n(15);e.exports=i("Array").filter},function(e,t,n){"use strict";var i=n(5),o=n(32).filter,r=n(56),s=n(22),a=r("filter"),u=s("filter");i({target:"Array",proto:!0,forced:!a||!u},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(214);e.exports=i},function(e,t,n){var i=n(215),o=n(217),r=Array.prototype,s=String.prototype;e.exports=function(e){var t=e.includes;return e===r||e instanceof Array&&t===r.includes?i:"string"===typeof e||e===s||e instanceof String&&t===s.includes?o:t}},function(e,t,n){n(216);var i=n(15);e.exports=i("Array").includes},function(e,t,n){"use strict";var i=n(5),o=n(78).includes,r=n(82),s=n(22),a=s("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!a},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},function(e,t,n){n(218);var i=n(15);e.exports=i("String").includes},function(e,t,n){"use strict";var i=n(5),o=n(219),r=n(49),s=n(221);i({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~String(r(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(220);e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var i=n(13),o=n(34),r=n(10),s=r("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==o(e))}},function(e,t,n){var i=n(10),o=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(i){}}return!1}},function(e,t,n){var i=n(223);e.exports=i},function(e,t,n){var i=n(224),o=Function.prototype;e.exports=function(e){var t=e.bind;return e===o||e instanceof Function&&t===o.bind?i:t}},function(e,t,n){n(225);var i=n(15);e.exports=i("Function").bind},function(e,t,n){var i=n(5),o=n(226);i({target:"Function",proto:!0},{bind:o})},function(e,t,n){"use strict";var i=n(41),o=n(13),r=[].slice,s={},a=function(e,t,n){if(!(t in s)){for(var i=[],o=0;o<t;o++)i[o]="a["+o+"]";s[t]=Function("C,a","return new C("+i.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=r.call(arguments,1),s=function(){var i=n.concat(r.call(arguments));return this instanceof s?a(t,i.length,i):t.apply(e,i)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){e.exports=n(228)},function(e,t,n){var i=n(229);e.exports=i},function(e,t,n){n(125),n(50),n(54);var i=n(93);e.exports=i.f("iterator")},function(e,t,n){e.exports=n(231)},function(e,t,n){var i=n(232);n(251),n(252),n(253),n(254),n(255),e.exports=i},function(e,t,n){n(233),n(61),n(234),n(236),n(237),n(238),n(239),n(125),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250);var i=n(9);e.exports=i.Symbol},function(e,t,n){"use strict";var i=n(5),o=n(11),r=n(55),s=n(13),a=n(31),u=n(35),l=n(69),c=n(88),d=n(56),h=n(10),A=n(86),p=h("isConcatSpreadable"),f=9007199254740991,g="Maximum allowed index exceeded",m=A>=51||!o((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),v=d("concat"),_=function(e){if(!s(e))return!1;var t=e[p];return void 0!==t?!!t:r(e)},y=!m||!v;i({target:"Array",proto:!0,forced:y},{concat:function(e){var t,n,i,o,r,s=a(this),d=c(s,0),h=0;for(t=-1,i=arguments.length;t<i;t++)if(r=-1===t?s:arguments[t],_(r)){if(o=u(r.length),h+o>f)throw TypeError(g);for(n=0;n<o;n++,h++)n in r&&l(d,h,r[n])}else{if(h>=f)throw TypeError(g);l(d,h++,r)}return d.length=h,d}})},function(e,t,n){"use strict";var i=n(5),o=n(8),r=n(36),s=n(43),a=n(14),u=n(76),l=n(106),c=n(11),d=n(16),h=n(55),A=n(13),p=n(25),f=n(31),g=n(30),m=n(60),v=n(48),_=n(77),y=n(52),w=n(126),b=n(235),C=n(127),S=n(71),B=n(18),E=n(59),x=n(19),L=n(53),D=n(74),N=n(63),k=n(51),I=n(64),F=n(10),M=n(93),O=n(12),T=n(37),P=n(42),R=n(32).forEach,U=N("hidden"),H="Symbol",Q="prototype",V=F("toPrimitive"),W=P.set,K=P.getterFor(H),z=Object[Q],j=o.Symbol,G=r("JSON","stringify"),q=S.f,Y=B.f,X=b.f,J=E.f,Z=D("symbols"),$=D("op-symbols"),ee=D("string-to-symbol-registry"),te=D("symbol-to-string-registry"),ne=D("wks"),ie=o.QObject,oe=!ie||!ie[Q]||!ie[Q].findChild,re=a&&c((function(){return 7!=_(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=q(z,t);i&&delete z[t],Y(e,t,n),i&&e!==z&&Y(z,t,i)}:Y,se=function(e,t){var n=Z[e]=_(j[Q]);return W(n,{type:H,tag:e,description:t}),a||(n.description=t),n},ae=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof j},ue=function(e,t,n){e===z&&ue($,t,n),p(e);var i=m(t,!0);return p(n),d(Z,i)?(n.enumerable?(d(e,U)&&e[U][i]&&(e[U][i]=!1),n=_(n,{enumerable:v(0,!1)})):(d(e,U)||Y(e,U,v(1,{})),e[U][i]=!0),re(e,i,n)):Y(e,i,n)},le=function(e,t){p(e);var n=g(t),i=y(n).concat(pe(n));return R(i,(function(t){a&&!de.call(n,t)||ue(e,t,n[t])})),e},ce=function(e,t){return void 0===t?_(e):le(_(e),t)},de=function(e){var t=m(e,!0),n=J.call(this,t);return!(this===z&&d(Z,t)&&!d($,t))&&(!(n||!d(this,t)||!d(Z,t)||d(this,U)&&this[U][t])||n)},he=function(e,t){var n=g(e),i=m(t,!0);if(n!==z||!d(Z,i)||d($,i)){var o=q(n,i);return!o||!d(Z,i)||d(n,U)&&n[U][i]||(o.enumerable=!0),o}},Ae=function(e){var t=X(g(e)),n=[];return R(t,(function(e){d(Z,e)||d(k,e)||n.push(e)})),n},pe=function(e){var t=e===z,n=X(t?$:g(e)),i=[];return R(n,(function(e){!d(Z,e)||t&&!d(z,e)||i.push(Z[e])})),i};if(u||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),n=function(e){this===z&&n.call($,e),d(this,U)&&d(this[U],t)&&(this[U][t]=!1),re(this,t,v(1,e))};return a&&oe&&re(z,t,{configurable:!0,set:n}),se(t,e)},L(j[Q],"toString",(function(){return K(this).tag})),L(j,"withoutSetter",(function(e){return se(I(e),e)})),E.f=de,B.f=ue,S.f=he,w.f=b.f=Ae,C.f=pe,M.f=function(e){return se(F(e),e)},a&&(Y(j[Q],"description",{configurable:!0,get:function(){return K(this).description}}),s||L(z,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:j}),R(y(ne),(function(e){O(e)})),i({target:H,stat:!0,forced:!u},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=j(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),i({target:"Object",stat:!0,forced:!u,sham:!a},{create:ce,defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:he}),i({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:Ae,getOwnPropertySymbols:pe}),i({target:"Object",stat:!0,forced:c((function(){C.f(1)}))},{getOwnPropertySymbols:function(e){return C.f(f(e))}}),G){var fe=!u||c((function(){var e=j();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}));i({target:"JSON",stat:!0,forced:fe},{stringify:function(e,t,n){var i,o=[e],r=1;while(arguments.length>r)o.push(arguments[r++]);if(i=t,(A(t)||void 0!==e)&&!ae(e))return h(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!ae(t))return t}),o[1]=t,G.apply(null,o)}})}j[Q][V]||x(j[Q],V,j[Q].valueOf),T(j,H),k[U]=!0},function(e,t,n){var i=n(30),o=n(126).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))}},function(e,t,n){var i=n(12);i("asyncIterator")},function(e,t){},function(e,t,n){var i=n(12);i("hasInstance")},function(e,t,n){var i=n(12);i("isConcatSpreadable")},function(e,t,n){var i=n(12);i("match")},function(e,t,n){var i=n(12);i("matchAll")},function(e,t,n){var i=n(12);i("replace")},function(e,t,n){var i=n(12);i("search")},function(e,t,n){var i=n(12);i("species")},function(e,t,n){var i=n(12);i("split")},function(e,t,n){var i=n(12);i("toPrimitive")},function(e,t,n){var i=n(12);i("toStringTag")},function(e,t,n){var i=n(12);i("unscopables")},function(e,t,n){var i=n(37);i(Math,"Math",!0)},function(e,t,n){var i=n(8),o=n(37);o(i.JSON,"JSON",!0)},function(e,t,n){var i=n(12);i("asyncDispose")},function(e,t,n){var i=n(12);i("dispose")},function(e,t,n){var i=n(12);i("observable")},function(e,t,n){var i=n(12);i("patternMatch")},function(e,t,n){var i=n(12);i("replaceAll")},function(e,t,n){e.exports=n(257)},function(e,t,n){var i=n(258);e.exports=i},function(e,t,n){n(259);var i=n(9);e.exports=i.parseInt},function(e,t,n){var i=n(5),o=n(260);i({global:!0,forced:parseInt!=o},{parseInt:o})},function(e,t,n){var i=n(8),o=n(90).trim,r=n(68),s=i.parseInt,a=/^[+-]?0[Xx]/,u=8!==s(r+"08")||22!==s(r+"0x16");e.exports=u?function(e,t){var n=o(String(e));return s(n,t>>>0||(a.test(n)?16:10))}:s},function(e,t,n){var i=n(262);e.exports=i},function(e,t,n){var i=n(263),o=Array.prototype;e.exports=function(e){var t=e.slice;return e===o||e instanceof Array&&t===o.slice?i:t}},function(e,t,n){n(264);var i=n(15);e.exports=i("Array").slice},function(e,t,n){"use strict";var i=n(5),o=n(13),r=n(55),s=n(79),a=n(35),u=n(30),l=n(69),c=n(10),d=n(56),h=n(22),A=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),f=c("species"),g=[].slice,m=Math.max;i({target:"Array",proto:!0,forced:!A||!p},{slice:function(e,t){var n,i,c,d=u(this),h=a(d.length),A=s(e,h),p=s(void 0===t?h:t,h);if(r(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?o(n)&&(n=n[f],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return g.call(d,A,p);for(i=new(void 0===n?Array:n)(m(p-A,0)),c=0;A<p;A++,c++)A in d&&l(i,c,d[A]);return i.length=c,i}})},function(e,t,n){n(266);var i=n(9);e.exports=i.setTimeout},function(e,t,n){var i=n(5),o=n(8),r=n(84),s=[].slice,a=/MSIE .\./.test(r),u=function(e){return function(t,n){var i=arguments.length>2,o=i?s.call(arguments,2):void 0;return e(i?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};i({global:!0,bind:!0,forced:a},{setTimeout:u(o.setTimeout),setInterval:u(o.setInterval)})},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(128));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(272)),u=s.__importDefault(n(273)),l=s.__importDefault(n(129)),c=s.__importDefault(n(274)),d=s.__importDefault(n(275)),h=s.__importDefault(n(276)),A=s.__importDefault(n(130)),p=s.__importDefault(n(277)),f=s.__importDefault(n(278)),g=s.__importDefault(n(279)),m=(0,r["default"])({},a["default"],u["default"],l["default"],d["default"],c["default"],h["default"],A["default"],p["default"],f["default"],g["default"],{linkCheck:function(e,t){return!0}});t["default"]=m},function(e,t,n){var i=n(269);e.exports=i},function(e,t,n){n(270);var i=n(9);e.exports=i.Object.assign},function(e,t,n){var i=n(5),o=n(271);i({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";var i=n(14),o=n(11),r=n(52),s=n(127),a=n(59),u=n(31),l=n(72),c=Object.assign,d=Object.defineProperty;e.exports=!c||o((function(){if(i&&1!==c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||r(c({},t)).join("")!=o}))?function(e,t){var n=u(e),o=arguments.length,c=1,d=s.f,h=a.f;while(o>c){var A,p=l(arguments[c++]),f=d?r(p).concat(d(p)):r(p),g=f.length,m=0;while(g>m)A=f[m++],i&&!h.call(p,A)||(n[A]=p[A])}return n}:c},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"    ",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(7);function s(e,t,n){window.alert(e),n&&console.error("wangEditor: "+n)}t["default"]={onchangeTimeout:200,onchange:null,onfocus:r.EMPTY_FN,onblur:r.EMPTY_FN,onCatalogChange:null,customAlert:s}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(e){return e}}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={styleWithCSS:!1}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(7);t["default"]={linkImgCheck:function(e,t,n){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:r.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{"重置":"重置","插入":"插入","默认":"默认","创建":"创建","修改":"修改","如":"如","请输入正文":"请输入正文",menus:{title:{"标题":"标题","加粗":"加粗","字号":"字号","字体":"字体","斜体":"斜体","下划线":"下划线","删除线":"删除线","缩进":"缩进","行高":"行高","文字颜色":"文字颜色","背景色":"背景色","链接":"链接","序列":"序列","对齐":"对齐","引用":"引用","表情":"表情","图片":"图片","视频":"视频","表格":"表格","代码":"代码","分割线":"分割线","恢复":"恢复","撤销":"撤销","全屏":"全屏","取消全屏":"取消全屏","待办事项":"待办事项"},dropListMenu:{"设置标题":"设置标题","背景颜色":"背景颜色","文字颜色":"文字颜色","设置字号":"设置字号","设置字体":"设置字体","设置缩进":"设置缩进","对齐方式":"对齐方式","设置行高":"设置行高","序列":"序列",head:{"正文":"正文"},indent:{"增加缩进":"增加缩进","减少缩进":"减少缩进"},justify:{"靠左":"靠左","居中":"居中","靠右":"靠右","两端":"两端"},list:{"无序列表":"无序列表","有序列表":"有序列表"}},panelMenus:{emoticon:{"默认":"默认","新浪":"新浪",emoji:"emoji","手势":"手势"},image:{"上传图片":"上传图片","网络图片":"网络图片","图片地址":"图片地址","图片文字说明":"图片文字说明","跳转链接":"跳转链接"},link:{"链接":"链接","链接文字":"链接文字","取消链接":"取消链接","查看链接":"查看链接"},video:{"插入视频":"插入视频","上传视频":"上传视频"},table:{"行":"行","列":"列","的":"的","表格":"表格","添加行":"添加行","删除行":"删除行","添加列":"添加列","删除列":"删除列","设置表头":"设置表头","取消表头":"取消表头","插入表格":"插入表格","删除表格":"删除表格"},code:{"删除代码":"删除代码","修改代码":"修改代码","插入代码":"插入代码"}}},validate:{"张图片":"张图片","大于":"大于","图片链接":"图片链接","不是图片":"不是图片","返回结果":"返回结果","上传图片超时":"上传图片超时","上传图片错误":"上传图片错误","上传图片失败":"上传图片失败","插入图片错误":"插入图片错误","一次最多上传":"一次最多上传","下载链接失败":"下载链接失败","图片验证未通过":"图片验证未通过","服务器返回状态":"服务器返回状态","上传图片返回结果错误":"上传图片返回结果错误","请替换为支持的图片类型":"请替换为支持的图片类型","您插入的网络图片无法识别":"您插入的网络图片无法识别","您刚才插入的图片链接未通过编辑器校验":"您刚才插入的图片链接未通过编辑器校验","插入视频错误":"插入视频错误","视频链接":"视频链接","不是视频":"不是视频","视频验证未通过":"视频验证未通过","个视频":"个视频","上传视频超时":"上传视频超时","上传视频错误":"上传视频错误","上传视频失败":"上传视频失败","上传视频返回结果错误":"上传视频返回结果错误"}}},en:{wangEditor:{"重置":"reset","插入":"insert","默认":"default","创建":"create","修改":"edit","如":"like","请输入正文":"please enter the text",menus:{title:{"标题":"head","加粗":"bold","字号":"font size","字体":"font family","斜体":"italic","下划线":"underline","删除线":"strikethrough","缩进":"indent","行高":"line heihgt","文字颜色":"font color","背景色":"background","链接":"link","序列":"numbered list","对齐":"align","引用":"quote","表情":"emoticons","图片":"image","视频":"media","表格":"table","代码":"code","分割线":"split line","恢复":"redo","撤销":"undo","全屏":"fullscreen","取消全屏":"cancel fullscreen","待办事项":"todo"},dropListMenu:{"设置标题":"title","背景颜色":"background","文字颜色":"font color","设置字号":"font size","设置字体":"font family","设置缩进":"indent","对齐方式":"align","设置行高":"line heihgt","序列":"list",head:{"正文":"text"},indent:{"增加缩进":"indent","减少缩进":"outdent"},justify:{"靠左":"left","居中":"center","靠右":"right","两端":"justify"},list:{"无序列表":"unordered","有序列表":"ordered"}},panelMenus:{emoticon:{"表情":"emoji","手势":"gesture"},image:{"上传图片":"upload image","网络图片":"network image","图片地址":"image link","图片文字说明":"image alt","跳转链接":"hyperlink"},link:{"链接":"link","链接文字":"link text","取消链接":"unlink","查看链接":"view links"},video:{"插入视频":"insert video","上传视频":"upload local video"},table:{"行":"rows","列":"columns","的":" ","表格":"table","添加行":"insert row","删除行":"delete row","添加列":"insert column","删除列":"delete column","设置表头":"set header","取消表头":"cancel header","插入表格":"insert table","删除表格":"delete table"},code:{"删除代码":"delete code","修改代码":"edit code","插入代码":"insert code"}}},validate:{"张图片":"images","大于":"greater than","图片链接":"image link","不是图片":"is not image","返回结果":"return results","上传图片超时":"upload image timeout","上传图片错误":"upload image error","上传图片失败":"upload image failed","插入图片错误":"insert image error","一次最多上传":"once most at upload","下载链接失败":"download link failed","图片验证未通过":"image validate failed","服务器返回状态":"server return status","上传图片返回结果错误":"upload image return results error","请替换为支持的图片类型":"please replace with a supported image type","您插入的网络图片无法识别":"the network picture you inserted is not recognized","您刚才插入的图片链接未通过编辑器校验":"the image link you just inserted did not pass the editor verification","插入视频错误":"insert video error","视频链接":"video link","不是视频":"is not video","视频验证未通过":"video validate failed","个视频":"videos","上传视频超时":"upload video timeout","上传视频错误":"upload video error","上传视频失败":"upload video failed","上传视频返回结果错误":"upload video return results error"}}}}}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(6);function s(){return!(!r.UA.isIE()&&!r.UA.isOldEdge)}t["default"]={compatibleMode:s,historyMaxSize:30}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(7);t["default"]={onlineVideoCheck:function(e){return!0},onlineVideoCallback:r.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1073741824,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:72e5,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(6),l=n(7),c=function(){function e(e){this._currentRange=null,this.editor=e}return e.prototype.getRange=function(){return this._currentRange},e.prototype.saveRange=function(e){if(e)this._currentRange=e;else{var t=window.getSelection();if(0!==t.rangeCount){var n=t.getRangeAt(0),i=this.getSelectionContainerElem(n);if((null===i||void 0===i?void 0:i.length)&&"false"!==i.attr("contenteditable")&&!i.parentUntil("[contenteditable=false]")){var o=this.editor,s=o.$textElem;if(s.isContain(i)){var a;if(s.elems[0]===i.elems[0])if((0,r["default"])(a=s.html()).call(a)===l.EMPTY_P){var u=s.children(),c=null===u||void 0===u?void 0:u.last();o.selection.createRangeByElem(c,!0,!0),o.selection.restoreSelection()}this._currentRange=n}}}}},e.prototype.collapseRange=function(e){void 0===e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},e.prototype.getSelectionText=function(){var e=this._currentRange;return e?e.toString():""},e.prototype.getSelectionContainerElem=function(e){var t,n;if(t=e||this._currentRange,t)return n=t.commonAncestorContainer,a["default"](1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionStartElem=function(e){var t,n;if(t=e||this._currentRange,t)return n=t.startContainer,a["default"](1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionEndElem=function(e){var t,n;if(t=e||this._currentRange,t)return n=t.endContainer,a["default"](1===n.nodeType?n:n.parentNode)},e.prototype.isSelectionEmpty=function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},e.prototype.restoreSelection=function(){var e=window.getSelection(),t=this._currentRange;e&&t&&(e.removeAllRanges(),e.addRange(t))},e.prototype.createEmptyRange=function(){var e,t=this.editor,n=this.getRange();if(n&&this.isSelectionEmpty())try{u.UA.isWebkit()?(t.cmd["do"]("insertHTML","&#8203;"),n.setEnd(n.endContainer,n.endOffset+1),this.saveRange(n)):(e=a["default"]("<strong>&#8203;</strong>"),t.cmd["do"]("insertElem",e),this.createRangeByElem(e,!0))}catch(i){}},e.prototype.createRangeByElems=function(e,t){var n=window.getSelection?window.getSelection():document.getSelection();null===n||void 0===n||n.removeAllRanges();var i=document.createRange();i.setStart(e,0),i.setEnd(t,t.childNodes.length||1),this.saveRange(i),this.restoreSelection()},e.prototype.createRangeByElem=function(e,t,n){if(e.length){var i=e.elems[0],o=document.createRange();n?o.selectNodeContents(i):o.selectNode(i),null!=t&&(o.collapse(t),t||(this.saveRange(o),this.editor.selection.moveCursor(i))),this.saveRange(o)}},e.prototype.getSelectionRangeTopNodes=function(){var e,t,n,i=null===(e=this.getSelectionStartElem())||void 0===e?void 0:e.getNodeTop(this.editor),o=null===(t=this.getSelectionEndElem())||void 0===t?void 0:t.getNodeTop(this.editor);return n=this.recordSelectionNodes(a["default"](i),a["default"](o)),n},e.prototype.moveCursor=function(e,t){var n,i=this.getRange(),o=3===e.nodeType?null===(n=e.nodeValue)||void 0===n?void 0:n.length:e.childNodes.length;(u.UA.isFirefox||u.UA.isIE())&&0!==o&&(3!==e.nodeType&&"BR"!==e.childNodes[o-1].nodeName||(o-=1));var r=null!==t&&void 0!==t?t:o;i&&e&&(i.setStart(e,r),i.setEnd(e,r),this.restoreSelection())},e.prototype.getCursorPos=function(){var e=window.getSelection();return null===e||void 0===e?void 0:e.anchorOffset},e.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},e.prototype.recordSelectionNodes=function(e,t){var n=[],i=!0;try{var o=e,r=this.editor.$textElem;while(i){var s=null===o||void 0===o?void 0:o.getNodeTop(this.editor);"BODY"===s.getNodeName()&&(i=!1),s.length>0&&(n.push(a["default"](o)),(null===t||void 0===t?void 0:t.equal(s))||r.equal(s)?i=!1:o=s.getNextSibling())}}catch(u){i=!1}return n},e.prototype.setRangeToElem=function(e){var t=this.getRange();null===t||void 0===t||t.setStart(e,0),null===t||void 0===t||t.setEnd(e,0)},e}();t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=function(){function e(e){this.editor=e}return e.prototype["do"]=function(e,t){var n=this.editor;n.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var i=n.selection;if(i.getRange()){switch(i.restoreSelection(),e){case"insertHTML":this.insertHTML(t);break;case"insertElem":this.insertElem(t);break;default:this.execCommand(e,t);break}n.menus.changeActive(),i.saveRange(),i.restoreSelection()}},e.prototype.insertHTML=function(e){var t=this.editor,n=t.selection.getRange();if(null!=n)if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",e);else if(n.insertNode){if(n.deleteContents(),s["default"](e).elems.length>0)n.insertNode(s["default"](e).elems[0]);else{var i=document.createElement("p");i.appendChild(document.createTextNode(e)),n.insertNode(i)}t.selection.collapseRange()}},e.prototype.insertElem=function(e){var t=this.editor,n=t.selection.getRange();null!=n&&n.insertNode&&(n.deleteContents(),n.insertNode(e.elems[0]))},e.prototype.execCommand=function(e,t){document.execCommand(e,!1,t)},e.prototype.queryCommandValue=function(e){return document.queryCommandValue(e)},e.prototype.queryCommandState=function(e){return document.queryCommandState(e)},e.prototype.queryCommandSupported=function(e){return document.queryCommandSupported(e)},e}();t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(29)),s=i(n(4)),a=i(n(17)),u=i(n(27)),l=i(n(46));(0,o["default"])(t,"__esModule",{value:!0});var c=n(2),d=c.__importDefault(n(3)),h=c.__importDefault(n(287)),A=n(6),p=c.__importDefault(n(299)),f=c.__importDefault(n(300)),g=n(7),m=function(){function e(e){this.editor=e,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return e.prototype.init=function(){this._saveRange(),this._bindEventHooks(),h["default"](this)},e.prototype.togglePlaceholder=function(){var e,t=this.html(),n=(0,r["default"])(e=this.editor.$textContainerElem).call(e,".placeholder");n.hide(),this.editor.isComposing||t&&" "!==t||n.show()},e.prototype.clear=function(){this.html(g.EMPTY_P)},e.prototype.html=function(e){var t=this.editor,n=t.$textElem;if(null==e){var i=n.html();i=i.replace(/\u200b/gm,""),i=i.replace(/<p><\/p>/gim,""),i=i.replace(g.EMPTY_P_LAST_REGEX,""),i=i.replace(g.EMPTY_P_REGEX,"<p>");var o=i.match(/<(img|br|hr|input)[^>]*>/gi);return null!==o&&(0,s["default"])(o).call(o,(function(e){e.match(/\/>/)||(i=i.replace(e,e.substring(0,e.length-1)+"/>"))})),i}e=(0,a["default"])(e).call(e),""===e&&(e=g.EMPTY_P),0!==(0,u["default"])(e).call(e,"<")&&(e="<p>"+e+"</p>"),n.html(e),t.initSelection()},e.prototype.setJSON=function(e){var t=f["default"](e).children(),n=this.editor,i=n.$textElem;t&&i.replaceChildAll(t)},e.prototype.getJSON=function(){var e=this.editor,t=e.$textElem;return p["default"](t)},e.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e){var i=n.text();return i=i.replace(/\u200b/gm,""),i}n.text("<p>"+e+"</p>"),t.initSelection()},e.prototype.append=function(e){var t=this.editor;0!==(0,u["default"])(e).call(e,"<")&&(e="<p>"+e+"</p>"),this.html(this.html()+e),t.initSelection()},e.prototype._saveRange=function(){var e=this.editor,t=e.$textElem,n=d["default"](document);function i(){e.selection.saveRange(),e.menus.changeActive()}function o(){i(),t.off("click",o)}function r(){i(),n.off("mouseup",r)}function s(){n.on("mouseup",r),t.off("mouseleave",s)}t.on("keyup",i),t.on("click",o),t.on("mousedown",(function(){t.on("mouseleave",s)})),t.on("mouseup",(function(n){t.off("mouseleave",s),(0,l["default"])((function(){var t=e.selection,n=t.getRange();null!==n&&i()}),0)}))},e.prototype._bindEventHooks=function(){var e=this.editor,t=e.$textElem,n=this.eventHooks;function i(e){e.preventDefault()}t.on("click",(function(e){var t=n.clickEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){if(13===e.keyCode){var t=n.enterUpEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("keyup",(function(e){var t=n.keyupEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))})),t.on("keydown",(function(e){var t=n.keydownEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){if(8===e.keyCode||46===e.keyCode){var t=n.deleteUpEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(e){if(8===e.keyCode||46===e.keyCode){var t=n.deleteDownEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("paste",(function(e){if(!A.UA.isIE()){e.preventDefault();var t=n.pasteEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(t){(e.isFocus||e.isCompatibleMode)&&(t.ctrlKey||t.metaKey)&&90===t.keyCode&&(t.preventDefault(),t.shiftKey?e.history.restore():e.history.revoke())})),t.on("keyup",(function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabUpEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabDownEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("scroll",A.throttle((function(e){var t=n.textScrollEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}),100)),d["default"](document).on("dragleave",i).on("drop",i).on("dragenter",i).on("dragover",i),e.beforeDestroy((function(){d["default"](document).off("dragleave",i).off("drop",i).off("dragenter",i).off("dragover",i)})),t.on("drop",(function(e){e.preventDefault();var t=n.dropEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))})),t.on("click",(function(e){var t=null,i=e.target,o=d["default"](i);if("A"===o.getNodeName())t=o;else{var r=o.parentUntil("a");null!=r&&(t=r)}if(t){var a=n.linkClickEvents;(0,s["default"])(a).call(a,(function(e){return e(t)}))}})),t.on("click",(function(e){var t=null,i=e.target,o=d["default"](i);if("IMG"!==o.getNodeName()||o.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),t=o),t){var r=n.imgClickEvents;(0,s["default"])(r).call(r,(function(e){return e(t)}))}})),t.on("click",(function(e){var t=null,i=e.target,o=d["default"](i);if("PRE"===o.getNodeName())t=o;else{var r=o.parentUntil("pre");null!==r&&(t=r)}if(t){var a=n.codeClickEvents;(0,s["default"])(a).call(a,(function(e){return e(t)}))}})),t.on("click",(function(t){var i=null,o=t.target,r=d["default"](o);if("HR"===r.getNodeName()&&(i=r),i){e.selection.createRangeByElem(i),e.selection.restoreSelection();var a=n.splitLineEvents;(0,s["default"])(a).call(a,(function(e){return e(i)}))}})),e.$toolbarElem.on("click",(function(e){var t=n.toolbarClickEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))})),e.$textContainerElem.on("mousedown",(function(e){var t=e.target,i=d["default"](t);if(i.hasClass("w-e-img-drag-rb")){var o=n.imgDragBarMouseDownEvents;(0,s["default"])(o).call(o,(function(e){return e()}))}})),t.on("click",(function(t){var i=null,o=t.target;if(i=d["default"](o).parentUntilEditor("TABLE",e,o),i){var r=n.tableClickEvents;(0,s["default"])(r).call(r,(function(e){return e(i,t)}))}})),t.on("keydown",(function(e){if(13===e.keyCode){var t=n.enterDownEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("click",(function(e){var t=null,i=e.target,o=d["default"](i);if("VIDEO"===o.getNodeName()&&(e.stopPropagation(),t=o),t){var r=n.videoClickEvents;(0,s["default"])(r).call(r,(function(e){return e(t)}))}}))},e}();t["default"]=m},function(e,t,n){var i=n(284);e.exports=i},function(e,t,n){var i=n(285),o=Array.prototype;e.exports=function(e){var t=e.find;return e===o||e instanceof Array&&t===o.find?i:t}},function(e,t,n){n(286);var i=n(15);e.exports=i("Array").find},function(e,t,n){"use strict";var i=n(5),o=n(32).find,r=n(82),s=n(22),a="find",u=!0,l=s(a);a in[]&&Array(1)[a]((function(){u=!1})),i({target:"Array",proto:!0,forced:u||!l},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r(a)},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(288)),a=r.__importStar(n(289)),u=r.__importDefault(n(290)),l=r.__importDefault(n(291)),c=r.__importDefault(n(298));function d(e){var t=e.editor,n=e.eventHooks;s["default"](t,n.enterUpEvents,n.enterDownEvents),a["default"](t,n.deleteUpEvents,n.deleteDownEvents),a.cutToKeepP(t,n.keyupEvents),u["default"](t,n.tabDownEvents),l["default"](t,n.pasteEvents),c["default"](t,n.imgClickEvents)}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(27));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=n(7),u=s.__importDefault(n(3));function l(e,t,n){function i(t){var n,i=u["default"](a.EMPTY_P);i.insertBefore(t),(0,r["default"])(n=t.html()).call(n,"<img")>=0?i.remove():(e.selection.createRangeByElem(i,!0,!0),e.selection.restoreSelection(),t.remove())}function o(){var t=e.$textElem,n=e.selection.getSelectionContainerElem(),o=n.parent();if("<code><br></code>"!==o.html())if("FONT"!==n.getNodeName()||""!==n.text()||"monospace"!==n.attr("face")){if(o.equal(t)){var r=n.getNodeName();"P"===r&&null===n.attr("data-we-empty-p")||n.text()||i(n)}}else i(o);else i(o)}function s(t){var n;e.selection.saveRange(null===(n=getSelection())||void 0===n?void 0:n.getRangeAt(0));var i=e.selection.getSelectionContainerElem();i.id===e.textElemId&&(t.preventDefault(),e.cmd["do"]("insertHTML","<p><br></p>"))}t.push(o),n.push(s)}t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17)),s=i(n(28));(0,o["default"])(t,"__esModule",{value:!0}),t.cutToKeepP=void 0;var a=n(2),u=n(7),l=a.__importDefault(n(3));function c(e,t,n){function i(){var t=e.$textElem,n=e.$textElem.html(),i=e.$textElem.text(),o=(0,r["default"])(n).call(n),a=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',u.EMPTY_P];if(/^\s*$/.test(i)&&(!o||(0,s["default"])(a).call(a,o))){t.html(u.EMPTY_P);var l=t.getNode();e.selection.createRangeByElems(l.childNodes[0],l.childNodes[0]);var c=e.selection.getSelectionContainerElem();e.selection.restoreSelection(),e.selection.moveCursor(c.getNode(),0)}}function o(t){var n,i=e.$textElem,o=(0,r["default"])(n=i.html().toLowerCase()).call(n);o!==u.EMPTY_P||t.preventDefault()}t.push(i),n.push(o)}function d(e,t){function n(t){var n;if(88===t.keyCode){var i=e.$textElem,o=(0,r["default"])(n=i.html().toLowerCase()).call(n);if(!o||"<br>"===o){var s=l["default"](u.EMPTY_P);i.html(" "),i.append(s),e.selection.createRangeByElem(s,!1,!0),e.selection.restoreSelection(),e.selection.moveCursor(s.getNode(),0)}}}t.push(n)}t.cutToKeepP=d,t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1));function r(e,t){function n(){if(e.cmd.queryCommandSupported("insertHTML")){var t=e.selection.getSelectionContainerElem();if(t){var n=t.parent(),i=t.getNodeName(),o=n.getNodeName();"CODE"==i||"CODE"===o||"PRE"===o||/hljs/.test(o)?e.cmd["do"]("insertHTML",e.config.languageTab):e.cmd["do"]("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;")}}}t.push(n)}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17)),s=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var a=n(131),u=n(6),l=n(7);function c(e){var t,n=(0,r["default"])(t=e.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(t),i=document.createElement("div");return i.innerHTML=n,i.innerHTML.replace(/<p><\/p>/gim,"")}function d(e){var t=e.replace(/<br>|<br\/>/gm,"\n").replace(/<[^>]+>/gm,"");return t}function h(e){var t;if(""===e)return!1;var n=document.createElement("div");return n.innerHTML=e,"P"===(null===(t=n.firstChild)||void 0===t?void 0:t.nodeName)}function A(e){if(!(null===e||void 0===e?void 0:e.length))return!1;var t=e.elems[0];return"P"===t.nodeName&&"<br>"===t.innerHTML}function p(e,t){function n(t){var n=e.config,i=n.pasteFilterStyle,o=n.pasteIgnoreImg,r=n.pasteTextHandle,p=a.getPasteHtml(t,i,o),f=a.getPasteText(t);f=f.replace(/\n/gm,"<br>");var g=e.selection.getSelectionContainerElem();if(g){var m=null===g||void 0===g?void 0:g.getNodeName(),v=null===g||void 0===g?void 0:g.getNodeTop(e),_="";if(v.elems[0]&&(_=null===v||void 0===v?void 0:v.getNodeName()),"CODE"===m||"PRE"===_)return r&&u.isFunction(r)&&(f=""+(r(f)||"")),void e.cmd["do"]("insertHTML",d(f));if(l.urlRegex.test(f)&&i){r&&u.isFunction(r)&&(f=""+(r(f)||""));var y=f.replace(l.urlRegex,(function(e){return'<a href="'+e+'" target="_blank">'+e+"</a>"})),w=e.selection.getRange(),b=document.createElement("div"),C=document.createDocumentFragment();if(b.innerHTML=y,null==w)return;while(b.childNodes.length)C.append(b.childNodes[0]);var S=C.querySelectorAll("a");return(0,s["default"])(S).call(S,(function(e){e.innerText=e.href})),w.insertNode&&(w.deleteContents(),w.insertNode(C)),void e.selection.clearWindowSelectionRange()}if(p)try{r&&u.isFunction(r)&&(p=""+(r(p)||""));var B=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(p);if(B&&i)e.cmd["do"]("insertHTML",""+c(f));else{var E=c(p);if(h(E)){var x=e.$textElem;if(e.cmd["do"]("insertHTML",E),x.equal(g))return void e.selection.createEmptyRange();A(v)&&v.remove()}else e.cmd["do"]("insertHTML",E)}}catch(L){r&&u.isFunction(r)&&(f=""+(r(f)||"")),e.cmd["do"]("insertHTML",""+c(f))}}}t.push(n)}t["default"]=p},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17)),s=i(n(4)),a=i(n(28));(0,o["default"])(t,"__esModule",{value:!0});var u=n(2),l=n(293),c=u.__importDefault(n(297));function d(e){var t=/<span>.*?<\/span>/gi,n=/<span>(.*?)<\/span>/;return e.replace(t,(function(e){var t=e.match(n);return null==t?"":t[1]}))}function h(e,t){var n;return e=(0,r["default"])(n=e.toLowerCase()).call(n),!!l.IGNORE_TAGS.has(e)||!(!t||"img"!==e)}function A(e,t){var n="";n="<"+e;var i=[];(0,s["default"])(t).call(t,(function(e){i.push(e.name+'="'+e.value+'"')})),i.length>0&&(n=n+" "+i.join(" "));var o=l.EMPTY_TAGS.has(e);return n=n+(o?"/":"")+">",n}function p(e){return"</"+e+">"}function f(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=[],o="";function u(e){e=(0,r["default"])(e).call(e),e&&(l.EMPTY_TAGS.has(e)||(o=e))}function f(){o=""}var g=new c["default"];g.parse(e,{startElement:function(e,o){if(u(e),!h(e,n)){var r=l.NECESSARY_ATTRS.get(e)||[],c=[];(0,s["default"])(o).call(o,(function(e){var n=e.name;"style"!==n?!1!==(0,a["default"])(r).call(r,n)&&c.push(e):t||c.push(e)}));var d=A(e,c);i.push(d)}},characters:function(e){e&&(h(o,n)||i.push(e))},endElement:function(e){if(!h(e,n)){var t=p(e);i.push(t),f()}},comment:function(e){u(e)}});var m=i.join("");return m=d(m),m}t["default"]=f},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(132)),s=i(n(121));(0,o["default"])(t,"__esModule",{value:!0}),t.TOP_LEVEL_TAGS=t.EMPTY_TAGS=t.NECESSARY_ATTRS=t.IGNORE_TAGS=void 0,t.IGNORE_TAGS=new r["default"](["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),t.NECESSARY_ATTRS=new s["default"]([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),t.EMPTY_TAGS=new r["default"](["area","base","basefont","br","col","hr","img","input","isindex","embed"]),t.TOP_LEVEL_TAGS=new r["default"](["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(e,t,n){var i=n(295);e.exports=i},function(e,t,n){n(296),n(61),n(50),n(54);var i=n(9);e.exports=i.Set},function(e,t,n){"use strict";var i=n(122),o=n(124);e.exports=i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,t){t&&(this.contentHandler=t);var n,i,o,r=!1,s=this;while(e.length>0)"\x3c!--"==e.substring(0,4)?(o=e.indexOf("--\x3e"),-1!=o?(this.contentHandler.comment(e.substring(4,o)),e=e.substring(o+3),r=!1):r=!0):"</"==e.substring(0,2)?this.endTagRe.test(e)?(RegExp.leftContext,n=RegExp.lastMatch,i=RegExp.rightContext,n.replace(this.endTagRe,(function(){return s.parseEndTag.apply(s,arguments)})),e=i,r=!1):r=!0:"<"==e.charAt(0)&&(this.startTagRe.test(e)?(RegExp.leftContext,n=RegExp.lastMatch,i=RegExp.rightContext,n.replace(this.startTagRe,(function(){return s.parseStartTag.apply(s,arguments)})),e=i,r=!1):r=!0),r&&(o=e.indexOf("<"),-1==o?(this.contentHandler.characters(e),e=""):(this.contentHandler.characters(e.substring(0,o)),e=e.substring(o))),r=!0},parseStartTag:function(e,t,n){var i=this.parseAttributes(t,n);this.contentHandler.startElement(t,i)},parseEndTag:function(e,t){this.contentHandler.endElement(t)},parseAttributes:function(e,t){var n=this,i=[];return t.replace(this.attrRe,(function(t,o,r,s,a,u,l,c){i.push(n.parseAttribute(e,t,o,r,s,a,u,l,c))})),i},parseAttribute:function(e,t,n){var i="";arguments[7]?i=arguments[8]:arguments[5]?i=arguments[6]:arguments[3]&&(i=arguments[4]);var o=!i&&!arguments[3];return{name:n,value:o?null:i}}},e.exports=n},function(e,t,n){"use strict";var i=n(0),o=i(n(1));function r(e,t){function n(t){e.selection.createRangeByElem(t),e.selection.restoreSelection()}t.push(n)}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=n(6),u=s.__importDefault(n(3));function l(e){var t=[],n=e.childNodes()||[];return(0,r["default"])(n).call(n,(function(e){var n,i=e.nodeType;if(3===i&&(n=e.textContent||"",n=a.replaceHtmlSymbol(n)),1===i){n={},n=n,n.tag=e.nodeName.toLowerCase();for(var o=[],r=e.attributes,s=r.length||0,c=0;c<s;c++){var d=r[c];o.push({name:d.name,value:d.value})}n.attrs=o,n.children=l(u["default"](e))}n&&t.push(n)})),t}t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(92)),r=i(n(1)),s=i(n(4));(0,r["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3));function l(e,t){void 0===t&&(t=document.createElement("div"));var n=t;return(0,s["default"])(e).call(e,(function(e){var t,i;("string"===typeof e&&(t=document.createTextNode(e)),"object"===(0,o["default"])(e))&&(t=document.createElement(e.tag),(0,s["default"])(i=e.attrs).call(i,(function(e){u["default"](t).attr(e.name,e.value)})),e.children&&e.children.length>0&&l(e.children,t.getRootNode()));t&&n.appendChild(t)})),u["default"](n)}t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(89)),s=i(n(70)),a=i(n(28)),u=i(n(302)),l=i(n(4)),c=i(n(94)),d=i(n(133)),h=i(n(46)),A=i(n(57));(0,o["default"])(t,"__esModule",{value:!0});var p=n(2),f=p.__importDefault(n(87)),g=p.__importDefault(n(314)),m=p.__importDefault(n(3)),v=function(){function e(e){this.editor=e,this.menuList=[],this.constructorList=g["default"]}return e.prototype.extend=function(e,t){t&&"function"===typeof t&&(this.constructorList[e]=t)},e.prototype.init=function(){var e,t,n=this,i=this.editor.config,o=i.excludeMenus;!1===(0,r["default"])(o)&&(o=[]),i.menus=(0,s["default"])(e=i.menus).call(e,(function(e){return!1===(0,a["default"])(o).call(o,e)}));var d=(0,u["default"])(f["default"].globalCustomMenuConstructorList);d=(0,s["default"])(d).call(d,(function(e){return(0,a["default"])(o).call(o,e)})),(0,l["default"])(d).call(d,(function(e){delete f["default"].globalCustomMenuConstructorList[e]})),(0,l["default"])(t=i.menus).call(t,(function(e){var t=n.constructorList[e];n._initMenuList(e,t)}));for(var h=0,A=(0,c["default"])(f["default"].globalCustomMenuConstructorList);h<A.length;h++){var p=A[h],g=p[0],m=p[1],v=m;this._initMenuList(g,v)}this._addToToolbar(),i.showMenuTooltips&&this._bindMenuTooltips()},e.prototype._initMenuList=function(e,t){var n;if(null!=t&&"function"===typeof t)if((0,d["default"])(n=this.menuList).call(n,(function(t){return t.key===e})))console.warn("菜单名称重复:"+e);else{var i=new t(this.editor);i.key=e,this.menuList.push(i)}},e.prototype._bindMenuTooltips=function(){var e=this.editor,t=e.$toolbarElem,n=e.config,i=n.menuTooltipPosition,o=m["default"]('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+i+'">\n <div class="w-e-menu-tooltip-item-wrapper">\n <div></div>\n </div>\n </div>');o.css("visibility","hidden"),t.append(o),o.css("z-index",e.zIndex.get("tooltip"));var r=0;function s(){r&&clearTimeout(r)}function a(){s(),o.css("visibility","hidden")}t.on("mouseover",(function(n){var u,l,c=n.target,d=m["default"](c);if(d.isContain(t))a();else{if(null!=d.parentUntil(".w-e-droplist"))a();else if(d.attr("data-title"))u=d.attr("data-title"),l=d;else{var A=d.parentUntil(".w-e-menu");null!=A&&(u=A.attr("data-title"),l=A)}if(u&&l){s();var p=l.getOffsetData();o.text(e.i18next.t("menus.title."+u));var f=o.getOffsetData(),g=p.left+p.width/2-f.width/2;o.css("left",g+"px"),"up"===i?o.css("top",p.top-f.height-8+"px"):"down"===i&&o.css("top",p.top+p.height+8+"px"),r=(0,h["default"])((function(){o.css("visibility","visible")}),200)}else a()}})).on("mouseleave",(function(){a()}))},e.prototype._addToToolbar=function(){var e,t=this.editor,n=t.$toolbarElem;(0,l["default"])(e=this.menuList).call(e,(function(e){var t=e.$elem;t&&n.append(t)}))},e.prototype.menuFind=function(e){for(var t=this.menuList,n=0,i=t.length;n<i;n++)if(t[n].key===e)return t[n];return t[0]},e.prototype.changeActive=function(){var e;(0,l["default"])(e=this.menuList).call(e,(function(e){var t;(0,h["default"])((0,A["default"])(t=e.tryChangeActive).call(t,e),100)}))},e}();t["default"]=v},function(e,t,n){e.exports=n(303)},function(e,t,n){var i=n(304);e.exports=i},function(e,t,n){n(305);var i=n(9);e.exports=i.Object.keys},function(e,t,n){var i=n(5),o=n(31),r=n(52),s=n(11),a=s((function(){r(1)}));i({target:"Object",stat:!0,forced:a},{keys:function(e){return r(o(e))}})},function(e,t,n){var i=n(307);e.exports=i},function(e,t,n){n(308);var i=n(9);e.exports=i.Object.entries},function(e,t,n){var i=n(5),o=n(309).entries;i({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,t,n){var i=n(14),o=n(52),r=n(30),s=n(59).f,a=function(e){return function(t){var n,a=r(t),u=o(a),l=u.length,c=0,d=[];while(l>c)n=u[c++],i&&!s.call(a,n)||d.push(e?[n,a[n]]:a[n]);return d}};e.exports={entries:a(!0),values:a(!1)}},function(e,t,n){var i=n(311);e.exports=i},function(e,t,n){var i=n(312),o=Array.prototype;e.exports=function(e){var t=e.some;return e===o||e instanceof Array&&t===o.some?i:t}},function(e,t,n){n(313);var i=n(15);e.exports=i("Array").some},function(e,t,n){"use strict";var i=n(5),o=n(32).some,r=n(67),s=n(22),a=r("some"),u=s("some");i({target:"Array",proto:!0,forced:!a||!u},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(315)),a=r.__importDefault(n(316)),u=r.__importDefault(n(321)),l=r.__importDefault(n(326)),c=r.__importDefault(n(327)),d=r.__importDefault(n(328)),h=r.__importDefault(n(329)),A=r.__importDefault(n(331)),p=r.__importDefault(n(333)),f=r.__importDefault(n(334)),g=r.__importDefault(n(337)),m=r.__importDefault(n(338)),v=r.__importDefault(n(339)),_=r.__importDefault(n(350)),y=r.__importDefault(n(365)),w=r.__importDefault(n(369)),b=r.__importDefault(n(137)),C=r.__importDefault(n(378)),S=r.__importDefault(n(380)),B=r.__importDefault(n(381)),E=r.__importDefault(n(382)),x=r.__importDefault(n(401)),L=r.__importDefault(n(406)),D=r.__importDefault(n(409));t["default"]={bold:s["default"],head:a["default"],italic:l["default"],link:u["default"],underline:c["default"],strikeThrough:d["default"],fontName:h["default"],fontSize:A["default"],justify:p["default"],quote:f["default"],backColor:g["default"],foreColor:m["default"],video:v["default"],image:_["default"],indent:y["default"],emoticon:w["default"],list:b["default"],lineHeight:C["default"],undo:S["default"],redo:B["default"],table:E["default"],code:x["default"],splitLine:L["default"],todo:D["default"]}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(23)),a=r.__importDefault(n(3)),u=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="加粗">\n <i class="w-e-icon-bold"></i>\n </div>');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd["do"]("bold"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e=this.editor;e.cmd.queryCommandState("bold")?this.active():this.unActive()},t}(s["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(27)),s=i(n(29)),a=i(n(4)),u=i(n(317)),l=i(n(28));(0,o["default"])(t,"__esModule",{value:!0});var c=n(2),d=c.__importDefault(n(24)),h=c.__importDefault(n(3)),A=n(6),p=n(7),f=function(e){function t(t){var n=this,i=h["default"]('<div class="w-e-menu" data-title="标题"><i class="w-e-icon-header"></i></div>'),o={width:100,title:"设置标题",type:"list",list:[{$elem:h["default"]("<h1>H1</h1>"),value:"<h1>"},{$elem:h["default"]("<h2>H2</h2>"),value:"<h2>"},{$elem:h["default"]("<h3>H3</h3>"),value:"<h3>"},{$elem:h["default"]("<h4>H4</h4>"),value:"<h4>"},{$elem:h["default"]("<h5>H5</h5>"),value:"<h5>"},{$elem:h["default"]("<p>"+t.i18next.t("menus.dropListMenu.head.正文")+"</p>"),value:"<p>"}],clickHandler:function(e){n.command(e)}};n=e.call(this,i,t,o)||this;var r=t.config.onCatalogChange;return r&&(n.oldCatalogs=[],n.addListenerCatalog(),n.getCatalogs()),n}return c.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n))this.setMultilineHead(e);else{var i;if((0,r["default"])(i=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(i,h["default"](n).getNodeName())>-1)return;t.cmd["do"]("formatBlock",e)}"<p>"!==e&&this.addUidForSelectionElem()},t.prototype.addUidForSelectionElem=function(){var e=this.editor,t=e.selection.getSelectionContainerElem(),n=A.getRandomCode();h["default"](t).attr("id",n)},t.prototype.addListenerCatalog=function(){var e=this,t=this.editor;t.txt.eventHooks.changeEvents.push((function(){e.getCatalogs()}))},t.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,n=e.config.onCatalogChange,i=(0,s["default"])(t).call(t,"h1,h2,h3,h4,h5"),o=[];(0,a["default"])(i).call(i,(function(e,t){var n=h["default"](e),i=n.attr("id"),r=n.getNodeName(),s=n.text();i||(i=A.getRandomCode(),n.attr("id",i)),s&&o.push({tag:r,id:i,text:s})})),(0,u["default"])(this.oldCatalogs)!==(0,u["default"])(o)&&(this.oldCatalogs=o,n&&n(o))},t.prototype.setMultilineHead=function(e){var t,n,i=this,o=this.editor,r=o.selection,s=null===(t=r.getSelectionContainerElem())||void 0===t?void 0:t.elems[0],u=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],l=h["default"](r.getSelectionStartElem()),c=h["default"](r.getSelectionEndElem());c.elems[0].outerHTML!==h["default"](p.EMPTY_P).elems[0].outerHTML||c.elems[0].nextSibling||(c=c.prev());var d=[];d.push(l.getNodeTop(o));var A=[],f=null===(n=r.getRange())||void 0===n?void 0:n.commonAncestorContainer.childNodes;null===f||void 0===f||(0,a["default"])(f).call(f,(function(e,t){e===d[0].getNode()&&A.push(t),e===c.getNodeTop(o).getNode()&&A.push(t)}));var g=0;while(d[g].getNode()!==c.getNodeTop(o).getNode()){if(!d[g].elems[0])return;var m=h["default"](d[g].next().getNode());d.push(m),g++}null===d||void 0===d||(0,a["default"])(d).call(d,(function(t,n){if(!i.hasTag(t,u)){var o=h["default"](e),r=t.parent().getNode();o.html(""+t.html()),r.insertBefore(o.getNode(),t.getNode()),t.remove()}})),r.createRangeByElems(s.children[A[0]],s.children[A[1]])},t.prototype.hasTag=function(e,t){var n,i=this;if(!e)return!1;if((0,l["default"])(t).call(t,null===e||void 0===e?void 0:e.getNodeName()))return!0;var o=!1;return null===(n=e.children())||void 0===n||(0,a["default"])(n).call(n,(function(e){o=i.hasTag(h["default"](e),t)})),o},t.prototype.tryChangeActive=function(){var e=this.editor,t=/^h/i,n=e.cmd.queryCommandValue("formatBlock");t.test(n)?this.active():this.unActive()},t}(d["default"]);t["default"]=f},function(e,t,n){e.exports=n(318)},function(e,t,n){var i=n(319);e.exports=i},function(e,t,n){n(320);var i=n(9);i.JSON||(i.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return i.JSON.stringify.apply(null,arguments)}},function(e,t,n){var i=n(5),o=n(36),r=n(11),s=o("JSON","stringify"),a=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,l=/^[\uDC00-\uDFFF]$/,c=function(e,t,n){var i=n.charAt(t-1),o=n.charAt(t+1);return u.test(e)&&!l.test(o)||l.test(e)&&!u.test(i)?"\\u"+e.charCodeAt(0).toString(16):e},d=r((function(){return'"\\udf06\\ud834"'!==s("\udf06\ud834")||'"\\udead"'!==s("\udead")}));s&&i({target:"JSON",stat:!0,forced:d},{stringify:function(e,t,n){var i=s.apply(null,arguments);return"string"==typeof i?i.replace(a,c):i}})},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(38)),u=s.__importDefault(n(3)),l=s.__importDefault(n(322)),c=s.__importStar(n(96)),d=s.__importDefault(n(33)),h=s.__importDefault(n(324)),A=n(7),p=function(e){function t(t){var n=this,i=u["default"]('<div class="w-e-menu" data-title="链接"><i class="w-e-icon-link"></i></div>');return n=e.call(this,i,t)||this,h["default"](t),n}return s.__extends(t,e),t.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getSelectionContainerElem(),i=t.$textElem,o=i.html(),s=(0,r["default"])(o).call(o);if(s===A.EMPTY_P){var a=i.children();t.selection.createRangeByElem(a,!0,!0),n=t.selection.getSelectionContainerElem()}if(!n||!t.$textElem.equal(n))if(this.isActive){var l="",d="";if(e=t.selection.getSelectionContainerElem(),!e)return;if("A"!==e.getNodeName()){var h=c.getParentNodeA(e);e=u["default"](h)}l=e.elems[0].innerText,d=e.attr("href"),this.createPanel(l,d)}else t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),"")},t.prototype.createPanel=function(e,t){var n=l["default"](this.editor,e,t),i=new d["default"](this,n);i.create()},t.prototype.tryChangeActive=function(){var e=this.editor;c["default"](e)?this.active():this.unActive()},t}(a["default"]);t["default"]=p},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(28)),s=i(n(17)),a=i(n(29));(0,o["default"])(t,"__esModule",{value:!0});var u=n(2),l=n(6),c=u.__importDefault(n(3)),d=u.__importStar(n(96)),h=n(323);function A(e,t,n){var i,o=l.getRandom("input-link"),u=l.getRandom("input-text"),A=l.getRandom("btn-ok"),p=l.getRandom("btn-del"),f=d["default"](e)?"inline-block":"none";function g(){if(d["default"](e)){var t=e.selection.getSelectionContainerElem();t&&(e.selection.createRangeByElem(t),e.selection.restoreSelection(),i=t)}}function m(t,n){var i=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),o=c["default"]('<a target="_blank">'+i+"</a>"),r=o.elems[0];r.innerText=t,r.href=n,d["default"](e)?(g(),e.cmd["do"]("insertElem",o)):e.cmd["do"]("insertElem",o)}function v(){if(d["default"](e))if(g(),"A"===i.getNodeName()){var t,n=i.elems[0],o=n.parentElement;o&&(0,r["default"])(t=d.EXTRA_TAG).call(t,o.nodeName)?o.innerHTML=n.innerHTML:e.cmd["do"]("insertHTML","<span>"+n.innerHTML+"</span>")}else{var s=d.getParentNodeA(i),a=s.innerHTML;e.cmd["do"]("insertHTML","<span>"+a+"</span>")}}function _(t,n){var i=e.config.linkCheck(t,n);if(void 0===i);else{if(!0===i)return!0;e.config.customAlert(i,"warning")}return!1}var y={width:300,height:0,tabs:[{title:e.i18next.t("menus.panelMenus.link.链接"),tpl:'<div>\n <input\n id="'+u+'"\n type="text"\n class="block"\n placeholder="'+e.i18next.t("menus.panelMenus.link.链接文字")+'"/>\n </td>\n <input\n id="'+o+'"\n type="text"\n class="block"\n placeholder="'+e.i18next.t("如")+' https://..."/>\n </td>\n <div class="w-e-button-container">\n <button type="button" id="'+A+'" class="right">\n '+e.i18next.t("插入")+'\n </button>\n <button type="button" id="'+p+'" class="gray right" style="display:'+f+'">\n '+e.i18next.t("menus.panelMenus.link.取消链接")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+A,type:"click",fn:function(){var t,n,i,a,l,A=e.selection.getSelectionContainerElem(),p=null===A||void 0===A?void 0:A.elems[0];e.selection.restoreSelection();var f=e.selection.getSelectionRangeTopNodes()[0].getNode(),g=window.getSelection(),v=c["default"]("#"+o),y=c["default"]("#"+u),w=(0,s["default"])(t=v.val()).call(t),b=(0,s["default"])(n=y.val()).call(n),C="";g&&!(null===g||void 0===g?void 0:g.isCollapsed)&&(C=null===(a=h.insertHtml(g,f))||void 0===a?void 0:(0,s["default"])(a).call(a));var S=null===C||void 0===C?void 0:C.replace(/<.*?>/g,""),B=null!==(l=null===S||void 0===S?void 0:S.length)&&void 0!==l?l:0;if(B<=b.length){var E=b.substring(0,B),x=b.substring(B);S===E&&(b=S+x)}if(w&&(b||(b=w),_(b,w))){if("A"===(null===p||void 0===p?void 0:p.nodeName))return p.setAttribute("href",w),p.innerText=b,!0;if("A"!==(null===p||void 0===p?void 0:p.nodeName)&&(0,r["default"])(i=d.EXTRA_TAG).call(i,p.nodeName)){var L=d.getParentNodeA(A);if(L)return L.setAttribute("href",w),p.innerText=b,!0}return m(b,w),!0}},bindEnter:!0},{selector:"#"+p,type:"click",fn:function(){return v(),!0}}]}],setLinkValue:function(e,i){var r,s="",l="";"text"===i&&(s="#"+u,l=t),"link"===i&&(s="#"+o,l=n),r=(0,a["default"])(e).call(e,s).elems[0],r.value=l}};return y}t["default"]=A},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));function s(e,t){var n=e,i=e;do{if(n.textContent===t)break;i=n,n.parentNode&&(n=null===n||void 0===n?void 0:n.parentNode)}while("P"!==(null===n||void 0===n?void 0:n.nodeName));return i}function a(e,t){var n=e.nodeName,i="";if(3===e.nodeType||/^(h|H)[1-6]$/.test(n))return t;if(1===e.nodeType){var o=e.getAttribute("style"),r=e.getAttribute("face"),s=e.getAttribute("color");o&&(i=i+' style="'+o+'"'),r&&(i=i+' face="'+r+'"'),s&&(i=i+' color="'+s+'"')}return n=n.toLowerCase(),"<"+n+i+">"+t+"</"+n+">"}function u(e,t,n,i){var o,r=null===(o=t.textContent)||void 0===o?void 0:o.substring(n,i),s=t,u="";do{u=a(s,null!==r&&void 0!==r?r:""),r=u,s=null===s||void 0===s?void 0:s.parentElement}while(s&&s.textContent!==e);return u}function l(e,t){var n,i,o,r,l,h=e.anchorNode,A=e.focusNode,p=e.anchorOffset,f=e.focusOffset,g=null!==(n=t.textContent)&&void 0!==n?n:"",m=c(t),v="",_="",y="",w="",b=h,C=A,S=h;if(null===h||void 0===h?void 0:h.isEqualNode(null!==A&&void 0!==A?A:null)){var B=u(g,h,p,f);return B=d(m,B),B}h&&(_=u(g,h,null!==p&&void 0!==p?p:0)),A&&(w=u(g,A,0,f)),h&&(b=s(h,g)),A&&(C=s(A,g)),S=null!==(i=null===b||void 0===b?void 0:b.nextSibling)&&void 0!==i?i:h;while(!(null===S||void 0===S?void 0:S.isEqualNode(null!==C&&void 0!==C?C:null))){var E=null===S||void 0===S?void 0:S.nodeName;if("#text"===E)y+=null===S||void 0===S?void 0:S.textContent;else{var x=null===(r=null===(o=null===S||void 0===S?void 0:S.firstChild)||void 0===o?void 0:o.parentElement)||void 0===r?void 0:r.innerHTML;S&&(y+=a(S,null!==x&&void 0!==x?x:""))}var L=null!==(l=null===S||void 0===S?void 0:S.nextSibling)&&void 0!==l?l:S;if(L===S)break;S=L}return v=""+_+y+w,v=d(m,v),v}function c(e){var t,n=null!==(t=e.textContent)&&void 0!==t?t:"",i=[];while((null===e||void 0===e?void 0:e.textContent)===n)"P"!==e.nodeName&&"TABLE"!==e.nodeName&&i.push(e),e=e.childNodes[0];return i}function d(e,t){return(0,r["default"])(e).call(e,(function(e){t=a(e,t)})),t}(0,o["default"])(t,"__esModule",{value:!0}),t.insertHtml=t.createPartHtml=t.makeHtmlString=t.getTopNode=void 0,t.getTopNode=s,t.makeHtmlString=a,t.createPartHtml=u,t.insertHtml=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(325));function a(e){s["default"](e)}t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(28));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(39)),l=n(96);function c(e){var t;function n(n){var i=[{$elem:a["default"]("<span>"+e.i18next.t("menus.panelMenus.link.查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("href");return window.open(n,"_target"),!0}},{$elem:a["default"]("<span>"+e.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(e,t){var n,i;e.selection.createRangeByElem(t),e.selection.restoreSelection();var o=t.childNodes();if("IMG"===(null===o||void 0===o?void 0:o.getNodeName())){var s=null===(i=null===(n=e.selection.getSelectionContainerElem())||void 0===n?void 0:n.children())||void 0===i?void 0:i.elems[0].children[0];e.cmd["do"]("insertHTML","<img \n src="+(null===s||void 0===s?void 0:s.getAttribute("src"))+" \n style="+(null===s||void 0===s?void 0:s.getAttribute("style"))+">")}else{var a,u=t.elems[0],c=u.innerHTML,d=u.parentElement;d&&(0,r["default"])(a=l.EXTRA_TAG).call(a,d.nodeName)?d.innerHTML=c:e.cmd["do"]("insertHTML","<span>"+c+"</span>")}return!0}}];t=new u["default"](e,n,i),t.create()}function i(){t&&(t.remove(),t=null)}return{showLinkTooltip:n,hideLinkTooltip:i}}function d(e){var t=c(e),n=t.showLinkTooltip,i=t.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(23)),a=r.__importDefault(n(3)),u=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="斜体">\n <i class="w-e-icon-italic"></i>\n </div>');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd["do"]("italic"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e=this.editor;e.cmd.queryCommandState("italic")?this.active():this.unActive()},t}(s["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(23)),a=r.__importDefault(n(3)),u=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="下划线">\n <i class="w-e-icon-underline"></i>\n </div>');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd["do"]("underline"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e=this.editor;e.cmd.queryCommandState("underline")?this.active():this.unActive()},t}(s["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(23)),a=r.__importDefault(n(3)),u=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="删除线">\n <i class="w-e-icon-strikethrough"></i>\n </div>');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd["do"]("strikeThrough"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e=this.editor;e.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},t}(s["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(24)),a=r.__importDefault(n(3)),u=r.__importDefault(n(330)),l=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="字体">\n <i class="w-e-icon-font"></i>\n </div>'),o=new u["default"](t.config.fontNames),r={width:100,title:"设置字体",type:"list",list:o.getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this,n}return r.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),o=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=o){var r="p"!==(null===o||void 0===o?void 0:o.nodeName.toLowerCase()),s=(null===o||void 0===o?void 0:o.getAttribute("face"))===e;if(i){if(r&&!s){var a=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(a[0]),n.selection.moveCursor(a[0].elems[0])}n.selection.setRangeToElem(o),n.selection.createEmptyRange()}n.cmd["do"]("fontName",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(s["default"]);t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=function(){function e(e){var t=this;this.itemList=[],(0,r["default"])(e).call(e,(function(e){var n="string"===typeof e?e:e.value,i="string"===typeof e?e:e.name;t.itemList.push({$elem:a["default"]("<p style=\"font-family:'"+n+"'\">"+i+"</p>"),value:i})}))}return e.prototype.getItemList=function(){return this.itemList},e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(24)),a=r.__importDefault(n(3)),u=r.__importDefault(n(332)),l=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="字号">\n <i class="w-e-icon-text-heigh"></i>\n </div>'),o=new u["default"](t.config.fontSizes),r={width:160,title:"设置字号",type:"list",list:o.getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this,n}return r.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),o=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];null!=o&&(n.cmd["do"]("fontSize",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection()))},t.prototype.tryChangeActive=function(){},t}(s["default"]);t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=function(){function e(e){for(var t in this.itemList=[],e){var n=e[t];this.itemList.push({$elem:s["default"]('<p style="font-size:'+t+'">'+n.name+"</p>"),value:n.value})}}return e.prototype.getItemList=function(){return this.itemList},e}();t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(27));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(24)),l=a.__importDefault(n(3)),c=["LI"],d=["BLOCKQUOTE"],h=function(e){function t(t){var n=this,i=l["default"]('<div class="w-e-menu" data-title="对齐"><i class="w-e-icon-paragraph-left"></i></div>'),o={width:100,title:"对齐方式",type:"list",list:[{$elem:l["default"]('<p>\n <i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.靠左")+"\n </p>"),value:"left"},{$elem:l["default"]('<p>\n <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.居中")+"\n </p>"),value:"center"},{$elem:l["default"]('<p>\n <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.靠右")+"\n </p>"),value:"right"},{$elem:l["default"]('<p>\n <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.两端")+"\n </p>"),value:"justify"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,o)||this,n}return a.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection,i=n.getSelectionContainerElem();n.saveRange();var o=t.selection.getSelectionRangeTopNodes();if(null===i||void 0===i?void 0:i.length)if(this.isSpecialNode(i,o[0])||this.isSpecialTopNode(o[0])){var s=this.getSpecialNodeUntilTop(i,o[0]);if(null==s)return;l["default"](s).css("text-align",e)}else(0,r["default"])(o).call(o,(function(t){t.css("text-align",e)}));n.restoreSelection()},t.prototype.getSpecialNodeUntilTop=function(e,t){var n=e.elems[0],i=t.elems[0];while(null!=n){if(-1!==(0,s["default"])(c).call(c,null===n||void 0===n?void 0:n.nodeName))return n;if(n.parentNode===i)return n;n=n.parentNode}return n},t.prototype.isSpecialNode=function(e,t){var n=this.getSpecialNodeUntilTop(e,t);return null!=n&&-1!==(0,s["default"])(c).call(c,n.nodeName)},t.prototype.isSpecialTopNode=function(e){var t;return null!=e&&-1!==(0,s["default"])(d).call(d,null===(t=e.elems[0])||void 0===t?void 0:t.nodeName)},t.prototype.tryChangeActive=function(){},t}(u["default"]);t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(23)),l=s.__importDefault(n(335)),c=s.__importDefault(n(336)),d=n(7),h=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="引用">\n <i class="w-e-icon-quotes-left"></i>\n </div>');return n=e.call(this,i,t)||this,l["default"](t),n}return s.__extends(t,e),t.prototype.clickHandler=function(){var e,t,n=this.editor,i=n.selection.isSelectionEmpty(),o=n.selection.getSelectionRangeTopNodes(),s=o[o.length-1],u=this.getTopNodeName();if("BLOCKQUOTE"!==u){var l=c["default"](o);if(n.$textElem.equal(s)){var h=null===(e=n.selection.getSelectionContainerElem())||void 0===e?void 0:e.elems[0];n.selection.createRangeByElems(h.children[0],h.children[0]),o=n.selection.getSelectionRangeTopNodes(),l=c["default"](o),s.append(l)}else l.insertAfter(s);this.delSelectNode(o);var A=null===(t=l.childNodes())||void 0===t?void 0:t.last().getNode();if(null==A)return;return A.textContent?n.selection.moveCursor(A):n.selection.moveCursor(A,0),this.tryChangeActive(),void a["default"](d.EMPTY_P).insertAfter(l)}var p=a["default"](s.childNodes()),f=p.length,g=s;(0,r["default"])(p).call(p,(function(e){var t=a["default"](e);t.insertAfter(g),g=t})),s.remove(),n.selection.moveCursor(p.elems[f-1]),this.tryChangeActive(),i&&(n.selection.collapseRange(),n.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e,t=this.editor,n=null===(e=t.selection.getSelectionRangeTopNodes()[0])||void 0===e?void 0:e.getNodeName();"BLOCKQUOTE"===n?this.active():this.unActive()},t.prototype.getTopNodeName=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes()[0],n=null===t||void 0===t?void 0:t.getNodeName();return n},t.prototype.delSelectNode=function(e){(0,r["default"])(e).call(e,(function(e){e.remove()}))},t}(u["default"]);t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=n(7),a=r.__importDefault(n(3));function u(e){function t(t){var n,i=e.selection.getSelectionContainerElem(),o=e.selection.getSelectionRangeTopNodes()[0];if("BLOCKQUOTE"===(null===o||void 0===o?void 0:o.getNodeName())){if("BLOCKQUOTE"===i.getNodeName()){var r=null===(n=i.childNodes())||void 0===n?void 0:n.getNode();e.selection.moveCursor(r)}if(""===i.text()){t.preventDefault(),i.remove();var u=a["default"](s.EMPTY_P);u.insertAfter(o),e.selection.moveCursor(u.getNode(),0)}""===o.text()&&o.remove()}}e.txt.eventHooks.enterDownEvents.push(t)}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3));function u(e){var t=a["default"]("<blockquote></blockquote>");return(0,r["default"])(e).call(e,(function(e){t.append(e.clone(!0))})),t}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(24)),u=s.__importDefault(n(3)),l=n(6),c=function(e){function t(t){var n,i=this,o=u["default"]('<div class="w-e-menu" data-title="背景色">\n <i class="w-e-icon-paint-brush"></i>\n </div>'),s={width:120,title:"背景颜色",type:"inline-block",list:(0,r["default"])(n=t.config.colors).call(n,(function(e){return{$elem:u["default"]('<i style="color:'+e+';" class="w-e-icon-paint-brush"></i>'),value:e}})),clickHandler:function(e){i.command(e)}};return i=e.call(this,o,t,s)||this,i}return s.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),o=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=o){var r="p"!==(null===o||void 0===o?void 0:o.nodeName.toLowerCase()),s=null===o||void 0===o?void 0:o.style.backgroundColor,a=l.hexToRgb(e)===s;if(i){if(r&&!a){var u=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(u[0]),n.selection.moveCursor(u[0].elems[0])}n.selection.createEmptyRange()}n.cmd["do"]("backColor",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(a["default"]);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(24)),u=s.__importDefault(n(3)),l=function(e){function t(t){var n,i=this,o=u["default"]('<div class="w-e-menu" data-title="文字颜色">\n <i class="w-e-icon-pencil2"></i>\n </div>'),s={width:120,title:"文字颜色",type:"inline-block",list:(0,r["default"])(n=t.config.colors).call(n,(function(e){return{$elem:u["default"]('<i style="color:'+e+';" class="w-e-icon-pencil2"></i>'),value:e}})),clickHandler:function(e){i.command(e)}};return i=e.call(this,o,t,s)||this,i}return s.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),o=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=o){var r=n.selection.getSelectionText();if("A"===o.nodeName&&o.textContent===r){var s=u["default"]("<span>&#8203;</span>").getNode();o.appendChild(s)}n.cmd["do"]("foreColor",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(a["default"]);t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(33)),u=r.__importDefault(n(38)),l=r.__importDefault(n(340)),c=r.__importDefault(n(346)),d=function(e){function t(t){var n=this,i=s["default"]('<div class="w-e-menu" data-title="视频">\n <i class="w-e-icon-play"></i>\n </div>');return n=e.call(this,i,t)||this,c["default"](t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel("")},t.prototype.createPanel=function(e){var t=l["default"](this.editor,e),n=new a["default"](this,t);n.create()},t.prototype.tryChangeActive=function(){},t}(u["default"]);t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=n(6),u=s.__importDefault(n(3)),l=s.__importDefault(n(341)),c=n(7);function d(e,t){var n=e.config,i=new l["default"](e),o=a.getRandom("input-iframe"),s=a.getRandom("btn-ok"),d=a.getRandom("input-upload"),h=a.getRandom("btn-local-ok");function A(t){e.cmd["do"]("insertHTML",t+c.EMPTY_P),e.config.onlineVideoCallback(t)}function p(t){var n=e.config.onlineVideoCheck(t);return!0===n||("string"===typeof n&&e.config.customAlert(n,"error"),!1)}var f=[{title:e.i18next.t("menus.panelMenus.video.上传视频"),tpl:'<div class="w-e-up-video-container">\n <div id="'+h+'" class="w-e-up-btn">\n <i class="w-e-icon-upload2"></i>\n </div>\n <div style="display:none;">\n <input id="'+d+'" type="file" accept="video/*"/>\n </div>\n </div>',events:[{selector:"#"+h,type:"click",fn:function(){var e=u["default"]("#"+d),t=e.elems[0];if(!t)return!0;t.click()}},{selector:"#"+d,type:"change",fn:function(){var e=u["default"]("#"+d),t=e.elems[0];if(!t)return!0;var n=t.files;return n.length&&i.uploadVideo(n),!0}}]},{title:e.i18next.t("menus.panelMenus.video.插入视频"),tpl:'<div>\n <input \n id="'+o+'" \n type="text" \n class="block" \n placeholder="'+e.i18next.t("如")+'<iframe src=... ></iframe>"/>\n </td>\n <div class="w-e-button-container">\n <button type="button" id="'+s+'" class="right">\n '+e.i18next.t("插入")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+s,type:"click",fn:function(){var e,t=u["default"]("#"+o),n=(0,r["default"])(e=t.val()).call(e);if(n&&p(n))return A(n),!0},bindEnter:!0}]}],g={width:300,height:0,tabs:[]};return window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&g.tabs.push(f[0]),n.showLinkVideo&&g.tabs.push(f[1]),g}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(133)),s=i(n(57)),a=i(n(4)),u=i(n(27));(0,o["default"])(t,"__esModule",{value:!0});var l=n(2),c=n(6),d=l.__importDefault(n(135)),h=l.__importDefault(n(136)),A=n(7),p=n(6),f=function(){function e(e){this.editor=e}return e.prototype.uploadVideo=function(e){var t=this;if(e.length){var n=this.editor,i=n.config,o="validate.",l=function(e){return n.i18next.t(o+e)},A=i.uploadVideoServer,p=i.uploadVideoMaxSize,f=p/1024,g=i.uploadVideoName,m=i.uploadVideoParams,v=i.uploadVideoParamsWithUrl,_=i.uploadVideoHeaders,y=i.uploadVideoHooks,w=i.uploadVideoTimeout,b=i.withVideoCredentials,C=i.customUploadVideo,S=i.uploadVideoAccept,B=[],E=[];if(c.arrForEach(e,(function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(S instanceof Array?(0,r["default"])(S).call(S,(function(e){return e===t.split(".")[t.split(".").length-1]}))?f<n?E.push("【"+t+"】"+l("大于")+" "+f+"M"):B.push(e):E.push("【"+t+"】"+l("不是视频")):E.push("【"+S+"】"+l("uploadVideoAccept 不是Array")))})),E.length)i.customAlert(l("视频验证未通过")+": \n"+E.join("\n"),"warning");else if(0!==B.length)if(C&&"function"===typeof C){var x;C(B,(0,s["default"])(x=this.insertVideo).call(x,this))}else{var L=new FormData;if((0,a["default"])(B).call(B,(function(e,t){var n=g||e.name;B.length>1&&(n+=t+1),L.append(n,e)})),A){var D=A.split("#");A=D[0];var N=D[1]||"";(0,a["default"])(c).call(c,m,(function(e,t){v&&((0,u["default"])(A).call(A,"?")>0?A+="&":A+="?",A=A+e+"="+t),L.append(e,t)})),N&&(A+="#"+N);var k=d["default"](A,{timeout:w,formData:L,headers:_,withCredentials:!!b,beforeSend:function(e){if(y.before)return y.before(e,n,B)},onTimeout:function(e){i.customAlert(l("上传视频超时"),"error"),y.timeout&&y.timeout(e,n)},onProgress:function(e,t){var i=new h["default"](n);t.lengthComputable&&(e=t.loaded/t.total,i.show(e))},onError:function(e){i.customAlert(l("上传视频错误"),"error",l("上传视频错误")+""+l("服务器返回状态")+": "+e.status),y.error&&y.error(e,n)},onFail:function(e,t){i.customAlert(l("上传视频失败"),"error",l("上传视频返回结果错误")+""+l("返回结果")+": "+t),y.fail&&y.fail(e,n,t)},onSuccess:function(e,o){if(y.customInsert){var r;y.customInsert((0,s["default"])(r=t.insertVideo).call(r,t),o,n)}else{if("0"!=o.errno)return i.customAlert(l("上传视频失败"),"error",l("上传视频返回结果错误")+""+l("返回结果")+" errno="+o.errno),void(y.fail&&y.fail(e,n,o));var a=o.data;t.insertVideo(a.url),y.success&&y.success(e,n,o)}}});"string"===typeof k&&i.customAlert(k,"error")}}else i.customAlert(l("传入的文件不合法"),"warning")}},e.prototype.insertVideo=function(e){var t=this.editor,n=t.config,i="validate.",o=function(e,n){return void 0===n&&(n=i),t.i18next.t(n+e)};if(n.customInsertVideo)n.customInsertVideo(e);else{p.UA.isFirefox?t.cmd["do"]("insertHTML",'<p data-we-video-p="true"><video src="'+e+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):t.cmd["do"]("insertHTML",'<video src="'+e+'" controls="controls" style="max-width:100%"></video>'+A.EMPTY_P);var r=document.createElement("video");r.onload=function(){r=null},r.onerror=function(){n.customAlert(o("插入视频错误"),"error","wangEditor: "+o("插入视频错误")+""+o("视频链接")+' "'+e+'"'+o("下载链接失败")),r=null},r.onabort=function(){return r=null},r.src=e}},e}();t["default"]=f},function(e,t,n){e.exports=n(343)},function(e,t,n){var i=n(344);e.exports=i},function(e,t,n){n(345);var i=n(9);e.exports=i.Date.now},function(e,t,n){var i=n(5);i({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(347)),a=r.__importDefault(n(349));function u(e){s["default"](e),a["default"](e)}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(39)),u=r.__importDefault(n(348));function l(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};function i(i){var o=[{$elem:s["default"]("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return t.remove(),!0}},{$elem:s["default"]("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}},{$elem:s["default"]("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:s["default"]("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:s["default"]("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}},{$elem:s["default"]("<span>"+n("menus.justify.靠左")+"</span>"),onClick:function(e,t){return u["default"](t,"left"),!0}},{$elem:s["default"]("<span>"+n("menus.justify.居中")+"</span>"),onClick:function(e,t){return u["default"](t,"center"),!0}},{$elem:s["default"]("<span>"+n("menus.justify.靠右")+"</span>"),onClick:function(e,t){return u["default"](t,"right"),!0}}];t=new a["default"](e,i,o),t.create()}function o(){t&&(t.remove(),t=null)}return{showVideoTooltip:i,hideVideoTooltip:o}}function c(e){var t=l(e),n=t.showVideoTooltip,i=t.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}t.createShowHideFn=l,t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(28));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3));function u(e,t){var n=["P"],i=l(e,n);i&&a["default"](i).css("text-align",t)}function l(e,t){var n,i=e.elems[0];while(null!=i){if((0,r["default"])(t).call(t,null===i||void 0===i?void 0:i.nodeName))return i;if("BODY"===(null===(n=null===i||void 0===i?void 0:i.parentNode)||void 0===n?void 0:n.nodeName))return null;i=i.parentNode}return i}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(6);function s(e){if(r.UA.isFirefox){var t=e.txt,n=e.selection,i=t.eventHooks.keydownEvents;i.push((function(t){var i=n.getSelectionContainerElem();if(i){var o=i.getNodeTop(e),r=o.length&&o.prev().length?o.prev():null;r&&r.attr("data-we-video-p")&&0===n.getCursorPos()&&8===t.keyCode&&r.remove()}}))}}t["default"]=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=n(7),u=s.__importDefault(n(3)),l=s.__importDefault(n(33)),c=s.__importDefault(n(38)),d=s.__importDefault(n(351)),h=s.__importDefault(n(364)),A=function(e){function t(t){var n,i=this,o=u["default"]('<div class="w-e-menu" data-title="图片"><i class="w-e-icon-image"></i></div>'),s=h["default"](t);s.onlyUploadConf&&(o=s.onlyUploadConf.$elem,(0,r["default"])(n=s.onlyUploadConf.events).call(n,(function(e){var t=e.type,n=e.fn||a.EMPTY_FN;o.on(t,(function(e){e.stopPropagation(),n(e)}))})));return i=e.call(this,o,t)||this,i.imgPanelConfig=s,d["default"](t),i}return s.__extends(t,e),t.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},t.prototype.createPanel=function(){var e=this.imgPanelConfig,t=new l["default"](this,e);this.setPanel(t),t.create()},t.prototype.tryChangeActive=function(){},t}(c["default"]);t["default"]=A},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(352)),a=r.__importDefault(n(353)),u=r.__importDefault(n(354)),l=r.__importDefault(n(362)),c=r.__importDefault(n(363));function d(e){s["default"](e),a["default"](e),u["default"](e),l["default"](e),c["default"](e)}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=n(131),a=r.__importDefault(n(97));function u(e,t){var n=e.config,i=n.pasteFilterStyle,o=n.pasteIgnoreImg,r=s.getPasteHtml(t,i,o);if(r)return!0;var a=s.getPasteText(t);return!!a}function l(e,t){for(var n,i=(null===(n=t.clipboardData)||void 0===n?void 0:n.types)||[],o=0;o<i.length;o++){var r=i[o];if("Files"===r)return!0}return!1}function c(e,t){if(l(t,e)||!u(t,e)){var n=s.getPasteImgs(e);if(n.length){var i=new a["default"](t);i.uploadImg(n)}}}function d(e){e.txt.eventHooks.pasteEvents.unshift((function(t){c(t,e)}))}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(97));function a(e){function t(t){var n=t.dataTransfer&&t.dataTransfer.files;if(n&&n.length){var i=new s["default"](e);i.uploadImg(n)}}e.txt.eventHooks.dropEvents.push(t)}t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(29)),s=i(n(355));(0,o["default"])(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var a=n(2),u=a.__importDefault(n(3));n(360);var l=n(6);function c(e,t,n,i,o){e.attr("style","width:"+t+"px; height:"+n+"px; left:"+i+"px; top:"+o+"px;")}function d(e,t){var n=u["default"]('<div class="w-e-img-drag-mask">\n <div class="w-e-img-drag-show-size"></div>\n <div class="w-e-img-drag-rb"></div>\n </div>');return n.hide(),t.append(n),n}function h(e,t,n){var i=e.getBoundingClientRect(),o=n.getBoundingClientRect(),a=o.width.toFixed(2),u=o.height.toFixed(2);(0,r["default"])(t).call(t,".w-e-img-drag-show-size").text(a+"px * "+u+"px"),c(t,(0,s["default"])(a),(0,s["default"])(u),o.left-i.left,o.top-i.top),t.show()}function A(e){var t,n=e.$textContainerElem,i=d(e,n);function o(e,n){e.on("click",(function(e){e.stopPropagation()})),e.on("mousedown",".w-e-img-drag-rb",(function(i){if(i.preventDefault(),t){var o=i.clientX,a=i.clientY,l=n.getBoundingClientRect(),d=t.getBoundingClientRect(),h=d.width,A=d.height,p=d.left-l.left,f=d.top-l.top,g=h/A,m=h,v=A,_=u["default"](document);_.on("mousemove",w),_.on("mouseup",b),_.on("mouseleave",y)}function y(){_.off("mousemove",w),_.off("mouseup",b)}function w(t){t.stopPropagation(),t.preventDefault(),m=h+(t.clientX-o),v=A+(t.clientY-a),m/v!=g&&(v=m/g),m=(0,s["default"])(m.toFixed(2)),v=(0,s["default"])(v.toFixed(2)),(0,r["default"])(e).call(e,".w-e-img-drag-show-size").text(m.toFixed(2).replace(".00","")+"px * "+v.toFixed(2).replace(".00","")+"px"),c(e,m,v,p,f)}function b(){t.attr("width",m+""),t.attr("height",v+"");var n=t.getBoundingClientRect();c(e,m,v,n.left-l.left,n.top-l.top),y()}}))}function a(e){if(l.UA.isIE())return!1;e&&(t=e,h(n,i,t))}function A(){(0,r["default"])(n).call(n,".w-e-img-drag-mask").hide()}return o(i,n),u["default"](document).on("click",A),e.beforeDestroy((function(){u["default"](document).off("click",A)})),{showDrag:a,hideDrag:A}}function p(e){var t=A(e),n=t.showDrag,i=t.hideDrag;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}t.createShowHideFn=A,t["default"]=p},function(e,t,n){e.exports=n(356)},function(e,t,n){var i=n(357);e.exports=i},function(e,t,n){n(358);var i=n(9);e.exports=i.parseFloat},function(e,t,n){var i=n(5),o=n(359);i({global:!0,forced:parseFloat!=o},{parseFloat:o})},function(e,t,n){var i=n(8),o=n(90).trim,r=n(68),s=i.parseFloat,a=1/s(r+"-0")!==-1/0;e.exports=a?function(e){var t=o(String(e)),n=s(t);return 0===n&&"-"==t.charAt(0)?-0:n}:s},function(e,t,n){var i=n(20),o=n(361);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,".w-e-text-container {\n overflow: hidden;\n}\n.w-e-img-drag-mask {\n position: absolute;\n z-index: 1;\n border: 1px dashed #ccc;\n box-sizing: border-box;\n}\n.w-e-img-drag-mask .w-e-img-drag-rb {\n position: absolute;\n right: -5px;\n bottom: -5px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: #ccc;\n cursor: se-resize;\n}\n.w-e-img-drag-mask .w-e-img-drag-show-size {\n min-width: 110px;\n height: 22px;\n line-height: 22px;\n font-size: 14px;\n color: #999;\n position: absolute;\n left: 0;\n top: 0;\n background-color: #999;\n color: #fff;\n border-radius: 2px;\n padding: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(39));function u(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};function i(i){var o=[{$elem:s["default"]("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("delete"),!0}},{$elem:s["default"]("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:s["default"]("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:s["default"]("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}}];o.push({$elem:s["default"]("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),i.attr("data-href")&&o.push({$elem:s["default"]("<span>"+n("查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("data-href");return n&&(n=decodeURIComponent(n),window.open(n,"_target")),!0}}),t=new a["default"](e,i,o),t.create()}function o(){t&&(t.remove(),t=null)}return{showImgTooltip:i,hideImgTooltip:o}}function l(e){var t=u(e),n=t.showImgTooltip,i=t.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.imgDragBarMouseDownEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}t.createShowHideFn=u,t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));function r(e){var t=e.txt,n=e.selection,i=t.eventHooks.keydownEvents;i.push((function(e){var t=n.getSelectionContainerElem(),i=n.getRange();if(i&&t&&8===e.keyCode&&n.isSelectionEmpty()){var o=i.startContainer,r=i.startOffset,s=null;if(0===r)while(o!==t.elems[0]&&t.elems[0].contains(o)&&o.parentNode&&!s){if(o.previousSibling){s=o.previousSibling;break}o=o.parentNode}else 3!==o.nodeType&&(s=o.childNodes[r-1]);if(s){var a=s;while(a.childNodes.length)a=a.childNodes[a.childNodes.length-1];a instanceof HTMLElement&&"IMG"===a.tagName&&(a.remove(),e.preventDefault())}}}))}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26)),s=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3)),l=n(6),c=a.__importDefault(n(97));function d(e){var t,n=e.config,i=new c["default"](e),o=l.getRandom("up-trigger-id"),a=l.getRandom("up-file-id"),d=l.getRandom("input-link-url"),h=l.getRandom("input-link-url-alt"),A=l.getRandom("input-link-url-href"),p=l.getRandom("btn-link"),f="menus.panelMenus.image.",g=function(t,n){return void 0===n&&(n=f),e.i18next.t(n+t)};function m(e,t,i){var o=n.linkImgCheck(e);return!0===o||("string"===typeof o&&n.customAlert(o,"error"),!1)}var v=1===n.uploadImgMaxLength?"":'multiple="multiple"',_=(0,r["default"])(t=n.uploadImgAccept).call(t,(function(e){return"image/"+e})).join(","),y=function(e,t,n){return'<div class="'+e+'" data-title="'+n+'">\n <div id="'+o+'" class="w-e-up-btn">\n <i class="'+t+'"></i>\n </div>\n <div style="display:none;">\n <input id="'+a+'" type="file" '+v+' accept="'+_+'"/>\n </div>\n </div>'},w=[{selector:"#"+o,type:"click",fn:function(){var e=n.uploadImgFromMedia;if(e&&"function"===typeof e)return e(),!0;var t=u["default"]("#"+a),i=t.elems[0];if(!i)return!0;i.click()}},{selector:"#"+a,type:"change",fn:function(){var e=u["default"]("#"+a),t=e.elems[0];if(!t)return!0;var n=t.files;return(null===n||void 0===n?void 0:n.length)&&i.uploadImg(n),t&&(t.value=""),!0}}],b=['<input\n id="'+d+'"\n type="text"\n class="block"\n placeholder="'+g("图片地址")+'"/>'];n.showLinkImgAlt&&b.push('\n <input\n id="'+h+'"\n type="text"\n class="block"\n placeholder="'+g("图片文字说明")+'"/>'),n.showLinkImgHref&&b.push('\n <input\n id="'+A+'"\n type="text"\n class="block"\n placeholder="'+g("跳转链接")+'"/>');var C=[{title:g("上传图片"),tpl:y("w-e-up-img-container","w-e-icon-upload2",""),events:w},{title:g("网络图片"),tpl:"<div>\n "+b.join("")+'\n <div class="w-e-button-container">\n <button type="button" id="'+p+'" class="right">'+g("插入","")+"</button>\n </div>\n </div>",events:[{selector:"#"+p,type:"click",fn:function(){var e,t=u["default"]("#"+d),o=(0,s["default"])(e=t.val()).call(e);if(o){var r,a,l,c;if(n.showLinkImgAlt)r=(0,s["default"])(a=u["default"]("#"+h).val()).call(a);if(n.showLinkImgHref)l=(0,s["default"])(c=u["default"]("#"+A).val()).call(c);if(m(o,r,l))return i.insertImg(o,r,l),!0}},bindEnter:!0}]}],S={width:300,height:0,tabs:[],onlyUploadConf:{$elem:u["default"](y("w-e-menu","w-e-icon-image","图片")),events:w}};return window.FileReader&&(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg||n.uploadImgFromMedia)&&S.tabs.push(C[0]),n.showLinkImg&&(S.tabs.push(C[1]),S.onlyUploadConf=void 0),S}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(24)),l=s.__importDefault(n(366)),c=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="缩进">\n <i class="w-e-icon-indent-increase"></i>\n </div>'),o={width:130,title:"设置缩进",type:"list",list:[{$elem:a["default"]('<p>\n <i class="w-e-icon-indent-increase w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n <p>"),value:"increase"},{$elem:a["default"]('<p>\n <i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n <p>"),value:"decrease"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,o)||this,n}return s.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n)){var i=t.selection.getSelectionRangeTopNodes();i.length>0&&(0,r["default"])(i).call(i,(function(n){l["default"](a["default"](n),e,t)}))}else n&&n.length>0&&(0,r["default"])(n).call(n,(function(n){l["default"](a["default"](n),e,t)}));t.selection.restoreSelection(),this.tryChangeActive()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionStartElem(),n=a["default"](t).getNodeTop(e);n.length<=0||(""!=n.elems[0].style["paddingLeft"]?this.active():this.unActive())},t}(u["default"]);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(45)),s=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(367)),l=a.__importDefault(n(368)),c=/^(\d+)(\w+)$/,d=/^(\d+)%$/;function h(e){var t=e.config.indentation;if("string"===typeof t){if(c.test(t)){var n,i=(0,r["default"])(n=(0,s["default"])(t).call(t).match(c)).call(n,1,3),o=i[0],a=i[1];return{value:Number(o),unit:a}}if(d.test(t))return{value:Number((0,s["default"])(t).call(t).match(d)[1]),unit:"%"}}else if(void 0!==t.value&&t.unit)return t;return{value:2,unit:"em"}}function A(e,t,n){var i=e.getNodeTop(n),o=/^(P|H[0-9]*)$/;o.test(i.getNodeName())&&("increase"===t?u["default"](i,h(n)):"decrease"===t&&l["default"](i,h(n)))}t["default"]=A},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(45));function s(e,t){var n=e.elems[0];if(""===n.style["paddingLeft"])e.css("padding-left",t.value+t.unit);else{var i=n.style["paddingLeft"],o=(0,r["default"])(i).call(i,0,i.length-t.unit.length),s=Number(o)+t.value;e.css("padding-left",""+s+t.unit)}}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(45));function s(e,t){var n=e.elems[0];if(""!==n.style["paddingLeft"]){var i=n.style["paddingLeft"],o=(0,r["default"])(i).call(i,0,i.length-t.unit.length),s=Number(o)-t.value;s>0?e.css("padding-left",""+s+t.unit):e.css("padding-left","")}}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(38)),u=r.__importDefault(n(33)),l=r.__importDefault(n(370)),c=function(e){function t(t){var n=this,i=s["default"]('<div class="w-e-menu" data-title="表情">\n <i class="w-e-icon-happy"></i>\n </div>');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.createPanel=function(){var e=l["default"](this.editor),t=new u["default"](this,e);t.create()},t.prototype.clickHandler=function(){this.createPanel()},t.prototype.tryChangeActive=function(){},t}(a["default"]);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26)),s=i(n(70)),a=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var u=n(2),l=u.__importDefault(n(3));function c(e){var t=e.config.emotions;function n(e){var t,n,i=[];"image"==e.type?(i=(0,r["default"])(t=e.content).call(t,(function(e){return"string"==typeof e?"":'<span title="'+e.alt+'">\n <img class="eleImg" data-emoji="'+e.alt+'" style src="'+e.src+'" alt="['+e.alt+']">\n </span>'})),i=(0,s["default"])(i).call(i,(function(e){return""!==e}))):i=(0,r["default"])(n=e.content).call(n,(function(e){return'<span class="eleImg" title="'+e+'">'+e+"</span>"}));return i.join("").replace(/&nbsp;/g,"")}var i=(0,r["default"])(t).call(t,(function(t){return{title:e.i18next.t("menus.panelMenus.emoticon."+t.title),tpl:"<div>"+n(t)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(t){var n,i,o=l["default"](t.target),r=o.getNodeName();"IMG"===r?n=(0,a["default"])(i=o.parent().html()).call(i):n="<span>"+o.html()+"</span>";return e.cmd["do"]("insertHTML",n),!0}}]}})),o={width:300,height:230,tabs:i};return o}t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var r,s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(372)),l=s.__importDefault(n(374)),c=s.__importDefault(n(375)),d=s.__importDefault(n(376)),h=s.__importDefault(n(377));(function(e){e["Wrap"]="WrapListHandle",e["Join"]="JoinListHandle",e["StartJoin"]="StartJoinListHandle",e["EndJoin"]="EndJoinListHandle",e["Other"]="OtherListHandle"})(r=t.ClassType||(t.ClassType={}));var A={WrapListHandle:u["default"],JoinListHandle:l["default"],StartJoinListHandle:c["default"],EndJoinListHandle:d["default"],OtherListHandle:h["default"]};function p(e,t,n){if(e===r.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==r.Other?new A[e](t):new A[e](t,n)}t.createListHandle=p;var f=function(){function e(e){this.handle=e,this.handle.exec()}return e.prototype.getSelectionRangeElem=function(){return a["default"](this.handle.selectionRangeElem.get())},e}();t["default"]=f},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(58),l=n(47),c=function(e){function t(t){return e.call(this,t)||this}return s.__extends(t,e),t.prototype.exec=function(){var e,t=this.options,n=t.listType,i=t.listTarget,o=t.$selectionElem,s=t.$startElem,u=t.$endElem,c=[],d=null===o||void 0===o?void 0:o.getNodeName(),h=s.prior,A=u.prior;if(!s.prior&&!u.prior||!(null===h||void 0===h?void 0:h.prev().length)&&!(null===A||void 0===A?void 0:A.next().length)){var p;(0,r["default"])(p=null===o||void 0===o?void 0:o.children()).call(p,(function(e){c.push(a["default"](e))})),d===n?e=l.createElementFragment(c,l.createDocumentFragment(),"p"):(e=l.createElement(i),(0,r["default"])(c).call(c,(function(t){e.appendChild(t.elems[0])}))),this.selectionRangeElem.set(e),l.insertBefore(o,e,o.elems[0]),o.remove()}else{var f=h;while(f.length)c.push(f),f=(null===A||void 0===A?void 0:A.equal(f))?a["default"](void 0):f.next();var g=h.prev(),m=A.next();if(d===n?e=l.createElementFragment(c,l.createDocumentFragment(),"p"):(e=l.createElement(i),(0,r["default"])(c).call(c,(function(t){e.append(t.elems[0])}))),g.length&&m.length){var v=[];while(m.length)v.push(m),m=m.next();var _=l.createElement(d);(0,r["default"])(v).call(v,(function(e){_.append(e.elems[0])})),a["default"](_).insertAfter(o),this.selectionRangeElem.set(e);var y=o.next();y.length?l.insertBefore(o,e,y.elems[0]):o.parent().elems[0].append(e)}else if(g.length){this.selectionRangeElem.set(e);y=o.next();y.length?l.insertBefore(o,e,y.elems[0]):o.parent().elems[0].append(e)}else this.selectionRangeElem.set(e),l.insertBefore(o,e,o.elems[0])}},t}(u.ListHandle);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=function(){function e(){this._element=null}return e.prototype.set=function(e){if(e instanceof DocumentFragment){var t,n=[];(0,r["default"])(t=e.childNodes).call(t,(function(e){n.push(e)})),e=n}this._element=e},e.prototype.get=function(){return this._element},e.prototype.clear=function(){this._element=null},e}();t["default"]=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(58),l=n(47),c=function(e){function t(t){return e.call(this,t)||this}return s.__extends(t,e),t.prototype.exec=function(){var e,t,n,i,o,s,u,c,d=this.options,h=d.editor,A=d.listType,p=d.listTarget,f=d.$startElem,g=d.$endElem,m=h.selection.getSelectionRangeTopNodes(),v=null===f||void 0===f?void 0:f.getNodeName(),_=null===g||void 0===g?void 0:g.getNodeName();if(v===_)if(m.length>2)if(m.shift(),m.pop(),c=l.createElementFragment(l.filterSelectionNodes(m),l.createDocumentFragment()),v===A)null===(e=g.children())||void 0===e||(0,r["default"])(e).call(e,(function(e){c.append(e)})),g.remove(),this.selectionRangeElem.set(c),f.elems[0].append(c);else{var y=document.createDocumentFragment(),w=document.createDocumentFragment(),b=l.getStartPoint(f);while(b.length){var C=b.elems[0];b=b.next(),y.append(C)}var S=l.getEndPoint(g),B=[];while(S.length)B.unshift(S.elems[0]),S=S.prev();(0,r["default"])(B).call(B,(function(e){w.append(e)}));var E=l.createElement(p);E.append(y),E.append(c),E.append(w),c=E,this.selectionRangeElem.set(c),a["default"](E).insertAfter(f),!(null===(t=f.children())||void 0===t?void 0:t.length)&&f.remove(),!(null===(n=g.children())||void 0===n?void 0:n.length)&&g.remove()}else{m.length=0;b=l.getStartPoint(f);while(b.length)m.push(b),b=b.next();S=l.getEndPoint(g),B=[];while(S.length)B.unshift(S),S=S.prev();m.push.apply(m,B),v===A?(c=l.createElementFragment(m,l.createDocumentFragment(),"p"),this.selectionRangeElem.set(c),l.insertBefore(f,c,g.elems[0])):(c=l.createElement(p),(0,r["default"])(m).call(m,(function(e){c.append(e.elems[0])})),this.selectionRangeElem.set(c),a["default"](c).insertAfter(f)),!(null===(i=f.children())||void 0===i?void 0:i.length)&&g.remove(),!(null===(o=g.children())||void 0===o?void 0:o.length)&&g.remove()}else{var x=[];S=l.getEndPoint(g);while(S.length)x.unshift(S),S=S.prev();var L=[];b=l.getStartPoint(f);while(b.length)L.push(b),b=b.next();if(c=l.createDocumentFragment(),m.shift(),m.pop(),(0,r["default"])(L).call(L,(function(e){return c.append(e.elems[0])})),c=l.createElementFragment(l.filterSelectionNodes(m),c),(0,r["default"])(x).call(x,(function(e){return c.append(e.elems[0])})),this.selectionRangeElem.set(c),v===A)f.elems[0].append(c),!(null===(s=g.children())||void 0===s?void 0:s.length)&&g.remove();else if(null===(u=g.children())||void 0===u?void 0:u.length){var D=g.children();l.insertBefore(D,c,D.elems[0])}else g.elems[0].append(c)}},t}(u.ListHandle);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(58),l=n(47),c=function(e){function t(t){return e.call(this,t)||this}return s.__extends(t,e),t.prototype.exec=function(){var e,t,n=this.options,i=n.editor,o=n.listType,s=n.listTarget,u=n.$startElem,c=i.selection.getSelectionRangeTopNodes(),d=null===u||void 0===u?void 0:u.getNodeName();c.shift();var h=[],A=l.getStartPoint(u);while(A.length)h.push(A),A=A.next();d===o?(t=l.createDocumentFragment(),(0,r["default"])(h).call(h,(function(e){return t.append(e.elems[0])})),t=l.createElementFragment(l.filterSelectionNodes(c),t),this.selectionRangeElem.set(t),u.elems[0].append(t)):(t=l.createElement(s),(0,r["default"])(h).call(h,(function(e){return t.append(e.elems[0])})),t=l.createElementFragment(l.filterSelectionNodes(c),t),this.selectionRangeElem.set(t),a["default"](t).insertAfter(u),!(null===(e=u.children())||void 0===e?void 0:e.length)&&u.remove())},t}(u.ListHandle);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(58),l=n(47),c=function(e){function t(t){return e.call(this,t)||this}return s.__extends(t,e),t.prototype.exec=function(){var e,t,n,i=this.options,o=i.editor,s=i.listType,u=i.listTarget,c=i.$endElem,d=o.selection.getSelectionRangeTopNodes(),h=null===c||void 0===c?void 0:c.getNodeName();d.pop();var A=[],p=l.getEndPoint(c);while(p.length)A.unshift(p),p=p.prev();if(h===s)if(n=l.createElementFragment(l.filterSelectionNodes(d),l.createDocumentFragment()),(0,r["default"])(A).call(A,(function(e){return n.append(e.elems[0])})),this.selectionRangeElem.set(n),null===(e=c.children())||void 0===e?void 0:e.length){var f=c.children();l.insertBefore(f,n,f.elems[0])}else c.elems[0].append(n);else{var g=l.filterSelectionNodes(d);g.push.apply(g,A),n=l.createElementFragment(g,l.createElement(u)),this.selectionRangeElem.set(n),a["default"](n).insertBefore(c),!(null===(t=c.children())||void 0===t?void 0:t.length)&&c.remove()}},t}(u.ListHandle);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=n(58),a=n(47),u=function(e){function t(t,n){var i=e.call(this,t)||this;return i.range=n,i}return r.__extends(t,e),t.prototype.exec=function(){var e=this.options,t=e.editor,n=e.listTarget,i=t.selection.getSelectionRangeTopNodes(),o=a.createElementFragment(a.filterSelectionNodes(i),a.createElement(n));this.selectionRangeElem.set(o),this.range.insertNode(o)},t}(s.ListHandle);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(27));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(24)),l=a.__importDefault(n(3)),c=a.__importDefault(n(379)),d=function(e){function t(t){var n=this,i=l["default"]('<div class="w-e-menu" data-title="行高">\n <i class="w-e-icon-row-height"></i>\n </div>'),o=new c["default"](t,t.config.lineHeights),r={width:100,title:"设置行高",type:"list",list:o.getItemList(),clickHandler:function(e){t.selection.saveRange(),n.command(e)}};return n=e.call(this,i,t,r)||this,n}return a.__extends(t,e),t.prototype.command=function(e){var t=this.editor;t.selection.restoreSelection();var n=l["default"](t.selection.getSelectionContainerElem());if(n.elems.length)if(n&&t.$textElem.equal(n)){for(var i=!1,o=l["default"](t.selection.getSelectionStartElem()).elems[0],r=l["default"](t.selection.getSelectionEndElem()).elems[0],s=this.getDom(o),a=this.getDom(r),u=n.elems[0].children,c=0;c<u.length;c++){var d=u[c];if("P"===l["default"](d).getNodeName()&&(d===s&&(i=!0),i&&(l["default"](d).css("line-height",e),d===a)))return void(i=!1)}t.selection.createRangeByElems(o,r)}else{var h=n.elems[0],A=this.getDom(h);"P"===l["default"](A).getNodeName()&&(l["default"](A).css("line-height",e),t.selection.createRangeByElems(A,A))}},t.prototype.getDom=function(e){var t=l["default"](e).elems[0];if(!t.parentNode)return t;function n(e,t){var i=l["default"](e.parentNode);return t.$textElem.equal(i)?e:n(i.elems[0],t)}return t=n(t,this.editor),t},t.prototype.styleProcessing=function(e){var t="";return(0,r["default"])(e).call(e,(function(e){""!==e&&-1===(0,s["default"])(e).call(e,"line-height")&&(t=t+e+";")})),t},t.prototype.setRange=function(e,t){var n=this.editor,i=window.getSelection?window.getSelection():document.getSelection();null===i||void 0===i||i.removeAllRanges();var o=document.createRange(),r=e,s=t;o.setStart(r,0),o.setEnd(s,1),null===i||void 0===i||i.addRange(o),n.selection.saveRange(),null===i||void 0===i||i.removeAllRanges(),n.selection.restoreSelection()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionContainerElem();if(!t||!e.$textElem.equal(t)){var n=l["default"](e.selection.getSelectionStartElem());if(0!==n.length){n=this.getDom(n.elems[0]);var i=n.getAttribute("style")?n.getAttribute("style"):"";i&&-1!==(0,s["default"])(i).call(i,"line-height")?this.active():this.unActive()}}},t}(u["default"]);t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=function(){function e(e,t){var n=this;this.itemList=[{$elem:a["default"]("<span>"+e.i18next.t("默认")+"</span>"),value:""}],(0,r["default"])(t).call(t,(function(e){n.itemList.push({$elem:a["default"]("<span>"+e+"</span>"),value:e})}))}return e.prototype.getItemList=function(){return this.itemList},e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(23)),u=function(e){function t(t){var n=this,i=s["default"]('<div class="w-e-menu" data-title="撤销">\n <i class="w-e-icon-undo"></i>\n </div>');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.revoke();var t=e.$textElem.children();if(null===t||void 0===t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},t}(a["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(23)),u=function(e){function t(t){var n=this,i=s["default"]('<div class="w-e-menu" data-title="恢复">\n <i class="w-e-icon-redo"></i>\n </div>');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.restore();var t=e.$textElem.children();if(null===t||void 0===t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},t}(a["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(38)),a=r.__importDefault(n(3)),u=r.__importDefault(n(383)),l=r.__importDefault(n(33)),c=r.__importDefault(n(392)),d=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="表格"><i class="w-e-icon-table2"></i></div>');return n=e.call(this,i,t)||this,c["default"](t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel()},t.prototype.createPanel=function(){var e=u["default"](this.editor),t=new l["default"](this,e);t.create()},t.prototype.tryChangeActive=function(){},t}(s["default"]);t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(384));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=n(6),u=s.__importDefault(n(3));n(389);var l=s.__importDefault(n(391));function c(e){return e>0&&(0,r["default"])(e)}function d(e){var t=new l["default"](e),n=a.getRandom("w-col-id"),i=a.getRandom("w-row-id"),o=a.getRandom("btn-link"),r="menus.panelMenus.table.",s=function(t){return e.i18next.t(t)},d=[{title:s(r+"插入表格"),tpl:'<div>\n <div class="w-e-table">\n <span>'+s("创建")+'</span>\n <input id="'+i+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+s(r+"行")+'</span>\n <input id="'+n+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+(s(r+"列")+s(r+"的")+s(r+"表格"))+'</span>\n </div>\n <div class="w-e-button-container">\n <button type="button" id="'+o+'" class="right">'+s("插入")+"</button>\n </div>\n </div>",events:[{selector:"#"+o,type:"click",fn:function(){var o=Number(u["default"]("#"+n).val()),r=Number(u["default"]("#"+i).val());return c(r)&&c(o)?(t.createAction(r,o),!0):(e.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}],h={width:330,height:0,tabs:[]};return h.tabs.push(d[0]),h}t["default"]=d},function(e,t,n){e.exports=n(385)},function(e,t,n){var i=n(386);e.exports=i},function(e,t,n){n(387);var i=n(9);e.exports=i.Number.isInteger},function(e,t,n){var i=n(5),o=n(388);i({target:"Number",stat:!0},{isInteger:o})},function(e,t,n){var i=n(13),o=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var i=n(20),o=n(390);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,".w-e-table {\n display: flex;\n}\n.w-e-table .w-e-table-input {\n width: 40px;\n text-align: center!important;\n margin: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=n(7),a=r.__importDefault(n(3)),u=function(){function e(e){this.editor=e}return e.prototype.createAction=function(e,t){var n=this.editor,i=a["default"](n.selection.getSelectionContainerElem()),o=a["default"](i.elems[0]).parentUntilEditor("UL",n),r=a["default"](i.elems[0]).parentUntilEditor("OL",n);if(!o&&!r){var s=this.createTableHtml(e,t);n.cmd["do"]("insertHTML",s)}},e.prototype.createTableHtml=function(e,t){for(var n="",i="",o=0;o<e;o++){i="";for(var r=0;r<t;r++)i+=0===o?"<th></th>":"<td></td>";n=n+"<tr>"+i+"</tr>"}var a='<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+n+"</tbody></table>"+s.EMPTY_P;return a},e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(393)),a=n(400);function u(e){s["default"](e),a.bindEventKeyboardEvent(e),a.bindClickEvent(e)}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(39)),u=r.__importDefault(n(394)),l=r.__importDefault(n(399)),c=n(7);function d(e){var t;function n(n){var i=new l["default"](e),o="menus.panelMenus.table.",r=function(t,n){return void 0===n&&(n=o),e.i18next.t(n+t)},d=[{$elem:s["default"]("<span>"+r("删除表格")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("insertHTML",c.EMPTY_P),!0}},{$elem:s["default"]("<span>"+r("添加行")+"</span>"),onClick:function(e,t){var n=h(e);if(n)return!0;var o=s["default"](e.selection.getSelectionStartElem()),r=i.getRowNode(o.elems[0]);if(!r)return!0;var a=Number(i.getCurrentRowIndex(t.elems[0],r)),l=i.getTableHtml(t.elems[0]),c=i.getTableHtml(u["default"].ProcessingRow(s["default"](l),a).elems[0]);return c=p(t,c),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("insertHTML",c),!0}},{$elem:s["default"]("<span>"+r("删除行")+"</span>"),onClick:function(e,t){var n=h(e);if(n)return!0;var o=s["default"](e.selection.getSelectionStartElem()),r=i.getRowNode(o.elems[0]);if(!r)return!0;var a=Number(i.getCurrentRowIndex(t.elems[0],r)),l=i.getTableHtml(t.elems[0]),d=u["default"].DeleteRow(s["default"](l),a).elems[0].children[0].children.length,A="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),A=0===d?c.EMPTY_P:i.getTableHtml(u["default"].DeleteRow(s["default"](l),a).elems[0]),A=p(t,A),e.cmd["do"]("insertHTML",A),!0}},{$elem:s["default"]("<span>"+r("添加列")+"</span>"),onClick:function(e,t){var n=h(e);if(n)return!0;var o=s["default"](e.selection.getSelectionStartElem()),r=i.getCurrentColIndex(o.elems[0]),a=i.getTableHtml(t.elems[0]),l=i.getTableHtml(u["default"].ProcessingCol(s["default"](a),r).elems[0]);return l=p(t,l),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("insertHTML",l),!0}},{$elem:s["default"]("<span>"+r("删除列")+"</span>"),onClick:function(e,t){var n=h(e);if(n)return!0;var o=s["default"](e.selection.getSelectionStartElem()),r=i.getCurrentColIndex(o.elems[0]),a=i.getTableHtml(t.elems[0]),l=u["default"].DeleteCol(s["default"](a),r),d=l.elems[0].children[0].children[0].children.length,A="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),A=0===d?c.EMPTY_P:i.getTableHtml(l.elems[0]),A=p(t,A),e.cmd["do"]("insertHTML",A),!0}},{$elem:s["default"]("<span>"+r("设置表头")+"</span>"),onClick:function(e,t){var n=h(e);if(n)return!0;var o=s["default"](e.selection.getSelectionStartElem()),r=i.getRowNode(o.elems[0]);if(!r)return!0;var a=Number(i.getCurrentRowIndex(t.elems[0],r));0!==a&&(a=0);var l=i.getTableHtml(t.elems[0]),c=i.getTableHtml(u["default"].setTheHeader(s["default"](l),a,"th").elems[0]);return c=p(t,c),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("insertHTML",c),!0}},{$elem:s["default"]("<span>"+r("取消表头")+"</span>"),onClick:function(e,t){var n=s["default"](e.selection.getSelectionStartElem()),o=i.getRowNode(n.elems[0]);if(!o)return!0;var r=Number(i.getCurrentRowIndex(t.elems[0],o));0!==r&&(r=0);var a=i.getTableHtml(t.elems[0]),l=i.getTableHtml(u["default"].setTheHeader(s["default"](a),r,"td").elems[0]);return l=p(t,l),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("insertHTML",l),!0}}];t=new a["default"](e,n,d),t.create()}function i(){t&&(t.remove(),t=null)}return{showTableTooltip:n,hideTableTooltip:i}}function h(e){var t=e.selection.getSelectionStartElem(),n=e.selection.getSelectionEndElem();return(null===t||void 0===t?void 0:t.elems[0])!==(null===n||void 0===n?void 0:n.elems[0])}function A(e){var t=d(e),n=t.showTableTooltip,i=t.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}function p(e,t){var n=e.elems[0].nextSibling;return n&&"<br>"!==n.innerHTML||(t+=""+c.EMPTY_P),t}t["default"]=A},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(45)),s=i(n(91)),a=i(n(4)),u=i(n(138));(0,o["default"])(t,"__esModule",{value:!0});var l=n(2),c=l.__importDefault(n(3));function d(e,t){for(var n=m(e),i=(0,r["default"])(Array.prototype).apply(n.children),o=i[0].children.length,a=document.createElement("tr"),u=0;u<o;u++){var l=document.createElement("td");a.appendChild(l)}return(0,s["default"])(i).call(i,t+1,0,a),g(n,i),c["default"](n.parentNode)}function h(e,t){for(var n=m(e),i=(0,r["default"])(Array.prototype).apply(n.children),o=function(e){var n,o=[];(0,a["default"])(n=(0,u["default"])(i[e].children)).call(n,(function(e){o.push(e)}));while(0!==i[e].children.length)i[e].removeChild(i[e].children[0]);var r="TH"!==c["default"](o[0]).getNodeName()?document.createElement("td"):document.createElement("th");(0,s["default"])(o).call(o,t+1,0,r);for(var l=0;l<o.length;l++)i[e].appendChild(o[l])},l=0;l<i.length;l++)o(l);return g(n,i),c["default"](n.parentNode)}function A(e,t){var n=m(e),i=(0,r["default"])(Array.prototype).apply(n.children);return(0,s["default"])(i).call(i,t,1),g(n,i),c["default"](n.parentNode)}function p(e,t){for(var n=m(e),i=(0,r["default"])(Array.prototype).apply(n.children),o=function(e){var n,o=[];(0,a["default"])(n=(0,u["default"])(i[e].children)).call(n,(function(e){o.push(e)}));while(0!==i[e].children.length)i[e].removeChild(i[e].children[0]);(0,s["default"])(o).call(o,t,1);for(var r=0;r<o.length;r++)i[e].appendChild(o[r])},l=0;l<i.length;l++)o(l);return g(n,i),c["default"](n.parentNode)}function f(e,t,n){for(var i=m(e),o=(0,r["default"])(Array.prototype).apply(i.children),l=o[t].children,d=document.createElement("tr"),h=function(e){var t,i=document.createElement(n),o=l[e];(0,a["default"])(t=(0,u["default"])(o.childNodes)).call(t,(function(e){i.appendChild(e)})),d.appendChild(i)},A=0;A<l.length;A++)h(A);return(0,s["default"])(o).call(o,t,1,d),g(i,o),c["default"](i.parentNode)}function g(e,t){while(0!==e.children.length)e.removeChild(e.children[0]);for(var n=0;n<t.length;n++)e.appendChild(t[n])}function m(e){var t=e.elems[0].children[0];return"COLGROUP"===t.nodeName&&(t=e.elems[0].children[e.elems[0].children.length-1]),t}t["default"]={ProcessingRow:d,ProcessingCol:h,DeleteRow:A,DeleteCol:p,setTheHeader:f}},function(e,t,n){var i=n(396);e.exports=i},function(e,t,n){n(50),n(397);var i=n(9);e.exports=i.Array.from},function(e,t,n){var i=n(5),o=n(398),r=n(115),s=!r((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:s},{from:o})},function(e,t,n){"use strict";var i=n(40),o=n(31),r=n(114),s=n(112),a=n(35),u=n(69),l=n(113);e.exports=function(e){var t,n,c,d,h,A,p=o(e),f="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,v=void 0!==m,_=l(p),y=0;if(v&&(m=i(m,g>2?arguments[2]:void 0,2)),void 0==_||f==Array&&s(_))for(t=a(p.length),n=new f(t);t>y;y++)A=v?m(p[y],y):p[y],u(n,y,A);else for(d=_.call(p),h=d.next,n=new f;!(c=h.call(d)).done;y++)A=v?r(d,m,[c.value,y],!0):c.value,u(n,y,A);return n.length=y,n}},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(138));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3)),l=function(){function e(e){this.editor=e}return e.prototype.getRowNode=function(e){var t,n=u["default"](e).elems[0];return n.parentNode?(n=null===(t=u["default"](n).parentUntil("TR",n))||void 0===t?void 0:t.elems[0],n):n},e.prototype.getCurrentRowIndex=function(e,t){var n,i=0,o=e.children[0];return"COLGROUP"===o.nodeName&&(o=e.children[e.children.length-1]),(0,r["default"])(n=(0,s["default"])(o.children)).call(n,(function(e,n){e===t&&(i=n)})),i},e.prototype.getCurrentColIndex=function(e){var t,n,i=0,o="TD"===u["default"](e).getNodeName()||"TH"===u["default"](e).getNodeName()?e:null===(n=u["default"](e).parentUntil("TD",e))||void 0===n?void 0:n.elems[0],a=u["default"](o).parent();return(0,r["default"])(t=(0,s["default"])(a.elems[0].children)).call(t,(function(e,t){e===o&&(i=t)})),i},e.prototype.getTableHtml=function(e){var t='<table border="0" width="100%" cellpadding="0" cellspacing="0">'+u["default"](e).html()+"</table>";return t},e}();t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.bindEventKeyboardEvent=t.bindClickEvent=void 0;var r=n(2),s=r.__importDefault(n(3));function a(e){if(!e.length)return!1;var t=e.elems[0];return"P"===t.nodeName&&"<br>"===t.innerHTML}function u(e){function t(t,n){if(n.detail>=3){var i=window.getSelection();if(i){var o=i.focusNode,r=i.anchorNode,a=s["default"](null===r||void 0===r?void 0:r.parentElement);if(!t.isContain(s["default"](o))){var u="TD"===a.elems[0].tagName?a:a.parentUntilEditor("td",e);if(u){var l=e.selection.getRange();null===l||void 0===l||l.setEnd(u.elems[0],u.elems[0].childNodes.length),e.selection.restoreSelection()}}}}}e.txt.eventHooks.tableClickEvents.push(t)}function l(e){var t=e.txt,n=e.selection,i=t.eventHooks.keydownEvents;i.push((function(t){e.selection.saveRange();var i=n.getSelectionContainerElem();if(i){var o=i.getNodeTop(e),r=o.length&&o.prev().length?o.prev():null;if(r&&"TABLE"===r.getNodeName()&&n.isSelectionEmpty()&&0===n.getCursorPos()&&8===t.keyCode){var s=o.next(),u=!!s.length;u&&a(o)&&(o.remove(),e.selection.setRangeToElem(s.elems[0])),t.preventDefault()}}}))}t.bindClickEvent=u,t.bindEventKeyboardEvent=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26));(0,o["default"])(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0;var s=n(2),a=s.__importDefault(n(38)),u=s.__importDefault(n(3)),l=n(6),c=s.__importDefault(n(402)),d=s.__importDefault(n(139)),h=s.__importDefault(n(33)),A=s.__importDefault(n(403));function p(e,t){return t?(t=i(t),t=n(t),t=l.replaceSpecialSymbol(t),t):t;function n(e){var t=e.match(/<pre[\s|\S]+?\/pre>/g);return null===t||(0,r["default"])(t).call(t,(function(t){e=e.replace(t,t.replace(/<\/code><code>/g,"\n").replace(/<br>/g,""))})),e}function i(e){var t,n=e.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!n||!n.length)return e;for(var o=(0,r["default"])(t=l.deepClone(n)).call(t,(function(e){return e=e.replace(/<span\sclass="hljs[^>]+>/,""),e.replace(/<\/span>/,"")})),s=0;s<n.length;s++)e=e.replace(n[s],o[s]);return i(e)}}t.formatCodeHtml=p;var f=function(e){function t(t){var n=this,i=u["default"]('<div class="w-e-menu" data-title="代码"><i class="w-e-icon-terminal"></i></div>');return n=e.call(this,i,t)||this,A["default"](t),n}return s.__extends(t,e),t.prototype.insertLineCode=function(e){var t=this.editor,n=u["default"]("<code>"+e+"</code>");t.cmd["do"]("insertElem",n),t.selection.createRangeByElem(n,!1),t.selection.restoreSelection()},t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},t.prototype.createPanel=function(e,t){var n=c["default"](this.editor,e,t),i=new h["default"](this,n);i.create()},t.prototype.tryChangeActive=function(){var e=this.editor;d["default"](e)?this.active():this.unActive()},t}(a["default"]);t["default"]=f},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=n(6),u=s.__importDefault(n(3)),l=s.__importDefault(n(139)),c=n(7);function d(e,t,n){var i,o=a.getRandom("input-iframe"),s=a.getRandom("select"),d=a.getRandom("btn-ok");function h(t,n){var i,o=l["default"](e);o&&A();var r=null===(i=e.selection.getSelectionStartElem())||void 0===i?void 0:i.elems[0].innerHTML;r&&e.cmd["do"]("insertHTML",c.EMPTY_P);var s=n.replace(/</g,"&lt;").replace(/>/g,"&gt;");e.highlight&&(s=e.highlight.highlightAuto(s).value),e.cmd["do"]("insertHTML",'<pre><code class="'+t+'">'+s+"</code></pre>");var a=e.selection.getSelectionStartElem(),d=null===a||void 0===a?void 0:a.getNodeTop(e);0===(null===d||void 0===d?void 0:d.getNextSibling().elems.length)&&u["default"](c.EMPTY_P).insertAfter(d)}function A(){if(l["default"](e)){var t=e.selection.getSelectionStartElem(),n=null===t||void 0===t?void 0:t.getNodeTop(e);n&&(e.selection.createRangeByElem(n),e.selection.restoreSelection(),n)}}var p=function(t){return e.i18next.t(t)},f={width:500,height:0,tabs:[{title:p("menus.panelMenus.code.插入代码"),tpl:'<div>\n <select name="" id="'+s+'">\n '+(0,r["default"])(i=e.config.languageType).call(i,(function(e){return"<option "+(n==e?"selected":"")+' value ="'+e+'">'+e+"</option>"}))+'\n </select>\n <textarea id="'+o+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+t.replace(/&quot;/g,'"')+'</textarea>\n <div class="w-e-button-container">\n <button type="button" id="'+d+'" class="right">'+(l["default"](e)?p("修改"):p("插入"))+"</button>\n </div>\n </div>",events:[{selector:"#"+d,type:"click",fn:function(){var t=document.getElementById(o),n=u["default"]("#"+s),i=n.val(),r=t.value;if(r)return!l["default"](e)&&(h(i,r),!0)}}]}]};return f}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(404)),a=r.__importDefault(n(405));function u(e){s["default"](e),a["default"](e)}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(39));function u(e){var t;function n(n){var i="menus.panelMenus.code.",o=function(t,n){return void 0===n&&(n=i),e.i18next.t(n+t)},r=[{$elem:s["default"]("<span>"+o("删除代码")+"</span>"),onClick:function(e,t){return t.remove(),!0}}];t=new a["default"](e,n,r),t.create()}function i(){t&&(t.remove(),t=null)}return{showCodeTooltip:n,hideCodeTooltip:i}}function l(e){var t=u(e),n=t.showCodeTooltip,i=t.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}t.createShowHideFn=u,t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=n(7),a=r.__importDefault(n(3));function u(e){var t=e.$textElem,n=e.selection,i=e.txt,o=i.eventHooks.keydownEvents;o.push((function(e){var i;if(40===e.keyCode){var o=n.getSelectionContainerElem(),r=null===(i=t.children())||void 0===i?void 0:i.last();if("XMP"===(null===o||void 0===o?void 0:o.elems[0].tagName)&&"PRE"===(null===r||void 0===r?void 0:r.elems[0].tagName)){var u=a["default"](s.EMPTY_P);t.append(u)}}})),o.push((function(i){e.selection.saveRange();var o=n.getSelectionContainerElem();if(o){var r=o.getNodeTop(e),u=null===r||void 0===r?void 0:r.prev(),l=null===r||void 0===r?void 0:r.getNextSibling();if(u.length&&"PRE"===(null===u||void 0===u?void 0:u.getNodeName())&&0===l.length&&0===n.getCursorPos()&&8===i.keyCode){var c=a["default"](s.EMPTY_P);t.append(c)}}}))}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(23)),a=r.__importDefault(n(3)),u=r.__importDefault(n(407)),l=n(6),c=n(7),d=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="分割线"><i class="w-e-icon-split-line"></i></div>');return n=e.call(this,i,t)||this,u["default"](t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getRange(),n=e.selection.getSelectionContainerElem();if(null===n||void 0===n?void 0:n.length){var i=a["default"](n.elems[0]),o=i.parentUntil("TABLE",n.elems[0]),r=i.children();"CODE"!==i.getNodeName()&&(o&&"TABLE"===a["default"](o.elems[0]).getNodeName()||r&&0!==r.length&&"IMG"===a["default"](r.elems[0]).getNodeName()&&!(null===t||void 0===t?void 0:t.collapsed)||this.createSplitLine())}},t.prototype.createSplitLine=function(){var e="<hr/>"+c.EMPTY_P;l.UA.isFirefox&&(e="<hr/><p></p>"),this.editor.cmd["do"]("insertHTML",e)},t.prototype.tryChangeActive=function(){},t}(s["default"]);t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(408));function a(e){s["default"](e)}t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(39));function u(e){var t;function n(n){var i=[{$elem:s["default"]("<span>"+e.i18next.t("menus.panelMenus.删除")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("delete"),!0}}];t=new a["default"](e,n,i),t.create()}function i(){t&&(t.remove(),t=null)}return{showSplitLineTooltip:n,hideSplitLineTooltip:i}}function l(e){var t=u(e),n=t.showSplitLineTooltip,i=t.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(23)),l=n(98),c=s.__importDefault(n(415)),d=s.__importDefault(n(140)),h=function(e){function t(t){var n=this,i=a["default"]('<div class="w-e-menu" data-title="待办事项">\n <i class="w-e-icon-checkbox-checked"></i>\n </div>');return n=e.call(this,i,t)||this,c["default"](t),n}return s.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;l.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},t.prototype.tryChangeActive=function(){l.isAllTodo(this.editor)?this.active():this.unActive()},t.prototype.setTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,r["default"])(t).call(t,(function(t){var n,i=null===t||void 0===t?void 0:t.getNodeName();if("P"===i){var o=d["default"](t),r=o.getTodo(),s=null===(n=r.children())||void 0===n?void 0:n.getNode();r.insertAfter(t),e.selection.moveCursor(s),t.remove()}})),this.tryChangeActive()},t.prototype.cancelTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,r["default"])(t).call(t,(function(t){var n,i,o,r=null===(i=null===(n=t.childNodes())||void 0===n?void 0:n.childNodes())||void 0===i?void 0:i.clone(!0),s=a["default"]("<p></p>");s.append(r),s.insertAfter(t),null===(o=s.childNodes())||void 0===o||o.get(0).remove(),e.selection.moveCursor(s.getNode()),t.remove()}))},t}(u["default"]);t["default"]=h},function(e,t,n){e.exports=n(411)},function(e,t,n){var i=n(412);e.exports=i},function(e,t,n){var i=n(413),o=Array.prototype;e.exports=function(e){var t=e.every;return e===o||e instanceof Array&&t===o.every?i:t}},function(e,t,n){n(414);var i=n(15);e.exports=i("Array").every},function(e,t,n){"use strict";var i=n(5),o=n(32).every,r=n(67),s=n(22),a=r("every"),u=s("every");i({target:"Array",proto:!0,forced:!a||!u},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(98),l=s.__importDefault(n(140)),c=n(98),d=n(7);function h(e){function t(t){var n,i;if(u.isAllTodo(e)){t.preventDefault();var o=e.selection,s=o.getSelectionRangeTopNodes()[0],h=null===(n=s.childNodes())||void 0===n?void 0:n.get(0),A=null===(i=window.getSelection())||void 0===i?void 0:i.anchorNode,p=o.getRange();if(!(null===p||void 0===p?void 0:p.collapsed)){var f=null===p||void 0===p?void 0:p.commonAncestorContainer.childNodes,g=null===p||void 0===p?void 0:p.startContainer,m=null===p||void 0===p?void 0:p.endContainer,v=null===p||void 0===p?void 0:p.startOffset,_=null===p||void 0===p?void 0:p.endOffset,y=0,w=0,b=[];null===f||void 0===f||(0,r["default"])(f).call(f,(function(e,t){e.contains(g)&&(y=t),e.contains(m)&&(w=t)})),w-y>1&&(null===f||void 0===f||(0,r["default"])(f).call(f,(function(e,t){t<=y||t>=w||b.push(e)})),(0,r["default"])(b).call(b,(function(e){e.remove()}))),c.dealTextNode(g,v),c.dealTextNode(m,_,!1),e.selection.moveCursor(m,0)}if(""===s.text()){var C=a["default"](d.EMPTY_P);return C.insertAfter(s),o.moveCursor(C.getNode()),void s.remove()}var S=o.getCursorPos(),B=u.getCursorNextNode(null===h||void 0===h?void 0:h.getNode(),A,S),E=l["default"](a["default"](B)),x=E.getInputContainer(),L=x.parent().getNode(),D=E.getTodo(),N=x.getNode().nextSibling;if(""===(null===h||void 0===h?void 0:h.text())&&(null===h||void 0===h||h.append(a["default"]("<br>"))),D.insertAfter(s),N&&""!==(null===N||void 0===N?void 0:N.textContent))o.moveCursor(L);else{if("BR"!==(null===N||void 0===N?void 0:N.nodeName)){var k=a["default"]("<br>");k.insertAfter(x)}o.moveCursor(L,1)}}}function n(t){var n,i;if(u.isAllTodo(e)){var o,s=e.selection,l=s.getSelectionRangeTopNodes()[0],c=null===(n=l.childNodes())||void 0===n?void 0:n.getNode(),h=a["default"]("<p></p>"),A=h.getNode(),p=null===(i=window.getSelection())||void 0===i?void 0:i.anchorNode,f=s.getCursorPos(),g=p.previousSibling;if(""===l.text()){t.preventDefault();var m=a["default"](d.EMPTY_P);return m.insertAfter(l),l.remove(),void s.moveCursor(m.getNode(),0)}if("SPAN"===(null===g||void 0===g?void 0:g.nodeName)&&"INPUT"===g.childNodes[0].nodeName&&0===f)t.preventDefault(),null===c||void 0===c||(0,r["default"])(o=c.childNodes).call(o,(function(e,t){0!==t&&A.appendChild(e.cloneNode(!0))})),h.insertAfter(l),l.remove()}}function i(){var t=e.selection,n=t.getSelectionRangeTopNodes()[0];n&&c.isTodo(n)&&""===n.text()&&(a["default"](d.EMPTY_P).insertAfter(n),n.remove())}function o(e){e&&e.target instanceof HTMLInputElement&&"checkbox"===e.target.type&&(e.target.checked?e.target.setAttribute("checked","true"):e.target.removeAttribute("checked"))}e.txt.eventHooks.enterDownEvents.push(t),e.txt.eventHooks.deleteUpEvents.push(i),e.txt.eventHooks.deleteDownEvents.push(n),e.txt.eventHooks.clickEvents.push(o)}t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.selectorValidator=void 0;var r=n(2),s=r.__importDefault(n(3)),a=n(6),u=n(7),l=r.__importDefault(n(130)),c={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function d(e){var t,n,i,o=e.toolbarSelector,r=s["default"](o),d=e.textSelector,h=e.config,A=h.height,p=e.i18next,f=s["default"]("<div></div>"),g=s["default"]("<div></div>"),m=null;null==d?(n=r.children(),r.append(f).append(g),f.css("background-color",c.toolbarBgColor).css("border",c.border).css("border-bottom",c.toolbarBottomBorder),g.css("border",c.border).css("border-top","none").css("height",A+"px")):(r.append(f),m=s["default"](d).children(),s["default"](d).append(g),n=g.children()),t=s["default"]("<div></div>"),t.attr("contenteditable","true").css("width","100%").css("height","100%");var v=e.config.placeholder;i=v!==l["default"].placeholder?s["default"]("<div>"+v+"</div>"):s["default"]("<div>"+p.t(v)+"</div>"),i.addClass("placeholder"),n&&n.length?(t.append(n),i.hide()):t.append(s["default"](u.EMPTY_P)),m&&m.length&&(t.append(m),i.hide()),g.append(t),g.append(i),f.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),g.addClass("w-e-text-container"),g.css("z-index",e.zIndex.get()),t.addClass("w-e-text");var _=a.getRandom("toolbar-elem");f.attr("id",_);var y=a.getRandom("text-elem");t.attr("id",y);var w=g.getBoundingClientRect().height,b=t.getBoundingClientRect().height;w!==b&&t.css("min-height",w+"px"),e.$toolbarElem=f,e.$textContainerElem=g,e.$textElem=t,e.toolbarElemId=_,e.textElemId=y}function h(e){var t="data-we-id",n=/^wangEditor-\d+$/,i=e.textSelector,o=e.toolbarSelector,r={bar:s["default"]("<div></div>"),text:s["default"]("<div></div>")};if(null==o)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");if(r.bar=s["default"](o),!r.bar.elems.length)throw new Error("无效的节点选择器:"+o);if(n.test(r.bar.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器");if(i){if(r.text=s["default"](i),!r.text.elems.length)throw new Error("无效的节点选择器:"+i);if(n.test(r.text.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器")}r.bar.attr(t,e.id),r.text.attr(t,e.id),e.beforeDestroy((function(){r.bar.removeAttr(t),r.text.removeAttr(t)}))}t["default"]=d,t.selectorValidator=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=n(7);function u(e,t){var n=e.$textElem,i=n.children();if(!i||!i.length)return n.append(s["default"](a.EMPTY_P)),void u(e);var o=i.last();if(t){var r=o.html().toLowerCase(),l=o.getNodeName();if("<br>"!==r&&"<br/>"!==r||"P"!==l)return n.append(s["default"](a.EMPTY_P)),void u(e)}e.selection.createRangeByElem(o,!1,!0),e.config.focus?e.selection.restoreSelection():e.selection.clearWindowSelectionRange()}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3));function u(e){l(e),c(e),d(e)}function l(e){e.txt.eventHooks.changeEvents.push((function(){var t=e.config.onchange;if(t){var n=e.txt.html()||"";e.isFocus=!0,t(n)}e.txt.togglePlaceholder()}))}function c(e){function t(t){var n=t.target,i=a["default"](n),o=e.$textElem,r=e.$toolbarElem,s=o.isContain(i),u=r.isContain(i),l=r.elems[0]==t.target;if(s)e.isFocus||A(e),e.isFocus=!0;else{if(u&&!l||!e.isFocus)return;h(e),e.isFocus=!1}}e.isFocus=!1,document.activeElement===e.$textElem.elems[0]&&e.config.focus&&(A(e),e.isFocus=!0),a["default"](document).on("click",t),e.beforeDestroy((function(){a["default"](document).off("click",t)}))}function d(e){e.$textElem.on("compositionstart",(function(){e.isComposing=!0,e.txt.togglePlaceholder()})).on("compositionend",(function(){e.isComposing=!1,e.txt.togglePlaceholder()}))}function h(e){var t,n=e.config,i=n.onblur,o=e.txt.html()||"";(0,r["default"])(t=e.txt.eventHooks.onBlurEvents).call(t,(function(e){return e()})),i(o)}function A(e){var t=e.config,n=t.onfocus,i=e.txt.html()||"";n(i)}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));function r(e){var t=e.config,n=t.lang,i=t.languages;if(null==e.i18next)e.i18next={t:function(e){var t=e.split(".");return t[t.length-1]}};else try{e.i18next.init({ns:"wangEditor",lng:n,defaultNS:"wangEditor",resources:i})}catch(o){throw new Error("i18next:"+o)}}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(29));(0,o["default"])(t,"__esModule",{value:!0}),t.setUnFullScreen=t.setFullScreen=void 0;var s=n(2),a=s.__importDefault(n(3));n(421);var u="w-e-icon-fullscreen",l="w-e-icon-fullscreen_exit",c="w-e-full-screen-editor";t.setFullScreen=function(e){var t=a["default"](e.toolbarSelector),n=e.$textContainerElem,i=e.$toolbarElem,o=(0,r["default"])(i).call(i,"i."+u),s=e.config;o.removeClass(u),o.addClass(l),t.addClass(c),t.css("z-index",s.zIndexFullScreen);var d=i.getBoundingClientRect();n.css("height","calc(100% - "+d.height+"px)")},t.setUnFullScreen=function(e){var t=a["default"](e.toolbarSelector),n=e.$textContainerElem,i=e.$toolbarElem,o=(0,r["default"])(i).call(i,"i."+l),s=e.config;o.removeClass(l),o.addClass(u),t.removeClass(c),t.css("z-index","auto"),n.css("height",s.height+"px")};var d=function(e){if(!e.textSelector&&e.config.showFullScreen){var n=e.$toolbarElem,i=a["default"]('<div class="w-e-menu" data-title="全屏">\n <i class="'+u+'"></i>\n </div>');i.on("click",(function(n){var o,s=(0,r["default"])(o=a["default"](n.currentTarget)).call(o,"i");s.hasClass(u)?(i.attr("data-title","取消全屏"),t.setFullScreen(e)):(i.attr("data-title","全屏"),t.setUnFullScreen(e))})),n.append(i)}};t["default"]=d},function(e,t,n){var i=n(20),o=n(422);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,".w-e-full-screen-editor {\n position: fixed;\n width: 100%!important;\n height: 100%!important;\n left: 0;\n top: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(29));(0,o["default"])(t,"__esModule",{value:!0});var s=function(e,t){var n,i=e.isEnable?e.$textElem:(0,r["default"])(n=e.$textContainerElem).call(n,".w-e-content-mantle"),o=(0,r["default"])(i).call(i,"[id='"+t+"']"),s=o.getOffsetData().top;i.scrollTop(s)};t["default"]=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(129)),a={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},u=function(){function e(){this.tier=a,this.baseZIndex=s["default"].zIndex}return e.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},e.prototype.init=function(e){this.baseZIndex==s["default"].zIndex&&(this.baseZIndex=e.config.zIndex)},e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(70)),s=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(426)),l=n(6),c=n(7);function d(e,t){return(0,r["default"])(e).call(e,(function(e){var n=e.type,i=e.target,o=e.attributeName;return"attributes"!=n||"attributes"==n&&("contenteditable"==o||i!=t)}))}var h=function(e){function t(t){var n=e.call(this,(function(e,i){var o;if(e=d(e,i.target),(o=n.data).push.apply(o,e),t.isCompatibleMode)n.asyncSave();else if(!t.isComposing)return n.asyncSave()}))||this;return n.editor=t,n.data=[],n.asyncSave=c.EMPTY_FN,n}return a.__extends(t,e),t.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},t.prototype.emit=function(){var e;(0,s["default"])(e=this.editor.txt.eventHooks.changeEvents).call(e,(function(e){return e()}))},t.prototype.observe=function(){var t=this;e.prototype.observe.call(this,this.editor.$textElem.elems[0]);var n=this.editor.config.onchangeTimeout;this.asyncSave=l.debounce((function(){t.save()}),n),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",(function(){t.asyncSave()}))},t}(u["default"]);t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(t){e(t,n)},this.observer=new MutationObserver(this.callback),t&&(this.options=t)}return(0,o["default"])(e.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),e.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},e.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},e.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},e}();t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(428)),a=r.__importDefault(n(435)),u=r.__importDefault(n(436)),l=function(){function e(e){this.editor=e,this.content=new s["default"](e),this.scroll=new a["default"](e),this.range=new u["default"](e)}return(0,o["default"])(e.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),e.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},e.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},e.prototype.revoke=function(){this.editor.change.disconnect();var e=this.content.revoke();e&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e.prototype.restore=function(){this.editor.change.disconnect();var e=this.content.restore();e&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e}();t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(429)),a=r.__importDefault(n(433)),u=function(){function e(e){this.editor=e}return e.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new a["default"](this.editor):this.cache=new s["default"](this.editor),this.cache.observe()},e.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},e.prototype.revoke=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.revoke()},e.prototype.restore=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.restore()},e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(99)),a=r.__importDefault(n(431)),u=n(432),l=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n}return r.__extends(t,e),t.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.compile=function(e){return this.save(a["default"](e)),this},t.prototype.revoke=function(){return e.prototype.revoke.call(this,(function(e){u.revoke(e)}))},t.prototype.restore=function(){return e.prototype.restore.call(this,(function(e){u.restore(e)}))},t}(s["default"]);t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.CeilStack=void 0;var r=function(){function e(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,e=Math.abs(e),e&&(this.max=e)}return e.prototype.resetMax=function(e){e=Math.abs(e),this.reset||isNaN(e)||(this.max=e,this.reset=!0)},(0,o["default"])(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},e.prototype.outstack=function(){return this.data.shift()},e.prototype.clear=function(){return this.data.length=0,this},e}();t.CeilStack=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(27));(0,o["default"])(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0;var a=n(6);function u(e){switch(e){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function l(e){switch(e.type){case"attributes":return e.target.getAttribute(e.attributeName)||"";case"characterData":return e.target.textContent;default:return""}}function c(e){var t={};return e.addedNodes.length&&(t.add=a.toArray(e.addedNodes)),e.removedNodes.length&&(t.remove=a.toArray(e.removedNodes)),t}function d(e){var t;return t=e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target},t}t.compileType=u,t.compileValue=l,t.complieNodes=c,t.compliePosition=d;var h=["UL","OL","H1","H2","H3","H4","H5","H6"];function A(e){var t=[],n=!1,i=[];return(0,r["default"])(e).call(e,(function(e,o){var r={type:u(e.type),target:e.target,attr:e.attributeName||"",value:l(e)||"",oldValue:e.oldValue||"",nodes:c(e),position:d(e)};if(t.push(r),a.UA.isFirefox){if(n&&e.addedNodes.length&&1==e.addedNodes[0].nodeType){var A=e.addedNodes[0],f={type:"node",target:A,attr:"",value:"",oldValue:"",nodes:{add:[n]},position:{type:"parent",target:A}};-1!=(0,s["default"])(h).call(h,A.nodeName)?(f.nodes.add=a.toArray(A.childNodes),t.push(f)):3==n.nodeType?(p(A,i)&&(f.nodes.add=a.toArray(A.childNodes)),t.push(f)):-1==(0,s["default"])(h).call(h,e.target.nodeName)&&p(A,i)&&(f.nodes.add=a.toArray(A.childNodes),t.push(f))}"node"==r.type&&1==e.removedNodes.length?(n=e.removedNodes[0],i.push(n)):(n=!1,i.length=0)}})),t}function p(e,t){for(var n=0,i=t.length-1;i>0;i--){if(!e.contains(t[i]))break;n++}return n}t["default"]=A},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(94));function a(e,t){var n=e.position.target;switch(e.position.type){case"before":n.nextSibling?(n=n.nextSibling,(0,r["default"])(t).call(t,(function(t){e.target.insertBefore(t,n)}))):(0,r["default"])(t).call(t,(function(t){e.target.appendChild(t)}));break;case"after":(0,r["default"])(t).call(t,(function(t){e.target.insertBefore(t,n)}));break;default:(0,r["default"])(t).call(t,(function(e){n.appendChild(e)}));break}}function u(e){for(var t=0,n=(0,s["default"])(e.nodes);t<n.length;t++){var i=n[t],o=i[0],u=i[1];switch(o){case"add":(0,r["default"])(u).call(u,(function(t){e.target.removeChild(t)}));break;default:a(e,u);break}}}function l(e){var t=e.target;null==e.oldValue?t.removeAttribute(e.attr):t.setAttribute(e.attr,e.oldValue)}function c(e){e.target.textContent=e.oldValue}(0,o["default"])(t,"__esModule",{value:!0}),t.restore=t.revoke=void 0;var d={node:u,text:c,attr:l};function h(e){for(var t=e.length-1;t>-1;t--){var n=e[t];d[n.type](n)}}function A(e){for(var t=0,n=(0,s["default"])(e.nodes);t<n.length;t++){var i=n[t],o=i[0],u=i[1];switch(o){case"add":a(e,u);break;default:(0,r["default"])(u).call(u,(function(e){e.parentNode.removeChild(e)}));break}}}function p(e){e.target.textContent=e.value}function f(e){e.target.setAttribute(e.attr,e.value)}t.revoke=h;var g={node:A,text:p,attr:f};function m(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];g[i.type](i)}}t.restore=m},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(434),s=function(){function e(e){this.editor=e,this.data=new r.TailChain}return e.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},e.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},e.prototype.revoke=function(){var e=this.data.prev();return!!e&&(this.editor.$textElem.html(e),!0)},e.prototype.restore=function(){var e=this.data.next();return!!e&&(this.editor.$textElem.html(e),!0)},e}();t["default"]=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(91));(0,o["default"])(t,"__esModule",{value:!0}),t.TailChain=void 0;var s=function(){function e(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return e.prototype.resetMax=function(e){e=Math.abs(e),e&&(this.max=e)},(0,o["default"])(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.insertLast=function(e){var t;this.isRe&&((0,r["default"])(t=this.data).call(t,this.point+1),this.isRe=!1);this.data.push(e);while(this.max&&this.size>this.max)this.data.shift();return this.point=this.size-1,this},e.prototype.current=function(){return this.data[this.point]},e.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},e.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},e}();t.TailChain=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(99)),a=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.last=0,n.target=t.$textElem.elems[0],n}return r.__extends(t,e),t.prototype.observe=function(){var e=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",(function(){e.last=e.target.scrollTop})),this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.save=function(){return e.prototype.save.call(this,[this.last,this.target.scrollTop]),this},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,(function(e){t.target.scrollTop=e[0]}))},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,(function(e){t.target.scrollTop=e[1]}))},t}(s["default"]);t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(99)),a=r.__importDefault(n(3)),u=n(6);function l(e){return{start:[e.startContainer,e.startOffset],end:[e.endContainer,e.endOffset],root:e.commonAncestorContainer,collapsed:e.collapsed}}var c=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.lastRange=l(document.createRange()),n.root=t.$textElem.elems[0],n.updateLastRange=u.debounce((function(){n.lastRange=l(n.rangeHandle)}),t.config.onchangeTimeout),n}return r.__extends(t,e),(0,o["default"])(t.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),t.prototype.observe=function(){var e=this;function t(){var t=e.rangeHandle;(e.root===t.commonAncestorContainer||e.root.contains(t.commonAncestorContainer))&&(e.editor.isComposing||e.updateLastRange())}function n(t){"Backspace"!=t.key&&"Delete"!=t.key||e.updateLastRange()}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),a["default"](document).on("selectionchange",t),this.editor.beforeDestroy((function(){a["default"](document).off("selectionchange",t)})),e.editor.$textElem.on("keydown",n)},t.prototype.save=function(){var t=l(this.rangeHandle);return e.prototype.save.call(this,[this.lastRange,t]),this.lastRange=t,this},t.prototype.set=function(e){try{if(e){var t=this.rangeHandle;return t.setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}}catch(n){return!1}return!1},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,(function(e){t.set(e[0])}))},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,(function(e){t.set(e[1])}))},t}(s["default"]);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(29));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3));function u(e){var t,n,i=!1;function o(){if(!i){e.$textElem.hide();var o=e.zIndex.get("textContainer"),r=e.txt.html();t=a["default"]('<div class="w-e-content-mantle" style="z-index:'+o+'">\n <div class="w-e-content-preview w-e-text">'+r+"</div>\n </div>"),e.$textContainerElem.append(t);var s=e.zIndex.get("menu");n=a["default"]('<div class="w-e-menue-mantle" style="z-index:'+s+'"></div>'),e.$toolbarElem.append(n),i=!0,e.isEnable=!1}}function s(){i&&(t.remove(),n.remove(),e.$textElem.show(),i=!1,e.isEnable=!0)}return e.txt.eventHooks.changeEvents.push((function(){i&&(0,r["default"])(t).call(t,".w-e-content-preview").html(e.$textElem.html())})),{disable:o,enable:s}}n(438),t["default"]=u},function(e,t,n){var i=n(20),o=n(439);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,".w-e-content-mantle {\n width: 100%;\n height: 100%;\n overflow-y: auto;\n}\n.w-e-content-mantle .w-e-content-preview {\n width: 100%;\n min-height: 100%;\n padding: 0 10px;\n line-height: 1.5;\n}\n.w-e-content-mantle .w-e-content-preview img {\n cursor: default;\n}\n.w-e-content-mantle .w-e-content-preview img:hover {\n box-shadow: none;\n}\n.w-e-menue-mantle {\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=function(){function e(e){var t=this;this.editor=e;var n=function(){var n=document.activeElement;n===e.$textElem.elems[0]&&t.emit()};window.document.addEventListener("selectionchange",n),this.editor.beforeDestroy((function(){window.document.removeEventListener("selectionchange",n)}))}return e.prototype.emit=function(){var e,t=this.editor.config.onSelectionChange;if(t){var n=this.editor.selection;n.saveRange(),n.isSelectionEmpty()||t({text:n.getSelectionText(),html:null===(e=n.getSelectionContainerElem())||void 0===e?void 0:e.elems[0].innerHTML,selection:n})}},e}();t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(128)),s=i(n(94)),a=i(n(4));(0,o["default"])(t,"__esModule",{value:!0}),t.registerPlugin=void 0;var u=n(2),l=u.__importDefault(n(87)),c=n(6);function d(e,t,n){if(!e)throw new TypeError("name is not define");if(!t)throw new TypeError("options is not define");if(!t.intention)throw new TypeError("options.intention is not define");if(t.intention&&"function"!==typeof t.intention)throw new TypeError("options.intention is not function");n[e]&&console.warn("plugin "+e+" 已存在,已覆盖。"),n[e]=t}function h(e){var t=(0,r["default"])({},c.deepClone(l["default"].globalPluginsFunctionList),c.deepClone(e.pluginsFunctionList)),n=(0,s["default"])(t);(0,a["default"])(n).call(n,(function(t){var n=t[0],i=t[1];console.info("plugin "+n+" initializing");var o=i.intention,r=i.config;o(e,r),console.info("plugin "+n+" initialization complete")}))}t.registerPlugin=d,t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0})}])["default"]}))},"722f9":function(e,t,n){},"725e":function(e,t,n){},"733c":function(e,t,n){var i=n("63b6"),o=n("a159"),r=n("79aa"),s=n("e4ae"),a=n("f772"),u=n("294c"),l=n("c189"),c=(n("e53d").Reflect||{}).construct,d=u((function(){function e(){}return!(c((function(){}),[],e)instanceof e)})),h=!u((function(){c((function(){}))}));i(i.S+i.F*(d||h),"Reflect",{construct:function(e,t){r(e),s(t);var n=arguments.length<3?e:r(arguments[2]);if(h&&!d)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(l.apply(e,i))}var u=n.prototype,A=o(a(u)?u:Object.prototype),p=Function.apply.call(e,A,t);return a(p)?p:A}})},7457:function(e,t,n){},"782d":function(e,t,n){},"7a2c":function(e,t,n){},"7a99":function(e,t,n){},"7aad":function(e,t,n){},"7b59":function(e,t,n){},8478:function(e,t,n){},8899:function(e,t,n){},"8bf4":function(e,t,n){},"8ea9":function(e,t,n){"use strict";var i={};function o(e,t){var n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var i=n[0];return"undefined"!==typeof t[i]?t[i]:e})),n}function r(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return o(t,n)}n.r(i),n.d(i,"win32",(function(){return Ws})),n.d(i,"posix",(function(){return Ks})),n.d(i,"normalize",(function(){return zs})),n.d(i,"join",(function(){return js})),n.d(i,"relative",(function(){return Gs})),n.d(i,"dirname",(function(){return qs})),n.d(i,"basename",(function(){return Ys})),n.d(i,"extname",(function(){return Xs})),n.d(i,"sep",(function(){return Js}));var s=n("30db"),a="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function u(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,i=a;n<i.length;n++){var o=i[n];e.indexOf(o)>=0||(t+="\\"+o)}return t+="\\s]+)",new RegExp(t,"g")}var l=u();function c(e){var t=l;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function d(e,t,n,i){var o,r=e-1-i,s=n.lastIndexOf(" ",r-1)+1;t.lastIndex=s;while(o=t.exec(n)){var a=o.index||0;if(a<=r&&t.lastIndex>=r)return{word:o[0],startColumn:i+1+a,endColumn:i+1+t.lastIndex}}return null}function h(e,t,n,i){var o,r=e-1-i;t.lastIndex=0;while(o=t.exec(n)){var s=o.index||0;if(s>r)return null;if(t.lastIndex>=r)return{word:o[0],startColumn:i+1+s,endColumn:i+1+t.lastIndex}}return null}function A(e,t,n,i){t.lastIndex=0;var o=t.exec(n);if(!o)return null;var r=o[0].indexOf(" ")>=0?h(e,t,n,i):d(e,t,n,i);return t.lastIndex=0,r}var p=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)}}(),f=function(){return f=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)},g=8,m=function(){function e(e){this._values=e}return e.prototype.hasChanged=function(e){return this._values[e]},e}(),v=function(){function e(){this._values=[]}return e.prototype._read=function(e){return this._values[e]},e.prototype.get=function(e){return this._values[e]},e.prototype._write=function(e,t){this._values[e]=t},e}(),_=function(){function e(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}return e.prototype.compute=function(e,t,n){return n},e}(),y=function(){function e(e,t){void 0===t&&(t=null),this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}return e.prototype.validate=function(e){return this.defaultValue},e}(),w=function(){function e(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}return e.prototype.validate=function(e){return"undefined"===typeof e?this.defaultValue:e},e.prototype.compute=function(e,t,n){return n},e}(),b=function(e){function t(t,n,i,o){void 0===o&&(o=void 0);var r=this;return"undefined"!==typeof o&&(o.type="boolean",o.default=i),r=e.call(this,t,n,i,o)||this,r}return p(t,e),t.boolean=function(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)},t.prototype.validate=function(e){return t.boolean(e,this.defaultValue)},t}(w),C=function(e){function t(t,n,i,o,r,s){void 0===s&&(s=void 0);var a=this;return"undefined"!==typeof s&&(s.type="integer",s.default=i,s.minimum=o,s.maximum=r),a=e.call(this,t,n,i,s)||this,a.minimum=o,a.maximum=r,a}return p(t,e),t.clampedInt=function(e,t,n,i){var o;return"undefined"===typeof e?o=t:(o=parseInt(e,10),isNaN(o)&&(o=t)),o=Math.max(n,o),o=Math.min(i,o),0|o},t.prototype.validate=function(e){return t.clampedInt(e,this.defaultValue,this.minimum,this.maximum)},t}(w),S=function(e){function t(t,n,i,o,r){var s=this;return"undefined"!==typeof r&&(r.type="number",r.default=i),s=e.call(this,t,n,i,r)||this,s.validationFn=o,s}return p(t,e),t.clamp=function(e,t,n){return e<t?t:e>n?n:e},t.float=function(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;var n=parseFloat(e);return isNaN(n)?t:n},t.prototype.validate=function(e){return this.validationFn(t.float(e,this.defaultValue))},t}(w),B=function(e){function t(t,n,i,o){void 0===o&&(o=void 0);var r=this;return"undefined"!==typeof o&&(o.type="string",o.default=i),r=e.call(this,t,n,i,o)||this,r}return p(t,e),t.string=function(e,t){return"string"!==typeof e?t:e},t.prototype.validate=function(e){return t.string(e,this.defaultValue)},t}(w),E=function(e){function t(t,n,i,o,r){void 0===r&&(r=void 0);var s=this;return"undefined"!==typeof r&&(r.type="string",r.enum=o,r.default=i),s=e.call(this,t,n,i,r)||this,s._allowedValues=o,s}return p(t,e),t.stringSet=function(e,t,n){return"string"!==typeof e||-1===n.indexOf(e)?t:e},t.prototype.validate=function(e){return t.stringSet(e,this.defaultValue,this._allowedValues)},t}(w),x=function(e){function t(t,n,i,o,r,s,a){void 0===a&&(a=void 0);var u=this;return"undefined"!==typeof a&&(a.type="string",a.enum=r,a.default=o),u=e.call(this,t,n,i,a)||this,u._allowedValues=r,u._convert=s,u}return p(t,e),t.prototype.validate=function(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)},t}(_);function L(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var D,N=function(e){function t(){return e.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[r("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),r("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),r("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:r("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return p(t,e),t.prototype.validate=function(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},t.prototype.compute=function(e,t,n){return 0===n?e.accessibilitySupport:n},t}(_);function k(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}function I(e){switch(e){case"line":return D.Line;case"block":return D.Block;case"underline":return D.Underline;case"line-thin":return D.LineThin;case"block-outline":return D.BlockOutline;case"underline-thin":return D.UnderlineThin}}(function(e){e[e["Line"]=1]="Line",e[e["Block"]=2]="Block",e[e["Underline"]=3]="Underline",e[e["LineThin"]=4]="LineThin",e[e["BlockOutline"]=5]="BlockOutline",e[e["UnderlineThin"]=6]="UnderlineThin"})(D||(D={}));var F=function(e){function t(){return e.call(this,100,[53,25])||this}return p(t,e),t.prototype.compute=function(e,t,n){var i="monaco-editor";return t.get(25)&&(i+=" "+t.get(25)),e.extraEditorClassName&&(i+=" "+e.extraEditorClassName),"default"===t.get(53)?i+=" mouse-default":"copy"===t.get(53)&&(i+=" mouse-copy"),t.get(81)&&(i+=" showUnused"),i},t}(y),M=function(e){function t(){return e.call(this,24,"emptySelectionClipboard",!0,{description:r("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return p(t,e),t.prototype.compute=function(e,t,n){return n&&e.emptySelectionClipboard},t}(b),O=function(e){function t(){var t=this,n={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return t=e.call(this,27,"find",n,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:n.seedSearchStringFromSelection,description:r("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:n.autoFindInSelection,enumDescriptions:[r("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),r("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),r("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:r("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:n.globalFindClipboard,description:r("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:s["e"]},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:n.addExtraSpaceOnTop,description:r("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{seedSearchStringFromSelection:b.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":E.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:b.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:b.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},t}(_),T=function(e){function t(){return e.call(this,33,"fontLigatures",t.OFF,{anyOf:[{type:"boolean",description:r("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:r("fontFeatureSettings","Explicit font-feature-settings.")}],description:r("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return p(t,e),t.prototype.validate=function(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?t.OFF:"true"===e?t.ON:e:Boolean(e)?t.ON:t.OFF},t.OFF='"liga" off, "calt" off',t.ON='"liga" on, "calt" on',t}(_),P=function(e){function t(){return e.call(this,32)||this}return p(t,e),t.prototype.compute=function(e,t,n){return e.fontInfo},t}(y),R=function(e){function t(){return e.call(this,34,"fontSize",se.fontSize,{type:"number",minimum:6,maximum:100,default:se.fontSize,description:r("fontSize","Controls the font size in pixels.")})||this}return p(t,e),t.prototype.validate=function(e){var t=S.float(e,this.defaultValue);return 0===t?se.fontSize:S.clamp(t,6,100)},t.prototype.compute=function(e,t,n){return e.fontInfo.fontSize},t}(w),U=function(e){function t(){var t=this,n={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},i={type:"string",enum:["peek","gotoAndPeek","goto"],default:n.multiple,enumDescriptions:[r("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),r("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),r("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return t=e.call(this,39,"gotoLocation",n,{"editor.gotoLocation.multiple":{deprecationMessage:r("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":f({description:r("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleTypeDefinitions":f({description:r("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleDeclarations":f({description:r("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleImplementations":f({description:r("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleReferences":f({description:r("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},i),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:n.alternativeDefinitionCommand,description:r("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:n.alternativeTypeDefinitionCommand,description:r("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:n.alternativeDeclarationCommand,description:r("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:n.alternativeImplementationCommand,description:r("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:n.alternativeReferenceCommand,description:r("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,t}return p(t,e),t.prototype.validate=function(e){var t,n,i,o,r;if("object"!==typeof e)return this.defaultValue;var s=e;return{multiple:E.stringSet(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=s.multipleDefinitions,null!==t&&void 0!==t?t:E.stringSet(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"])),multipleTypeDefinitions:(n=s.multipleTypeDefinitions,null!==n&&void 0!==n?n:E.stringSet(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"])),multipleDeclarations:(i=s.multipleDeclarations,null!==i&&void 0!==i?i:E.stringSet(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"])),multipleImplementations:(o=s.multipleImplementations,null!==o&&void 0!==o?o:E.stringSet(s.multipleImplementations,"peek",["peek","gotoAndPeek","goto"])),multipleReferences:(r=s.multipleReferences,null!==r&&void 0!==r?r:E.stringSet(s.multipleReferences,"peek",["peek","gotoAndPeek","goto"])),alternativeDefinitionCommand:B.string(s.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:B.string(s.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:B.string(s.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:B.string(s.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:B.string(s.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},t}(_),H=function(e){function t(){var t=this,n={enabled:!0,delay:300,sticky:!0};return t=e.call(this,42,"hover",n,{"editor.hover.enabled":{type:"boolean",default:n.enabled,description:r("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:n.delay,description:r("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:n.sticky,description:r("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:b.boolean(t.enabled,this.defaultValue.enabled),delay:C.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:b.boolean(t.sticky,this.defaultValue.sticky)}},t}(_),Q=function(e){function t(){return e.call(this,103,[38,46,29,52,74,48])||this}return p(t,e),t.prototype.compute=function(e,n,i){return t.computeLayout(n,{outerWidth:e.outerWidth,outerHeight:e.outerHeight,lineHeight:e.fontInfo.lineHeight,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})},t.computeLayout=function(e,t){var n,i=0|t.outerWidth,o=0|t.outerHeight,r=0|t.lineHeight,s=0|t.lineNumbersDigitCount,a=t.typicalHalfwidthCharacterWidth,u=t.maxDigitWidth,l=t.pixelRatio,c=e.get(38),d=0!==e.get(48).renderType,h=0|e.get(49),A=e.get(52),p=A.enabled,f=A.side,m=A.renderCharacters,v=l>=2?Math.round(2*A.scale):A.scale,_=0|A.maxColumn,y=e.get(74),w=0|y.verticalScrollbarSize,b=y.verticalHasArrows,S=0|y.arrowSize,B=0|y.horizontalScrollbarSize,E=e.get(46),x=e.get(29);if("string"===typeof E&&/^\d+(\.\d+)?ch$/.test(E)){var L=parseFloat(E.substr(0,E.length-2));n=C.clampedInt(L*a,0,0,1e3)}else n=C.clampedInt(E,0,0,1e3);x&&(n+=16);var D=0;if(d){var N=Math.max(s,h);D=Math.round(N*u)}var k=0;c&&(k=r);var I,F,M,O,T=0,P=T+k,R=P+D,U=R+n,H=i-k-D-n;if(p){var Q=v/l;I=m?1:2,M=Math.max(0,Math.floor((H-w-2)*Q/(a+Q)))+g;var V=M/Q;V>_&&(M=Math.floor(_*Q)),O=H-M,"left"===f?(F=0,T+=M,P+=M,R+=M,U+=M):F=i-M-w}else F=0,M=0,I=0,O=H;var W=Math.max(1,Math.floor((O-w-2)/a)),K=b?S:0;return{width:i,height:o,glyphMarginLeft:T,glyphMarginWidth:k,glyphMarginHeight:o,lineNumbersLeft:P,lineNumbersWidth:D,lineNumbersHeight:o,decorationsLeft:R,decorationsWidth:n,decorationsHeight:o,contentLeft:U,contentWidth:O,contentHeight:o,renderMinimap:I,minimapLeft:F,minimapWidth:M,viewportColumn:W,verticalScrollbarWidth:w,horizontalScrollbarHeight:B,overviewRuler:{top:K,width:w,height:o-2*K,right:0}}},t}(y),V=function(e){function t(){var t=this,n={enabled:!0};return t=e.call(this,45,"lightbulb",n,{"editor.lightbulb.enabled":{type:"boolean",default:n.enabled,description:r("codeActions","Enables the code action lightbulb in the editor.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:b.boolean(t.enabled,this.defaultValue.enabled)}},t}(_),W=function(e){function t(){return e.call(this,47,"lineHeight",se.lineHeight,0,150,{description:r("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return p(t,e),t.prototype.compute=function(e,t,n){return e.fontInfo.lineHeight},t}(C),K=function(e){function t(){var t=this,n={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return t=e.call(this,52,"minimap",n,{"editor.minimap.enabled":{type:"boolean",default:n.enabled,description:r("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:n.side,description:r("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:n.showSlider,description:r("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:n.scale,minimum:1,maximum:3,description:r("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:n.renderCharacters,description:r("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:n.maxColumn,description:r("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:b.boolean(t.enabled,this.defaultValue.enabled),side:E.stringSet(t.side,this.defaultValue.side,["right","left"]),showSlider:E.stringSet(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:b.boolean(t.renderCharacters,this.defaultValue.renderCharacters),scale:C.clampedInt(t.scale,1,1,3),maxColumn:C.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}},t}(_);function z(e){return"ctrlCmd"===e?s["e"]?"metaKey":"ctrlKey":"altKey"}var j=function(e){function t(){var t=this,n={enabled:!0,cycle:!1};return t=e.call(this,62,"parameterHints",n,{"editor.parameterHints.enabled":{type:"boolean",default:n.enabled,description:r("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:n.cycle,description:r("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:b.boolean(t.enabled,this.defaultValue.enabled),cycle:b.boolean(t.cycle,this.defaultValue.cycle)}},t}(_),G=function(e){function t(){return e.call(this,101)||this}return p(t,e),t.prototype.compute=function(e,t,n){return e.pixelRatio},t}(y),q=function(e){function t(){var t=this,n={other:!0,comments:!1,strings:!1};return t=e.call(this,63,"quickSuggestions",n,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:n.strings,description:r("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:n.comments,description:r("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:n.other,description:r("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:n,description:r("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,t.defaultValue=n,t}return p(t,e),t.prototype.validate=function(e){if("boolean"===typeof e)return e;if("object"===typeof e){var t=e,n={other:b.boolean(t.other,this.defaultValue.other),comments:b.boolean(t.comments,this.defaultValue.comments),strings:b.boolean(t.strings,this.defaultValue.strings)};return!!(n.other&&n.comments&&n.strings)||!!(n.other||n.comments||n.strings)&&n}return this.defaultValue},t}(_),Y=function(e){function t(){return e.call(this,48,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[r("lineNumbers.off","Line numbers are not rendered."),r("lineNumbers.on","Line numbers are rendered as absolute number."),r("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),r("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:r("lineNumbers","Controls the display of line numbers.")})||this}return p(t,e),t.prototype.validate=function(e){var t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}},t}(_),X=function(e){function t(){var t=this,n=[];return t=e.call(this,73,"rulers",n,{type:"array",items:{type:"number"},default:n,description:r("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this,t}return p(t,e),t.prototype.validate=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];t.push(C.clampedInt(o,0,0,1e4))}return t.sort((function(e,t){return e-t})),t}return this.defaultValue},t}(w);function J(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}var Z=function(e){function t(){return e.call(this,74,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})||this}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e,n=C.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=C.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:C.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:J(t.vertical,this.defaultValue.vertical),horizontal:J(t.horizontal,this.defaultValue.horizontal),useShadows:b.boolean(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:b.boolean(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:b.boolean(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:b.boolean(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:b.boolean(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:C.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:i,verticalSliderSize:C.clampedInt(t.verticalSliderSize,i,0,1e3)}},t}(_),$=function(e){function t(){var t=this,n={insertMode:"insert",insertHighlight:!1,filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0};return t=e.call(this,85,"suggest",n,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[r("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),r("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:n.insertMode,description:r("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.insertHighlight":{type:"boolean",default:n.insertHighlight,description:r("suggest.insertHighlight","Controls whether unexpected text modifications while accepting completions should be highlighted, e.g `insertMode` is `replace` but the completion only supports `insert`.")},"editor.suggest.filterGraceful":{type:"boolean",default:n.filterGraceful,description:r("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:n.localityBonus,description:r("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:n.shareSuggestSelections,markdownDescription:r("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:n.snippetsPreventQuickSuggestions,description:r("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:n.showIcons,description:r("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:n.maxVisibleSuggestions,minimum:1,maximum:15,description:r("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:r("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{insertMode:E.stringSet(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:b.boolean(t.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:b.boolean(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:b.boolean(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:b.boolean(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:b.boolean(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:b.boolean(t.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:C.clampedInt(t.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:b.boolean(t.showMethods,this.defaultValue.showMethods),showFunctions:b.boolean(t.showFunctions,this.defaultValue.showFunctions),showConstructors:b.boolean(t.showConstructors,this.defaultValue.showConstructors),showFields:b.boolean(t.showFields,this.defaultValue.showFields),showVariables:b.boolean(t.showVariables,this.defaultValue.showVariables),showClasses:b.boolean(t.showClasses,this.defaultValue.showClasses),showStructs:b.boolean(t.showStructs,this.defaultValue.showStructs),showInterfaces:b.boolean(t.showInterfaces,this.defaultValue.showInterfaces),showModules:b.boolean(t.showModules,this.defaultValue.showModules),showProperties:b.boolean(t.showProperties,this.defaultValue.showProperties),showEvents:b.boolean(t.showEvents,this.defaultValue.showEvents),showOperators:b.boolean(t.showOperators,this.defaultValue.showOperators),showUnits:b.boolean(t.showUnits,this.defaultValue.showUnits),showValues:b.boolean(t.showValues,this.defaultValue.showValues),showConstants:b.boolean(t.showConstants,this.defaultValue.showConstants),showEnums:b.boolean(t.showEnums,this.defaultValue.showEnums),showEnumMembers:b.boolean(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:b.boolean(t.showKeywords,this.defaultValue.showKeywords),showWords:b.boolean(t.showWords,this.defaultValue.showWords),showColors:b.boolean(t.showColors,this.defaultValue.showColors),showFiles:b.boolean(t.showFiles,this.defaultValue.showFiles),showReferences:b.boolean(t.showReferences,this.defaultValue.showReferences),showFolders:b.boolean(t.showFolders,this.defaultValue.showFolders),showTypeParameters:b.boolean(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:b.boolean(t.showSnippets,this.defaultValue.showSnippets)}},t}(_),ee=function(e){function t(){return e.call(this,102,[65])||this}return p(t,e),t.prototype.compute=function(e,t,n){var i=t.get(65);return!!i||e.tabFocusMode},t}(y);function te(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}var ne=function(e){function t(){return e.call(this,104,[93,97,98,103,2])||this}return p(t,e),t.prototype.compute=function(e,t,n){var i=t.get(93),o=t.get(97),r=t.get(98),s=t.get(103),a=t.get(2),u=null;return u=2===a?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:r&&e.isDominatedByLongLines?{isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,s.viewportColumn)}:"on"===i?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,s.viewportColumn)}:"bounded"===i?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,s.viewportColumn),o)}:"wordWrapColumn"===i?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:o}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1},{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:u.isWordWrapMinified,isViewportWrapping:u.isViewportWrapping,wrappingColumn:u.wrappingColumn}},t}(y),ie="Consolas, 'Courier New', monospace",oe="Menlo, Monaco, 'Courier New', monospace",re="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",se={fontFamily:s["e"]?oe:s["d"]?re:ie,fontWeight:"normal",fontSize:s["e"]?12:14,lineHeight:0,letterSpacing:0},ae={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},ue=[];function le(e){return ue[e.id]=e,e}var ce={acceptSuggestionOnCommitCharacter:le(new b(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:r("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:le(new E(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",r("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:r("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:le(new N),accessibilityPageSize:le(new C(3,"accessibilityPageSize",10,1,1073741824,{description:r("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:le(new B(4,"ariaLabel",r("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:le(new E(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",r("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),r("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:r("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:le(new E(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",r("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:r("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:le(new E(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",r("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),r("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:r("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:le(new x(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],L,{enumDescriptions:[r("editor.autoIndent.none","The editor will not insert indentation automatically."),r("editor.autoIndent.keep","The editor will keep the current line's indentation."),r("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),r("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),r("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:r("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:le(new b(9,"automaticLayout",!1)),autoSurround:le(new E(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[r("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),r("editor.autoSurround.quotes","Surround with quotes but not brackets."),r("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:r("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:le(new b(11,"codeLens",!0,{description:r("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:le(new b(12,"colorDecorators",!0,{description:r("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),contextmenu:le(new b(13,"contextmenu",!0)),copyWithSyntaxHighlighting:le(new b(14,"copyWithSyntaxHighlighting",!0,{description:r("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:le(new x(15,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],k,{description:r("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:le(new b(16,"cursorSmoothCaretAnimation",!1,{description:r("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:le(new x(17,"cursorStyle",D.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],I,{description:r("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:le(new C(18,"cursorSurroundingLines",0,0,1073741824,{description:r("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:le(new E(19,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[r("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),r("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:r("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:le(new C(20,"cursorWidth",0,0,1073741824,{markdownDescription:r("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:le(new b(21,"disableLayerHinting",!1)),disableMonospaceOptimizations:le(new b(22,"disableMonospaceOptimizations",!1)),dragAndDrop:le(new b(23,"dragAndDrop",!0,{description:r("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:le(new M),extraEditorClassName:le(new B(25,"extraEditorClassName","")),fastScrollSensitivity:le(new S(26,"fastScrollSensitivity",5,(function(e){return e<=0?5:e}),{markdownDescription:r("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:le(new O),fixedOverflowWidgets:le(new b(28,"fixedOverflowWidgets",!1)),folding:le(new b(29,"folding",!0,{description:r("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:le(new E(30,"foldingStrategy","auto",["auto","indentation"],{markdownDescription:r("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")})),fontFamily:le(new B(31,"fontFamily",se.fontFamily,{description:r("fontFamily","Controls the font family.")})),fontInfo:le(new P),fontLigatures2:le(new T),fontSize:le(new R),fontWeight:le(new B(35,"fontWeight",se.fontWeight,{enum:["normal","bold","100","200","300","400","500","600","700","800","900"],description:r("fontWeight","Controls the font weight.")})),formatOnPaste:le(new b(36,"formatOnPaste",!1,{description:r("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:le(new b(37,"formatOnType",!1,{description:r("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:le(new b(38,"glyphMargin",!0,{description:r("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:le(new U),hideCursorInOverviewRuler:le(new b(40,"hideCursorInOverviewRuler",!1,{description:r("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:le(new b(41,"highlightActiveIndentGuide",!0,{description:r("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:le(new H),inDiffEditor:le(new b(43,"inDiffEditor",!1)),letterSpacing:le(new S(44,"letterSpacing",se.letterSpacing,(function(e){return S.clamp(e,-5,20)}),{description:r("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:le(new V),lineDecorationsWidth:le(new w(46,"lineDecorationsWidth",10)),lineHeight:le(new W),lineNumbers:le(new Y),lineNumbersMinChars:le(new C(49,"lineNumbersMinChars",5,1,300)),links:le(new b(50,"links",!0,{description:r("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:le(new E(51,"matchBrackets","always",["always","near","never"],{description:r("matchBrackets","Highlight matching brackets.")})),minimap:le(new K),mouseStyle:le(new E(53,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:le(new S(54,"mouseWheelScrollSensitivity",1,(function(e){return 0===e?1:e}),{markdownDescription:r("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:le(new b(55,"mouseWheelZoom",!1,{markdownDescription:r("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:le(new b(56,"multiCursorMergeOverlapping",!0,{description:r("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:le(new x(57,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],z,{markdownEnumDescriptions:[r("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),r("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:r({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:le(new E(58,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[r("multiCursorPaste.spread","Each cursor pastes a single line of the text."),r("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:r("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:le(new b(59,"occurrencesHighlight",!0,{description:r("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:le(new b(60,"overviewRulerBorder",!0,{description:r("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:le(new C(61,"overviewRulerLanes",3,0,3)),parameterHints:le(new j),quickSuggestions:le(new q),quickSuggestionsDelay:le(new C(64,"quickSuggestionsDelay",10,0,1073741824,{description:r("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:le(new b(65,"readOnly",!1)),renderControlCharacters:le(new b(66,"renderControlCharacters",!1,{description:r("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:le(new b(67,"renderIndentGuides",!0,{description:r("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:le(new b(68,"renderFinalNewline",!0,{description:r("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:le(new E(69,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",r("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:r("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderWhitespace:le(new E(70,"renderWhitespace","none",["none","boundary","selection","all"],{enumDescriptions:["",r("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),r("renderWhitespace.selection","Render whitespace characters only on selected text."),""],description:r("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:le(new C(71,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:le(new b(72,"roundedSelection",!0,{description:r("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:le(new X),scrollbar:le(new Z),scrollBeyondLastColumn:le(new C(75,"scrollBeyondLastColumn",5,0,1073741824,{description:r("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:le(new b(76,"scrollBeyondLastLine",!0,{description:r("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:le(new b(77,"selectionClipboard",!0,{description:r("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:s["d"]})),selectionHighlight:le(new b(78,"selectionHighlight",!0,{description:r("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:le(new b(79,"selectOnLineNumbers",!0)),showFoldingControls:le(new E(80,"showFoldingControls","mouseover",["always","mouseover"],{description:r("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:le(new b(81,"showUnused",!0,{description:r("showUnused","Controls fading out of unused code.")})),snippetSuggestions:le(new E(82,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[r("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),r("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),r("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),r("snippetSuggestions.none","Do not show snippet suggestions.")],description:r("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:le(new b(83,"smoothScrolling",!1,{description:r("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:le(new C(84,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:le(new $),suggestFontSize:le(new C(86,"suggestFontSize",0,0,1e3,{markdownDescription:r("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:le(new C(87,"suggestLineHeight",0,0,1e3,{markdownDescription:r("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:le(new b(88,"suggestOnTriggerCharacters",!0,{description:r("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:le(new E(89,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[r("suggestSelection.first","Always select the first suggestion."),r("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),r("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:r("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:le(new E(90,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[r("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),r("tabCompletion.off","Disable tab completions."),r("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:r("tabCompletion","Enables tab completions.")})),useTabStops:le(new b(91,"useTabStops",!0,{description:r("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:le(new B(92,"wordSeparators",a,{description:r("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:le(new E(93,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[r("wordWrap.off","Lines will never wrap."),r("wordWrap.on","Lines will wrap at the viewport width."),r({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),r({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:r({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:le(new B(94,"wordWrapBreakAfterCharacters"," \t})]?|/&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:le(new B(95,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥+")),wordWrapBreakObtrusiveCharacters:le(new B(96,"wordWrapBreakObtrusiveCharacters",".")),wordWrapColumn:le(new C(97,"wordWrapColumn",80,1,1073741824,{markdownDescription:r({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:le(new b(98,"wordWrapMinified",!0)),wrappingIndent:le(new x(99,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],te,{enumDescriptions:[r("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),r("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),r("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),r("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:r("wrappingIndent","Controls the indentation of wrapped lines.")})),editorClassName:le(new F),pixelRatio:le(new G),tabFocusMode:le(new ee),layoutInfo:le(new Q),wrappingInfo:le(new ne)},de=(n("5110"),function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}return e.prototype.emit=function(e){this.listeners.forEach((function(t){t(e)}))},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}()),he=new de;function Ae(e){me(e)||he.onUnexpectedError(e)}function pe(e){me(e)||he.onUnexpectedExternalError(e)}function fe(e){if(e instanceof Error){var t=e.name,n=e.message,i=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:i}}return e}var ge="Canceled";function me(e){return e instanceof Error&&e.name===ge&&e.message===ge}function ve(){var e=new Error(ge);return e.name=e.message,e}function _e(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function ye(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}function we(e){var t,n=this,i=!1;return function(){return i||(i=!0,t=e.apply(n,arguments)),t}}var be=!1,Ce="__is_disposable_tracked__";function Se(e){if(be&&e&&e!==Ie.None)try{e[Ce]=!0}catch(t){}}function Be(e){if(!be)return e;var t=new Error("Potentially leaked disposable").stack;return setTimeout((function(){e[Ce]||console.log(t)}),3e3),e}function Ee(e){return"function"===typeof e.dispose&&0===e.dispose.length}function xe(e){return Array.isArray(e)?(e.forEach((function(e){e&&(Se(e),e.dispose())})),[]):e?(Se(e),e.dispose(),e):void 0}function Le(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(Se),Be({dispose:function(){return xe(e)}})}function De(e){var t=Be({dispose:function(){Se(t),e()}});return t}var Ne,ke=function(){function e(){this._toDispose=new Set,this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed||(Se(this),this._isDisposed=!0,this.clear())},e.prototype.clear=function(){this._toDispose.forEach((function(e){return e.dispose()})),this._toDispose.clear()},e.prototype.add=function(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return Se(e),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e},e}(),Ie=function(){function e(){this._store=new ke,Be(this)}return e.prototype.dispose=function(){Se(this),this._store.dispose()},e.prototype._register=function(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)},e.None=Object.freeze({dispose:function(){}}),e}(),Fe=function(){function e(){this._isDisposed=!1,Be(this)}return Object.defineProperty(e.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(e){this._isDisposed||e===this._value||(this._value&&this._value.dispose(),e&&Se(e),this._value=e)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.value=void 0},e.prototype.dispose=function(){this._isDisposed=!0,Se(this),this._value&&this._value.dispose(),this._value=void 0},e}(),Me=function(){function e(e){this.object=e}return e.prototype.dispose=function(){},e}(),Oe=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)}}(),Te={done:!0,value:void 0};(function(e){var t={next:function(){return Te}};function n(){return t}function i(e){var t=!1;return{next:function(){return t?Te:(t=!0,{done:!1,value:e})}}}function o(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.length),{next:function(){return t>=n?Te:{done:!1,value:e[t++]}}}}function r(e){return{next:function(){var t=e.next();return t.done?Te:{done:!1,value:t.value}}}}function s(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()}function a(e,t){return{next:function(){var n=e.next();return n.done?Te:{done:!1,value:t(n.value)}}}}function u(e,t){return{next:function(){while(1){var n=e.next();if(n.done)return Te;if(t(n.value))return{done:!1,value:n.value}}}}}function l(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)}function c(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY);var n=[];if(0===t)return n;for(var i=0,o=e.next();!o.done;o=e.next())if(n.push(o.value),++i>=t)break;return n}function d(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0;return{next:function(){if(n>=e.length)return Te;var t=e[n],i=t.next();return i.done?(n++,this.next()):i}}}function h(e){return new Pe(e)}e.empty=n,e.single=i,e.fromArray=o,e.fromNativeIterator=r,e.from=s,e.map=a,e.filter=u,e.forEach=l,e.collect=c,e.concat=d,e.chain=h})(Ne||(Ne={}));var Pe=function(){function e(e){this.it=e}return e.prototype.next=function(){return this.it.next()},e}();function Re(e){return Array.isArray(e)?Ne.fromArray(e):e||Ne.empty()}var Ue,He=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.first=function(){return this.index=this.start,this.current()},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}(),Qe=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 Oe(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}(He),Ve=function(){function e(e,t){this.iterator=e,this.fn=t}return e.prototype.next=function(){return this.fn(this.iterator.next())},e}(),We=function(){function e(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}return e.Undefined=new e(void 0),e}(),Ke=function(){function e(){this._first=We.Undefined,this._last=We.Undefined,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return this._first===We.Undefined},e.prototype.clear=function(){this._first=We.Undefined,this._last=We.Undefined,this._size=0},e.prototype.unshift=function(e){return this._insert(e,!1)},e.prototype.push=function(e){return this._insert(e,!0)},e.prototype._insert=function(e,t){var n=this,i=new We(e);if(this._first===We.Undefined)this._first=i,this._last=i;else if(t){var o=this._last;this._last=i,i.prev=o,o.next=i}else{var r=this._first;this._first=i,i.next=r,r.prev=i}this._size+=1;var s=!1;return function(){s||(s=!0,n._remove(i))}},e.prototype.shift=function(){if(this._first!==We.Undefined){var e=this._first.element;return this._remove(this._first),e}},e.prototype.pop=function(){if(this._last!==We.Undefined){var e=this._last.element;return this._remove(this._last),e}},e.prototype._remove=function(e){if(e.prev!==We.Undefined&&e.next!==We.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===We.Undefined&&e.next===We.Undefined?(this._first=We.Undefined,this._last=We.Undefined):e.next===We.Undefined?(this._last=this._last.prev,this._last.next=We.Undefined):e.prev===We.Undefined&&(this._first=this._first.next,this._first.prev=We.Undefined);this._size-=1},e.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===We.Undefined?Te:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t!==We.Undefined;t=t.next)e.push(t.element);return e},e}(),ze=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(e){function t(e){return function(t,n,i){void 0===n&&(n=null);var o,r=!1;return o=e((function(e){if(!r)return o?o.dispose():r=!0,t.call(n,e)}),null,i),r&&o.dispose(),o}}function n(e,t){return u((function(n,i,o){return void 0===i&&(i=null),e((function(e){return n.call(i,t(e))}),null,o)}))}function i(e,t){return u((function(n,i,o){return void 0===i&&(i=null),e((function(e){t(e),n.call(i,e)}),null,o)}))}function o(e,t){return u((function(n,i,o){return void 0===i&&(i=null),e((function(e){return t(e)&&n.call(i,e)}),null,o)}))}function r(e){return e}function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,i){return void 0===n&&(n=null),Le.apply(void 0,e.map((function(e){return e((function(e){return t.call(n,e)}),null,i)})))}}function a(e,t,i){var o=i;return n(e,(function(e){return o=t(o,e),o}))}function u(e){var t,n=new Ye({onFirstListenerAdd:function(){t=e(n.fire,n)},onLastListenerRemove:function(){t.dispose()}});return n.event}function l(e,t,n,i,o){var r;void 0===n&&(n=100),void 0===i&&(i=!1);var s=void 0,a=void 0,u=0,l=new Ye({leakWarningThreshold:o,onFirstListenerAdd:function(){r=e((function(e){u++,s=t(s,e),i&&!a&&l.fire(s),clearTimeout(a),a=setTimeout((function(){var e=s;s=void 0,a=void 0,(!i||u>1)&&l.fire(e),u=0}),n)}))},onLastListenerRemove:function(){r.dispose()}});return l.event}function c(e){var i=(new Date).getTime();return n(t(e),(function(e){return(new Date).getTime()-i}))}function d(e){var t,n=!0;return o(e,(function(e){var i=n||e!==t;return n=!1,t=e,i}))}function h(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]);var i=n.slice(),o=e((function(e){i?i.push(e):s.fire(e)})),r=function(){i&&i.forEach((function(e){return s.fire(e)})),i=null},s=new Ye({onFirstListenerAdd:function(){o||(o=e((function(e){return s.fire(e)})))},onFirstListenerDidAdd:function(){i&&(t?setTimeout(r):r())},onLastListenerRemove:function(){o&&o.dispose(),o=null}});return s.event}e.None=function(){return Ie.None},e.once=t,e.map=n,e.forEach=i,e.filter=o,e.signal=r,e.any=s,e.reduce=a,e.snapshot=u,e.debounce=l,e.stopwatch=c,e.latch=d,e.buffer=h;var A=function(){function e(e){this.event=e}return e.prototype.map=function(t){return new e(n(this.event,t))},e.prototype.forEach=function(t){return new e(i(this.event,t))},e.prototype.filter=function(t){return new e(o(this.event,t))},e.prototype.reduce=function(t,n){return new e(a(this.event,t,n))},e.prototype.latch=function(){return new e(d(this.event))},e.prototype.debounce=function(t,n,i,o){return void 0===n&&(n=100),void 0===i&&(i=!1),new e(l(this.event,t,n,i,o))},e.prototype.on=function(e,t,n){return this.event(e,t,n)},e.prototype.once=function(e,n,i){return t(this.event)(e,n,i)},e}();function p(e){return new A(e)}function f(e,t,n){void 0===n&&(n=function(e){return e});var i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.fire(n.apply(void 0,e))},o=function(){return e.on(t,i)},r=function(){return e.removeListener(t,i)},s=new Ye({onFirstListenerAdd:o,onLastListenerRemove:r});return s.event}function g(e,t,n){void 0===n&&(n=function(e){return e});var i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.fire(n.apply(void 0,e))},o=function(){return e.addEventListener(t,i)},r=function(){return e.removeEventListener(t,i)},s=new Ye({onFirstListenerAdd:o,onLastListenerRemove:r});return s.event}function m(e){var t=new Ye,n=!1;return e.then(void 0,(function(){return null})).then((function(){n?t.fire(void 0):setTimeout((function(){return t.fire(void 0)}),0)})),n=!0,t.event}function v(e){return new Promise((function(n){return t(e)(n)}))}e.chain=p,e.fromNodeEventEmitter=f,e.fromDOMEventEmitter=g,e.fromPromise=m,e.toPromise=v})(Ue||(Ue={}));var je,Ge=-1,qe=function(){function e(e,t){void 0===t&&(t=Math.random().toString(18).slice(2,5)),this.customThreshold=e,this.name=t,this._warnCountdown=0}return e.prototype.dispose=function(){this._stacks&&this._stacks.clear()},e.prototype.check=function(e){var t=this,n=Ge;if("number"===typeof this.customThreshold&&(n=this.customThreshold),!(n<=0||e<n)){this._stacks||(this._stacks=new Map);var i=(new Error).stack.split("\n").slice(3).join("\n"),o=this._stacks.get(i)||0;if(this._stacks.set(i,o+1),this._warnCountdown-=1,this._warnCountdown<=0){var r;this._warnCountdown=.5*n;var s=0;this._stacks.forEach((function(e,t){(!r||s<e)&&(r=t,s=e)})),console.warn("["+this.name+"] potential listener LEAK detected, having "+e+" listeners already. MOST frequent listener ("+s+"):"),console.warn(r)}return function(){var e=t._stacks.get(i)||0;t._stacks.set(i,e-1)}}},e}(),Ye=function(){function e(e){this._disposed=!1,this._options=e,this._leakageMon=Ge>0?new qe(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,i,o){t._listeners||(t._listeners=new Ke);var r=t._listeners.isEmpty();r&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s,a,u=t._listeners.push(i?[n,i]:n);return r&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,i),t._leakageMon&&(s=t._leakageMon.check(t._listeners.size)),a={dispose:function(){if(s&&s(),a.dispose=e._noop,!t._disposed&&(u(),t._options&&t._options.onLastListenerRemove)){var n=t._listeners&&!t._listeners.isEmpty();n||t._options.onLastListenerRemove(t)}}},o instanceof ke?o.add(a):Array.isArray(o)&&o.push(a),a}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Ke);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);while(this._deliveryQueue.size>0){var i=this._deliveryQueue.shift(),o=i[0],r=i[1];try{"function"===typeof o?o.call(void 0,r):o[0].call(o[1],r)}catch(n){Ae(n)}}}},e.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}(),Xe=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaused=0,n._eventQueue=new Ke,n._mergeFn=t&&t.merge,n}return ze(t,e),t.prototype.pause=function(){this._isPaused++},t.prototype.resume=function(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){var t=this._eventQueue.toArray();this._eventQueue.clear(),e.prototype.fire.call(this,this._mergeFn(t))}else while(!this._isPaused&&0!==this._eventQueue.size)e.prototype.fire.call(this,this._eventQueue.shift())},t.prototype.fire=function(t){this._listeners&&(0!==this._isPaused?this._eventQueue.push(t):e.prototype.fire.call(this,t))},t}(Ye),Je=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new Ye({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var i=function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)};return De(we(i))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach((function(t){return e.hook(t)}))},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach((function(t){return e.unhook(t)}))},e.prototype.hook=function(e){var t=this;e.listener=e.event((function(e){return t.emitter.fire(e)}))},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}(),Ze=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,i,o){return e((function(e){var o=t.buffers[t.buffers.length-1];o?o.push((function(){return n.call(i,e)})):n.call(i,e)}),void 0,o)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach((function(e){return e()})),n},e}(),$e=function(){function e(){var e=this;this.listening=!1,this.inputEvent=Ue.None,this.inputEventListener=Ie.None,this.emitter=new Ye({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},e}(),et=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 nt||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ue.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:et})})(je||(je={}));var tt,nt=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?et:(this._emitter||(this._emitter=new Ye),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),it=function(){function e(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new nt),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof nt&&this._token.cancel():this._token=je.Cancelled},e.prototype.dispose=function(e){void 0===e&&(e=!1),e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof nt&&this._token.dispose():this._token=je.None},e}(),ot=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),rt=new ot,st=new ot,at=new ot;function ut(e,t){var n=(65535&t)<<16>>>0;return(e|n)>>>0}function lt(e,t){if(0===e)return null;var n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new At(0!==i?[ct(n,t),ct(i,t)]:[ct(n,t)])}function ct(e,t){var n=!!(2048&e),i=!!(256&e),o=2===t?i:n,r=!!(1024&e),s=!!(512&e),a=2===t?n:i,u=255&e;return new ht(o,r,s,a,u)}(function(){function e(e,t,n,i){void 0===n&&(n=t),void 0===i&&(i=n),rt.define(e,t),st.define(e,n),at.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")})(),function(e){function t(e){return rt.keyCodeToStr(e)}function n(e){return rt.strToKeyCode(e)}function i(e){return st.keyCodeToStr(e)}function o(e){return at.keyCodeToStr(e)}function r(e){return st.strToKeyCode(e)||at.strToKeyCode(e)}e.toString=t,e.fromString=n,e.toUserSettingsUS=i,e.toUserSettingsGeneral=o,e.fromUserSettings=r}(tt||(tt={}));var dt,ht=function(){function e(e,t,n,i,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=o}return e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new At([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}(),At=function(){function e(e){if(0===e.length)throw _e("parts");this.parts=e}return e.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t<this.parts.length;t++)if(!this.parts[t].equals(e.parts[t]))return!1;return!0},e}(),pt=function(){function e(e,t,n,i,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=o,this.keyAriaLabel=r}return e}(),ft=function(){function e(){}return e}(),gt=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)}}(),mt=/^\w[\w\d+.-]*$/,vt=/^\//,_t=/^\/\//;function yt(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!mt.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!vt.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(_t.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function wt(e,t){return e||t?e:"file"}function bt(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==St&&(t=St+t):t=St;break}return t}var Ct="",St="/",Bt=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Et=function(){function e(e,t,n,i,o,r){void 0===r&&(r=!1),"object"===typeof e?(this.scheme=e.scheme||Ct,this.authority=e.authority||Ct,this.path=e.path||Ct,this.query=e.query||Ct,this.fragment=e.fragment||Ct):(this.scheme=wt(e,r),this.authority=t||Ct,this.path=bt(this.scheme,n||Ct),this.query=i||Ct,this.fragment=o||Ct,yt(this,r))}return e.isUri=function(t){return t instanceof e||!!t&&("string"===typeof t.authority&&"string"===typeof t.fragment&&"string"===typeof t.path&&"string"===typeof t.query&&"string"===typeof t.scheme&&"function"===typeof t.fsPath&&"function"===typeof t.with&&"function"===typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return It(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,o=e.query,r=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=Ct),void 0===n?n=this.authority:null===n&&(n=Ct),void 0===i?i=this.path:null===i&&(i=Ct),void 0===o?o=this.query:null===o&&(o=Ct),void 0===r?r=this.fragment:null===r&&(r=Ct),t===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&r===this.fragment?this:new Lt(t,n,i,o,r)},e.parse=function(e,t){void 0===t&&(t=!1);var n=Bt.exec(e);return n?new Lt(n[2]||Ct,Tt(n[4]||Ct),Tt(n[5]||Ct),Tt(n[7]||Ct),Tt(n[9]||Ct),t):new Lt(Ct,Ct,Ct,Ct,Ct)},e.file=function(e){var t=Ct;if(s["h"]&&(e=e.replace(/\\/g,St)),e[0]===St&&e[1]===St){var n=e.indexOf(St,2);-1===n?(t=e.substring(2),e=St):(t=e.substring(2,n),e=e.substring(n)||St)}return new Lt("file",t,e,Ct,Ct)},e.from=function(e){return new Lt(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),Ft(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new Lt(t);return n._formatted=t.external,n._fsPath=t._sep===xt?t.fsPath:null,n}return t},e}(),xt=s["h"]?1:void 0,Lt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return gt(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=It(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?Ft(this,!0):(this._formatted||(this._formatted=Ft(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=xt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(Et),Dt=(dt={},dt[58]="%3A",dt[47]="%2F",dt[63]="%3F",dt[35]="%23",dt[91]="%5B",dt[93]="%5D",dt[64]="%40",dt[33]="%21",dt[36]="%24",dt[38]="%26",dt[39]="%27",dt[40]="%28",dt[41]="%29",dt[42]="%2A",dt[43]="%2B",dt[44]="%2C",dt[59]="%3B",dt[61]="%3D",dt[32]="%20",dt);function Nt(e,t){for(var n=void 0,i=-1,o=0;o<e.length;o++){var r=e.charCodeAt(o);if(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r)-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));var s=Dt[r];void 0!==s?(-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),n+=s):-1===i&&(i=o)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function kt(e){for(var t=void 0,n=0;n<e.length;n++){var i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=Dt[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function It(e){var t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,s["h"]&&(t=t.replace(/\//g,"\\")),t}function Ft(e,t){var n=t?kt:Nt,i="",o=e.scheme,r=e.authority,s=e.path,a=e.query,u=e.fragment;if(o&&(i+=o,i+=":"),(r||"file"===o)&&(i+=St,i+=St),r){var l=r.indexOf("@");if(-1!==l){var c=r.substr(0,l);r=r.substr(l+1),l=c.indexOf(":"),-1===l?i+=n(c,!1):(i+=n(c.substr(0,l),!1),i+=":",i+=n(c.substr(l+1),!1)),i+="@"}r=r.toLowerCase(),l=r.indexOf(":"),-1===l?i+=n(r,!1):(i+=n(r.substr(0,l),!1),i+=r.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){var d=s.charCodeAt(1);d>=65&&d<=90&&(s="/"+String.fromCharCode(d+32)+":"+s.substr(3))}else if(s.length>=2&&58===s.charCodeAt(1)){d=s.charCodeAt(0);d>=65&&d<=90&&(s=String.fromCharCode(d+32)+":"+s.substr(2))}i+=n(s,!0)}return a&&(i+="?",i+=n(a,!1)),u&&(i+="#",i+=t?u:Nt(u,!1)),i}function Mt(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Mt(e.substr(3)):e}}var Ot=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Tt(e){return e.match(Ot)?e.replace(Ot,(function(e){return Mt(e)})):e}var Pt,Rt,Ut,Ht,Qt,Vt,Wt,Kt,zt,jt,Gt,qt,Yt,Xt,Jt,Zt,$t,en,tn,nn,on,rn,sn,an,un,ln,cn,dn,hn,An,pn,fn,gn,mn=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.with=function(t,n){return void 0===t&&(t=this.lineNumber),void 0===n&&(n=this.column),t===this.lineNumber&&n===this.column?this:new e(t,n)},e.prototype.delta=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),this.with(this.lineNumber+e,this.column+t)},e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column},e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t)},e.isBeforeOrEqual=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column},e.compare=function(e,t){var n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){var o=0|e.column,r=0|t.column;return o-r}return n-i},e.prototype.clone=function(){return new e(this.lineNumber,this.column)},e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},e.lift=function(t){return new e(t.lineNumber,t.column)},e.isIPosition=function(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column},e}(),vn=function(){function e(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))},e.prototype.strictContainsRange=function(t){return e.strictContainsRange(this,t)},e.strictContainsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var i,o,r,s;return n.startLineNumber<t.startLineNumber?(i=n.startLineNumber,o=n.startColumn):n.startLineNumber===t.startLineNumber?(i=n.startLineNumber,o=Math.min(n.startColumn,t.startColumn)):(i=t.startLineNumber,o=t.startColumn),n.endLineNumber>t.endLineNumber?(r=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(r=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(r=t.endLineNumber,s=t.endColumn),new e(i,o,r,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var i=t.startLineNumber,o=t.startColumn,r=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn;return i<a?(i=a,o=u):i===a&&(o=Math.max(o,u)),r>l?(r=l,s=c):r===l&&(s=Math.min(s,c)),i>r||i===r&&o>s?null:new e(i,o,r,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return new mn(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new mn(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)},e.areIntersecting=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)},e.compareRangesUsingStarts=function(e,t){if(e&&t){var n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){var o=0|e.startColumn,r=0|t.startColumn;if(o===r){var s=0|e.endLineNumber,a=0|t.endLineNumber;if(s===a){var u=0|e.endColumn,l=0|t.endColumn;return u-l}return s-a}return o-r}return n-i}var c=e?1:0,d=t?1:0;return c-d},e.compareRangesUsingEnds=function(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber},e.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},e}(),_n=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)}}(),yn=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i,o)||this;return r.selectionStartLineNumber=t,r.selectionStartColumn=n,r.positionLineNumber=i,r.positionColumn=o,r}return _n(t,e),t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},t.prototype.setEndPosition=function(e,n){return 0===this.getDirection()?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new mn(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return 0===this.getDirection()?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0},t.isISelection=function(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn},t.createWithDirection=function(e,n,i,o,r){return 0===r?new t(e,n,i,o):new t(i,o,e,n)},t}(vn),wn=function(){function e(e,t,n){this.offset=0|e,this.type=t,this.language=n}return e.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},e}(),bn=function(){function e(e,t){this.tokens=e,this.endState=t}return e}(),Cn=function(){function e(e,t){this.tokens=e,this.endState=t}return e}();(function(e){e[e["Unknown"]=0]="Unknown",e[e["Disabled"]=1]="Disabled",e[e["Enabled"]=2]="Enabled"})(Pt||(Pt={})),function(e){e[e["KeepWhitespace"]=1]="KeepWhitespace",e[e["InsertAsSnippet"]=4]="InsertAsSnippet"}(Rt||(Rt={})),function(e){e[e["Method"]=0]="Method",e[e["Function"]=1]="Function",e[e["Constructor"]=2]="Constructor",e[e["Field"]=3]="Field",e[e["Variable"]=4]="Variable",e[e["Class"]=5]="Class",e[e["Struct"]=6]="Struct",e[e["Interface"]=7]="Interface",e[e["Module"]=8]="Module",e[e["Property"]=9]="Property",e[e["Event"]=10]="Event",e[e["Operator"]=11]="Operator",e[e["Unit"]=12]="Unit",e[e["Value"]=13]="Value",e[e["Constant"]=14]="Constant",e[e["Enum"]=15]="Enum",e[e["EnumMember"]=16]="EnumMember",e[e["Keyword"]=17]="Keyword",e[e["Text"]=18]="Text",e[e["Color"]=19]="Color",e[e["File"]=20]="File",e[e["Reference"]=21]="Reference",e[e["Customcolor"]=22]="Customcolor",e[e["Folder"]=23]="Folder",e[e["TypeParameter"]=24]="TypeParameter",e[e["Snippet"]=25]="Snippet"}(Ut||(Ut={})),function(e){e[e["Deprecated"]=1]="Deprecated"}(Ht||(Ht={})),function(e){e[e["Invoke"]=0]="Invoke",e[e["TriggerCharacter"]=1]="TriggerCharacter",e[e["TriggerForIncompleteCompletions"]=2]="TriggerForIncompleteCompletions"}(Qt||(Qt={})),function(e){e[e["EXACT"]=0]="EXACT",e[e["ABOVE"]=1]="ABOVE",e[e["BELOW"]=2]="BELOW"}(Vt||(Vt={})),function(e){e[e["NotSet"]=0]="NotSet",e[e["ContentFlush"]=1]="ContentFlush",e[e["RecoverFromMarkers"]=2]="RecoverFromMarkers",e[e["Explicit"]=3]="Explicit",e[e["Paste"]=4]="Paste",e[e["Undo"]=5]="Undo",e[e["Redo"]=6]="Redo"}(Wt||(Wt={})),function(e){e[e["LF"]=1]="LF",e[e["CRLF"]=2]="CRLF"}(Kt||(Kt={})),function(e){e[e["Text"]=0]="Text",e[e["Read"]=1]="Read",e[e["Write"]=2]="Write"}(zt||(zt={})),function(e){e[e["None"]=0]="None",e[e["Keep"]=1]="Keep",e[e["Brackets"]=2]="Brackets",e[e["Advanced"]=3]="Advanced",e[e["Full"]=4]="Full"}(jt||(jt={})),function(e){e[e["acceptSuggestionOnCommitCharacter"]=0]="acceptSuggestionOnCommitCharacter",e[e["acceptSuggestionOnEnter"]=1]="acceptSuggestionOnEnter",e[e["accessibilitySupport"]=2]="accessibilitySupport",e[e["accessibilityPageSize"]=3]="accessibilityPageSize",e[e["ariaLabel"]=4]="ariaLabel",e[e["autoClosingBrackets"]=5]="autoClosingBrackets",e[e["autoClosingOvertype"]=6]="autoClosingOvertype",e[e["autoClosingQuotes"]=7]="autoClosingQuotes",e[e["autoIndent"]=8]="autoIndent",e[e["automaticLayout"]=9]="automaticLayout",e[e["autoSurround"]=10]="autoSurround",e[e["codeLens"]=11]="codeLens",e[e["colorDecorators"]=12]="colorDecorators",e[e["contextmenu"]=13]="contextmenu",e[e["copyWithSyntaxHighlighting"]=14]="copyWithSyntaxHighlighting",e[e["cursorBlinking"]=15]="cursorBlinking",e[e["cursorSmoothCaretAnimation"]=16]="cursorSmoothCaretAnimation",e[e["cursorStyle"]=17]="cursorStyle",e[e["cursorSurroundingLines"]=18]="cursorSurroundingLines",e[e["cursorSurroundingLinesStyle"]=19]="cursorSurroundingLinesStyle",e[e["cursorWidth"]=20]="cursorWidth",e[e["disableLayerHinting"]=21]="disableLayerHinting",e[e["disableMonospaceOptimizations"]=22]="disableMonospaceOptimizations",e[e["dragAndDrop"]=23]="dragAndDrop",e[e["emptySelectionClipboard"]=24]="emptySelectionClipboard",e[e["extraEditorClassName"]=25]="extraEditorClassName",e[e["fastScrollSensitivity"]=26]="fastScrollSensitivity",e[e["find"]=27]="find",e[e["fixedOverflowWidgets"]=28]="fixedOverflowWidgets",e[e["folding"]=29]="folding",e[e["foldingStrategy"]=30]="foldingStrategy",e[e["fontFamily"]=31]="fontFamily",e[e["fontInfo"]=32]="fontInfo",e[e["fontLigatures"]=33]="fontLigatures",e[e["fontSize"]=34]="fontSize",e[e["fontWeight"]=35]="fontWeight",e[e["formatOnPaste"]=36]="formatOnPaste",e[e["formatOnType"]=37]="formatOnType",e[e["glyphMargin"]=38]="glyphMargin",e[e["gotoLocation"]=39]="gotoLocation",e[e["hideCursorInOverviewRuler"]=40]="hideCursorInOverviewRuler",e[e["highlightActiveIndentGuide"]=41]="highlightActiveIndentGuide",e[e["hover"]=42]="hover",e[e["inDiffEditor"]=43]="inDiffEditor",e[e["letterSpacing"]=44]="letterSpacing",e[e["lightbulb"]=45]="lightbulb",e[e["lineDecorationsWidth"]=46]="lineDecorationsWidth",e[e["lineHeight"]=47]="lineHeight",e[e["lineNumbers"]=48]="lineNumbers",e[e["lineNumbersMinChars"]=49]="lineNumbersMinChars",e[e["links"]=50]="links",e[e["matchBrackets"]=51]="matchBrackets",e[e["minimap"]=52]="minimap",e[e["mouseStyle"]=53]="mouseStyle",e[e["mouseWheelScrollSensitivity"]=54]="mouseWheelScrollSensitivity",e[e["mouseWheelZoom"]=55]="mouseWheelZoom",e[e["multiCursorMergeOverlapping"]=56]="multiCursorMergeOverlapping",e[e["multiCursorModifier"]=57]="multiCursorModifier",e[e["multiCursorPaste"]=58]="multiCursorPaste",e[e["occurrencesHighlight"]=59]="occurrencesHighlight",e[e["overviewRulerBorder"]=60]="overviewRulerBorder",e[e["overviewRulerLanes"]=61]="overviewRulerLanes",e[e["parameterHints"]=62]="parameterHints",e[e["quickSuggestions"]=63]="quickSuggestions",e[e["quickSuggestionsDelay"]=64]="quickSuggestionsDelay",e[e["readOnly"]=65]="readOnly",e[e["renderControlCharacters"]=66]="renderControlCharacters",e[e["renderIndentGuides"]=67]="renderIndentGuides",e[e["renderFinalNewline"]=68]="renderFinalNewline",e[e["renderLineHighlight"]=69]="renderLineHighlight",e[e["renderWhitespace"]=70]="renderWhitespace",e[e["revealHorizontalRightPadding"]=71]="revealHorizontalRightPadding",e[e["roundedSelection"]=72]="roundedSelection",e[e["rulers"]=73]="rulers",e[e["scrollbar"]=74]="scrollbar",e[e["scrollBeyondLastColumn"]=75]="scrollBeyondLastColumn",e[e["scrollBeyondLastLine"]=76]="scrollBeyondLastLine",e[e["selectionClipboard"]=77]="selectionClipboard",e[e["selectionHighlight"]=78]="selectionHighlight",e[e["selectOnLineNumbers"]=79]="selectOnLineNumbers",e[e["showFoldingControls"]=80]="showFoldingControls",e[e["showUnused"]=81]="showUnused",e[e["snippetSuggestions"]=82]="snippetSuggestions",e[e["smoothScrolling"]=83]="smoothScrolling",e[e["stopRenderingLineAfter"]=84]="stopRenderingLineAfter",e[e["suggest"]=85]="suggest",e[e["suggestFontSize"]=86]="suggestFontSize",e[e["suggestLineHeight"]=87]="suggestLineHeight",e[e["suggestOnTriggerCharacters"]=88]="suggestOnTriggerCharacters",e[e["suggestSelection"]=89]="suggestSelection",e[e["tabCompletion"]=90]="tabCompletion",e[e["useTabStops"]=91]="useTabStops",e[e["wordSeparators"]=92]="wordSeparators",e[e["wordWrap"]=93]="wordWrap",e[e["wordWrapBreakAfterCharacters"]=94]="wordWrapBreakAfterCharacters",e[e["wordWrapBreakBeforeCharacters"]=95]="wordWrapBreakBeforeCharacters",e[e["wordWrapBreakObtrusiveCharacters"]=96]="wordWrapBreakObtrusiveCharacters",e[e["wordWrapColumn"]=97]="wordWrapColumn",e[e["wordWrapMinified"]=98]="wordWrapMinified",e[e["wrappingIndent"]=99]="wrappingIndent",e[e["editorClassName"]=100]="editorClassName",e[e["pixelRatio"]=101]="pixelRatio",e[e["tabFocusMode"]=102]="tabFocusMode",e[e["layoutInfo"]=103]="layoutInfo",e[e["wrappingInfo"]=104]="wrappingInfo"}(Gt||(Gt={})),function(e){e[e["TextDefined"]=0]="TextDefined",e[e["LF"]=1]="LF",e[e["CRLF"]=2]="CRLF"}(qt||(qt={})),function(e){e[e["LF"]=0]="LF",e[e["CRLF"]=1]="CRLF"}(Yt||(Yt={})),function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(Xt||(Xt={})),function(e){e[e["Unknown"]=0]="Unknown",e[e["Backspace"]=1]="Backspace",e[e["Tab"]=2]="Tab",e[e["Enter"]=3]="Enter",e[e["Shift"]=4]="Shift",e[e["Ctrl"]=5]="Ctrl",e[e["Alt"]=6]="Alt",e[e["PauseBreak"]=7]="PauseBreak",e[e["CapsLock"]=8]="CapsLock",e[e["Escape"]=9]="Escape",e[e["Space"]=10]="Space",e[e["PageUp"]=11]="PageUp",e[e["PageDown"]=12]="PageDown",e[e["End"]=13]="End",e[e["Home"]=14]="Home",e[e["LeftArrow"]=15]="LeftArrow",e[e["UpArrow"]=16]="UpArrow",e[e["RightArrow"]=17]="RightArrow",e[e["DownArrow"]=18]="DownArrow",e[e["Insert"]=19]="Insert",e[e["Delete"]=20]="Delete",e[e["KEY_0"]=21]="KEY_0",e[e["KEY_1"]=22]="KEY_1",e[e["KEY_2"]=23]="KEY_2",e[e["KEY_3"]=24]="KEY_3",e[e["KEY_4"]=25]="KEY_4",e[e["KEY_5"]=26]="KEY_5",e[e["KEY_6"]=27]="KEY_6",e[e["KEY_7"]=28]="KEY_7",e[e["KEY_8"]=29]="KEY_8",e[e["KEY_9"]=30]="KEY_9",e[e["KEY_A"]=31]="KEY_A",e[e["KEY_B"]=32]="KEY_B",e[e["KEY_C"]=33]="KEY_C",e[e["KEY_D"]=34]="KEY_D",e[e["KEY_E"]=35]="KEY_E",e[e["KEY_F"]=36]="KEY_F",e[e["KEY_G"]=37]="KEY_G",e[e["KEY_H"]=38]="KEY_H",e[e["KEY_I"]=39]="KEY_I",e[e["KEY_J"]=40]="KEY_J",e[e["KEY_K"]=41]="KEY_K",e[e["KEY_L"]=42]="KEY_L",e[e["KEY_M"]=43]="KEY_M",e[e["KEY_N"]=44]="KEY_N",e[e["KEY_O"]=45]="KEY_O",e[e["KEY_P"]=46]="KEY_P",e[e["KEY_Q"]=47]="KEY_Q",e[e["KEY_R"]=48]="KEY_R",e[e["KEY_S"]=49]="KEY_S",e[e["KEY_T"]=50]="KEY_T",e[e["KEY_U"]=51]="KEY_U",e[e["KEY_V"]=52]="KEY_V",e[e["KEY_W"]=53]="KEY_W",e[e["KEY_X"]=54]="KEY_X",e[e["KEY_Y"]=55]="KEY_Y",e[e["KEY_Z"]=56]="KEY_Z",e[e["Meta"]=57]="Meta",e[e["ContextMenu"]=58]="ContextMenu",e[e["F1"]=59]="F1",e[e["F2"]=60]="F2",e[e["F3"]=61]="F3",e[e["F4"]=62]="F4",e[e["F5"]=63]="F5",e[e["F6"]=64]="F6",e[e["F7"]=65]="F7",e[e["F8"]=66]="F8",e[e["F9"]=67]="F9",e[e["F10"]=68]="F10",e[e["F11"]=69]="F11",e[e["F12"]=70]="F12",e[e["F13"]=71]="F13",e[e["F14"]=72]="F14",e[e["F15"]=73]="F15",e[e["F16"]=74]="F16",e[e["F17"]=75]="F17",e[e["F18"]=76]="F18",e[e["F19"]=77]="F19",e[e["NumLock"]=78]="NumLock",e[e["ScrollLock"]=79]="ScrollLock",e[e["US_SEMICOLON"]=80]="US_SEMICOLON",e[e["US_EQUAL"]=81]="US_EQUAL",e[e["US_COMMA"]=82]="US_COMMA",e[e["US_MINUS"]=83]="US_MINUS",e[e["US_DOT"]=84]="US_DOT",e[e["US_SLASH"]=85]="US_SLASH",e[e["US_BACKTICK"]=86]="US_BACKTICK",e[e["US_OPEN_SQUARE_BRACKET"]=87]="US_OPEN_SQUARE_BRACKET",e[e["US_BACKSLASH"]=88]="US_BACKSLASH",e[e["US_CLOSE_SQUARE_BRACKET"]=89]="US_CLOSE_SQUARE_BRACKET",e[e["US_QUOTE"]=90]="US_QUOTE",e[e["OEM_8"]=91]="OEM_8",e[e["OEM_102"]=92]="OEM_102",e[e["NUMPAD_0"]=93]="NUMPAD_0",e[e["NUMPAD_1"]=94]="NUMPAD_1",e[e["NUMPAD_2"]=95]="NUMPAD_2",e[e["NUMPAD_3"]=96]="NUMPAD_3",e[e["NUMPAD_4"]=97]="NUMPAD_4",e[e["NUMPAD_5"]=98]="NUMPAD_5",e[e["NUMPAD_6"]=99]="NUMPAD_6",e[e["NUMPAD_7"]=100]="NUMPAD_7",e[e["NUMPAD_8"]=101]="NUMPAD_8",e[e["NUMPAD_9"]=102]="NUMPAD_9",e[e["NUMPAD_MULTIPLY"]=103]="NUMPAD_MULTIPLY",e[e["NUMPAD_ADD"]=104]="NUMPAD_ADD",e[e["NUMPAD_SEPARATOR"]=105]="NUMPAD_SEPARATOR",e[e["NUMPAD_SUBTRACT"]=106]="NUMPAD_SUBTRACT",e[e["NUMPAD_DECIMAL"]=107]="NUMPAD_DECIMAL",e[e["NUMPAD_DIVIDE"]=108]="NUMPAD_DIVIDE",e[e["KEY_IN_COMPOSITION"]=109]="KEY_IN_COMPOSITION",e[e["ABNT_C1"]=110]="ABNT_C1",e[e["ABNT_C2"]=111]="ABNT_C2",e[e["MAX_VALUE"]=112]="MAX_VALUE"}(Jt||(Jt={})),function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"}(Zt||(Zt={})),function(e){e[e["Unnecessary"]=1]="Unnecessary",e[e["Deprecated"]=2]="Deprecated"}($t||($t={})),function(e){e[e["Inline"]=1]="Inline",e[e["Gutter"]=2]="Gutter"}(en||(en={})),function(e){e[e["UNKNOWN"]=0]="UNKNOWN",e[e["TEXTAREA"]=1]="TEXTAREA",e[e["GUTTER_GLYPH_MARGIN"]=2]="GUTTER_GLYPH_MARGIN",e[e["GUTTER_LINE_NUMBERS"]=3]="GUTTER_LINE_NUMBERS",e[e["GUTTER_LINE_DECORATIONS"]=4]="GUTTER_LINE_DECORATIONS",e[e["GUTTER_VIEW_ZONE"]=5]="GUTTER_VIEW_ZONE",e[e["CONTENT_TEXT"]=6]="CONTENT_TEXT",e[e["CONTENT_EMPTY"]=7]="CONTENT_EMPTY",e[e["CONTENT_VIEW_ZONE"]=8]="CONTENT_VIEW_ZONE",e[e["CONTENT_WIDGET"]=9]="CONTENT_WIDGET",e[e["OVERVIEW_RULER"]=10]="OVERVIEW_RULER",e[e["SCROLLBAR"]=11]="SCROLLBAR",e[e["OVERLAY_WIDGET"]=12]="OVERLAY_WIDGET",e[e["OUTSIDE_EDITOR"]=13]="OUTSIDE_EDITOR"}(tn||(tn={})),function(e){e[e["TOP_RIGHT_CORNER"]=0]="TOP_RIGHT_CORNER",e[e["BOTTOM_RIGHT_CORNER"]=1]="BOTTOM_RIGHT_CORNER",e[e["TOP_CENTER"]=2]="TOP_CENTER"}(nn||(nn={})),function(e){e[e["Left"]=1]="Left",e[e["Center"]=2]="Center",e[e["Right"]=4]="Right",e[e["Full"]=7]="Full"}(on||(on={})),function(e){e[e["Off"]=0]="Off",e[e["On"]=1]="On",e[e["Relative"]=2]="Relative",e[e["Interval"]=3]="Interval",e[e["Custom"]=4]="Custom"}(rn||(rn={})),function(e){e[e["None"]=0]="None",e[e["Text"]=1]="Text",e[e["Blocks"]=2]="Blocks"}(sn||(sn={})),function(e){e[e["Smooth"]=0]="Smooth",e[e["Immediate"]=1]="Immediate"}(an||(an={})),function(e){e[e["Auto"]=1]="Auto",e[e["Hidden"]=2]="Hidden",e[e["Visible"]=3]="Visible"}(un||(un={})),function(e){e[e["LTR"]=0]="LTR",e[e["RTL"]=1]="RTL"}(ln||(ln={})),function(e){e[e["Invoke"]=1]="Invoke",e[e["TriggerCharacter"]=2]="TriggerCharacter",e[e["ContentChange"]=3]="ContentChange"}(cn||(cn={})),function(e){e[e["File"]=0]="File",e[e["Module"]=1]="Module",e[e["Namespace"]=2]="Namespace",e[e["Package"]=3]="Package",e[e["Class"]=4]="Class",e[e["Method"]=5]="Method",e[e["Property"]=6]="Property",e[e["Field"]=7]="Field",e[e["Constructor"]=8]="Constructor",e[e["Enum"]=9]="Enum",e[e["Interface"]=10]="Interface",e[e["Function"]=11]="Function",e[e["Variable"]=12]="Variable",e[e["Constant"]=13]="Constant",e[e["String"]=14]="String",e[e["Number"]=15]="Number",e[e["Boolean"]=16]="Boolean",e[e["Array"]=17]="Array",e[e["Object"]=18]="Object",e[e["Key"]=19]="Key",e[e["Null"]=20]="Null",e[e["EnumMember"]=21]="EnumMember",e[e["Struct"]=22]="Struct",e[e["Event"]=23]="Event",e[e["Operator"]=24]="Operator",e[e["TypeParameter"]=25]="TypeParameter"}(dn||(dn={})),function(e){e[e["Deprecated"]=1]="Deprecated"}(hn||(hn={})),function(e){e[e["Hidden"]=0]="Hidden",e[e["Blink"]=1]="Blink",e[e["Smooth"]=2]="Smooth",e[e["Phase"]=3]="Phase",e[e["Expand"]=4]="Expand",e[e["Solid"]=5]="Solid"}(An||(An={})),function(e){e[e["Line"]=1]="Line",e[e["Block"]=2]="Block",e[e["Underline"]=3]="Underline",e[e["LineThin"]=4]="LineThin",e[e["BlockOutline"]=5]="BlockOutline",e[e["UnderlineThin"]=6]="UnderlineThin"}(pn||(pn={})),function(e){e[e["AlwaysGrowsWhenTypingAtEdges"]=0]="AlwaysGrowsWhenTypingAtEdges",e[e["NeverGrowsWhenTypingAtEdges"]=1]="NeverGrowsWhenTypingAtEdges",e[e["GrowsOnlyWhenTypingBefore"]=2]="GrowsOnlyWhenTypingBefore",e[e["GrowsOnlyWhenTypingAfter"]=3]="GrowsOnlyWhenTypingAfter"}(fn||(fn={})),function(e){e[e["None"]=0]="None",e[e["Same"]=1]="Same",e[e["Indent"]=2]="Indent",e[e["DeepIndent"]=3]="DeepIndent"}(gn||(gn={}));var Sn=function(){function e(){}return e.chord=function(e,t){return ut(e,t)},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e}();function Bn(){return{editor:void 0,languages:void 0,CancellationTokenSource:it,Emitter:Ye,KeyCode:Jt,KeyMod:Sn,Position:mn,Range:vn,Selection:yn,SelectionDirection:ln,MarkerSeverity:Zt,MarkerTag:$t,Uri:Et,Token:wn}}var En;n("b223");(function(e){function t(t){return t[e.DI_DEPENDENCIES]||[]}e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=t})(En||(En={}));var xn=Dn("instantiationService");function Ln(e,t,n,i){t[En.DI_TARGET]===t?t[En.DI_DEPENDENCIES].push({id:e,index:n,optional:i}):(t[En.DI_DEPENDENCIES]=[{id:e,index:n,optional:i}],t[En.DI_TARGET]=t)}function Dn(e){if(En.serviceIds.has(e))return En.serviceIds.get(e);var t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Ln(t,e,i,!1)};return t.toString=function(){return e},En.serviceIds.set(e,t),t}function Nn(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");Ln(e,t,i,!0)}}var kn=Dn("codeEditorService"),In=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new Ye,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 Fn(){return In.INSTANCE.getZoomLevel()}function Mn(){return In.INSTANCE.getTimeSinceLastZoomLevelChanged()}function On(e){return In.INSTANCE.onDidChangeZoomLevel(e)}function Tn(){return In.INSTANCE.getPixelRatio()}var Pn=navigator.userAgent,Rn=Pn.indexOf("Trident")>=0,Un=Pn.indexOf("Edge/")>=0,Hn=Rn||Un,Qn=Pn.indexOf("Firefox")>=0,Vn=Pn.indexOf("AppleWebKit")>=0,Wn=Pn.indexOf("Chrome")>=0,Kn=!Wn&&Pn.indexOf("Safari")>=0,zn=!Wn&&!Kn&&Vn,jn=Pn.indexOf("iPad")>=0,Gn=Un&&Pn.indexOf("WebView/")>=0,qn=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches,Yn=function(e,t,n){var i=function(e){return o.fire(e)},o=new Ye({onFirstListenerAdd:function(){e.addEventListener(t,i,n)},onLastListenerRemove:function(){e.removeEventListener(t,i,n)}});return o.event};function Xn(e){return Ue.map(e,(function(e){return e.preventDefault(),e.stopPropagation(),e}))}var Jn=new Array(230),Zn=new Array(112);function $n(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return tt.fromString(t)}return Jn[e.keyCode]||0}(function(){for(var e=0;e<Zn.length;e++)Zn[e]=-1;function t(e,t){Jn[e]=t,Zn[t]=e}t(3,7),t(8,1),t(9,2),t(13,3),t(16,4),t(17,5),t(18,6),t(19,7),t(20,8),t(27,9),t(32,10),t(33,11),t(34,12),t(35,13),t(36,14),t(37,15),t(38,16),t(39,17),t(40,18),t(45,19),t(46,20),t(48,21),t(49,22),t(50,23),t(51,24),t(52,25),t(53,26),t(54,27),t(55,28),t(56,29),t(57,30),t(65,31),t(66,32),t(67,33),t(68,34),t(69,35),t(70,36),t(71,37),t(72,38),t(73,39),t(74,40),t(75,41),t(76,42),t(77,43),t(78,44),t(79,45),t(80,46),t(81,47),t(82,48),t(83,49),t(84,50),t(85,51),t(86,52),t(87,53),t(88,54),t(89,55),t(90,56),t(93,58),t(96,93),t(97,94),t(98,95),t(99,96),t(100,97),t(101,98),t(102,99),t(103,100),t(104,101),t(105,102),t(106,103),t(107,104),t(108,105),t(109,106),t(110,107),t(111,108),t(112,59),t(113,60),t(114,61),t(115,62),t(116,63),t(117,64),t(118,65),t(119,66),t(120,67),t(121,68),t(122,69),t(123,70),t(124,71),t(125,72),t(126,73),t(127,74),t(128,75),t(129,76),t(130,77),t(144,78),t(145,79),t(186,80),t(187,81),t(188,82),t(189,83),t(190,84),t(191,85),t(192,86),t(193,110),t(194,111),t(219,87),t(220,88),t(221,89),t(222,90),t(223,91),t(226,92),t(229,109),Rn?t(91,57):Qn?(t(59,80),t(107,81),t(109,83),s["e"]&&t(224,57)):Vn&&(t(91,57),s["e"]?t(93,57):t(92,57))})();var ei=s["e"]?256:2048,ti=512,ni=1024,ii=s["e"]?2048:256,oi=function(){function e(e){this._standardKeyboardEventBrand=!0;var t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=$n(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},e.prototype.equals=function(e){return this._asKeybinding===e},e.prototype._computeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=ei),this.altKey&&(t|=ti),this.shiftKey&&(t|=ni),this.metaKey&&(t|=ii),t|=e,t},e.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new ht(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},e}(),ri=!1,si=null;function ai(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port)return ri=!0,null}catch(i){return ri=!0,null}return e.parent}function ui(e,t){for(var n,i=e.document.getElementsByTagName("iframe"),o=0,r=i.length;o<r;o++)if(n=i[o],n.contentWindow===t)return n;return null}var li=function(){function e(){}return e.getSameOriginWindowChain=function(){if(!si){si=[];var e,t=window;do{e=ai(t),e?si.push({window:t,iframeElement:ui(e,t)}):si.push({window:t,iframeElement:null}),t=e}while(t)}return si.slice(0)},e.hasDifferentOriginAncestor=function(){return si||this.getSameOriginWindowChain(),ri},e.getPositionOfChildWindowRelativeToAncestorWindow=function(e,t){if(!t||e===t)return{top:0,left:0};for(var n=0,i=0,o=this.getSameOriginWindowChain(),r=0,s=o;r<s.length;r++){var a=s[r];if(a.window===t)break;if(!a.iframeElement)break;var u=a.iframeElement.getBoundingClientRect();n+=u.top,i+=u.left}return{top:n,left:i}},e}(),ci=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)}}(),di=function(){function e(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"===typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);var t=li.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}return e.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}(),hi=function(e){function t(t){var n=e.call(this,t)||this;return n.dataTransfer=t.dataTransfer,n}return ci(t,e),t}(di),Ai=function(){function e(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){var i=e,o=e;if("undefined"!==typeof i.wheelDeltaY)this.deltaY=i.wheelDeltaY/120;else if("undefined"!==typeof o.VERTICAL_AXIS&&o.axis===o.VERTICAL_AXIS)this.deltaY=-o.detail/3;else if("wheel"===e.type){var r=e;r.deltaMode===r.DOM_DELTA_LINE?this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof i.wheelDeltaX)Kn&&s["h"]?this.deltaX=-i.wheelDeltaX/120:this.deltaX=i.wheelDeltaX/120;else if("undefined"!==typeof o.HORIZONTAL_AXIS&&o.axis===o.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){r=e;r.deltaMode===r.DOM_DELTA_LINE?this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}();function pi(e){return e&&"function"===typeof e.then}function fi(e){var t=new it,n=e(t.token),i=new Promise((function(e,i){t.token.onCancellationRequested((function(){i(ve())})),Promise.resolve(n).then((function(n){t.dispose(),e(n)}),(function(e){t.dispose(),i(e)}))}));return new(function(){function e(){}return e.prototype.cancel=function(){t.cancel()},e.prototype.then=function(e,t){return i.then(e,t)},e.prototype.catch=function(e){return this.then(void 0,e)},e.prototype.finally=function(e){return i.finally(e)},e}())}function gi(e,t,n){return Promise.race([e,new Promise((function(e){return t.onCancellationRequested((function(){return e(n)}))}))])}var mi=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return e.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((function(e,t){n.doResolve=e,n.doReject=t})).then((function(){if(n.completionPromise=null,n.doResolve=null,n.task){var e=n.task;return n.task=null,e()}}))),this.timeout=setTimeout((function(){n.timeout=null,n.doResolve&&n.doResolve(null)}),t),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(ve()),this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},e.prototype.dispose=function(){this.cancelTimeout()},e}();function vi(e,t){return t?new Promise((function(n,i){var o=setTimeout(n,e);t.onCancellationRequested((function(){clearTimeout(o),i(ve())}))})):fi((function(t){return vi(e,t)}))}function _i(e,t){void 0===t&&(t=0);var n=setTimeout(e,t);return De((function(){return clearTimeout(n)}))}function yi(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var i=0,o=e.length,r=function(){if(i>=o)return Promise.resolve(n);var s=e[i++],a=Promise.resolve(s());return a.then((function(e){return t(e)?Promise.resolve(e):r()}))};return r()}var wi,bi=function(){function e(e,t){this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}return e.prototype.dispose=function(){this.cancel()},e.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},e.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout((function(){n._token=-1,e()}),t)},e.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout((function(){n._token=-1,e()}),t))},e}(),Ci=function(){function e(){this._token=-1}return e.prototype.dispose=function(){this.cancel()},e.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},e.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval((function(){e()}),t)},e}(),Si=function(){function e(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return e.prototype.dispose=function(){this.cancel(),this.runner=null},e.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},e.prototype.isScheduled=function(){return-1!==this.timeoutToken},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},e.prototype.doRun=function(){this.runner&&this.runner()},e}();(function(){if("function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});wi=function(t){var n=setTimeout((function(){return t(e)})),i=!1;return{dispose:function(){i||(i=!0,clearTimeout(n))}}}}else wi=function(e,t){var n=requestIdleCallback(e,"number"===typeof t?{timeout:t}:void 0),i=!1;return{dispose:function(){i||(i=!0,cancelIdleCallback(n))}}}})();var Bi,Ei=function(){function e(e){var t=this;this._didRun=!1,this._executor=function(){try{t._value=e()}catch(n){t._error=n}finally{t._didRun=!0}},this._handle=wi((function(){return t._executor()}))}return e.prototype.dispose=function(){this._handle.dispose()},e.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},e}();function xi(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function Li(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function Di(e,t,n){if(void 0===n&&(n=function(e,t){return e===t}),e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var i=0,o=e.length;i<o;i++)if(!n(e[i],t[i]))return!1;return!0}function Ni(e,t,n){var i=0,o=e.length-1;while(i<=o){var r=(i+o)/2|0,s=n(e[r],t);if(s<0)i=r+1;else{if(!(s>0))return r;o=r-1}}return-(i+1)}function ki(e,t){var n=0,i=e.length;if(0===i)return 0;while(n<i){var o=Math.floor((n+i)/2);t(e[o])?i=o:n=o+1}return n}function Ii(e,t){return Mi(e,t,0,e.length-1,[]),e}function Fi(e,t,n,i,o,r){for(var s=n,a=i+1,u=n;u<=o;u++)r[u]=e[u];for(u=n;u<=o;u++)s>i?e[u]=r[a++]:a>o?e[u]=r[s++]:t(r[a],r[s])<0?e[u]=r[a++]:e[u]=r[s++]}function Mi(e,t,n,i,o){if(!(i<=n)){var r=n+(i-n)/2|0;Mi(e,t,n,r,o),Mi(e,t,r+1,i,o),t(e[r],e[r+1])<=0||Fi(e,t,n,r,i,o)}}function Oi(e,t){for(var n=[],i=void 0,o=0,r=Ii(e.slice(0),t);o<r.length;o++){var s=r[o];i&&0===t(i[0],s)?i.push(s):(i=[s],n.push(i))}return n}function Ti(e){return e.filter((function(e){return!!e}))}function Pi(e){return!Array.isArray(e)||0===e.length}function Ri(e){return Array.isArray(e)&&e.length>0}function Ui(e,t){if(!t)return e.filter((function(t,n){return e.indexOf(t)===n}));var n=Object.create(null);return e.filter((function(e){var i=t(e);return!n[i]&&(n[i]=!0,!0)}))}function Hi(e){var t=new Set;return e.filter((function(e){return!t.has(e)&&(t.add(e),!0)}))}function Qi(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Vi(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t(i))return n}return-1}function Wi(e,t,n){void 0===n&&(n=void 0);var i=Vi(e,t);return i<0?n:e[i]}function Ki(e,t){return e.length>0?e[0]:t}function zi(e){var t;return(t=[]).concat.apply(t,e)}function ji(e,t){var n="number"===typeof t?e:0;"number"===typeof t?n=e:(n=0,t=e);var i=[];if(n<=t)for(var o=n;o<t;o++)i.push(o);else for(o=n;o>t;o--)i.push(o);return i}function Gi(e,t,n){var i=e.slice(0,t),o=e.slice(t);return i.concat(n,o)}function qi(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function Yi(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function Xi(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t(i,n,e))return i}}function Ji(e){return Array.isArray(e)?e:[e]}(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.userData="vscode-userdata"})(Bi||(Bi={}));var Zi=function(){function e(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}return e.prototype.setPreferredWebSchema=function(e){this._preferredWebSchema=e},e.prototype.rewrite=function(e){if(this._delegate)return this._delegate(e);var t=e.authority,n=this._hosts[t];n&&-1!==n.indexOf(":")&&(n="["+n+"]");var i=this._ports[t],o=this._connectionTokens[t],r="path="+encodeURIComponent(e.path);return"string"===typeof o&&(r+="&tkn="+encodeURIComponent(o)),Et.from({scheme:s["g"]?this._preferredWebSchema:Bi.vscodeRemoteResource,authority:n+":"+i,path:"/vscode-remote-resource",query:r})},e}(),$i=new Zi,eo={clipboard:{writeText:s["f"]||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:s["f"]||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(Rn)return!1;if(Un){var e=navigator.userAgent.indexOf("Edge/"),t=parseInt(navigator.userAgent.substring(e+5,navigator.userAgent.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}()},keyboard:function(){return s["f"]||qn?0:navigator.keyboard||Kn?1:2}(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)},to=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)}}(),no=function(){return no=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},no.apply(this,arguments)},io=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function oo(e){while(e.firstChild)e.removeChild(e.firstChild)}function ro(e){e.parentNode&&e.parentNode.removeChild(e)}function so(e){while(e){if(e===document.body)return!0;e=e.parentNode||e.host}return!1}var ao=new(function(){function e(){this._lastStart=-1,this._lastEnd=-1}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<o)this._lastStart=-1;else{if(n===t)return this._lastStart=0,void(this._lastEnd=i);var r,s=-1;while((s=n.indexOf(t,s+1))>=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;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.addClass(e,n)}))}))},e.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},e.prototype.removeClass=function(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd))},e.prototype.removeClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.removeClass(e,n)}))}))},e.prototype.toggleClass=function(e,t,n){this._findClassName(e,t),-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t),-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t)},e}()),uo=new(function(){function e(){}return e.prototype.hasClass=function(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)},e.prototype.addClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.addClass(e,n)}))}))},e.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},e.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},e.prototype.removeClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.removeClass(e,n)}))}))},e.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},e}()),lo=Rn?ao:uo,co=lo.hasClass.bind(lo),ho=lo.addClass.bind(lo),Ao=lo.addClasses.bind(lo),po=lo.removeClass.bind(lo),fo=lo.removeClasses.bind(lo),go=lo.toggleClass.bind(lo),mo=function(){function e(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._options=i||!1,this._node.addEventListener(this._type,this._handler,this._options)}return e.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)},e}();function vo(e,t,n,i){return new mo(e,t,n,i)}function _o(e){return function(t){return e(new di(t))}}function yo(e){return function(t){return e(new oi(t))}}var wo=function(e,t,n,i){var o=n;return"click"===t||"mousedown"===t?o=_o(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=yo(n)),vo(e,t,o,i)},bo=function(e,t,n){var i=_o(t);return Co(e,i,n)};function Co(e,t,n){return vo(e,s["c"]&&eo.pointerEvents?tr.POINTER_DOWN:tr.MOUSE_DOWN,t,n)}function So(e,t,n){return vo(e,s["c"]&&eo.pointerEvents?tr.POINTER_UP:tr.MOUSE_UP,t,n)}function Bo(e,t){return vo(e,"mouseout",(function(n){var i=n.relatedTarget||n.target;while(i&&i!==e)i=i.parentNode;i!==e&&t(n)}))}function Eo(e,t){return vo(e,"pointerout",(function(n){var i=n.relatedTarget||n.target;while(i&&i!==e)i=i.parentNode;i!==e&&t(n)}))}var xo,Lo,Do=null;function No(e){if(!Do){var t=function(e){return setTimeout((function(){return e((new Date).getTime())}),0)};Do=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||t}return Do.call(self,e)}var ko=function(){function e(e,t){void 0===t&&(t=0),this._runner=e,this.priority=t,this._canceled=!1}return e.prototype.dispose=function(){this._canceled=!0},e.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){Ae(e)}},e.sort=function(e,t){return t.priority-e.priority},e}();(function(){var e=[],t=null,n=!1,i=!1,o=function(){n=!1,t=e,e=[],i=!0;while(t.length>0){t.sort(ko.sort);var o=t.shift();o.execute()}i=!1};Lo=function(t,i){void 0===i&&(i=0);var r=new ko(t,i);return e.push(r),n||(n=!0,No(o)),r},xo=function(e,n){if(i){var o=new ko(e,n);return t.push(o),o}return Lo(e,n)}})();var Io=16,Fo=function(e,t){return t},Mo=function(e){function t(t,n,i,o,r){void 0===o&&(o=Fo),void 0===r&&(r=Io);var s=e.call(this)||this,a=null,u=0,l=s._register(new bi),c=function(){u=(new Date).getTime(),i(a),a=null};return s._register(vo(t,n,(function(e){a=o(a,e);var t=(new Date).getTime()-u;t>=r?(l.cancel(),c()):l.setIfNotSet(c,r-t)}))),s}return to(t,e),t}(Ie);function Oo(e,t,n,i,o){return new Mo(e,t,n,i,o)}function To(e){return document.defaultView.getComputedStyle(e,null)}var Po=function(){function e(){}return e.convertToPixels=function(e,t){return parseFloat(t)||0},e.getDimension=function(t,n,i){var o=To(t),r="0";return o&&(r=o.getPropertyValue?o.getPropertyValue(n):o.getAttribute(i)),e.convertToPixels(t,r)},e.getBorderLeftWidth=function(t){return e.getDimension(t,"border-left-width","borderLeftWidth")},e.getBorderRightWidth=function(t){return e.getDimension(t,"border-right-width","borderRightWidth")},e.getBorderTopWidth=function(t){return e.getDimension(t,"border-top-width","borderTopWidth")},e.getBorderBottomWidth=function(t){return e.getDimension(t,"border-bottom-width","borderBottomWidth")},e.getPaddingLeft=function(t){return e.getDimension(t,"padding-left","paddingLeft")},e.getPaddingRight=function(t){return e.getDimension(t,"padding-right","paddingRight")},e.getPaddingTop=function(t){return e.getDimension(t,"padding-top","paddingTop")},e.getPaddingBottom=function(t){return e.getDimension(t,"padding-bottom","paddingBottom")},e.getMarginLeft=function(t){return e.getDimension(t,"margin-left","marginLeft")},e.getMarginTop=function(t){return e.getDimension(t,"margin-top","marginTop")},e.getMarginRight=function(t){return e.getDimension(t,"margin-right","marginRight")},e.getMarginBottom=function(t){return e.getDimension(t,"margin-bottom","marginBottom")},e}(),Ro=function(){function e(e,t){this.width=e,this.height=t}return e}();function Uo(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=To(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=Po.getBorderLeftWidth(e),n+=Po.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function Ho(e){var t=e.getBoundingClientRect();return{left:t.left+Qo.scrollX,top:t.top+Qo.scrollY,width:t.width,height:t.height}}var Qo=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 Vo(e){var t=Po.getMarginLeft(e)+Po.getMarginRight(e);return e.offsetWidth+t}function Wo(e){var t=Po.getBorderLeftWidth(e)+Po.getBorderRightWidth(e),n=Po.getPaddingLeft(e)+Po.getPaddingRight(e);return e.offsetWidth-t-n}function Ko(e){var t=Po.getBorderTopWidth(e)+Po.getBorderBottomWidth(e),n=Po.getPaddingTop(e)+Po.getPaddingBottom(e);return e.offsetHeight-t-n}function zo(e){var t=Po.getMarginTop(e)+Po.getMarginBottom(e);return e.offsetHeight+t}function jo(e,t){while(e){if(e===t)return!0;e=e.parentNode}return!1}function Go(e,t,n){while(e){if(co(e,t))return e;if(n)if("string"===typeof n){if(co(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function qo(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 Yo=null;function Xo(){return Yo||(Yo=qo()),Yo}function Jo(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}function Zo(e,t,n){void 0===n&&(n=Xo()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function $o(e,t){if(void 0===t&&(t=Xo()),t){for(var n=Jo(t),i=[],o=0;o<n.length;o++){var r=n[o];-1!==r.selectorText.indexOf(e)&&i.push(o)}for(o=i.length-1;o>=0;o--)t.sheet.deleteRule(i[o])}}function er(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}var tr={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",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",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:Vn?"webkitAnimationStart":"animationstart",ANIMATION_END:Vn?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Vn?"webkitAnimationIteration":"animationiteration"},nr={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function ir(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function or(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 rr=function(e){function t(t){var n=e.call(this)||this;n._onDidFocus=n._register(new Ye),n.onDidFocus=n._onDidFocus.event,n._onDidBlur=n._register(new Ye),n.onDidBlur=n._onDidBlur.event;var i=jo(document.activeElement,t),o=!1,r=function(){o=!1,i||(i=!0,n._onDidFocus.fire())},s=function(){i&&(o=!0,window.setTimeout((function(){o&&(o=!1,i=!1,n._onDidBlur.fire())}),0))};return n._refreshStateHandler=function(){var e=jo(document.activeElement,t);e!==i&&(i?s():r())},n._register(Yn(t,tr.FOCUS,!0)(r)),n._register(Yn(t,tr.BLUR,!0)(s)),n}return to(t,e),t}(Ie);function sr(e){return new rr(e)}function ar(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){return e.appendChild(t)})),t[t.length-1]}var ur,lr=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;function cr(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var r=lr.exec(t);if(!r)throw new Error("Bad use of emmet");n=no({},n||{});var s,a=r[1]||"div";return s=e!==ur.HTML?document.createElementNS(e,a):document.createElement(a),r[3]&&(s.id=r[3]),r[4]&&(s.className=r[4].replace(/\./g," ").trim()),Object.keys(n).forEach((function(e){var t=n[e];"undefined"!==typeof t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t))})),Ti(i).forEach((function(e){e instanceof Node?s.appendChild(e):s.appendChild(document.createTextNode(e))})),s}function dr(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return cr.apply(void 0,io([ur.HTML,e,t],n))}function hr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++){var o=i[n];o.style.display="",o.removeAttribute("aria-hidden")}}function Ar(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++){var o=i[n];o.style.display="none",o.setAttribute("aria-hidden","true")}}function pr(e,t){while(e){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}function fr(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){var t=pr(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}}function gr(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function mr(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function vr(e){if(s["f"]||Gn)window.open(e);else{var t=window.open();t&&(t.opener=null,t.location.href=e)}}function _r(e){var t=function(){e(),n=Lo(t)},n=Lo(t);return De((function(){return n.dispose()}))}function yr(e){return e&&Bi.vscodeRemote===e.scheme?$i.rewrite(e):e}function wr(e){return e?"url('"+yr(e).toString(!0).replace(/'/g,"%27")+"')":"url('')"}function br(e){var t=JSON.parse(e);return t=Cr(t),t}function Cr(e,t){if(void 0===t&&(t=0),!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return Et.revive(e);case 2:return new RegExp(e.source,e.flags)}for(var n in e)Object.hasOwnProperty.call(e,n)&&(e[n]=Cr(e[n],t+1))}return e}function Sr(e){return!e||"string"!==typeof e||0===e.trim().length}function Br(e,t,n){void 0===n&&(n="0");for(var i=""+e,o=[i],r=i.length;r<t;r++)o.push(n);return o.reverse().join("")}(function(e){e["HTML"]="http://www.w3.org/1999/xhtml",e["SVG"]="http://www.w3.org/2000/svg"})(ur||(ur={})),dr.SVG=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return cr.apply(void 0,io([ur.SVG,e,t],n))},$i.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");var Er=/{(\d+)}/g;function xr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(Er,(function(e,n){var i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]}))}function Lr(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return e}}))}function Dr(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Nr(e,t){void 0===t&&(t=" ");var n=kr(e,t);return Ir(n,t)}function kr(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;var i=0;while(e.indexOf(t,i)===i)i+=n;return e.substring(i)}function Ir(e,t){if(!e||!t)return e;var n=t.length,i=e.length;if(0===n||0===i)return e;var o=i,r=-1;while(1){if(r=e.lastIndexOf(t,o-1),-1===r||r+n!==o)break;if(0===r)return"";o=r}return e.substring(0,o)}function Fr(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Mr(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Or(e,t){var n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t}function Tr(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=Dr(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function Pr(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;var t=e.exec("");return!(!t||0!==e.lastIndex)}function Rr(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function Ur(e){for(var t=0,n=e.length;t<n;t++){var i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function Hr(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=t;i<n;i++){var o=e.charCodeAt(i);if(32!==o&&9!==o)return e.substring(t,i)}return e.substring(t,n)}function Qr(e,t){void 0===t&&(t=e.length-1);for(var n=t;n>=0;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n}return-1}function Vr(e,t){return e<t?-1:e>t?1:0}function Wr(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++){var o=e.charCodeAt(i),r=t.charCodeAt(i);if(o!==r){zr(o)&&(o+=32),zr(r)&&(r+=32);var s=o-r;if(0!==s)return Kr(o)&&Kr(r)?s:Vr(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0}function Kr(e){return e>=97&&e<=122}function zr(e){return e>=65&&e<=90}function jr(e){return Kr(e)||zr(e)}function Gr(e,t){return e.length===t.length&&qr(e,t)}function qr(e,t,n){void 0===n&&(n=e.length);for(var i=0;i<n;i++){var o=e.charCodeAt(i),r=t.charCodeAt(i);if(o!==r)if(jr(o)&&jr(r)){var s=Math.abs(o-r);if(0!==s&&32!==s)return!1}else if(String.fromCharCode(o).toLowerCase()!==String.fromCharCode(r).toLowerCase())return!1}return!0}function Yr(e,t){var n=t.length;return!(t.length>e.length)&&qr(e,t,n)}function Xr(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function Jr(e,t){var n,i=Math.min(e.length,t.length),o=e.length-1,r=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(o-n)!==t.charCodeAt(r-n))return n;return i}function Zr(e){return 55296<=e&&e<=56319}function $r(e){return 56320<=e&&e<=57343}function es(e,t,n){var i=e.charCodeAt(n);if(Zr(i)&&n+1<t){var o=e.charCodeAt(n+1);if($r(o))return o-56320+(i-55296<<10)+65536}return i}function ts(e,t){var n=e.charCodeAt(t-1);if($r(n)&&t>1){var i=e.charCodeAt(t-2);if(Zr(i))return n-56320+(i-55296<<10)+65536}return n}function ns(e,t){var n=Cs.getInstance(),i=t,o=e.length,r=es(e,o,t);t+=r>=65536?2:1;var s=n.getGraphemeBreakType(r);while(t<o){var a=es(e,o,t),u=n.getGraphemeBreakType(a);if(bs(s,u))break;t+=a>=65536?2:1,s=u}return t-i}function is(e,t){var n=Cs.getInstance(),i=t,o=ts(e,t);t-=o>=65536?2:1;var r=n.getGraphemeBreakType(o);while(t>0){var s=ts(e,t),a=n.getGraphemeBreakType(s);if(bs(a,r))break;t-=s>=65536?2:1,r=a}return i-t}function os(e,t){var n=Cs.getInstance(),i=e.length,o=t,r=es(e,i,t),s=n.getGraphemeBreakType(r);t+=r>=65536?2:1;var a=s;while(t<i){var u=es(e,i,t),l=n.getGraphemeBreakType(u);if(bs(a,l))break;t+=u>=65536?2:1,a=l}var c=t;t=o,a=s;while(t>0){var d=ts(e,t),h=n.getGraphemeBreakType(d);if(bs(h,a))break;t-=d>=65536?2:1,a=h}return[t,c]}function rs(e,t){return t>0&&$r(e.charCodeAt(t))?os(e,t-1):os(e,t)}var ss=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function as(e){return ss.test(e)}var us=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function ls(e){return us.test(e)}var cs=/^[\t\n\r\x20-\x7E]*$/;function ds(e){return cs.test(e)}function hs(e){for(var t=0,n=e.length;t<n;t++)if(As(e.charCodeAt(t)))return!0;return!1}function As(e){return e=+e,e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function ps(e){return e>=127462&&e<=127487||e>=9728&&e<=10175||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129651||e>=129656&&e<=129666||e>=129680&&e<=129685}var fs=String.fromCharCode(65279);function gs(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function ms(e){return btoa(encodeURIComponent(e))}function vs(e,t){for(var n="",i=0;i<t;i++)n+=e;return n}function _s(e,t){return void 0===t&&(t=!1),!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ys(e){var t=26;return e%=2*t,e<t?String.fromCharCode(97+e):String.fromCharCode(65+e-t)}function ws(e){var t=Cs.getInstance();return t.getGraphemeBreakType(e)}function bs(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}var Cs=function(){function e(){this._data=Ss()}return e.getInstance=function(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE},e.prototype.getGraphemeBreakType=function(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;var t=this._data,n=t.length/3,i=1;while(i<=n)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0},e._INSTANCE=null,e}();function Ss(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}var Bs=n("c317"),Es=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)}}(),xs=65,Ls=97,Ds=90,Ns=122,ks=46,Is=47,Fs=92,Ms=58,Os=63,Ts=function(e){function t(t,n,i){var o,r=this;"string"===typeof n&&0===n.indexOf("not ")?(o="must not be",n=n.replace(/^not /,"")):o="must be";var s=-1!==t.indexOf(".")?"property":"argument",a='The "'+t+'" '+s+" "+o+" of type "+n;return a+=". Received type "+typeof i,r=e.call(this,a)||this,r.code="ERR_INVALID_ARG_TYPE",r}return Es(t,e),t}(Error);function Ps(e,t){if("string"!==typeof e)throw new Ts(t,"string",e)}function Rs(e){return e===Is||e===Fs}function Us(e){return e===Is}function Hs(e){return e>=xs&&e<=Ds||e>=Ls&&e<=Ns}function Qs(e,t,n,i){for(var o,r="",s=0,a=-1,u=0,l=0;l<=e.length;++l){if(l<e.length)o=e.charCodeAt(l);else{if(i(o))break;o=Is}if(i(o)){if(a===l-1||1===u);else if(a!==l-1&&2===u){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==ks||r.charCodeAt(r.length-2)!==ks){if(r.length>2){var c=r.lastIndexOf(n);-1===c?(r="",s=0):(r=r.slice(0,c),s=r.length-1-r.lastIndexOf(n)),a=l,u=0;continue}if(2===r.length||1===r.length){r="",s=0,a=l,u=0;continue}}t&&(r.length>0?r+=n+"..":r="..",s=2)}else r.length>0?r+=n+e.slice(a+1,l):r=e.slice(a+1,l),s=l-a-1;a=l,u=0}else o===ks&&-1!==u?++u:u=-1}return r}function Vs(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}var Ws={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",i="",o=!1,r=e.length-1;r>=-1;r--){var s=void 0;if(r>=0?s=e[r]:n?(s=Bs["b"]["="+n]||Bs["a"](),void 0!==s&&s.slice(0,3).toLowerCase()===n.toLowerCase()+"\\"||(s=n+"\\")):s=Bs["a"](),Ps(s,"path"),0!==s.length){var a=s.length,u=0,l="",c=!1,d=s.charCodeAt(0);if(a>1)if(Rs(d))if(c=!0,Rs(s.charCodeAt(1))){for(var h=2,A=h;h<a;++h)if(Rs(s.charCodeAt(h)))break;if(h<a&&h!==A){var p=s.slice(A,h);for(A=h;h<a;++h)if(!Rs(s.charCodeAt(h)))break;if(h<a&&h!==A){for(A=h;h<a;++h)if(Rs(s.charCodeAt(h)))break;h===a?(l="\\\\"+p+"\\"+s.slice(A),u=h):h!==A&&(l="\\\\"+p+"\\"+s.slice(A,h),u=h)}}}else u=1;else Hs(d)&&s.charCodeAt(1)===Ms&&(l=s.slice(0,2),u=2,a>2&&Rs(s.charCodeAt(2))&&(c=!0,u=3));else Rs(d)&&(u=1,c=!0);if(!(l.length>0&&n.length>0&&l.toLowerCase()!==n.toLowerCase())&&(0===n.length&&l.length>0&&(n=l),o||(i=s.slice(u)+"\\"+i,o=c),n.length>0&&o))break}}return i=Qs(i,!o,"\\",Rs),n+(o?"\\":"")+i||"."},normalize:function(e){Ps(e,"path");var t=e.length;if(0===t)return".";var n,i,o=0,r=!1,s=e.charCodeAt(0);if(t>1)if(Rs(s))if(r=!0,Rs(e.charCodeAt(1))){for(var a=2,u=a;a<t;++a)if(Rs(e.charCodeAt(a)))break;if(a<t&&a!==u){var l=e.slice(u,a);for(u=a;a<t;++a)if(!Rs(e.charCodeAt(a)))break;if(a<t&&a!==u){for(u=a;a<t;++a)if(Rs(e.charCodeAt(a)))break;if(a===t)return"\\\\"+l+"\\"+e.slice(u)+"\\";a!==u&&(n="\\\\"+l+"\\"+e.slice(u,a),o=a)}}}else o=1;else Hs(s)&&e.charCodeAt(1)===Ms&&(n=e.slice(0,2),o=2,t>2&&Rs(e.charCodeAt(2))&&(r=!0,o=3));else if(Rs(s))return"\\";return i=o<t?Qs(e.slice(o),!r,"\\",Rs):"",0!==i.length||r||(i="."),i.length>0&&Rs(e.charCodeAt(t-1))&&(i+="\\"),void 0===n?r?i.length>0?"\\"+i:"\\":i.length>0?i:"":r?i.length>0?n+"\\"+i:n+"\\":i.length>0?n+i:n},isAbsolute:function(e){Ps(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return!!Rs(n)||!!(Hs(n)&&t>2&&e.charCodeAt(1)===Ms&&Rs(e.charCodeAt(2)))},join:function(){for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(0===n.length)return".";for(var o=0;o<n.length;++o){var r=n[o];Ps(r,"path"),r.length>0&&(void 0===e?e=t=r:e+="\\"+r)}if(void 0===e)return".";var s=!0,a=0;if("string"===typeof t&&Rs(t.charCodeAt(0))){++a;var u=t.length;u>1&&Rs(t.charCodeAt(1))&&(++a,u>2&&(Rs(t.charCodeAt(2))?++a:s=!1))}if(s){for(;a<e.length;++a)if(!Rs(e.charCodeAt(a)))break;a>=2&&(e="\\"+e.slice(a))}return Ws.normalize(e)},relative:function(e,t){if(Ps(e,"from"),Ps(t,"to"),e===t)return"";var n=Ws.resolve(e),i=Ws.resolve(t);if(n===i)return"";if(e=n.toLowerCase(),t=i.toLowerCase(),e===t)return"";for(var o=0;o<e.length;++o)if(e.charCodeAt(o)!==Fs)break;for(var r=e.length;r-1>o;--r)if(e.charCodeAt(r-1)!==Fs)break;for(var s=r-o,a=0;a<t.length;++a)if(t.charCodeAt(a)!==Fs)break;for(var u=t.length;u-1>a;--u)if(t.charCodeAt(u-1)!==Fs)break;for(var l=u-a,c=s<l?s:l,d=-1,h=0;h<=c;++h){if(h===c){if(l>c){if(t.charCodeAt(a+h)===Fs)return i.slice(a+h+1);if(2===h)return i.slice(a+h)}s>c&&(e.charCodeAt(o+h)===Fs?d=h:2===h&&(d=3));break}var A=e.charCodeAt(o+h),p=t.charCodeAt(a+h);if(A!==p)break;A===Fs&&(d=h)}if(h!==c&&-1===d)return i;var f="";for(-1===d&&(d=0),h=o+d+1;h<=r;++h)h!==r&&e.charCodeAt(h)!==Fs||(0===f.length?f+="..":f+="\\..");return f.length>0?f+i.slice(a+d,u):(a+=d,i.charCodeAt(a)===Fs&&++a,i.slice(a,u))},toNamespacedPath:function(e){if("string"!==typeof e)return e;if(0===e.length)return"";var t=Ws.resolve(e);if(t.length>=3)if(t.charCodeAt(0)===Fs){if(t.charCodeAt(1)===Fs){var n=t.charCodeAt(2);if(n!==Os&&n!==ks)return"\\\\?\\UNC\\"+t.slice(2)}}else if(Hs(t.charCodeAt(0))&&t.charCodeAt(1)===Ms&&t.charCodeAt(2)===Fs)return"\\\\?\\"+t;return e},dirname:function(e){Ps(e,"path");var t=e.length;if(0===t)return".";var n=-1,i=-1,o=!0,r=0,s=e.charCodeAt(0);if(t>1)if(Rs(s)){if(n=r=1,Rs(e.charCodeAt(1))){for(var a=2,u=a;a<t;++a)if(Rs(e.charCodeAt(a)))break;if(a<t&&a!==u){for(u=a;a<t;++a)if(!Rs(e.charCodeAt(a)))break;if(a<t&&a!==u){for(u=a;a<t;++a)if(Rs(e.charCodeAt(a)))break;if(a===t)return e;a!==u&&(n=r=a+1)}}}}else Hs(s)&&e.charCodeAt(1)===Ms&&(n=r=2,t>2&&Rs(e.charCodeAt(2))&&(n=r=3));else if(Rs(s))return e;for(var l=t-1;l>=r;--l)if(Rs(e.charCodeAt(l))){if(!o){i=l;break}}else o=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename:function(e,t){void 0!==t&&Ps(t,"ext"),Ps(e,"path");var n,i=0,o=-1,r=!0;if(e.length>=2){var s=e.charCodeAt(0);Hs(s)&&e.charCodeAt(1)===Ms&&(i=2)}if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,u=-1;for(n=e.length-1;n>=i;--n){var l=e.charCodeAt(n);if(Rs(l)){if(!r){i=n+1;break}}else-1===u&&(r=!1,u=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=i;--n)if(Rs(e.charCodeAt(n))){if(!r){i=n+1;break}}else-1===o&&(r=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){Ps(e,"path");var t=0,n=-1,i=0,o=-1,r=!0,s=0;e.length>=2&&e.charCodeAt(1)===Ms&&Hs(e.charCodeAt(0))&&(t=i=2);for(var a=e.length-1;a>=t;--a){var u=e.charCodeAt(a);if(Rs(u)){if(!r){i=a+1;break}}else-1===o&&(r=!1,o=a+1),u===ks?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===i+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!==typeof e)throw new Ts("pathObject","Object",e);return Vs("\\",e)},parse:function(e){Ps(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,i=0,o=e.charCodeAt(0);if(n>1){if(Rs(o)){if(i=1,Rs(e.charCodeAt(1))){for(var r=2,s=r;r<n;++r)if(Rs(e.charCodeAt(r)))break;if(r<n&&r!==s){for(s=r;r<n;++r)if(!Rs(e.charCodeAt(r)))break;if(r<n&&r!==s){for(s=r;r<n;++r)if(Rs(e.charCodeAt(r)))break;r===n?i=r:r!==s&&(i=r+1)}}}}else if(Hs(o)&&e.charCodeAt(1)===Ms){if(i=2,!(n>2))return t.root=t.dir=e,t;if(Rs(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}}else if(Rs(o))return t.root=t.dir=e,t;i>0&&(t.root=e.slice(0,i));for(var a=-1,u=i,l=-1,c=!0,d=e.length-1,h=0;d>=i;--d)if(o=e.charCodeAt(d),Rs(o)){if(!c){u=d+1;break}}else-1===l&&(c=!1,l=d+1),o===ks?-1===a?a=d:1!==h&&(h=1):-1!==a&&(h=-1);return-1===a||-1===l||0===h||1===h&&a===l-1&&a===u+1?-1!==l&&(t.base=t.name=e.slice(u,l)):(t.name=e.slice(u,a),t.base=e.slice(u,l),t.ext=e.slice(a,l)),t.dir=u>0&&u!==i?e.slice(0,u-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Ks={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",i=!1,o=e.length-1;o>=-1&&!i;o--){var r=void 0;r=o>=0?e[o]:Bs["a"](),Ps(r,"path"),0!==r.length&&(n=r+"/"+n,i=r.charCodeAt(0)===Is)}return n=Qs(n,!i,"/",Us),i?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(Ps(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===Is,n=e.charCodeAt(e.length-1)===Is;return e=Qs(e,!t,"/",Us),0!==e.length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Ps(e,"path"),e.length>0&&e.charCodeAt(0)===Is},join:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return".";for(var i=0;i<t.length;++i){var o=arguments[i];Ps(o,"path"),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":Ks.normalize(e)},relative:function(e,t){if(Ps(e,"from"),Ps(t,"to"),e===t)return"";if(e=Ks.resolve(e),t=Ks.resolve(t),e===t)return"";for(var n=1;n<e.length;++n)if(e.charCodeAt(n)!==Is)break;for(var i=e.length,o=i-n,r=1;r<t.length;++r)if(t.charCodeAt(r)!==Is)break;for(var s=t.length,a=s-r,u=o<a?o:a,l=-1,c=0;c<=u;++c){if(c===u){if(a>u){if(t.charCodeAt(r+c)===Is)return t.slice(r+c+1);if(0===c)return t.slice(r+c)}else o>u&&(e.charCodeAt(n+c)===Is?l=c:0===c&&(l=0));break}var d=e.charCodeAt(n+c),h=t.charCodeAt(r+c);if(d!==h)break;d===Is&&(l=c)}var A="";for(c=n+l+1;c<=i;++c)c!==i&&e.charCodeAt(c)!==Is||(0===A.length?A+="..":A+="/..");return A.length>0?A+t.slice(r+l):(r+=l,t.charCodeAt(r)===Is&&++r,t.slice(r))},toNamespacedPath:function(e){return e},dirname:function(e){if(Ps(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===Is,n=-1,i=!0,o=e.length-1;o>=1;--o)if(e.charCodeAt(o)===Is){if(!i){n=o;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&Ps(t,"ext"),Ps(e,"path");var n,i=0,o=-1,r=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(u===Is){if(!r){i=n+1;break}}else-1===a&&(r=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1===--s&&(o=n):(s=-1,o=a))}return i===o?o=a:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===Is){if(!r){i=n+1;break}}else-1===o&&(r=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){Ps(e,"path");for(var t=-1,n=0,i=-1,o=!0,r=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(a!==Is)-1===i&&(o=!1,i=s+1),a===ks?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1);else if(!o){n=s+1;break}}return-1===t||-1===i||0===r||1===r&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==typeof e)throw new Ts("pathObject","Object",e);return Vs("/",e)},parse:function(e){Ps(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0)===Is;i?(t.root="/",n=1):n=0;for(var o=-1,r=0,s=-1,a=!0,u=e.length-1,l=0;u>=n;--u){var c=e.charCodeAt(u);if(c!==Is)-1===s&&(a=!1,s=u+1),c===ks?-1===o?o=u:1!==l&&(l=1):-1!==o&&(l=-1);else if(!a){r=u+1;break}}return-1===o||-1===s||0===l||1===l&&o===s-1&&o===r+1?-1!==s&&(t.base=t.name=0===r&&i?e.slice(1,s):e.slice(r,s)):(0===r&&i?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(r,o),t.base=e.slice(r,s)),t.ext=e.slice(o,s)),r>0?t.dir=e.slice(0,r-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ks.win32=Ws.win32=Ws,Ks.posix=Ws.posix=Ks;var zs="win32"===Bs["c"]?Ws.normalize:Ks.normalize,js="win32"===Bs["c"]?Ws.join:Ks.join,Gs="win32"===Bs["c"]?Ws.relative:Ks.relative,qs="win32"===Bs["c"]?Ws.dirname:Ks.dirname,Ys="win32"===Bs["c"]?Ws.basename:Ks.basename,Xs="win32"===Bs["c"]?Ws.extname:Ks.extname,Js="win32"===Bs["c"]?Ws.sep:Ks.sep;function Zs(e){return e.replace(/[\\/]/g,Ks.sep)}function $s(e,t,n,i){if(void 0===i&&(i=Js),e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){var o=Yr(e,t);if(!o)return!1;if(t.length===e.length)return!0;var r=t.length;return t.charAt(t.length-1)===i&&r--,e.charAt(r)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)}function ea(e){return e>=65&&e<=90||e>=97&&e<=122}var ta,na=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function ia(e){return!e||e.scheme!==Bi.file||!s["d"]}function oa(e){return aa(e)||e.authority}function ra(e,t){return e===t||Gr(e,t)}function sa(e,t,n){if(void 0===n&&(n=ia(e)),e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!ra(e.authority,t.authority))return!1;var i=e.path||"/",o=t.path||"/";return i===o||n&&Gr(i||"/",o||"/")}function aa(e){return Ks.basename(e.path)}function ua(e){if(0===e.path.length)return e;if(e.scheme===Bi.file)return Et.file(qs(da(e)));var t=Ks.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error('dirname("'+e.toString+")) resulted in a relative path"),t="/"),e.with({path:t})}function la(e){for(var t,n,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];return n=e.scheme===Bi.file?Et.file(js.apply(i,na([da(e)],o))).path:(t=Ks).join.apply(t,na([e.path||"/"],o)),e.with({path:n})}function ca(e){return e.path.length?(t=e.scheme===Bi.file?Et.file(zs(da(e))).path:Ks.normalize(e.path),e.with({path:t})):e;var t}function da(e){var t,n=e.path;return t=e.authority&&n.length>1&&e.scheme===Bi.file?"//"+e.authority+n:s["h"]&&47===n.charCodeAt(0)&&ea(n.charCodeAt(1))&&58===n.charCodeAt(2)?n.substr(1):n,s["h"]&&(t=t.replace(/\//g,"\\")),t}function ha(e,t,n){if(void 0===n&&(n=ia(e)),e.scheme===t.scheme&&ra(e.authority,t.authority)){if(e.scheme===Bi.file){var i=Gs(e.path,t.path);return s["h"]?Zs(i):i}var o=e.path||"/",r=t.path||"/";if(n){for(var a=0,u=Math.min(o.length,r.length);a<u;a++)if(o.charCodeAt(a)!==r.charCodeAt(a)&&o.charAt(a).toLowerCase()!==r.charAt(a).toLowerCase())break;o=r.substr(0,a)+o.substr(a)}return Ks.relative(o,r)}}(function(e){function t(t){var n=new Map,i=t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";"));i.split(";").forEach((function(e){var t=e.split(":"),i=t[0],o=t[1];i&&o&&n.set(i,o)}));var o=t.path.substring(0,t.path.indexOf(";"));return o&&n.set(e.META_DATA_MIME,o),n}e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=t})(ta||(ta={}));var Aa={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function pa(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==Aa.number||e.constructor!==Array)}function fa(e){return typeof e===Aa.string||e instanceof String}function ga(e){return typeof e===Aa.object&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function ma(e){return(typeof e===Aa.number||e instanceof Number)&&!isNaN(e)}function va(e){return!0===e||!1===e}function _a(e){return typeof e===Aa.undefined}function ya(e){return _a(e)||null===e}function wa(e,t){if(!e)throw new Error(t?"Unexpected type, expected '"+t+"'":"Unexpected type")}var ba=Object.prototype.hasOwnProperty;function Ca(e){if(!ga(e))return!1;for(var t in e)if(ba.call(e,t))return!1;return!0}function Sa(e){return typeof e===Aa.function}function Ba(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++)Ea(e[i],t[i])}function Ea(e,t){if(fa(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(Sa(t)){try{if(e instanceof t)return}catch(n){}if(!ya(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function xa(e){var t=[],n=Object.getPrototypeOf(e);while(Object.prototype!==n)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function La(e){for(var t=[],n=0,i=xa(e);n<i.length;n++){var o=i[n];"function"===typeof e[o]&&t.push(o)}return t}function Da(e,t){for(var n=function(e){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},i={},o=0,r=e;o<r.length;o++){var s=r[o];i[s]=n(s)}return i}function Na(e){return null===e?void 0:e}function ka(e){return"undefined"===typeof e?null:e}var Ia=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 Fa(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Ma(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}var Oa,Ta=function(){function e(){this._value="",this._pos=0}return e.prototype.reset=function(e){return this._value=e,this._pos=0,this},e.prototype.next=function(){return this._pos+=1,this},e.prototype.hasNext=function(){return this._pos<this._value.length-1},e.prototype.cmp=function(e){var t=e.charCodeAt(0),n=this._value.charCodeAt(this._pos);return t-n},e.prototype.value=function(){return this._value[this._pos]},e}(),Pa=function(){function e(e){void 0===e&&(e=!0),this._splitOnBackslash=e}return e.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},e.prototype.hasNext=function(){return this._to<this._value.length},e.prototype.next=function(){this._from=this._to;for(var e=!0;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this},e.prototype.cmp=function(e){var t=0,n=e.length,i=this._from;while(t<n&&i<this._to){var o=e.charCodeAt(t)-this._value.charCodeAt(i);if(0!==o)return o;t+=1,i+=1}return n===this._to-this._from?0:t<n?-1:1},e.prototype.value=function(){return this._value.substring(this._from,this._to)},e}(),Ra=function(){function e(){}return e}(),Ua=function(){function e(e){this._iter=e}return e.forPaths=function(){return new e(new Pa)},e.forStrings=function(){return new e(new Ta)},e.prototype.clear=function(){this._root=void 0},e.prototype.set=function(e,t){var n,i=this._iter.reset(e);this._root||(this._root=new Ra,this._root.segment=i.value()),n=this._root;while(1){var o=i.cmp(n.segment);if(o>0)n.left||(n.left=new Ra,n.left.segment=i.value()),n=n.left;else if(o<0)n.right||(n.right=new Ra,n.right.segment=i.value()),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new Ra,n.mid.segment=i.value()),n=n.mid}}var r=n.value;return n.value=t,n.key=e,r},e.prototype.get=function(e){var t=this._iter.reset(e),n=this._root;while(n){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0},e.prototype.findSubstr=function(e){var t=this._iter.reset(e),n=this._root,i=void 0;while(n){var o=t.cmp(n.segment);if(o>0)n=n.left;else if(o<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i},e.prototype.forEach=function(e){this._forEach(this._root,e)},e.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},e}(),Ha=function(){function e(){this.map=new Map,this.ignoreCase=!1}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e}(),Qa=function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.get=function(e,t){void 0===t&&(t=0);var n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value},e.prototype.set=function(e,t,n){void 0===n&&(n=0);var i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},e.prototype.forEach=function(e,t){var n=this._head;while(n)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){var t=this._head,n=this.size;while(t&&n>e)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0)}else this.clear()},e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e},e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e},e.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;n=e.next,i=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=i,i.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e.prototype.toJSON=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),e},e}(),Va=function(e){function t(t,n){void 0===n&&(n=1);var i=e.call(this)||this;return i._limit=t,i._ratio=Math.min(Math.max(0,n),1),i}return Ia(t,e),t.prototype.get=function(t){return e.prototype.get.call(this,t,2)},t.prototype.peek=function(t){return e.prototype.get.call(this,t,0)},t.prototype.set=function(t,n){e.prototype.set.call(this,t,n,2),this.checkTrim()},t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(Qa),Wa=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},Ka=Dn("commandService"),za=new(function(){function e(){this._commands=new Map,this._onDidRegisterCommand=new Ye,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return e.prototype.registerCommand=function(e,t){var n=this;if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){for(var i=[],o=0,r=e.description.args;o<r.length;o++){var s=r[o];i.push(s.constraint)}var a=e.handler;e.handler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Ba(t,i),a.apply(void 0,Wa([e],t))}}var u=e.id,l=this._commands.get(u);l||(l=new Ke,this._commands.set(u,l));var c=l.unshift(e),d=De((function(){var e;c();var t=n._commands.get(u);(null===(e=t)||void 0===e?void 0:e.isEmpty())&&n._commands.delete(u)}));return this._onDidRegisterCommand.fire(u),d},e.prototype.registerCommandAlias=function(e,t){return za.registerCommand(e,(function(e){for(var n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return(n=e.get(Ka)).executeCommand.apply(n,Wa([t],i))}))},e.prototype.getCommand=function(e){var t=this._commands.get(e);if(t&&!t.isEmpty())return t.iterator().next().value},e.prototype.getCommands=function(){for(var e=new Map,t=0,n=Ma(this._commands);t<n.length;t++){var i=n[t],o=this.getCommand(i);o&&e.set(i,o)}return e},e}()),ja=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Ga=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},qa=Dn("openerService"),Ya=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return Ie.None},registerValidator:function(){return Ie.None},registerExternalUriResolver:function(){return Ie.None},setExternalOpener:function(){},open:function(){return ja(this,void 0,void 0,(function(){return Ga(this,(function(e){return[2,!1]}))}))},resolveExternalUri:function(e){return ja(this,void 0,void 0,(function(){return Ga(this,(function(t){return[2,{resolved:e,dispose:function(){}}]}))}))}});function Xa(e,t){return Et.isUri(e)?Gr(e.scheme,t):Yr(e,t+":")}(function(e){e[e["API"]=0]="API",e[e["USER"]=1]="USER"})(Oa||(Oa={}));var Ja=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},Za=function(e,t){return function(n,i){t(n,i,e)}},$a=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},eu=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},tu=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},nu=function(){function e(e){this._commandService=e}return e.prototype.open=function(e){return $a(this,void 0,void 0,(function(){var t,n;return eu(this,(function(i){switch(i.label){case 0:if(!Xa(e,Bi.command))return[2,!1];if("string"===typeof e&&(e=Et.parse(e)),!za.getCommand(e.path))throw new Error("command '"+e.path+"' NOT known");t=[];try{t=br(decodeURIComponent(e.query))}catch(o){try{t=br(e.query)}catch(r){}}return Array.isArray(t)||(t=[t]),[4,(n=this._commandService).executeCommand.apply(n,tu([e.path],t))];case 1:return i.sent(),[2,!0]}}))}))},e=Ja([Za(0,Ka)],e),e}(),iu=function(){function e(e){this._editorService=e}return e.prototype.open=function(e,t){var n,i;return $a(this,void 0,void 0,(function(){var o,r;return eu(this,(function(s){switch(s.label){case 0:return"string"===typeof e&&(e=Et.parse(e)),o=void 0,r=/^L?(\d+)(?:,(\d+))?/.exec(e.fragment),r&&(o={startLineNumber:parseInt(r[1]),startColumn:r[2]?parseInt(r[2]):1},e=e.with({fragment:""})),e.scheme===Bi.file&&(e=ca(e)),[4,this._editorService.openCodeEditor({resource:e,options:{selection:o,context:(null===(n=t)||void 0===n?void 0:n.fromUserGesture)?Oa.USER:Oa.API}},this._editorService.getFocusedCodeEditor(),null===(i=t)||void 0===i?void 0:i.openToSide)];case 1:return s.sent(),[2,!0]}}))}))},e=Ja([Za(0,kn)],e),e}(),ou=function(){function e(e,t){var n=this;this._openers=new Ke,this._validators=new Ke,this._resolvers=new Ke,this._externalOpener={openExternal:function(e){return vr(e),Promise.resolve(!0)}},this._openers.push({open:function(e,t){return $a(n,void 0,void 0,(function(){var n;return eu(this,(function(i){switch(i.label){case 0:return(null===(n=t)||void 0===n?void 0:n.openExternal)||Xa(e,Bi.mailto)||Xa(e,Bi.http)||Xa(e,Bi.https)?[4,this._doOpenExternal(e,t)]:[3,2];case 1:return i.sent(),[2,!0];case 2:return[2,!1]}}))}))}}),this._openers.push(new nu(t)),this._openers.push(new iu(e))}return e.prototype.open=function(e,t){return $a(this,void 0,void 0,(function(){var n,i,o,r,s,a,u;return eu(this,(function(l){switch(l.label){case 0:n=0,i=this._validators.toArray(),l.label=1;case 1:return n<i.length?(o=i[n],[4,o.shouldOpen(e)]):[3,4];case 2:if(!l.sent())return[2,!1];l.label=3;case 3:return n++,[3,1];case 4:r=0,s=this._openers.toArray(),l.label=5;case 5:return r<s.length?(a=s[r],[4,a.open(e,t)]):[3,8];case 6:if(u=l.sent(),u)return[2,!0];l.label=7;case 7:return r++,[3,5];case 8:return[2,!1]}}))}))},e.prototype.resolveExternalUri=function(e,t){return $a(this,void 0,void 0,(function(){var n,i,o,r;return eu(this,(function(s){switch(s.label){case 0:n=0,i=this._resolvers.toArray(),s.label=1;case 1:return n<i.length?(o=i[n],[4,o.resolveExternalUri(e,t)]):[3,4];case 2:if(r=s.sent(),r)return[2,r];s.label=3;case 3:return n++,[3,1];case 4:return[2,{resolved:e,dispose:function(){}}]}}))}))},e.prototype._doOpenExternal=function(e,t){return $a(this,void 0,void 0,(function(){var n,i;return eu(this,(function(o){switch(o.label){case 0:return n="string"===typeof e?Et.parse(e):e,[4,this.resolveExternalUri(n,t)];case 1:return i=o.sent().resolved,"string"===typeof e&&n.toString()===i.toString()?[2,this._externalOpener.openExternal(e)]:[2,this._externalOpener.openExternal(encodeURI(i.toString(!0)))]}}))}))},e.prototype.dispose=function(){this._validators.clear()},e=Ja([Za(0,kn),Za(1,Ka)],e),e}();function ru(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}function su(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"===typeof e[n]?t[n]=su(e[n]):t[n]=e[n]})),t}function au(e){if(!e||"object"!==typeof e)return e;var t=[e];while(t.length>0){var n=t.shift();for(var i in Object.freeze(n),n)if(uu.call(n,i)){var o=n[i];"object"!==typeof o||Object.isFrozen(o)||t.push(o)}}return e}var uu=Object.prototype.hasOwnProperty;function lu(e,t){return cu(e,t,new Set)}function cu(e,t,n){if(ya(e))return e;var i=t(e);if("undefined"!==typeof i)return i;if(pa(e)){for(var o=[],r=0,s=e;r<s.length;r++){var a=s[r];o.push(cu(a,t,n))}return o}if(ga(e)){if(n.has(e))throw new Error("Cannot clone recursive data-structure");n.add(e);var u={};for(var l in e)uu.call(e,l)&&(u[l]=cu(e[l],t,n));return n.delete(e),u}return e}function du(e,t,n){return void 0===n&&(n=!0),ga(e)?(ga(t)&&Object.keys(t).forEach((function(i){i in e?n&&(ga(e[i])&&ga(t[i])?du(e[i],t[i],n):e[i]=t[i]):e[i]=t[i]})),e):t}function hu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){return Object.keys(t).forEach((function(n){return e[n]=t[n]}))})),e}function Au(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Au(e[n],t[n]))return!1}else{var o=[];for(i in e)o.push(i);o.sort();var r=[];for(i in t)r.push(i);if(r.sort(),!Au(o,r))return!1;for(n=0;n<o.length;n++)if(!Au(e[o[n]],t[o[n]]))return!1}return!0}function pu(e,t,n){var i=t(e);return"undefined"===typeof i?n:i}var fu=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)}}(),gu={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},mu=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this)||this;return i._onDidUpdate=i._register(new Ye),i._editor=t,i._options=du(n,gu,!1),i.disposed=!1,i.nextIdx=-1,i.ranges=[],i.ignoreSelectionChange=!1,i.revealFirst=Boolean(i._options.alwaysRevealFirst),i._register(i._editor.onDidDispose((function(){return i.dispose()}))),i._register(i._editor.onDidUpdateDiff((function(){return i._onDiffUpdated()}))),i._options.followsCaret&&i._register(i._editor.getModifiedEditor().onDidChangeCursorPosition((function(e){i.ignoreSelectionChange||(i.nextIdx=-1)}))),i._options.alwaysRevealFirst&&i._register(i._editor.getModifiedEditor().onDidChangeModel((function(e){i.revealFirst=!0}))),i._init(),i}return fu(t,e),t.prototype._init=function(){this._editor.getLineChanges()},t.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))},t.prototype._compute=function(e){var t=this;this.ranges=[],e&&e.forEach((function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach((function(e){t.ranges.push({rhs:!0,range:new vn(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})})):t.ranges.push({rhs:!0,range:new vn(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})})),this.ranges.sort((function(e,t){return e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0})),this._onDidUpdate.fire(this)},t.prototype._initIdx=function(e){var t=!1,n=this._editor.getPosition();if(n){for(var i=0,o=this.ranges.length;i<o&&!t;i++){var r=this.ranges[i].range;n.isBeforeOrEqual(r.getStartPosition())&&(this.nextIdx=i+(e?0:-1),t=!0)}t||(this.nextIdx=e?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0},t.prototype._move=function(e,t){if(ru(!this.disposed,"Illegal State - diff navigator has been disposed"),this.canNavigate()){-1===this.nextIdx?this._initIdx(e):e?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var i=n.range.getStartPosition();this._editor.setPosition(i),this._editor.revealPositionInCenter(i,t)}finally{this.ignoreSelectionChange=!1}}},t.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},t.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},t.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},t}(Ie),vu=new(function(){function e(){this._zoomLevel=0,this._onDidChangeZoomLevel=new Ye,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},e}()),_u=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)}}(),yu=s["e"]?1.5:1.35,wu=8,bu=function(){function e(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}return e.createFromValidatedSettings=function(t,n,i){var o=t.get(31),r=t.get(35),s=t.get(34),a=t.get(33),u=t.get(47),l=t.get(44);return e._create(o,r,s,a,u,l,n,i)},e._create=function(t,n,i,o,r,s,a,u){0===r?r=Math.round(yu*i):r<wu&&(r=wu);var l=1+(u?0:.1*vu.getZoomLevel());return i*=l,r*=l,new e({zoomLevel:a,fontFamily:t,fontWeight:n,fontSize:i,fontFeatureSettings:o,lineHeight:r,letterSpacing:s})},e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing},e.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},e}(),Cu=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isTrusted=n,i.isMonospace=t.isMonospace,i.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,i.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,i.canUseHalfwidthRightwardsArrow=t.canUseHalfwidthRightwardsArrow,i.spaceWidth=t.spaceWidth,i.maxDigitWidth=t.maxDigitWidth,i}return _u(t,e),t}(bu);function Su(e){return e&&"string"===typeof e.id}var Bu,Eu,xu={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},Lu={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"};(function(e){e[e["Left"]=1]="Left",e[e["Center"]=2]="Center",e[e["Right"]=4]="Right",e[e["Full"]=7]="Full"})(Bu||(Bu={})),function(e){e[e["Inline"]=1]="Inline",e[e["Gutter"]=2]="Gutter"}(Eu||(Eu={}));var Du=function(){function e(e){this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}return e.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace},e.prototype.createChangeEvent=function(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}},e}(),Nu=function(){function e(e,t){this.range=e,this.matches=t}return e}(),ku=function(){function e(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}return e}(),Iu="**",Fu="/",Mu="[/\\\\]",Ou="[^/\\\\]",Tu=/\//g;function Pu(e){switch(e){case 0:return"";case 1:return Ou+"*?";default:return"(?:"+Mu+"|"+Ou+"+"+Mu+"|"+Mu+Ou+"+)*?"}}function Ru(e,t){if(!e)return[];for(var n=[],i=!1,o=!1,r="",s=0,a=e;s<a.length;s++){var u=a[s];switch(u){case t:if(!i&&!o){n.push(r),r="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":o=!0;break;case"]":o=!1;break}r+=u}return r&&n.push(r),n}function Uu(e){if(!e)return"";var t="",n=Ru(e,Fu);if(n.every((function(e){return e===Iu})))t=".*";else{var i=!1;n.forEach((function(e,o){if(e!==Iu){for(var r=!1,s="",a=!1,u="",l=0,c=e;l<c.length;l++){var d=c[l];if("}"!==d&&r)s+=d;else if(!a||"]"===d&&u)switch(d){case"{":r=!0;continue;case"[":a=!0;continue;case"}":var h=Ru(s,","),A="(?:"+h.map((function(e){return Uu(e)})).join("|")+")";t+=A,r=!1,s="";break;case"]":t+="["+u+"]",a=!1,u="";break;case"?":t+=Ou;continue;case"*":t+=Pu(1);continue;default:t+=Dr(d)}else{var p=void 0;p="-"===d?d:"^"!==d&&"!"!==d||u?d===Fu?"":Dr(d):"^",u+=p}}o<n.length-1&&(n[o+1]!==Iu||o+2<n.length)&&(t+=Mu),i=!1}else i||(t+=Pu(2),i=!0)}))}return t}var Hu=/^\*\*\/\*\.[\w\.-]+$/,Qu=/^\*\*\/([\w\.-]+)\/?$/,Vu=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,Wu=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,Ku=/^\*\*((\/[\w\.-]+)+)\/?$/,zu=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,ju=new Va(1e4),Gu=function(){return!1},qu=function(){return null};function Yu(e,t){if(!e)return qu;var n;n="string"!==typeof e?e.pattern:e,n=n.trim();var i,o=n+"_"+!!t.trimForExclusions,r=ju.get(o);if(r)return Xu(r,e);if(Hu.test(n)){var s=n.substr(4);r=function(e,t){return"string"===typeof e&&Or(e,s)?n:null}}else r=(i=Qu.exec(Ju(n,t)))?Zu(i[1],n):(t.trimForExclusions?Wu:Vu).test(n)?$u(n,t):(i=Ku.exec(Ju(n,t)))?el(i[1].substr(1),n,!0):(i=zu.exec(Ju(n,t)))?el(i[1],n,!1):tl(n);return ju.set(o,r),Xu(r,e)}function Xu(e,t){return"string"===typeof t?e:function(n,i){return $s(n,t.base)?e(Gs(t.base,n),i):null}}function Ju(e,t){return t.trimForExclusions&&Or(e,"/**")?e.substr(0,e.length-2):e}function Zu(e,t){var n="/"+e,i="\\"+e,o=function(o,r){return"string"!==typeof o?null:r?r===e?t:null:o===e||Or(o,n)||Or(o,i)?t:null},r=[e];return o.basenames=r,o.patterns=[t],o.allBasenames=r,o}function $u(e,t){var n=al(e.slice(1,-1).split(",").map((function(e){return Yu(e,t)})).filter((function(e){return e!==qu})),e),i=n.length;if(!i)return qu;if(1===i)return n[0];var o=function(t,i){for(var o=0,r=n.length;o<r;o++)if(n[o](t,i))return e;return null},r=Wi(n,(function(e){return!!e.allBasenames}));r&&(o.allBasenames=r.allBasenames);var s=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return s.length&&(o.allPaths=s),o}function el(e,t,n){var i=Js!==Ks.sep?e.replace(Tu,Js):e,o=Js+i,r=n?function(e,n){return"string"!==typeof e||e!==i&&!Or(e,o)?null:t}:function(e,n){return"string"===typeof e&&e===i?t:null};return r.allPaths=[(n?"*/":"./")+e],r}function tl(e){try{var t=new RegExp("^"+Uu(e)+"$");return function(n,i){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(n){return qu}}function nl(e,t,n){return!(!e||"string"!==typeof t)&&il(e)(t,void 0,n)}function il(e,t){if(void 0===t&&(t={}),!e)return Gu;if("string"===typeof e||ol(e)){var n=Yu(e,t);if(n===qu)return Gu;var i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return rl(e,t)}function ol(e){var t=e;return t&&"string"===typeof t.base&&"string"===typeof t.pattern}function rl(e,t){var n=al(Object.getOwnPropertyNames(e).map((function(n){return sl(n,e[n],t)})).filter((function(e){return e!==qu}))),i=n.length;if(!i)return qu;if(!n.some((function(e){return!!e.requiresSiblings}))){if(1===i)return n[0];var o=function(e,t){for(var i=0,o=n.length;i<o;i++){var r=n[i](e,t);if(r)return r}return null},r=Wi(n,(function(e){return!!e.allBasenames}));r&&(o.allBasenames=r.allBasenames);var s=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return s.length&&(o.allPaths=s),o}var a=function(e,t,i){for(var o=void 0,r=0,s=n.length;r<s;r++){var a=n[r];a.requiresSiblings&&i&&(t||(t=Ys(e)),o||(o=t.substr(0,t.length-Xs(e).length)));var u=a(e,t,o,i);if(u)return u}return null},u=Wi(n,(function(e){return!!e.allBasenames}));u&&(a.allBasenames=u.allBasenames);var l=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return l.length&&(a.allPaths=l),a}function sl(e,t,n){if(!1===t)return qu;var i=Yu(e,n);if(i===qu)return qu;if("boolean"===typeof t)return i;if(t){var o=t.when;if("string"===typeof o){var r=function(t,n,r,s){if(!s||!i(t,n))return null;var a=o.replace("$(basename)",r),u=s(a);return pi(u)?u.then((function(t){return t?e:null})):u?e:null};return r.requiresSiblings=!0,r}}return i}function al(e,t){var n=e.filter((function(e){return!!e.basenames}));if(n.length<2)return e;var i,o=n.reduce((function(e,t){var n=t.basenames;return n?e.concat(n):e}),[]);if(t){i=[];for(var r=0,s=o.length;r<s;r++)i.push(t)}else i=n.reduce((function(e,t){var n=t.patterns;return n?e.concat(n):e}),[]);var a=function(e,t){if("string"!==typeof e)return null;if(!t){var n=void 0;for(n=e.length;n>0;n--){var r=e.charCodeAt(n-1);if(47===r||92===r)break}t=e.substr(n)}var s=o.indexOf(t);return-1!==s?i[s]:null};a.basenames=o,a.patterns=i,a.allBasenames=o;var u=e.filter((function(e){return!e.basenames}));return u.push(a),u}function ul(e,t,n,i){if(Array.isArray(e)){for(var o=0,r=0,s=e;r<s.length;r++){var a=s[r],u=ul(a,t,n,i);if(10===u)return u;u>o&&(o=u)}return o}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){var l=e.language,c=e.pattern,d=e.scheme,h=e.hasAccessToAllModels;if(!i&&!h)return 0;o=0;if(d)if(d===t.scheme)o=10;else{if("*"!==d)return 0;o=5}if(l)if(l===n)o=10;else{if("*"!==l)return 0;o=Math.max(o,5)}if(c){if(c!==t.fsPath&&!nl(c,t.fsPath))return 0;o=10}return o}return 0}var ll=Dn("modelService");function cl(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}function dl(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(dl):!!e.exclusive)}var hl,Al,pl,fl=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new Ye}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this,i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),De((function(){if(i){var e=n._entries.indexOf(i);e>=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),i=void 0)}}))},e.prototype.has=function(e){return this.all(e).length>0},e.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var t=[],n=0,i=this._entries;n<i.length;n++){var o=i[n];o._score>0&&t.push(o.provider)}return t},e.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,(function(e){return t.push(e.provider)})),t},e.prototype.orderedGroups=function(e){var t,n,i=[];return this._orderedForEach(e,(function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],i.push(t))})),i},e.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0,i=this._entries;n<i.length;n++){var o=i[n];o._score>0&&t(o)}}},e.prototype._updateScores=function(t){var n={uri:t.uri.toString(),language:t.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==n.language||this._lastCandidate.uri!==n.uri){this._lastCandidate=n;for(var i=0,o=this._entries;i<o.length;i++){var r=o[i];if(r._score=ul(r.selector,t.uri,t.getLanguageIdentifier().language,cl(t)),dl(r.selector)&&r._score>0){for(var s=0,a=this._entries;s<a.length;s++){var u=a[s];u._score=0}r._score=1e3;break}}this._entries.sort(e._compareByScoreAndTime)}},e._compareByScoreAndTime=function(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0},e}(),gl=function(){function e(){this._map=new Map,this._promises=new Map,this._onDidChange=new Ye,this.onDidChange=this._onDidChange.event,this._colorMap=null}return e.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},e.prototype.register=function(e,t){var n=this;return this._map.set(e,t),this.fire([e]),De((function(){n._map.get(e)===t&&(n._map.delete(e),n.fire([e]))}))},e.prototype.registerPromise=function(e,t){var n=this,i=null,o=!1;return this._promises.set(e,t.then((function(t){n._promises.delete(e),!o&&t&&(i=n.register(e,t))}))),De((function(){o=!0,i&&i.dispose()}))},e.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return Promise.resolve(n);var i=this._promises.get(e);return i?i.then((function(n){return t.get(e)})):null},e.prototype.get=function(e){return ka(this._map.get(e))},e.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Ma(this._map),changedColorMap:!0})},e.prototype.getColorMap=function(){return this._colorMap},e.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},e}(),ml=function(){function e(e,t){this.language=e,this.id=t}return e}(),vl=function(){function e(){}return e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.getClassNameFromMetadata=function(e){var t=this.getForeground(e),n="mtk"+t,i=this.getFontStyle(e);return 1&i&&(n+=" mtki"),2&i&&(n+=" mtkb"),4&i&&(n+=" mtku"),n},e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),i=this.getFontStyle(e),o="color: "+t[n]+";";return 1&i&&(o+="font-style: italic;"),2&i&&(o+="font-weight: bold;"),4&i&&(o+="text-decoration: underline;"),o},e}(),_l=function(){var e=Object.create(null);return e[0]="method",e[1]="function",e[2]="constructor",e[3]="field",e[4]="variable",e[5]="class",e[6]="struct",e[7]="interface",e[8]="module",e[9]="property",e[10]="event",e[11]="operator",e[12]="unit",e[13]="value",e[14]="constant",e[15]="enum",e[16]="enum-member",e[17]="keyword",e[25]="snippet",e[18]="text",e[19]="color",e[20]="file",e[21]="reference",e[22]="customcolor",e[23]="folder",e[24]="type-parameter",function(t){return e[t]||"property"}}(),yl=function(){var e=Object.create(null);return e["method"]=0,e["function"]=1,e["constructor"]=2,e["field"]=3,e["variable"]=4,e["class"]=5,e["struct"]=6,e["interface"]=7,e["module"]=8,e["property"]=9,e["event"]=10,e["operator"]=11,e["unit"]=12,e["value"]=13,e["constant"]=14,e["enum"]=15,e["enum-member"]=16,e["enumMember"]=16,e["keyword"]=17,e["snippet"]=25,e["text"]=18,e["color"]=19,e["file"]=20,e["reference"]=21,e["customcolor"]=22,e["folder"]=23,e["type-parameter"]=24,e["typeParameter"]=24,function(t,n){var i=e[t];return"undefined"!==typeof i||n||(i=9),i}}();function wl(e){return e&&Et.isUri(e.uri)&&vn.isIRange(e.range)&&(vn.isIRange(e.originSelectionRange)||vn.isIRange(e.targetSelectionRange))}(function(e){e[e["Invoke"]=1]="Invoke",e[e["TriggerCharacter"]=2]="TriggerCharacter",e[e["ContentChange"]=3]="ContentChange"})(hl||(hl={})),function(e){e[e["Text"]=0]="Text",e[e["Read"]=1]="Read",e[e["Write"]=2]="Write"}(Al||(Al={})),function(e){var t=new Map;t.set("file",0),t.set("module",1),t.set("namespace",2),t.set("package",3),t.set("class",4),t.set("method",5),t.set("property",6),t.set("field",7),t.set("constructor",8),t.set("enum",9),t.set("interface",10),t.set("function",11),t.set("variable",12),t.set("constant",13),t.set("string",14),t.set("number",15),t.set("boolean",16),t.set("array",17),t.set("object",18),t.set("key",19),t.set("null",20),t.set("enum-member",21),t.set("struct",22),t.set("event",23),t.set("operator",24),t.set("type-parameter",25);var n=new Map;function i(e){return t.get(e)}function o(e){return n.get(e)}function r(e,t){return"codicon "+(t?"inline":"block")+" codicon-symbol-"+(n.get(e)||"property")}n.set(0,"file"),n.set(1,"module"),n.set(2,"namespace"),n.set(3,"package"),n.set(4,"class"),n.set(5,"method"),n.set(6,"property"),n.set(7,"field"),n.set(8,"constructor"),n.set(9,"enum"),n.set(10,"interface"),n.set(11,"function"),n.set(12,"variable"),n.set(13,"constant"),n.set(14,"string"),n.set(15,"number"),n.set(16,"boolean"),n.set(17,"array"),n.set(18,"object"),n.set(19,"key"),n.set(20,"null"),n.set(21,"enum-member"),n.set(22,"struct"),n.set(23,"event"),n.set(24,"operator"),n.set(25,"type-parameter"),e.fromString=i,e.toString=o,e.toCssClassName=r}(pl||(pl={}));var bl=function(){function e(e){this.value=e}return e.Comment=new e("comment"),e.Imports=new e("imports"),e.Region=new e("region"),e}();function Cl(e){return ga(e)&&e.resource&&Array.isArray(e.edits)}var Sl=new fl,Bl=new fl,El=new fl,xl=new fl,Ll=new fl,Dl=new fl,Nl=new fl,kl=new fl,Il=new fl,Fl=new fl,Ml=new fl,Ol=new fl,Tl=new fl,Pl=new fl,Rl=new fl,Ul=new fl,Hl=new fl,Ql=new fl,Vl=new fl,Wl=new fl,Kl=new fl,zl=new gl,jl=function(){function e(){}return e.prototype.clone=function(){return this},e.prototype.equals=function(e){return this===e},e}(),Gl=new jl,ql="vs.editor.nullMode",Yl=new ml(ql,0);function Xl(e,t,n,i){return new bn([new wn(i,"",e)],n)}function Jl(e,t,n,i){var o=new Uint32Array(2);return o[0]=i,o[1]=(16384|e<<0|2<<23)>>>0,new Cn(o,null===n?Gl:n)}var Zl="editorWorkerService",$l=Dn(Zl),ec=Dn("textModelService"),tc=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)}}(),nc="$initialize",ic=!1;function oc(e){s["g"]&&(ic||(ic=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(e.message))}var rc=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(e){this._workerId=e},e.prototype.sendMessage=function(e,t){var n=this,i=String(++this._lastSentReq);return new Promise((function(o,r){n._pendingReplies[i]={resolve:o,reject:r},n._send({vsWorker:n._workerId,req:i,method:e,args:t})}))},e.prototype.handleMessage=function(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))},e.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq])return void console.warn("Got reply to unknown seq");var i=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){var o=n.err;return n.err.$isError&&(o=new Error,o.name=n.err.name,o.message=n.err.message,o.stack=n.err.stack),void i.reject(o)}i.resolve(n.res)}else{var r=e,s=r.req,a=this._handler.handleMessage(r.method,r.args);a.then((function(e){t._send({vsWorker:t._workerId,seq:s,res:e,err:void 0})}),(function(e){e.detail instanceof Error&&(e.detail=fe(e.detail)),t._send({vsWorker:t._workerId,seq:s,res:void 0,err:fe(e)})}))}},e.prototype._send=function(e){var t=[];if(e.req)for(var n=e,i=0;i<n.args.length;i++)n.args[i]instanceof ArrayBuffer&&t.push(n.args[i]);else{n=e;n.res instanceof ArrayBuffer&&t.push(n.res)}this._handler.sendMessage(e,t)},e}(),sc=function(e){function t(t,n,i){var o=e.call(this)||this,r=null;o._worker=o._register(t.create("vs/base/common/worker/simpleWorker",(function(e){o._protocol.handleMessage(e)}),(function(e){r&&r(e)}))),o._protocol=new rc({sendMessage:function(e,t){o._worker.postMessage(e,t)},handleMessage:function(e,t){if("function"!==typeof i[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(n){return Promise.reject(n)}}}),o._protocol.setWorkerId(o._worker.getId());var s=null;"undefined"!==typeof self.require&&"function"===typeof self.require.getConfig?s=self.require.getConfig():"undefined"!==typeof self.requirejs&&(s=self.requirejs.s.contexts._.config);var a=La(i);o._onModuleLoaded=o._protocol.sendMessage(nc,[o._worker.getId(),JSON.parse(JSON.stringify(s)),n,a]);var u=function(e,t){return o._request(e,t)};return o._lazyProxy=new Promise((function(e,t){r=t,o._onModuleLoaded.then((function(t){e(Da(t,u))}),(function(e){t(e),o._onError("Worker failed to load "+n,e)}))})),o}return tc(t,e),t.prototype.getProxyObject=function(){return this._lazyProxy},t.prototype._request=function(e,t){var n=this;return new Promise((function(i,o){n._onModuleLoaded.then((function(){n._protocol.sendMessage(e,t).then(i,o)}),o)}))},t.prototype._onError=function(e,t){console.error(e),console.info(t)},t}(Ie);(function(){function e(e,t){var n=this;this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new rc({sendMessage:function(t,n){e(t,n)},handleMessage:function(e,t){return n._handleMessage(e,t)}})}e.prototype.onmessage=function(e){this._protocol.handleMessage(e)},e.prototype._handleMessage=function(e,t){if(e===nc)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!==typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(n){return Promise.reject(n)}},e.prototype.initialize=function(e,t,n,i){var o=this;this._protocol.setWorkerId(e);var r=function(e,t){return o._protocol.sendMessage(e,t)},s=Da(i,r);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(s),Promise.resolve(La(this._requestHandler))):(t&&("undefined"!==typeof t.baseUrl&&delete t["baseUrl"],"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths["vs"],t.catchError=!0,self.require.config(t)),new Promise((function(e,t){self.require([n],(function(n){o._requestHandler=n.create(s),o._requestHandler?e(La(o._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}})();function ac(e,t){if(s["b"].MonacoEnvironment){if("function"===typeof s["b"].MonacoEnvironment.getWorker)return s["b"].MonacoEnvironment.getWorker(e,t);if("function"===typeof s["b"].MonacoEnvironment.getWorkerUrl)return new Worker(s["b"].MonacoEnvironment.getWorkerUrl(e,t))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function uc(e){return"function"===typeof e.then}var lc,cc=function(){function e(e,t,n,i,o){this.id=t;var r=ac("workerMain.js",n);uc(r)?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then((function(e){e.onmessage=function(e){i(e.data)},e.onmessageerror=o,"function"===typeof e.addEventListener&&e.addEventListener("error",o)}))}return e.prototype.getId=function(){return this.id},e.prototype.postMessage=function(e,t){this.worker&&this.worker.then((function(n){return n.postMessage(e,t)}))},e.prototype.dispose=function(){this.worker&&this.worker.then((function(e){return e.terminate()})),this.worker=null},e}(),dc=function(){function e(e){this._label=e,this._webWorkerFailedBeforeError=!1}return e.prototype.create=function(t,n,i){var o=this,r=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new cc(t,r,this._label||"anonymous"+r,n,(function(e){oc(e),o._webWorkerFailedBeforeError=e,i(e)}))},e.LAST_WORKER_ID=0,e}();(function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"})(lc||(lc={}));var hc=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;t<n;t++){var i=e.notIn[t];switch(i){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}return e.prototype.isOK=function(e){return 0===(this._standardTokenMask&e)},e}();function Ac(e,t){var n=e.getCount(),i=e.findTokenIndexAtOffset(t),o=e.getLanguageId(i),r=i;while(r+1<n&&e.getLanguageId(r+1)===o)r++;var s=i;while(s>0&&e.getLanguageId(s-1)===o)s--;return new pc(e,o,s,r+1,e.getStartOffset(s),e.getEndOffset(r))}var pc=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 fc(e){return 0!==(7&e)}var gc=function(){function e(t){if(t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map((function(e){return new hc(e)})):t.brackets?this._autoClosingPairs=t.brackets.map((function(e){return new hc({open:e[0],close:e[1]})})):this._autoClosingPairs=[],t.__electricCharacterSupport&&t.__electricCharacterSupport.docComment){var n=t.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new hc({open:n.open,close:n.close||""}))}this._autoCloseBefore="string"===typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}return e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},e.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},e.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;var i=t.findTokenIndexAtOffset(n-2),o=t.getStandardTokenType(i);return e.isOK(o)},e.prototype.getSurroundingPairs=function(){return this._surroundingPairs},e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t",e}(),mc=function(){function e(t,n,i,o,r,s){this.languageIdentifier=t,this.index=n,this.open=i,this.close=o,this.forwardRegex=r,this.reversedRegex=s,this._openSet=e._toSet(this.open),this._closeSet=e._toSet(this.close)}return e.prototype.isOpen=function(e){return this._openSet.has(e)},e.prototype.isClose=function(e){return this._closeSet.has(e)},e._toSet=function(e){for(var t=new Set,n=0,i=e;n<i.length;n++){var o=i[n];t.add(o)}return t},e}();function vc(e){var t=e.length;e=e.map((function(e){return[e[0].toLowerCase(),e[1].toLowerCase()]}));for(var n=[],i=0;i<t;i++)n[i]=i;var o=function(e,t){var n=e[0],i=e[1],o=t[0],r=t[1];return n===o||n===r||i===o||i===r},r=function(e,i){for(var o=Math.min(e,i),r=Math.max(e,i),s=0;s<t;s++)n[s]===r&&(n[s]=o)};for(i=0;i<t;i++)for(var s=e[i],a=i+1;a<t;a++){var u=e[a];o(s,u)&&r(n[i],n[a])}for(var l=[],c=0;c<t;c++){var d=[],h=[];for(i=0;i<t;i++)if(n[i]===c){var A=e[i],p=A[0],f=A[1];d.push(p),h.push(f)}d.length>0&&l.push({open:d,close:h})}return l}var _c=function(){function e(e,t){var n=vc(t);this.brackets=n.map((function(t,i){return new mc(e,i,t.open,t.close,Cc(t.open,t.close,n,i),Sc(t.open,t.close,n,i))})),this.forwardRegex=Bc(this.brackets),this.reversedRegex=Ec(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var i=0,o=this.brackets;i<o.length;i++){for(var r=o[i],s=0,a=r.open;s<a.length;s++){var u=a[s];this.textIsBracket[u]=r,this.textIsOpenBracket[u]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,u.length)}for(var l=0,c=r.close;l<c.length;l++){var d=c[l];this.textIsBracket[d]=r,this.textIsOpenBracket[d]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,d.length)}}}return e}();function yc(e,t,n,i){for(var o=0,r=t.length;o<r;o++)if(o!==n){for(var s=t[o],a=0,u=s.open;a<u.length;a++){var l=u[a];l.indexOf(e)>=0&&i.push(l)}for(var c=0,d=s.close;c<d.length;c++){var h=d[c];h.indexOf(e)>=0&&i.push(h)}}}function wc(e,t){return e.length-t.length}function bc(e){if(e.length<=1)return e;for(var t=[],n=new Set,i=0,o=e;i<o.length;i++){var r=o[i];n.has(r)||(t.push(r),n.add(r))}return t}function Cc(e,t,n,i){var o=[];o=o.concat(e),o=o.concat(t);for(var r=0,s=o.length;r<s;r++)yc(o[r],n,i,o);return o=bc(o),o.sort(wc),o.reverse(),Lc(o)}function Sc(e,t,n,i){var o=[];o=o.concat(e),o=o.concat(t);for(var r=0,s=o.length;r<s;r++)yc(o[r],n,i,o);return o=bc(o),o.sort(wc),o.reverse(),Lc(o.map(Dc))}function Bc(e){for(var t=[],n=0,i=e;n<i.length;n++){for(var o=i[n],r=0,s=o.open;r<s.length;r++){var a=s[r];t.push(a)}for(var u=0,l=o.close;u<l.length;u++){var c=l[u];t.push(c)}}return t=bc(t),Lc(t)}function Ec(e){for(var t=[],n=0,i=e;n<i.length;n++){for(var o=i[n],r=0,s=o.open;r<s.length;r++){var a=s[r];t.push(a)}for(var u=0,l=o.close;u<l.length;u++){var c=l[u];t.push(c)}}return t=bc(t),Lc(t.map(Dc))}function xc(e){var t=/^[\w ]+$/.test(e);return e=Dr(e),t?"\\b"+e+"\\b":e}function Lc(e){var t="("+e.map(xc).join(")|(")+")";return Tr(t,!0)}var Dc=function(){function e(e){for(var t="",n=e.length-1;n>=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}}(),Nc=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,i){var o=n.match(e);if(!o)return null;var r=n.length-(o.index||0),s=o[0].length,a=i+r;return new vn(t,a-s+1,t,a+1)},e.findPrevBracketInRange=function(e,t,n,i,o){var r=Dc(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 o=n.match(e);if(!o)return null;var r=o.index||0,s=o[0].length;if(0===s)return null;var a=i+r;return new vn(t,a+1,t,a+1+s)},e.findNextBracketInRange=function(e,t,n,i,o){var r=n.substring(i,o);return this.findNextBracketInText(e,t,r,i)},e}(),kc=function(){function e(e){this._richEditBrackets=e}return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets;t<n.length;t++)for(var i=n[t],o=0,r=i.close;o<r.length;o++){var s=r[o],a=s.charAt(s.length-1);e.push(a)}return e=e.filter((function(e,t,n){return n.indexOf(e)===t})),e},e.prototype.onElectricCharacter=function(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var i=t.findTokenIndexAtOffset(n-1);if(fc(t.getStandardTokenType(i)))return null;var o=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,n-1)+e,s=Nc.findPrevBracketInRange(o,1,r,0,r.length);if(!s)return null;var a=r.substring(s.startColumn-1,s.endColumn-1);a=a.toLowerCase();var u=this._richEditBrackets.textIsOpenBracket[a];if(u)return null;var l=r.substring(0,s.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null},e}(),Ic=function(){function e(e){this._indentationRules=e}return e.prototype.shouldIncrease=function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))},e.prototype.shouldDecrease=function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))},e.prototype.shouldIndentNextLine=function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))},e.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))},e.prototype.getIndentMetadata=function(e){var t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t},e}(),Fc=function(){function e(t){var n=this;t=t||{},t.brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach((function(t){var i=e._createOpenBracketRegExp(t[0]),o=e._createCloseBracketRegExp(t[1]);i&&o&&n._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:o})})),this._regExpRules=t.onEnterRules||[]}return e.prototype.onEnter=function(e,t,n,i){if(e>=3)for(var o=0,r=this._regExpRules.length;o<r;o++){var s=this._regExpRules[o],a=[{reg:s.beforeText,text:n},{reg:s.afterText,text:i},{reg:s.oneLineAboveText,text:t}].every((function(e){return!e.reg||e.reg.test(e.text)}));if(a)return s.action}if(e>=2&&n.length>0&&i.length>0)for(o=0,r=this._brackets.length;o<r;o++){var u=this._brackets[o];if(u.openRegExp.test(n)&&u.closeRegExp.test(i))return{indentAction:lc.IndentOutdent}}if(e>=2&&n.length>0)for(o=0,r=this._brackets.length;o<r;o++){u=this._brackets[o];if(u.openRegExp.test(n))return{indentAction:lc.Indent}}return null},e._createOpenBracketRegExp=function(t){var n=Dr(t);return/\B/.test(n.charAt(0))||(n="\\b"+n),n+="\\s*$",e._safeRegExp(n)},e._createCloseBracketRegExp=function(t){var n=Dr(t);return/\B/.test(n.charAt(n.length-1))||(n+="\\b"),n="^\\s*"+n,e._safeRegExp(n)},e._safeRegExp=function(e){try{return new RegExp(e)}catch(t){return Ae(t),null}},e}(),Mc=function(){function e(t,n,i){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var o=null;n&&(o=n._conf),this._conf=e._mergeConf(o,i),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new Fc(this._conf):null,this.comments=e._handleComments(this._conf),this.characterPair=new gc(this._conf),this.wordDefinition=this._conf.wordPattern||l,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new Ic(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}return Object.defineProperty(e.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new _c(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new kc(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),e.prototype.onEnter=function(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null},e._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,autoCloseBefore:e?t.autoCloseBefore||e.autoCloseBefore:t.autoCloseBefore,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},e._handleComments=function(e){var t=e.comments;if(!t)return null;var n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){var i=t.blockComment,o=i[0],r=i[1];n.blockCommentStartToken=o,n.blockCommentEndToken=r}return n},e}(),Oc=function(){function e(e){this.languageIdentifier=e}return e}(),Tc=function(){function e(){this._entries=new Map,this._onDidChange=new Ye,this.onDidChange=this._onDidChange.event}return e.prototype.register=function(e,t){var n=this,i=this._getRichEditSupport(e.id),o=new Mc(e,i,t);return this._entries.set(e.id,o),this._onDidChange.fire(new Oc(e)),De((function(){n._entries.get(e.id)===o&&(n._entries.set(e.id,i),n._onDidChange.fire(new Oc(e)))}))},e.prototype._getRichEditSupport=function(e){return this._entries.get(e)},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,n){var i=Ac(t,n-1),o=this._getElectricCharacterSupport(i.languageId);return o?o.onElectricCharacter(e,i,n-i.firstCharOffset):null},e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t&&t.comments||null},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():gc.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,n){var i=Ac(t,n-1);return gc.shouldAutoClosePair(e,i,n-i.firstCharOffset)},e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return c(t&&t.wordDefinition||null)},e.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null},e.prototype.getPrecedingValidLine=function(e,t,n){var i=e.getLanguageIdAtPosition(t,0);if(t>1){var o=void 0,r=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==i)return r;var s=e.getLineContent(o);if(!n.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return o;r=o}}return-1},e.prototype.getInheritIndentForLine=function(e,t,n,i){if(void 0===i&&(i=!0),e<4)return null;var o=this.getIndentRulesSupport(t.getLanguageIdentifier().id);if(!o)return null;if(n<=1)return{indentation:"",action:null};var r=this.getPrecedingValidLine(t,n,o);if(r<0)return null;if(r<1)return{indentation:"",action:null};var s=t.getLineContent(r);if(o.shouldIncrease(s)||o.shouldIndentNextLine(s))return{indentation:Hr(s),action:lc.Indent,line:r};if(o.shouldDecrease(s))return{indentation:Hr(s),action:null,line:r};if(1===r)return{indentation:Hr(t.getLineContent(r)),action:null,line:r};var a=r-1,u=o.getIndentMetadata(t.getLineContent(a));if(!(3&u)&&4&u){for(var l=0,c=a-1;c>0;c--)if(!o.shouldIndentNextLine(t.getLineContent(c))){l=c;break}return{indentation:Hr(t.getLineContent(l+1)),action:null,line:l+1}}if(i)return{indentation:Hr(t.getLineContent(r)),action:null,line:r};for(c=r;c>0;c--){var d=t.getLineContent(c);if(o.shouldIncrease(d))return{indentation:Hr(d),action:lc.Indent,line:c};if(o.shouldIndentNextLine(d)){l=0;for(var h=c-1;h>0;h--)if(!o.shouldIndentNextLine(t.getLineContent(c))){l=h;break}return{indentation:Hr(t.getLineContent(l+1)),action:null,line:l+1}}if(o.shouldDecrease(d))return{indentation:Hr(d),action:null,line:c}}return{indentation:Hr(t.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,i,o){if(e<4)return null;var r=this._getRichEditSupport(n);if(!r)return null;var s=this.getIndentRulesSupport(n);if(!s)return null;var a=this.getInheritIndentForLine(e,t,i),u=t.getLineContent(i);if(a){var l=a.line;if(void 0!==l){var c=r.onEnter(e,"",t.getLineContent(l),"");if(c){var d=Hr(t.getLineContent(l));return c.removeText&&(d=d.substring(0,d.length-c.removeText)),c.indentAction===lc.Indent||c.indentAction===lc.IndentOutdent?d=o.shiftIndent(d):c.indentAction===lc.Outdent&&(d=o.unshiftIndent(d)),s.shouldDecrease(u)&&(d=o.unshiftIndent(d)),c.appendText&&(d+=c.appendText),Hr(d)}}return s.shouldDecrease(u)?a.action===lc.Indent?a.indentation:o.unshiftIndent(a.indentation):a.action===lc.Indent?o.shiftIndent(a.indentation):a.indentation}return null},e.prototype.getIndentForEnter=function(e,t,n,i){if(e<4)return null;t.forceTokenization(n.startLineNumber);var o,r,s=t.getLineTokens(n.startLineNumber),a=Ac(s,n.startColumn-1),u=a.getLineContent(),l=!1;if(a.firstCharOffset>0&&s.getLanguageId(0)!==a.languageId?(l=!0,o=u.substr(0,n.startColumn-1-a.firstCharOffset)):o=s.getLineContent().substring(0,n.startColumn-1),n.isEmpty())r=u.substr(n.startColumn-1-a.firstCharOffset);else{var c=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);r=c.getLineContent().substr(n.endColumn-1-a.firstCharOffset)}var d=this.getIndentRulesSupport(a.languageId);if(!d)return null;var h=o,A=Hr(o),p={getLineTokens:function(e){return t.getLineTokens(e)},getLanguageIdentifier:function(){return t.getLanguageIdentifier()},getLanguageIdAtPosition:function(e,n){return t.getLanguageIdAtPosition(e,n)},getLineContent:function(e){return e===n.startLineNumber?h:t.getLineContent(e)}},f=Hr(s.getLineContent()),g=this.getInheritIndentForLine(e,p,n.startLineNumber+1);if(!g){var m=l?f:A;return{beforeEnter:m,afterEnter:m}}var v=l?f:g.indentation;return g.action===lc.Indent&&(v=i.shiftIndent(v)),d.shouldDecrease(r)&&(v=i.unshiftIndent(v)),{beforeEnter:l?f:A,afterEnter:v}},e.prototype.getIndentActionForType=function(e,t,n,i,o){if(e<4)return null;var r=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),s=this.getIndentRulesSupport(r.languageId);if(!s)return null;var a,u=r.getLineContent(),l=u.substr(0,n.startColumn-1-r.firstCharOffset);if(n.isEmpty())a=u.substr(n.startColumn-1-r.firstCharOffset);else{var c=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);a=c.getLineContent().substr(n.endColumn-1-r.firstCharOffset)}if(!s.shouldDecrease(l+a)&&s.shouldDecrease(l+i+a)){var d=this.getInheritIndentForLine(e,t,n.startLineNumber,!1);if(!d)return null;var h=d.indentation;return d.action!==lc.Indent&&(h=o.unshiftIndent(h)),h}return null},e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null},e.prototype.getEnterAction=function(e,t,n){var i=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),o=this._getRichEditSupport(i.languageId);if(!o)return null;var r,s=i.getLineContent(),a=s.substr(0,n.startColumn-1-i.firstCharOffset);if(n.isEmpty())r=s.substr(n.startColumn-1-i.firstCharOffset);else{var u=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);r=u.getLineContent().substr(n.endColumn-1-i.firstCharOffset)}var l="";if(n.startLineNumber>1&&0===i.firstCharOffset){var c=this.getScopedLineTokens(t,n.startLineNumber-1);c.languageId===i.languageId&&(l=c.getLineContent())}var d=o.onEnter(e,l,a,r);if(!d)return null;var h=d.indentAction,A=d.appendText,p=d.removeText||0;A||(A=h===lc.Indent||h===lc.IndentOutdent?"\t":"");var f=this.getIndentationAtPosition(t,n.startLineNumber,n.startColumn);return p&&(f=f.substring(0,f.length-p)),{indentAction:h,appendText:A,removeText:p,indentation:f}},e.prototype.getIndentationAtPosition=function(e,t,n){var i=e.getLineContent(t),o=Hr(i);return o.length>n-1&&(o=o.substring(0,n-1)),o},e.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var i=e.getLineTokens(t),o="undefined"===typeof n?e.getLineMaxColumn(t)-1:n-1;return Ac(i,o)},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},e}(),Pc=new Tc,Rc=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 Uc(e,t){switch(void 0===t&&(t=0),typeof e){case"object":return null===e?Hc(349,t):Array.isArray(e)?Wc(e,t):Kc(e,t);case"string":return Vc(e,t);case"boolean":return Qc(e,t);case"number":return Hc(e,t);case"undefined":return Hc(0,937);default:return Hc(0,617)}}function Hc(e,t){return(t<<5)-t+e|0}function Qc(e,t){return Hc(e?433:863,t)}function Vc(e,t){t=Hc(149417,t);for(var n=0,i=e.length;n<i;n++)t=Hc(e.charCodeAt(n),t);return t}function Wc(e,t){return t=Hc(104579,t),e.reduce((function(e,t){return Uc(t,e)}),t)}function Kc(e,t){return t=Hc(181387,t),Object.keys(e).sort().reduce((function(t,n){return t=Vc(n,t),Uc(e[n],t)}),t)}var zc=function(){function e(e){this.source=e}return e.prototype.getElements=function(){for(var e=this.source,t=new Int32Array(e.length),n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t},e}();function jc(e,t,n){return new Xc(new zc(e),new zc(t)).ComputeDiff(n).changes}var Gc=function(){function e(){}return e.Assert=function(e,t){if(!e)throw new Error(t)},e}(),qc=function(){function e(){}return e.Copy=function(e,t,n,i,o){for(var r=0;r<o;r++)n[i+r]=e[t+r]},e.Copy2=function(e,t,n,i,o){for(var r=0;r<o;r++)n[i+r]=e[t+r]},e}(),Yc=function(){function e(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return e.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Rc(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824},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}(),Xc=function(){function e(t,n,i){void 0===i&&(i=null),this.ContinueProcessingPredicate=i;var o=e._getElements(t),r=o[0],s=o[1],a=o[2],u=e._getElements(n),l=u[0],c=u[1],d=u[2];this._hasStrings=a&&d,this._originalStringElements=r,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e._isStringArray=function(e){return e.length>0&&"string"===typeof e[0]},e._getElements=function(t){var n=t.getElements();if(e._isStringArray(n)){for(var i=new Int32Array(n.length),o=0,r=n.length;o<r;o++)i[o]=Vc(n[o],0);return[n,i,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]},e.prototype.ElementsAreEqual=function(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])},e.prototype.OriginalElementsAreEqual=function(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])},e.prototype.ModifiedElementsAreEqual=function(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)},e.prototype._ComputeDiff=function(e,t,n,i,o){var r=[!1],s=this.ComputeDiffRecursive(e,t,n,i,r);return o&&(s=this.PrettifyChanges(s)),{quitEarly:r[0],changes:s}},e.prototype.ComputeDiffRecursive=function(e,t,n,i,o){o[0]=!1;while(e<=t&&n<=i&&this.ElementsAreEqual(e,n))e++,n++;while(t>=e&&i>=n&&this.ElementsAreEqual(t,i))t--,i--;if(e>t||n>i){var r=void 0;return n<=i?(Gc.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new Rc(e,0,n,i-n+1)]):e<=t?(Gc.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[new Rc(e,t-e+1,n,0)]):(Gc.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Gc.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}var s=[0],a=[0],u=this.ComputeRecursionPoint(e,t,n,i,s,a,o),l=s[0],c=a[0];if(null!==u)return u;if(!o[0]){var d=this.ComputeDiffRecursive(e,l,n,c,o),h=[];return h=o[0]?[new Rc(l+1,t-(l+1)+1,c+1,i-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,i,o),this.ConcatenateChanges(d,h)}return[new Rc(e,t-e+1,n,i-n+1)]},e.prototype.WALKTRACE=function(e,t,n,i,o,r,s,a,u,l,c,d,h,A,p,f,g,m){var v=null,_=null,y=new Yc,w=t,b=n,C=h[0]-f[0]-i,S=-1073741824,B=this.m_forwardHistory.length-1;do{var E=C+e;E===w||E<b&&u[E-1]<u[E+1]?(c=u[E+1],A=c-C-i,c<S&&y.MarkNextChange(),S=c,y.AddModifiedElement(c+1,A),C=E+1-e):(c=u[E-1]+1,A=c-C-i,c<S&&y.MarkNextChange(),S=c-1,y.AddOriginalElement(c,A+1),C=E-1-e),B>=0&&(u=this.m_forwardHistory[B],e=u[0],w=1,b=u.length-1)}while(--B>=-1);if(v=y.getReverseChanges(),m[0]){var x=h[0]+1,L=f[0]+1;if(null!==v&&v.length>0){var D=v[v.length-1];x=Math.max(x,D.getOriginalEnd()),L=Math.max(L,D.getModifiedEnd())}_=[new Rc(x,d-x+1,L,p-L+1)]}else{y=new Yc,w=r,b=s,C=h[0]-f[0]-a,S=1073741824,B=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{E=C+o;E===w||E<b&&l[E-1]>=l[E+1]?(c=l[E+1]-1,A=c-C-a,c>S&&y.MarkNextChange(),S=c+1,y.AddOriginalElement(c+1,A+1),C=E+1-o):(c=l[E-1],A=c-C-a,c>S&&y.MarkNextChange(),S=c,y.AddModifiedElement(c+1,A+1),C=E-1-o),B>=0&&(l=this.m_reverseHistory[B],o=l[0],w=1,b=l.length-1)}while(--B>=-1);_=y.getChanges()}return this.ConcatenateChanges(v,_)},e.prototype.ComputeRecursionPoint=function(e,t,n,i,o,r,s){var a=0,u=0,l=0,c=0,d=0,h=0;e--,n--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var A=t-e+(i-n),p=A+1,f=new Int32Array(p),g=new Int32Array(p),m=i-n,v=t-e,_=e-n,y=t-i,w=v-m,b=w%2===0;f[m]=e,g[v]=t,s[0]=!1;for(var C=1;C<=A/2+1;C++){var S=0,B=0;l=this.ClipDiagonalBound(m-C,C,m,p),c=this.ClipDiagonalBound(m+C,C,m,p);for(var E=l;E<=c;E+=2){a=E===l||E<c&&f[E-1]<f[E+1]?f[E+1]:f[E-1]+1,u=a-(E-m)-_;var x=a;while(a<t&&u<i&&this.ElementsAreEqual(a+1,u+1))a++,u++;if(f[E]=a,a+u>S+B&&(S=a,B=u),!b&&Math.abs(E-v)<=C-1&&a>=g[E])return o[0]=a,r[0]=u,x<=g[E]&&C<=1448?this.WALKTRACE(m,l,c,_,v,d,h,y,f,g,a,t,o,u,i,r,b,s):null}var L=(S-e+(B-n)-C)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(S,L))return s[0]=!0,o[0]=S,r[0]=B,L>0&&C<=1448?this.WALKTRACE(m,l,c,_,v,d,h,y,f,g,a,t,o,u,i,r,b,s):(e++,n++,[new Rc(e,t-e+1,n,i-n+1)]);d=this.ClipDiagonalBound(v-C,C,v,p),h=this.ClipDiagonalBound(v+C,C,v,p);for(E=d;E<=h;E+=2){a=E===d||E<h&&g[E-1]>=g[E+1]?g[E+1]-1:g[E-1],u=a-(E-v)-y;x=a;while(a>e&&u>n&&this.ElementsAreEqual(a,u))a--,u--;if(g[E]=a,b&&Math.abs(E-m)<=C&&a<=f[E])return o[0]=a,r[0]=u,x>=f[E]&&C<=1448?this.WALKTRACE(m,l,c,_,v,d,h,y,f,g,a,t,o,u,i,r,b,s):null}if(C<=1447){var D=new Int32Array(c-l+2);D[0]=m-l+1,qc.Copy2(f,l,D,1,c-l+1),this.m_forwardHistory.push(D),D=new Int32Array(h-d+2),D[0]=v-d+1,qc.Copy2(g,d,D,1,h-d+1),this.m_reverseHistory.push(D)}}return this.WALKTRACE(m,l,c,_,v,d,h,y,f,g,a,t,o,u,i,r,b,s)},e.prototype.PrettifyChanges=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=n.originalLength>0,s=n.modifiedLength>0;while(n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<o&&(!r||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength)))n.originalStart++,n.modifiedStart++;var a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(t=e.length-1;t>=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 l=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,A=n.modifiedStart-d;if(h<i||A<o)break;if(r&&!this.OriginalElementsAreEqual(h,h+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(A,A+n.modifiedLength))break;var p=this._boundaryScore(h,n.originalLength,A,n.modifiedLength);p>c&&(c=p,l=d)}n.originalStart-=l,n.modifiedStart-=l}return e},e.prototype._OriginalIsBoundary=function(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])},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){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])},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 qc.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],qc.Copy(t,1,i,e.length,t.length-1),i}i=new Array(e.length+t.length);return qc.Copy(e,0,i,0,e.length),qc.Copy(t,0,i,e.length,t.length),i},e.prototype.ChangesOverlap=function(e,t,n){if(Gc.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Gc.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 i=e.originalStart,o=e.originalLength,r=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new Rc(i,o,r,s),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,i){if(e>=0&&e<i)return e;var o=n,r=i-n-1,s=t%2===0;if(e<0){var a=o%2===0;return s===a?0:1}var u=r%2===0;return s===u?i-1:i-2},e}(),Jc=3;function Zc(e,t,n,i){var o=new Xc(e,t,n);return o.ComputeDiff(i)}var $c=function(){function e(e){for(var t=[],n=[],i=0,o=e.length;i<o;i++)t[i]=rd(e[i],1),n[i]=sd(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}return e.prototype.getElements=function(){for(var e=[],t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e},e.prototype.getStartLineNumber=function(e){return e+1},e.prototype.getEndLineNumber=function(e){return e+1},e.prototype.createCharSequence=function(e,t,n){for(var i=[],o=[],r=[],s=0,a=t;a<=n;a++)for(var u=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:u.length+1,d=l;d<c;d++)i[s]=u.charCodeAt(d-1),o[s]=a+1,r[s]=d,s++;return new ed(i,o,r)},e}(),ed=function(){function e(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}return e.prototype.getElements=function(){return this._charCodes},e.prototype.getStartLineNumber=function(e){return this._lineNumbers[e]},e.prototype.getStartColumn=function(e){return this._columns[e]},e.prototype.getEndLineNumber=function(e){return this._lineNumbers[e]},e.prototype.getEndColumn=function(e){return this._columns[e]+1},e}(),td=function(){function e(e,t,n,i,o,r,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=o,this.modifiedStartColumn=r,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}return e.createFromDiffChange=function(t,n,i){var o,r,s,a,u,l,c,d;return 0===t.originalLength?(o=0,r=0,s=0,a=0):(o=n.getStartLineNumber(t.originalStart),r=n.getStartColumn(t.originalStart),s=n.getEndLineNumber(t.originalStart+t.originalLength-1),a=n.getEndColumn(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=0,l=0,c=0,d=0):(u=i.getStartLineNumber(t.modifiedStart),l=i.getStartColumn(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=i.getEndColumn(t.modifiedStart+t.modifiedLength-1)),new e(o,r,s,a,u,l,c,d)},e}();function nd(e){if(e.length<=1)return e;for(var t=[e[0]],n=t[0],i=1,o=e.length;i<o;i++){var r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),a=r.modifiedStart-(n.modifiedStart+n.modifiedLength),u=Math.min(s,a);u<Jc?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}var id=function(){function e(e,t,n,i,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=o}return e.createFromDiffResult=function(t,n,i,o,r,s,a){var u,l,c,d,h=void 0;if(0===n.originalLength?(u=i.getStartLineNumber(n.originalStart)-1,l=0):(u=i.getStartLineNumber(n.originalStart),l=i.getEndLineNumber(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(c=o.getStartLineNumber(n.modifiedStart)-1,d=0):(c=o.getStartLineNumber(n.modifiedStart),d=o.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),s&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&r()){var A=i.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),p=o.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),f=Zc(A,p,r,!0).changes;a&&(f=nd(f)),h=[];for(var g=0,m=f.length;g<m;g++)h.push(td.createFromDiffChange(f[g],A,p))}return new e(u,l,c,d,h)},e}(),od=function(){function e(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new $c(e),this.modified=new $c(t),this.continueLineDiff=ad(n.maxComputationTime),this.continueCharDiff=ad(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}return e.prototype.computeDiff=function(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var e=Zc(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var i=[],o=0,r=t.length;o<r;o++)i.push(id.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:i}}for(var s=[],a=0,u=0,l=(o=-1,t.length);o<l;o++){var c=o+1<l?t[o+1]:null,d=c?c.originalStart:this.originalLines.length,h=c?c.modifiedStart:this.modifiedLines.length;while(a<d&&u<h){var A=this.originalLines[a],p=this.modifiedLines[u];if(A!==p){var f=rd(A,1),g=rd(p,1);while(f>1&&g>1){var m=A.charCodeAt(f-2),v=p.charCodeAt(g-2);if(m!==v)break;f--,g--}(f>1||g>1)&&this._pushTrimWhitespaceCharChange(s,a+1,1,f,u+1,1,g);var _=sd(A,1),y=sd(p,1),w=A.length+1,b=p.length+1;while(_<w&&y<b){m=A.charCodeAt(_-1),v=A.charCodeAt(y-1);if(m!==v)break;_++,y++}(_<w||y<b)&&this._pushTrimWhitespaceCharChange(s,a+1,_,w,u+1,y,b)}a++,u++}c&&(s.push(id.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),a+=c.originalLength,u+=c.modifiedLength)}return{quitEarly:n,changes:s}},e.prototype._pushTrimWhitespaceCharChange=function(e,t,n,i,o,r,s){if(!this._mergeTrimWhitespaceCharChange(e,t,n,i,o,r,s)){var a=void 0;this.shouldComputeCharChanges&&(a=[new td(t,n,t,i,o,r,o,s)]),e.push(new id(t,t,o,o,a))}},e.prototype._mergeTrimWhitespaceCharChange=function(e,t,n,i,o,r,s){var a=e.length;if(0===a)return!1;var u=e[a-1];return 0!==u.originalEndLineNumber&&0!==u.modifiedEndLineNumber&&(u.originalEndLineNumber+1===t&&u.modifiedEndLineNumber+1===o&&(u.originalEndLineNumber=t,u.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new td(t,n,t,i,o,r,o,s)),!0))},e}();function rd(e,t){var n=Ur(e);return-1===n?t:n+1}function sd(e,t){var n=Qr(e);return-1===n?t:n+2}function ad(e){if(0===e)return function(){return!0};var t=Date.now();return function(){return Date.now()-t<e}}function ud(e){return e<0?0:e>255?255:0|e}function ld(e){return e<0?0:e>4294967295?4294967295:0|e}function cd(e){for(var t=e.length,n=new Uint32Array(t),i=0;i<t;i++)n[i]=ld(e[i]);return n}var dd=function(){function e(e,t){this.index=e,this.remainder=t}return e}(),hd=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,t){e=ld(e);var n=this.values,i=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=ld(e),t=ld(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)},e.prototype.removeValues=function(e,t){e=ld(e),t=ld(t);var n=this.values,i=this.prefixSum;if(e>=n.length)return!1;var o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=ld(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();var t=0,n=this.values.length-1,i=0,o=0,r=0;while(t<=n)if(i=t+(n-t)/2|0,o=this.prefixSum[i],r=o-this.values[i],e<r)n=i-1;else{if(!(e>=o))break;t=i+1}return new dd(i,e-r)},e}(),Ad=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new hd(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t<this._cache.length)return this._cache[t]}return this._actual.getIndexOf(e)},e.prototype.warmUpCache=function(e,t){for(var n=[],i=e;i<=t;i++)n[i-e]=this.getIndexOf(i);this._cache=n,this._cacheAccumulatedValueStart=e},e}(),pd=function(){function e(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null}return e.prototype.dispose=function(){this._lines.length=0},e.prototype.getText=function(){return this._lines.join(this._eol)},e.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var t=e.changes,n=0,i=t;n<i.length;n++){var o=i[n];this._acceptDeleteRange(o.range),this._acceptInsertText(new mn(o.range.startLineNumber,o.range.startColumn),o.text)}this._versionId=e.versionId},e.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var e=this._eol.length,t=this._lines.length,n=new Uint32Array(t),i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new hd(n)}},e.prototype._setLineText=function(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)},e.prototype._acceptDeleteRange=function(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}},e.prototype._acceptInsertText=function(e,t){if(0!==t.length){var n=t.split(/\r\n|\r|\n/);if(1!==n.length){n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);for(var i=new Uint32Array(n.length-1),o=1;o<n.length;o++)this._lines.splice(e.lineNumber+o-1,0,n[o]),i[o-1]=n[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}else this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1))}},e}(),fd=function(){function e(t){var n=ud(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}return e._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},e.prototype.set=function(e,t){var n=ud(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}(),gd=function(){function e(){this._actual=new fd(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}(),md=function(){function e(e,t,n){for(var i=new Uint8Array(e*t),o=0,r=e*t;o<r;o++)i[o]=n;this._data=i,this.rows=e,this.cols=t}return e.prototype.get=function(e,t){return this._data[e*this.cols+t]},e.prototype.set=function(e,t,n){this._data[e*this.cols+t]=n},e}(),vd=function(){function e(e){for(var t=0,n=0,i=0,o=e.length;i<o;i++){var r=e[i],s=r[0],a=r[1],u=r[2];a>t&&(t=a),s>n&&(n=s),u>n&&(n=u)}t++,n++;var l=new md(n,t,0);for(i=0,o=e.length;i<o;i++){var c=e[i];s=c[0],a=c[1],u=c[2];l.set(s,a,u)}this._states=l,this._maxCharCode=t}return e.prototype.nextState=function(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)},e}(),_d=null;function yd(){return null===_d&&(_d=new vd([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),_d}var wd=null;function bd(){if(null===wd){wd=new fd(0);for(var e=" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…",t=0;t<e.length;t++)wd.set(e.charCodeAt(t),1);var n=".,;";for(t=0;t<n.length;t++)wd.set(n.charCodeAt(t),2)}return wd}var Cd=function(){function e(){}return e._createLink=function(e,t,n,i,o){var r=o-1;do{var s=t.charCodeAt(r),a=e.get(s);if(2!==a)break;r--}while(r>i);if(i>0){var u=t.charCodeAt(i-1),l=t.charCodeAt(r);(40===u&&41===l||91===u&&93===l||123===u&&125===l)&&r--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:r+2},url:t.substring(i,r+1)}},e.computeLinks=function(t,n){void 0===n&&(n=yd());for(var i=bd(),o=[],r=1,s=t.getLineCount();r<=s;r++){var a=t.getLineContent(r),u=a.length,l=0,c=0,d=0,h=1,A=!1,p=!1,f=!1;while(l<u){var g=!1,m=a.charCodeAt(l);if(13===h){var v=void 0;switch(m){case 40:A=!0,v=0;break;case 41:v=A?0:1;break;case 91:p=!0,v=0;break;case 93:v=p?0:1;break;case 123:f=!0,v=0;break;case 125:v=f?0:1;break;case 39:v=34===d||96===d?0:1;break;case 34:v=39===d||96===d?0:1;break;case 96:v=39===d||34===d?0:1;break;case 42:v=42===d?1:0;break;default:v=i.get(m)}1===v&&(o.push(e._createLink(i,a,r,c,l)),g=!0)}else if(12===h){v=void 0;91===m?(p=!0,v=0):v=i.get(m),1===v?g=!0:h=13}else h=n.nextState(h,m),0===h&&(g=!0);g&&(h=1,A=!1,p=!1,f=!1,c=l+1,d=m),l++}13===h&&o.push(e._createLink(i,a,r,c,u))}return o},e}();function Sd(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?Cd.computeLinks(e):[]}var Bd=function(){function e(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return e.prototype.navigateValueSet=function(e,t,n,i,o){if(e&&t){var r=this.doNavigateValueSet(t,o);if(r)return{range:e,value:r}}if(n&&i){r=this.doNavigateValueSet(i,o);if(r)return{range:n,value:r}}return null},e.prototype.doNavigateValueSet=function(e,t){var n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)},e.prototype.numberReplace=function(e,t){var n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),o=parseFloat(e);return isNaN(i)||isNaN(o)||i!==o?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null},e.prototype.textReplace=function(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)},e.prototype.valueSetsReplace=function(e,t,n){for(var i=null,o=0,r=e.length;null===i&&o<r;o++)i=this.valueSetReplace(e[o],t,n);return i},e.prototype.valueSetReplace=function(e,t,n){var i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null},e.INSTANCE=new e,e}(),Ed=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)}}(),xd=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Ld=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},Dd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ed(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(e){return this._lines[e-1]},t.prototype.getWordAtPosition=function(e,t){var n=A(e.column,c(t),this._lines[e.lineNumber-1],0);return n?new vn(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},t.prototype.createWordIterator=function(e){var t,n,i=this,o=0,r=0,s=[],a=function(){if(r<s.length){var u=n.substring(s[r].start,s[r].end);return r+=1,t?t.value=u:t={done:!1,value:u},t}return o>=i._lines.length?Te:(n=i._lines[o],s=i._wordenize(n,e),r=0,o+=1,a())};return{next:a}},t.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],i=this._wordenize(n,t),o=[],r=0,s=i;r<s.length;r++){var a=s[r];o.push({word:n.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1})}return o},t.prototype._wordenize=function(e,t){var n,i=[];t.lastIndex=0;while(n=t.exec(e)){if(0===n[0].length)break;i.push({start:n.index,end:n.index+n[0].length})}return i},t.prototype.getValueInRange=function(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(var r=n+1;r<i;r++)o.push(this._lines[r]);return o.push(this._lines[i].substring(0,e.endColumn-1)),o.join(t)},t.prototype.offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)},t.prototype.positionAt=function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}},t.prototype._validateRange=function(e){var t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e},t.prototype._validatePosition=function(e){if(!mn.isIPosition(e))throw new Error("bad position");var t=e.lineNumber,n=e.column,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{var o=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>o&&(n=o,i=!0)}return i?{lineNumber:t,column:n}:e},t}(pd),Nd=function(){function e(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}return e.prototype.dispose=function(){this._models=Object.create(null)},e.prototype._getModel=function(e){return this._models[e]},e.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach((function(n){return t.push(e._models[n])})),t},e.prototype.acceptNewModel=function(e){this._models[e.url]=new Dd(Et.parse(e.url),e.lines,e.EOL,e.versionId)},e.prototype.acceptModelChanged=function(e,t){if(this._models[e]){var n=this._models[e];n.onEvents(t)}},e.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},e.prototype.computeDiff=function(e,t,n,i){return xd(this,void 0,void 0,(function(){var o,r,s,a,u,l,c;return Ld(this,(function(d){return o=this._getModel(e),r=this._getModel(t),o&&r?(s=o.getLinesContent(),a=r.getLinesContent(),u=new od(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}),l=u.computeDiff(),c=!(l.changes.length>0)&&this._modelsAreIdentical(o,r),[2,{quitEarly:l.quitEarly,identical:c,changes:l.changes}]):[2,null]}))}))},e.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount(),i=t.getLineCount();if(n!==i)return!1;for(var o=1;o<=n;o++){var r=e.getLineContent(o),s=t.getLineContent(o);if(r!==s)return!1}return!0},e.prototype.computeMoreMinimalEdits=function(t,n){return xd(this,void 0,void 0,(function(){var i,o,r,s,a,u,l,c,d,h,A,p,f,g,m,v,_,y;return Ld(this,(function(w){if(i=this._getModel(t),!i)return[2,n];for(o=[],r=void 0,n=Ii(n,(function(e,t){if(e.range&&t.range)return vn.compareRangesUsingStarts(e.range,t.range);var n=e.range?0:1,i=t.range?0:1;return n-i})),s=0,a=n;s<a.length;s++)if(u=a[s],l=u.range,c=u.text,d=u.eol,"number"===typeof d&&(r=d),(!vn.isEmpty(l)||c)&&(h=i.getValueInRange(l),c=c.replace(/\r\n|\n|\r/g,i.eol),h!==c))if(Math.max(c.length,h.length)>e._diffLimit)o.push({range:l,text:c});else for(A=jc(h,c,!1),p=i.offsetAt(vn.lift(l).getStartPosition()),f=0,g=A;f<g.length;f++)m=g[f],v=i.positionAt(p+m.originalStart),_=i.positionAt(p+m.originalStart+m.originalLength),y={text:c.substr(m.modifiedStart,m.modifiedLength),range:{startLineNumber:v.lineNumber,startColumn:v.column,endLineNumber:_.lineNumber,endColumn:_.column}},i.getValueInRange(y.range)!==y.text&&o.push(y);return"number"===typeof r&&o.push({eol:r,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,o]}))}))},e.prototype.computeLinks=function(e){return xd(this,void 0,void 0,(function(){var t;return Ld(this,(function(n){return t=this._getModel(e),t?[2,Sd(t)]:[2,null]}))}))},e.prototype.textualSuggest=function(t,n,i,o){return xd(this,void 0,void 0,(function(){var r,s,a,u,l,c,d,h;return Ld(this,(function(A){if(r=this._getModel(t),!r)return[2,null];for(s=[],a=new Set,u=new RegExp(i,o),l=r.getWordAtPosition(n,u),l&&a.add(r.getValueInRange(l)),c=r.createWordIterator(u),d=c.next();!d.done&&a.size<=e._suggestionsLimit;d=c.next())h=d.value,a.has(h)||(a.add(h),isNaN(Number(h))&&s.push(h));return[2,s]}))}))},e.prototype.computeWordRanges=function(e,t,n,i){return xd(this,void 0,void 0,(function(){var o,r,s,a,u,l,c,d,h;return Ld(this,(function(A){if(o=this._getModel(e),!o)return[2,Object.create(null)];for(r=new RegExp(n,i),s=Object.create(null),a=t.startLineNumber;a<t.endLineNumber;a++)for(u=o.getLineWords(a,r),l=0,c=u;l<c.length;l++)d=c[l],isNaN(Number(d.word))&&(h=s[d.word],h||(h=[],s[d.word]=h),h.push({startLineNumber:a,startColumn:d.startColumn,endLineNumber:a,endColumn:d.endColumn}));return[2,s]}))}))},e.prototype.navigateValueSet=function(e,t,n,i,o){return xd(this,void 0,void 0,(function(){var r,s,a,u,l,c;return Ld(this,(function(d){return r=this._getModel(e),r?(s=new RegExp(i,o),t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1}),a=r.getValueInRange(t),u=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s),u?(l=r.getValueInRange(u),c=Bd.INSTANCE.navigateValueSet(t,a,u,l,n),[2,c]):[2,null]):[2,null]}))}))},e.prototype.loadForeignModule=function(e,t,n){var i=this,o=function(e,t){return i._host.fhr(e,t)},r=Da(n,o),s={host:r,getMirrorModels:function(){return i._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(s,t),Promise.resolve(La(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},e.prototype.fmr=function(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}},e._diffLimit=1e5,e._suggestionsLimit=1e4,e}();"function"===typeof importScripts&&(s["b"].monaco=Bn());var kd=Dn("textResourceConfigurationService"),Id=Dn("textResourcePropertiesService"),Fd=Dn("logService"),Md=function(){function e(){}return e.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.dispose=function(){},e}(),Od=s["b"].performance&&"function"===typeof s["b"].performance.now,Td=function(){function e(e){this._highResolution=Od&&e,this._startTime=this._now(),this._stopTime=-1}return e.create=function(t){return void 0===t&&(t=!0),new e(t)},e.prototype.stop=function(){this._stopTime=this._now()},e.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?s["b"].performance.now():(new Date).getTime()},e}(),Pd=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)}}(),Rd=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},Ud=function(e,t){return function(n,i){t(n,i,e)}},Hd=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Qd=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},Vd=6e4,Wd=3e5;function Kd(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}var zd=function(e){function t(t,n,i){var o=e.call(this)||this;return o._modelService=t,o._workerManager=o._register(new Gd(o._modelService)),o._logService=i,o._register(Hl.register("*",{provideLinks:function(e,t){return Kd(o._modelService,e.uri)?o._workerManager.withWorker().then((function(t){return t.computeLinks(e.uri)})).then((function(e){return e&&{links:e}})):Promise.resolve({links:[]})}})),o._register(El.register("*",new jd(o._workerManager,n,o._modelService))),o}return Pd(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.canComputeDiff=function(e,t){return Kd(this._modelService,e)&&Kd(this._modelService,t)},t.prototype.computeDiff=function(e,t,n,i){return this._workerManager.withWorker().then((function(o){return o.computeDiff(e,t,n,i)}))},t.prototype.computeMoreMinimalEdits=function(e,t){var n=this;if(Ri(t)){if(!Kd(this._modelService,e))return Promise.resolve(t);var i=Td.create(!0),o=this._workerManager.withWorker().then((function(n){return n.computeMoreMinimalEdits(e,t)}));return o.finally((function(){return n._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())})),o}return Promise.resolve(void 0)},t.prototype.canNavigateValueSet=function(e){return Kd(this._modelService,e)},t.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then((function(i){return i.navigateValueSet(e,t,n)}))},t.prototype.canComputeWordRanges=function(e){return Kd(this._modelService,e)},t.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then((function(n){return n.computeWordRanges(e,t)}))},t=Rd([Ud(0,ll),Ud(1,kd),Ud(2,Fd)],t),t}(Ie),jd=function(){function e(e,t,n){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}return e.prototype.provideCompletionItems=function(e,t){return Hd(this,void 0,void 0,(function(){var n,i,o,r,s,a;return Qd(this,(function(u){switch(u.label){case 0:return n=this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions,n?Kd(this._modelService,e.uri)?(i=e.getWordAtPosition(t),o=i?new vn(t.lineNumber,i.startColumn,t.lineNumber,i.endColumn):vn.fromPositions(t),r=o.setEndPosition(t.lineNumber,t.column),[4,this._workerManager.withWorker()]):[2,void 0]:[2,void 0];case 1:return s=u.sent(),[4,s.textualSuggest(e.uri,t)];case 2:return a=u.sent(),a?[2,{suggestions:a.map((function(e){return{kind:18,label:e,insertText:e,range:{insert:r,replace:o}}}))}]:[2,void 0]}}))}))},e}(),Gd=function(e){function t(t){var n=e.call(this)||this;n._modelService=t,n._editorWorkerClient=null,n._lastWorkerUsedTime=(new Date).getTime();var i=n._register(new Ci);return i.cancelAndSet((function(){return n._checkStopIdleWorker()}),Math.round(Wd/2)),n._register(n._modelService.onModelRemoved((function(e){return n._checkStopEmptyWorker()}))),n}return Pd(t,e),t.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),e.prototype.dispose.call(this)},t.prototype._checkStopEmptyWorker=function(){if(this._editorWorkerClient){var e=this._modelService.getModels();0===e.length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},t.prototype._checkStopIdleWorker=function(){if(this._editorWorkerClient){var e=(new Date).getTime()-this._lastWorkerUsedTime;e>Wd&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Jd(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},t}(Ie),qd=function(e){function t(t,n,i){var o=e.call(this)||this;if(o._syncedModels=Object.create(null),o._syncedModelsLastUsedTime=Object.create(null),o._proxy=t,o._modelService=n,!i){var r=new Ci;r.cancelAndSet((function(){return o._checkStopModelSync()}),Math.round(Vd/2)),o._register(r)}return o}return Pd(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)xe(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),e.prototype.dispose.call(this)},t.prototype.ensureSyncedResources=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i.toString();this._syncedModels[o]||this._beginModelSync(i),this._syncedModels[o]&&(this._syncedModelsLastUsedTime[o]=(new Date).getTime())}},t.prototype._checkStopModelSync=function(){var e=(new Date).getTime(),t=[];for(var n in this._syncedModelsLastUsedTime){var i=e-this._syncedModelsLastUsedTime[n];i>Vd&&t.push(n)}for(var o=0,r=t;o<r.length;o++){var s=r[o];this._stopModelSync(s)}},t.prototype._beginModelSync=function(e){var t=this,n=this._modelService.getModel(e);if(n&&!n.isTooLargeForSyncing()){var i=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});var o=new ke;o.add(n.onDidChangeContent((function(e){t._proxy.acceptModelChanged(i.toString(),e)}))),o.add(n.onWillDispose((function(){t._stopModelSync(i)}))),o.add(De((function(){t._proxy.acceptRemovedModel(i)}))),this._syncedModels[i]=o}},t.prototype._stopModelSync=function(e){var t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],xe(t)},t}(Ie),Yd=function(){function e(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}return e.prototype.dispose=function(){this._instance.dispose()},e.prototype.getProxyObject=function(){return this._proxyObj},e}(),Xd=function(){function e(e){this._workerClient=e}return e.prototype.fhr=function(e,t){return this._workerClient.fhr(e,t)},e}(),Jd=function(e){function t(t,n,i){var o=e.call(this)||this;return o._modelService=t,o._keepIdleModels=n,o._workerFactory=new dc(i),o._worker=null,o._modelManager=null,o}return Pd(t,e),t.prototype.fhr=function(e,t){throw new Error("Not implemented!")},t.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new sc(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Xd(this)))}catch(e){oc(e),this._worker=new Yd(new Nd(new Xd(this),null))}return this._worker},t.prototype._getProxy=function(){var e=this;return this._getOrCreateWorker().getProxyObject().then(void 0,(function(t){return oc(t),e._worker=new Yd(new Nd(new Xd(e),null)),e._getOrCreateWorker().getProxyObject()}))},t.prototype._getOrCreateModelManager=function(e){return this._modelManager||(this._modelManager=this._register(new qd(e,this._modelService,this._keepIdleModels))),this._modelManager},t.prototype._withSyncedResources=function(e){var t=this;return this._getProxy().then((function(n){return t._getOrCreateModelManager(n).ensureSyncedResources(e),n}))},t.prototype.computeDiff=function(e,t,n,i){return this._withSyncedResources([e,t]).then((function(o){return o.computeDiff(e.toString(),t.toString(),n,i)}))},t.prototype.computeMoreMinimalEdits=function(e,t){return this._withSyncedResources([e]).then((function(n){return n.computeMoreMinimalEdits(e.toString(),t)}))},t.prototype.computeLinks=function(e){return this._withSyncedResources([e]).then((function(t){return t.computeLinks(e.toString())}))},t.prototype.textualSuggest=function(e,t){var n=this;return this._withSyncedResources([e]).then((function(i){var o=n._modelService.getModel(e);if(!o)return null;var r=Pc.getWordDefinition(o.getLanguageIdentifier().id),s=r.source,a=Rr(r);return i.textualSuggest(e.toString(),t,s,a)}))},t.prototype.computeWordRanges=function(e,t){var n=this;return this._withSyncedResources([e]).then((function(i){var o=n._modelService.getModel(e);if(!o)return Promise.resolve(null);var r=Pc.getWordDefinition(o.getLanguageIdentifier().id),s=r.source,a=Rr(r);return i.computeWordRanges(e.toString(),t,s,a)}))},t.prototype.navigateValueSet=function(e,t,n){var i=this;return this._withSyncedResources([e]).then((function(o){var r=i._modelService.getModel(e);if(!r)return null;var s=Pc.getWordDefinition(r.getLanguageIdentifier().id),a=s.source,u=Rr(s);return o.navigateValueSet(e.toString(),t,n,a,u)}))},t}(Ie),Zd=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 $d(e,t){return new th(e,t)}var eh,th=function(e){function t(t,n){var i=e.call(this,t,n.keepIdleModels||!1,n.label)||this;return i._foreignModuleId=n.moduleId,i._foreignModuleCreateData=n.createData||null,i._foreignModuleHost=n.host||null,i._foreignProxy=null,i}return Zd(t,e),t.prototype.fhr=function(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(n){return Promise.reject(n)}},t.prototype._getForeignProxy=function(){var e=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then((function(t){var n=e._foreignModuleHost?La(e._foreignModuleHost):[];return t.loadForeignModule(e._foreignModuleId,e._foreignModuleCreateData,n).then((function(n){e._foreignModuleCreateData=null;for(var i=function(e,n){return t.fmr(e,n)},o=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},r={},s=0,a=n;s<a.length;s++){var u=a[s];r[u]=o(u,i)}return r}))}))),this._foreignProxy},t.prototype.getProxy=function(){return this._getForeignProxy()},t.prototype.withSyncedResources=function(e){var t=this;return this._withSyncedResources(e).then((function(e){return t.getProxy()}))},t}(Jd),nh=function(){function e(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}return e.prototype.equals=function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)},e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,o=i+(n<<1),r=i;r<o;r++)if(this._tokens[r]!==e._tokens[r])return!1;return!0},e.prototype.getLineContent=function(){return this._text},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getStartOffset=function(e){return e>0?this._tokens[e-1<<1]:0},e.prototype.getMetadata=function(e){var t=this._tokens[1+(e<<1)];return t},e.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return vl.getLanguageId(t)},e.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return vl.getTokenType(t)},e.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return vl.getForeground(t)},e.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return vl.getClassNameFromMetadata(t)},e.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return vl.getInlineStyleFromMetadata(n,t)},e.prototype.getEndOffset=function(e){return this._tokens[e<<1]},e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t)},e.prototype.inflate=function(){return this},e.prototype.sliceAndInflate=function(e,t,n){return new ih(this,e,t,n)},e.convertToEndOffset=function(e,t){for(var n=e.length>>>1,i=n-1,o=0;o<i;o++)e[o<<1]=e[o+1<<1];e[i<<1]=t},e.findIndexInTokensArray=function(e,t){if(e.length<=2)return 0;var n=0,i=(e.length>>>1)-1;while(n<i){var o=n+Math.floor((i-n)/2),r=e[o<<1];if(r===t)return o+1;r<t?n=o+1:r>t&&(i=o)}return n},e}(),ih=function(){function e(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var o=this._firstTokenIndex,r=e.getCount();o<r;o++){var s=e.getStartOffset(o);if(s>=n)break;this._tokensCount++}}return e.prototype.equals=function(t){return t instanceof e&&(this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount))},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},e.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},e.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},e}();eh="undefined"!==typeof TextDecoder?function(e){return new oh(e)}:function(e){return new rh};var oh=function(){function e(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return e.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},e.prototype.build=function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},e.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)},e.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e},e.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(0===t||Zr(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCIIString=function(e){var t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)},e}(),rh=function(){function e(){this._pieces=[],this._piecesLen=0}return e.prototype.reset=function(){this._pieces=[],this._piecesLen=0},e.prototype.build=function(){return this._pieces.join("")},e.prototype.write1=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},e.prototype.appendASCII=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},e.prototype.appendASCIIString=function(e){this._pieces[this._piecesLen++]=e},e}(),sh=function(){function e(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i}return e._equals=function(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type},e.equalsArr=function(t,n){var i=t.length,o=n.length;if(i!==o)return!1;for(var r=0;r<i;r++)if(!e._equals(t[r],n[r]))return!1;return!0},e.filter=function(t,n,i,o){if(0===t.length)return[];for(var r=[],s=0,a=0,u=t.length;a<u;a++){var l=t[a],c=l.range;if(!(c.endLineNumber<n||c.startLineNumber>n)&&(!c.isEmpty()||0!==l.type&&3!==l.type)){var d=c.startLineNumber===n?c.startColumn:i,h=c.endLineNumber===n?c.endColumn:o;r[s++]=new e(d,h,l.inlineClassName,l.type)}}return r},e.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.className<t.className?-1:e.className>t.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},e}(),ah=function(){function e(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n}return e}(),uh=function(){function e(){this.stopOffsets=[],this.classNames=[],this.count=0}return e.prototype.consumeLowerThan=function(e,t,n){while(this.count>0&&this.stopOffsets[0]<e){var i=0;while(i+1<this.count&&this.stopOffsets[i]===this.stopOffsets[i+1])i++;n.push(new ah(t,this.stopOffsets[i],this.classNames.join(" "))),t=this.stopOffsets[i]+1,this.stopOffsets.splice(0,i+1),this.classNames.splice(0,i+1),this.count-=i+1}return this.count>0&&t<e&&(n.push(new ah(t,e-1,this.classNames.join(" "))),t=e),t},e.prototype.insert=function(e,t){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t);else for(var n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t);break}this.count++},e}(),lh=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var n=[],i=new uh,o=0,r=0,s=t.length;r<s;r++){var a=t[r],u=a.startColumn,l=a.endColumn,c=a.className;if(u>1){var d=e.charCodeAt(u-2);Zr(d)&&u--}if(l>1){d=e.charCodeAt(l-2);Zr(d)&&l--}var h=u-1,A=l-2;o=i.consumeLowerThan(h,o,n),0===i.count&&(o=h),i.insert(A,c)}return i.consumeLowerThan(1073741824,o,n),n},e}(),ch=function(){function e(e,t){this.endIndex=e,this.type=t}return e}(),dh=function(){function e(e,t){this.startOffset=e,this.endOffset=t}return e.prototype.equals=function(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset},e}(),hh=function(){function e(e,t,n,i,o,r,s,a,u,l,c,d,h,A,p,f){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=o,this.containsRTL=r,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=u,this.tabSize=l,this.spaceWidth=c,this.stopRenderingLineAfter=d,this.renderWhitespace="all"===h?3:"boundary"===h?1:"selection"===h?2:0,this.renderControlCharacters=A,this.fontLigatures=p,this.selectionsOnLine=f&&f.sort((function(e,t){return e.startOffset<t.startOffset?-1:1}))}return e.prototype.sameSelection=function(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(var t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0},e.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&sh.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)},e}(),Ah=function(){function e(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return e.getPartIndex=function(e){return(4294901760&e)>>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,n,i){var o=(t<<16|n<<0)>>>0;this._data[e]=o,this._absoluteOffsets[e]=i+n},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,n,i){if(0===this.length)return 0;var o=(t<<16|i<<0)>>>0,r=0,s=this.length-1;while(r+1<s){var a=r+s>>>1,u=this._data[a];if(u===o)return a;u>o?s=a:r=a}if(r===s)return r;var l=this._data[r],c=this._data[s];if(l===o)return r;if(c===o)return s;var d,h=e.getPartIndex(l),A=e.getCharIndex(l),p=e.getPartIndex(c);d=h!==p?n:e.getCharIndex(c);var f=i-A,g=d-i;return f<=g?r:s},e}(),ph=function(){function e(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}return e}();function fh(e,t){if(0===e.lineContent.length){var n=0,i="<span><span> </span></span>";if(e.lineDecorations.length>0){for(var o=[],r=0,s=e.lineDecorations.length;r<s;r++){var a=e.lineDecorations[r];1===a.type&&(o.push(e.lineDecorations[r].className),n|=1),2===a.type&&(o.push(e.lineDecorations[r].className),n|=2)}0!==n&&(i='<span><span class="'+o.join(" ")+'"></span></span>')}return t.appendASCIIString(i),new ph(new Ah(0,0),!1,n)}return Sh(_h(e),t)}var gh=function(){function e(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i}return e}();function mh(e){var t=eh(1e4),n=fh(e,t);return new gh(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}var vh=function(){function e(e,t,n,i,o,r,s,a,u,l,c,d){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=o,this.parts=r,this.containsForeignElements=s,this.tabSize=a,this.containsRTL=u,this.spaceWidth=l,this.renderWhitespace=c,this.renderControlCharacters=d}return e}();function _h(e){var t,n,i=e.useMonospaceOptimizations,o=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<o.length?(t=!0,n=e.stopRenderingLineAfter):(t=!1,n=o.length);var r=yh(e.lineTokens,e.fauxIndentLength,n);(3===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine)&&(r=bh(o,n,e.continuesWithWrappedLine,r,e.fauxIndentLength,e.tabSize,i,e.selectionsOnLine,1===e.renderWhitespace));var s=0;if(e.lineDecorations.length>0){for(var a=0,u=e.lineDecorations.length;a<u;a++){var l=e.lineDecorations[a];3===l.type||1===l.type?s|=1:2===l.type&&(s|=2)}r=Ch(o,n,r,e.lineDecorations)}return e.containsRTL||(r=wh(o,r,!e.isBasicASCII||e.fontLigatures)),new vh(i,e.canUseHalfwidthRightwardsArrow,o,n,t,r,s,e.tabSize,e.containsRTL,e.spaceWidth,e.renderWhitespace,e.renderControlCharacters)}function yh(e,t,n){var i=[],o=0;t>0&&(i[o++]=new ch(t,""));for(var r=0,s=e.getCount();r<s;r++){var a=e.getEndOffset(r);if(!(a<=t)){var u=e.getClassName(r);if(a>=n){i[o++]=new ch(n,u);break}i[o++]=new ch(a,u)}}return i}function wh(e,t,n){var i=0,o=[],r=0;if(n)for(var s=0,a=t.length;s<a;s++){var u=t[s],l=u.endIndex;if(i+50<l){for(var c=u.type,d=-1,h=i,A=i;A<l;A++)32===e.charCodeAt(A)&&(d=A),-1!==d&&A-h>=50&&(o[r++]=new ch(d+1,c),h=d+1,d=-1);h!==l&&(o[r++]=new ch(l,c))}else o[r++]=u;i=l}else for(s=0,a=t.length;s<a;s++){u=t[s],l=u.endIndex;var p=l-i;if(p>50){c=u.type;var f=Math.ceil(p/50);for(A=1;A<f;A++){var g=i+50*A;o[r++]=new ch(g,c)}o[r++]=new ch(l,c)}else o[r++]=u;i=l}return o}function bh(e,t,n,i,o,r,s,a,u){var l,c=[],d=0,h=0,A=i[h].type,p=i[h].endIndex,f=i.length,g=Ur(e);-1===g?(g=t,l=t):l=Qr(e);for(var m=0,v=0;v<o;v++){var _=e.charCodeAt(v);9===_?m=r:As(_)?m+=2:m++}m%=r;var y=!1,w=0,b=a&&a[w];for(v=o;v<t;v++){_=e.charCodeAt(v);b&&v>=b.endOffset&&(w++,b=a&&a[w]);var C=void 0;if(v<g||v>l)C=!0;else if(9===_)C=!0;else if(32===_)if(u)if(y)C=!0;else{var S=v+1<t?e.charCodeAt(v+1):0;C=32===S||9===S}else C=!0;else C=!1;C&&a&&(C=!!b&&b.startOffset<=v&&b.endOffset>v),y?(!C||!s&&m>=r)&&(c[d++]=new ch(v,"vs-whitespace"),m%=r):(v===p||C&&v>o)&&(c[d++]=new ch(v,A),m%=r),9===_?m=r:As(_)?m+=2:m++,y=C,v===p&&(h++,h<f&&(A=i[h].type,p=i[h].endIndex))}var B=!1;if(y)if(n&&u){var E=t>0?e.charCodeAt(t-1):0,x=t>1?e.charCodeAt(t-2):0,L=32===E&&32!==x&&9!==x;L||(B=!0)}else B=!0;return c[d++]=new ch(t,B?"vs-whitespace":A),c}function Ch(e,t,n,i){i.sort(sh.compare);for(var o=lh.normalize(e,i),r=o.length,s=0,a=[],u=0,l=0,c=0,d=n.length;c<d;c++){var h=n[c],A=h.endIndex,p=h.type;while(s<r&&o[s].startOffset<A){var f=o[s];if(f.startOffset>l&&(l=f.startOffset,a[u++]=new ch(l,p)),!(f.endOffset+1<=A)){l=A,a[u++]=new ch(l,p+" "+f.className);break}l=f.endOffset+1,a[u++]=new ch(l,p+" "+f.className),s++}A>l&&(l=A,a[u++]=new ch(l,p))}var g=n[n.length-1].endIndex;if(s<r&&o[s].startOffset===g){var m=[];while(s<r&&o[s].startOffset===g)m.push(o[s].className),s++;a[u++]=new ch(l,m.join(" "))}return a}function Sh(e,t){var n=e.fontIsMonospace,i=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,r=e.lineContent,s=e.len,a=e.isOverflowing,u=e.parts,l=e.tabSize,c=e.containsRTL,d=e.spaceWidth,h=e.renderWhitespace,A=e.renderControlCharacters,p=new Ah(s+1,u.length),f=0,g=0,m=0,v=0,_=0;t.appendASCIIString("<span>");for(var y=0,w=u.length;y<w;y++){_+=v;var b=u[y],C=b.endIndex,S=b.type,B=0!==h&&S.indexOf("vs-whitespace")>=0;if(m=0,t.appendASCIIString('<span class="'),t.appendASCIIString(S),t.appendASCII(34),B){for(var E=0,x=f,L=g;x<C;x++){var D=r.charCodeAt(x);if(9===D){var N=l-(x+L)%l;L+=N-1,E+=N}else E++}if(!n){var k="vs-whitespace"===S;!k&&o||(t.appendASCIIString(' style="display:inline-block;width:'),t.appendASCIIString(String(d*E)),t.appendASCIIString('px"'))}for(t.appendASCII(62);f<C;f++){p.setPartData(f,y,m,_);D=r.charCodeAt(f);if(9===D){N=l-(f+g)%l;g+=N-1,m+=N-1,N>0&&(!i||N>1?t.write1(8594):t.write1(65515),N--);while(N>0)t.write1(160),N--}else t.write1(183);m++}v=E}else{E=0;for(c&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);f<C;f++){p.setPartData(f,y,m,_);D=r.charCodeAt(f);switch(D){case 9:N=l-(f+g)%l;g+=N-1,m+=N-1;while(N>0)t.write1(160),E++,N--;break;case 32:t.write1(160),E++;break;case 60:t.appendASCIIString("&lt;"),E++;break;case 62:t.appendASCIIString("&gt;"),E++;break;case 38:t.appendASCIIString("&amp;"),E++;break;case 0:t.appendASCIIString("&#00;"),E++;break;case 65279:case 8232:t.write1(65533),E++;break;default:As(D)&&g++,A&&D<32?(t.write1(9216+D),E++):(t.write1(D),E++)}m++}v=E}t.appendASCIIString("</span>")}return p.setPartData(s,u.length-1,m,_),a&&t.appendASCIIString("<span>&hellip;</span>"),t.appendASCIIString("</span>"),new ph(p,c,o)}var Bh=function(){function e(e,t,n,i){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i}return e}(),Eh=function(){function e(e,t){this.tabSize=e,this.data=t}return e}(),xh=function(){function e(e,t,n,i,o){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.tokens=o}return e}(),Lh=function(){function e(t,n,i,o,r,s,a,u,l){this.minColumn=t,this.maxColumn=n,this.content=i,this.continuesWithWrappedLine=o,this.isBasicASCII=e.isBasicASCII(i,s),this.containsRTL=e.containsRTL(i,this.isBasicASCII,r),this.tokens=a,this.inlineDecorations=u,this.tabSize=l}return e.isBasicASCII=function(e,t){return!t||ds(e)},e.containsRTL=function(e,t,n){return!(t||!n)&&as(e)},e}(),Dh=function(){function e(e,t,n){this.range=e,this.inlineClassName=t,this.type=n}return e}(),Nh=function(){function e(e,t){this.range=e,this.options=t}return e}();function kh(e){return Array.isArray(e)}function Ih(e){return!kh(e)}function Fh(e){return"string"===typeof e}function Mh(e){return!Fh(e)}function Oh(e){return!e}function Th(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function Ph(e){return e.replace(/[&<>'"_]/g,"-")}function Rh(e,t){console.log(e.languageId+": "+t)}function Uh(e,t){return new Error(e.languageId+": "+t)}function Hh(e,t,n,i,o){var r=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,s=null;return t.replace(r,(function(t,r,a,u,l,c,d,h,A){return Oh(a)?Oh(u)?!Oh(l)&&l<i.length?Th(e,i[l]):!Oh(d)&&e&&"string"===typeof e[d]?e[d]:(null===s&&(s=o.split("."),s.unshift(o)),!Oh(c)&&c<s.length?Th(e,s[c]):""):Th(e,n):"$"}))}function Qh(e,t){var n=t;while(n&&n.length>0){var i=e.tokenizer[n];if(i)return i;var o=n.lastIndexOf(".");n=o<0?null:n.substr(0,o)}return null}function Vh(e,t){var n=t;while(n&&n.length>0){var i=e.stateNames[n];if(i)return!0;var o=n.lastIndexOf(".");n=o<0?null:n.substr(0,o)}return!1}var Wh=5,Kh=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new zh(e,t);var n=zh.getStackElementId(e);n.length>0&&(n+="|"),n+=t;var i=this._entries[n];return i||(i=new zh(e,t),this._entries[n]=i,i)},e._INSTANCE=new e(Wh),e}(),zh=function(){function e(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return e.getStackElementId=function(e){var t="";while(null!==e)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t},e._equals=function(e,t){while(null!==e&&null!==t){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t},e.prototype.equals=function(t){return e._equals(this,t)},e.prototype.push=function(e){return Kh.create(this,e)},e.prototype.pop=function(){return this.parent},e.prototype.popall=function(){var e=this;while(e.parent)e=e.parent;return e},e.prototype.switchTo=function(e){return Kh.create(this.parent,e)},e}(),jh=function(){function e(e,t){this.modeId=e,this.state=t}return e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},e.prototype.clone=function(){var t=this.state.clone();return t===this.state?this:new e(this.modeId,this.state)},e}(),Gh=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==t)return new qh(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new qh(e,t);var n=zh.getStackElementId(e),i=this._entries[n];return i||(i=new qh(e,null),this._entries[n]=i,i)},e._INSTANCE=new e(Wh),e}(),qh=function(){function e(e,t){this.stack=e,this.embeddedModeData=t}return e.prototype.clone=function(){var e=this.embeddedModeData?this.embeddedModeData.clone():null;return e===this.embeddedModeData?this:Gh.create(this.stack,this.embeddedModeData)},e.prototype.equals=function(t){return t instanceof e&&(!!this.stack.equals(t.stack)&&(null===this.embeddedModeData&&null===t.embeddedModeData||null!==this.embeddedModeData&&null!==t.embeddedModeData&&this.embeddedModeData.equals(t.embeddedModeData)))},e}(),Yh=function(){function e(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return e.prototype.enterMode=function(e,t){this._language=t},e.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new wn(e,t,this._language)))},e.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,o=t.state,r=zl.get(i);if(!r)return this.enterMode(n,i),this.emit(n,""),o;var s=r.tokenize(e,o,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},e.prototype.finalize=function(e){return new bn(this._tokens,e)},e}(),Xh=function(){function e(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return e.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},e.prototype.emit=function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))},e._merge=function(e,t,n){var i=null!==e?e.length:0,o=t.length,r=null!==n?n.length:0;if(0===i&&0===o&&0===r)return new Uint32Array(0);if(0===i&&0===o)return n;if(0===o&&0===r)return e;var s=new Uint32Array(i+o+r);null!==e&&s.set(e);for(var a=0;a<o;a++)s[i+a]=t[a];return null!==n&&s.set(n,i+o),s},e.prototype.nestedModeTokenize=function(t,n,i){var o=n.modeId,r=n.state,s=zl.get(o);if(!s)return this.enterMode(i,o),this.emit(i,""),r;var a=s.tokenize2(t,r,i);return this._prependTokens=e._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState},e.prototype.finalize=function(t){return new Cn(e._merge(this._prependTokens,this._tokens,null),t)},e}(),Jh=function(){function e(e,t,n,i){var o=this;this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=i,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var r=!1;this._tokenizationRegistryListener=zl.onDidChange((function(e){if(!r){for(var t=!1,n=0,i=e.changedLanguages.length;n<i;n++){var s=e.changedLanguages[n];if(o._embeddedModes[s]){t=!0;break}}t&&(r=!0,zl.fire([o._modeId]),r=!1)}}))}return e.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},e.prototype.getLoadStatus=function(){var t=[];for(var n in this._embeddedModes){var i=zl.get(n);if(i){if(i instanceof e){var o=i.getLoadStatus();!1===o.loaded&&t.push(o.promise)}}else{var r=zl.getPromise(n);r&&t.push(r)}}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then((function(e){}))}},e.prototype.getInitialState=function(){var e=Kh.create(null,this._lexer.start);return Gh.create(e,null)},e.prototype.tokenize=function(e,t,n){var i=new Yh,o=this._tokenize(e,t,n,i);return i.finalize(o)},e.prototype.tokenize2=function(e,t,n){var i=new Xh(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),o=this._tokenize(e,t,n,i);return i.finalize(o)},e.prototype._tokenize=function(e,t,n,i){return t.embeddedModeData?this._nestedTokenize(e,t,n,i):this._myTokenize(e,t,n,i)},e.prototype._findLeavingNestedModeOffset=function(e,t){var n=this._lexer.tokenizer[t.stack.state];if(!n&&(n=Qh(this._lexer,t.stack.state),!n))throw Uh(this._lexer,"tokenizer state is not defined: "+t.stack.state);for(var i=-1,o=!1,r=0,s=n;r<s.length;r++){var a=s[r];if(Mh(a.action)&&"@pop"===a.action.nextEmbedded){o=!0;var u=a.regex,l=a.regex.source;"^(?:"===l.substr(0,4)&&")"===l.substr(l.length-1,1)&&(u=new RegExp(l.substr(4,l.length-5),u.ignoreCase?"i":""));var c=e.search(u);-1!==c&&(-1===i||c<i)&&(i=c)}}if(!o)throw Uh(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return i},e.prototype._nestedTokenize=function(e,t,n,i){var o=this._findLeavingNestedModeOffset(e,t);if(-1===o){var r=i.nestedModeTokenize(e,t.embeddedModeData,n);return Gh.create(t.stack,new jh(t.embeddedModeData.modeId,r))}var s=e.substring(0,o);s.length>0&&i.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(o);return this._myTokenize(a,t,n+o,i)},e.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},e.prototype._myTokenize=function(e,t,n,i){i.enterMode(n,this._modeId);var o=e.length,r=t.embeddedModeData,s=t.stack,a=0,u=null,l=!0;while(l||a<o){var c=a,d=s.depth,h=u?u.groups.length:0,A=s.state,p=null,f=null,g=null,m=null,v=null;if(u){p=u.matches;var _=u.groups.shift();f=_.matched,g=_.action,m=u.rule,0===u.groups.length&&(u=null)}else{if(!l&&a>=o)break;l=!1;var y=this._lexer.tokenizer[A];if(!y&&(y=Qh(this._lexer,A),!y))throw Uh(this._lexer,"tokenizer state is not defined: "+A);for(var w=e.substr(a),b=0,C=y;b<C.length;b++){var S=C[b];if((0===a||!S.matchOnlyAtLineStart)&&(p=w.match(S.regex),p)){f=p[0],g=S.action;break}}}if(p||(p=[""],f=""),g||(a<o&&(p=[e.charAt(a)],f=p[0]),g=this._lexer.defaultToken),null===f)break;a+=f.length;while(Ih(g)&&Mh(g)&&g.test)g=g.test(f,p,A,a===o);var B=null;if("string"===typeof g||Array.isArray(g))B=g;else if(g.group)B=g.group;else if(null!==g.token&&void 0!==g.token){if(B=g.tokenSubst?Hh(this._lexer,g.token,f,p,A):g.token,g.nextEmbedded)if("@pop"===g.nextEmbedded){if(!r)throw Uh(this._lexer,"cannot pop embedded mode if not inside one");r=null}else{if(r)throw Uh(this._lexer,"cannot enter embedded mode from within an embedded mode");v=Hh(this._lexer,g.nextEmbedded,f,p,A)}if(g.goBack&&(a=Math.max(0,a-g.goBack)),g.switchTo&&"string"===typeof g.switchTo){var E=Hh(this._lexer,g.switchTo,f,p,A);if("@"===E[0]&&(E=E.substr(1)),!Qh(this._lexer,E))throw Uh(this._lexer,"trying to switch to a state '"+E+"' that is undefined in rule: "+this._safeRuleName(m));s=s.switchTo(E)}else{if(g.transform&&"function"===typeof g.transform)throw Uh(this._lexer,"action.transform not supported");if(g.next)if("@push"===g.next){if(s.depth>=this._lexer.maxStack)throw Uh(this._lexer,"maximum tokenizer stack size reached: ["+s.state+","+s.parent.state+",...]");s=s.push(A)}else if("@pop"===g.next){if(s.depth<=1)throw Uh(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(m));s=s.pop()}else if("@popall"===g.next)s=s.popall();else{E=Hh(this._lexer,g.next,f,p,A);if("@"===E[0]&&(E=E.substr(1)),!Qh(this._lexer,E))throw Uh(this._lexer,"trying to set a next state '"+E+"' that is undefined in rule: "+this._safeRuleName(m));s=s.push(E)}}g.log&&"string"===typeof g.log&&Rh(this._lexer,this._lexer.languageId+": "+Hh(this._lexer,g.log,f,p,A))}if(null===B)throw Uh(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(m));if(Array.isArray(B)){if(u&&u.groups.length>0)throw Uh(this._lexer,"groups cannot be nested: "+this._safeRuleName(m));if(p.length!==B.length+1)throw Uh(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(m));for(var x=0,L=1;L<p.length;L++)x+=p[L].length;if(x!==f.length)throw Uh(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(m));u={rule:m,matches:p,groups:[]};for(L=0;L<B.length;L++)u.groups[L]={action:B[L],matched:p[L+1]};a-=f.length}else{if("@rematch"===B&&(a-=f.length,f="",p=null,B=""),0===f.length){if(0===o||d!==s.depth||A!==s.state||(u?u.groups.length:0)!==h)continue;throw Uh(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(m))}var D=null;if(Fh(B)&&0===B.indexOf("@brackets")){var N=B.substr("@brackets".length),k=Zh(this._lexer,f);if(!k)throw Uh(this._lexer,"@brackets token returned but no bracket defined as: "+f);D=Ph(k.token+N)}else{var I=""===B?"":B+this._lexer.tokenPostfix;D=Ph(I)}if(i.emit(c+n,D),null!==v){var F=this._modeService.getModeIdForLanguageName(v);F&&(v=F);var M=this._getNestedEmbeddedModeData(v);if(a<o){w=e.substr(a);return this._nestedTokenize(w,Gh.create(s,M),n+a,i)}return Gh.create(s,M)}}}return Gh.create(s,r)},e.prototype._getNestedEmbeddedModeData=function(e){var t=this._locateMode(e);if(t){var n=zl.get(t);if(n)return new jh(t,n.getInitialState())}return new jh(t||ql,Gl)},e.prototype._locateMode=function(e){if(!e||!this._modeService.isRegisteredMode(e))return null;if(e===this._modeId)return e;var t=this._modeService.getModeId(e);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t},e}();function Zh(e,t){if(!t)return null;t=Th(e,t);for(var n=e.brackets,i=0,o=n;i<o.length;i++){var r=o[i];if(r.open===t)return{token:r.token,bracketType:1};if(r.close===t)return{token:r.token,bracketType:-1}}return null}function $h(e,t,n,i){return new Jh(e,t,n,i)}var eA,tA=function(){function e(){}return e.colorizeElement=function(e,t,n,i){i=i||{};var o=i.theme||"vs",r=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();e.setTheme(o);var s=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+o;var a=function(e){n.innerHTML=e};return this.colorize(t,s||"",r,i).then(a,(function(e){return console.error(e)}))},e.colorize=function(e,t,n,i){var o=4;i&&"number"===typeof i.tabSize&&(o=i.tabSize),gs(t)&&(t=t.substr(1));var r=t.split(/\r\n|\r|\n/),s=e.getModeId(n);if(!s)return Promise.resolve(iA(r,o));e.triggerMode(s);var a=zl.get(s);if(a)return nA(r,o,a);var u=zl.getPromise(s);return new Promise(u?function(e,t){u.then((function(n){nA(r,o,n).then(e,t)}),t)}:function(e,t){var n=null,i=null,a=function(){n&&(n.dispose(),n=null),i&&(i.dispose(),i=null);var a=zl.get(s);a?nA(r,o,a).then(e,t):e(iA(r,o))};i=new bi,i.cancelAndSet(a,500),n=zl.onDidChange((function(e){e.changedLanguages.indexOf(s)>=0&&a()}))})},e.colorizeLine=function(e,t,n,i,o){void 0===o&&(o=4);var r=Lh.isBasicASCII(e,t),s=Lh.containsRTL(e,r,n),a=mh(new hh(!1,!0,e,!1,r,s,0,i,[],o,0,-1,"none",!1,!1,null));return a.html},e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var i=e.getLineContent(t);e.forceTokenization(t);var o=e.getLineTokens(t),r=o.inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),r,n)},e}();function nA(e,t,n){return new Promise((function(i,o){var r=function(){var s=oA(e,t,n);if(n instanceof Jh){var a=n.getLoadStatus();if(!1===a.loaded)return void a.promise.then(r,o)}i(s)};r()}))}function iA(e,t){var n=[],i=16793600,o=new Uint32Array(2);o[0]=0,o[1]=i;for(var r=0,s=e.length;r<s;r++){var a=e[r];o[0]=a.length;var u=new nh(o,a),l=Lh.isBasicASCII(a,!0),c=Lh.containsRTL(a,l,!0),d=mh(new hh(!1,!0,a,!1,l,c,0,u,[],t,0,-1,"none",!1,!1,null));n=n.concat(d.html),n.push("<br/>")}return n.join("")}function oA(e,t,n){for(var i=[],o=n.getInitialState(),r=0,s=e.length;r<s;r++){var a=e[r],u=n.tokenize2(a,o,0);nh.convertToEndOffset(u.tokens,a.length);var l=new nh(u.tokens,a),c=Lh.isBasicASCII(a,!0),d=Lh.containsRTL(a,c,!0),h=mh(new hh(!1,!0,a,!1,c,d,0,l.inflate(),[],t,0,-1,"none",!1,!1,null));i=i.concat(h.html),i.push("<br/>"),o=u.endState}return i.join("")}(function(e){e[e["Ignore"]=0]="Ignore",e[e["Info"]=1]="Info",e[e["Warning"]=2]="Warning",e[e["Error"]=3]="Error"})(eA||(eA={})),function(e){var t="error",n="warning",i="warn",o="info",s=Object.create(null);function a(r){return r?Gr(t,r)?e.Error:Gr(n,r)||Gr(i,r)?e.Warning:Gr(o,r)?e.Info:e.Ignore:e.Ignore}s[e.Error]=r("sev.error","Error"),s[e.Warning]=r("sev.warning","Warning"),s[e.Info]=r("sev.info","Info"),e.fromValue=a}(eA||(eA={}));var rA=eA;function sA(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===xu.ICodeEditor}var aA=function(){function e(){this.data=new Map}return e.prototype.add=function(e,t){ru(fa(e)),ru(ga(t)),ru(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)},e.prototype.as=function(e){return this.data.get(e)||null},e}(),uA=new aA,lA={JSONContribution:"base.contributions.json"};function cA(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}var dA=function(){function e(){this._onDidChangeSchema=new Ye,this.schemasById={}}return e.prototype.registerSchema=function(e,t){this.schemasById[cA(e)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e}(),hA=new dA;uA.add(lA.JSONContribution,hA);var AA={Configuration:"base.contributions.configuration"},pA={properties:{},patternProperties:{}},fA={properties:{},patternProperties:{}},gA={properties:{},patternProperties:{}},mA={properties:{},patternProperties:{}},vA={properties:{},patternProperties:{}},_A={properties:{},patternProperties:{}},yA="vscode://schemas/settings/editor",wA=uA.as(lA.JSONContribution),bA=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new Ye,this._onDidUpdateConfiguration=new Ye,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:r("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},this.overridePropertyPattern=this.computeOverridePropertyPattern(),wA.registerSchema(yA,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=3),void 0===i&&(i=!1),n=ya(e.scope)?n:e.scope,i=e.overridable||i;var o=[],r=e.properties;if(r)for(var s in r){var a=void 0;if(t&&(a=DA(s)))console.warn(a),delete r[s];else{var u=r[s],l=u.default;_a(l)&&(u.default=xA(u.type)),i&&(u.overridable=!0),EA.test(s)?u.scope=void 0:u.scope=ya(u.scope)?n:u.scope,!r[s].hasOwnProperty("included")||r[s].included?(this.configurationProperties[s]=r[s],o.push(s)):(this.excludedConfigurationProperties[s]=r[s],delete r[s])}}var c=e.allOf;if(c)for(var d=0,h=c;d<h.length;d++){var A=h[d];o.push.apply(o,this.validateAndRegisterProperties(A,t,n,i))}return o},e.prototype.getConfigurationProperties=function(){return this.configurationProperties},e.prototype.registerJSONConfiguration=function(e){function t(e){var n=e.properties;if(n)for(var i in n)switch(pA.properties[i]=n[i],n[i].scope){case 1:fA.properties[i]=n[i];break;case 2:gA.properties[i]=n[i];break;case 5:mA.properties[i]=n[i];break;case 3:vA.properties[i]=n[i];break;case 4:_A.properties[i]=n[i];break}var o=e.allOf;o&&o.forEach(t)}t(e)},e.prototype.updateSchemaForOverrideSettingsConfiguration=function(e){e.id!==CA&&(this.update(e),wA.registerSchema(yA,this.editorConfigurationSchema))},e.prototype.updateOverridePropertyPatternKey=function(){var e=pA.patternProperties[this.overridePropertyPattern];e||(e={type:"object",description:r("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:"Unknown Identifier. Use language identifiers",$ref:yA}),delete pA.patternProperties[this.overridePropertyPattern],delete fA.patternProperties[this.overridePropertyPattern],delete gA.patternProperties[this.overridePropertyPattern],delete mA.patternProperties[this.overridePropertyPattern],delete vA.patternProperties[this.overridePropertyPattern],delete _A.patternProperties[this.overridePropertyPattern],this.overridePropertyPattern=this.computeOverridePropertyPattern(),pA.patternProperties[this.overridePropertyPattern]=e,fA.patternProperties[this.overridePropertyPattern]=e,gA.patternProperties[this.overridePropertyPattern]=e,mA.patternProperties[this.overridePropertyPattern]=e,vA.patternProperties[this.overridePropertyPattern]=e,_A.patternProperties[this.overridePropertyPattern]=e,this._onDidSchemaChange.fire()},e.prototype.update=function(e){var t=this,n=e.properties;if(n)for(var i in n)n[i].overridable&&(this.editorConfigurationSchema.properties[i]=this.getConfigurationProperties()[i]);var o=e.allOf;o&&o.forEach((function(e){return t.update(e)}))},e.prototype.computeOverridePropertyPattern=function(){return this.overrideIdentifiers.length?BA.replace("${0}",this.overrideIdentifiers.map((function(e){return Tr(e,!1).source})).join("|")):SA},e}(),CA="override",SA="\\[.*\\]$",BA="\\[(${0})\\]$",EA=new RegExp(SA);function xA(e){var t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var LA=new bA;function DA(e){return EA.test(e)?r("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==LA.getConfigurationProperties()[e]?r("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null}uA.add(AA.Configuration,LA);var NA=Object.prototype.hasOwnProperty;function kA(e){var t=[];for(var n in e)NA.call(e,n)&&t.push(e[n]);return t}function IA(e){for(var t in e)if(NA.call(e,t))return e[t]}function FA(e,t){var n=function(n){if(NA.call(e,n)){var i=t({key:n,value:e[n]},(function(){delete e[n]}));if(!1===i)return{value:void 0}}};for(var i in e){var o=n(i);if("object"===typeof o)return o.value}}var MA=function(){function e(){this.map=new Map}return e.prototype.add=function(e,t){var n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)},e.prototype.delete=function(e,t){var n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))},e.prototype.forEach=function(e,t){var n=this.map.get(e);n&&n.forEach(t)},e}(),OA=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)}}(),TA=function(){return TA=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},TA.apply(this,arguments)},PA=new(function(){function e(){this._tabFocus=!1,this._onDidChangeTabFocus=new Ye,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return e.prototype.getTabFocusMode=function(){return this._tabFocus},e.prototype.setTabFocusMode=function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))},e}()),RA=Object.hasOwnProperty,UA=function(){function e(){this._values=[]}return e.prototype._read=function(e){return this._values[e]},e.prototype.get=function(e){return this._values[e]},e.prototype._write=function(e,t){this._values[e]=t},e}(),HA=function(){function e(){this._values=[]}return e.prototype._read=function(e){return this._values[e]},e.prototype._write=function(e,t){this._values[e]=t},e}(),QA=function(){function e(){}return e.readOptions=function(e){for(var t=e,n=new HA,i=0,o=ue;i<o.length;i++){var r=o[i],s="_never_"===r.name?void 0:t[r.name];n._write(r.id,s)}return n},e.validateOptions=function(e){for(var t=new v,n=0,i=ue;n<i.length;n++){var o=i[n];t._write(o.id,o.validate(e._read(o.id)))}return t},e.computeOptions=function(e,t){for(var n=new UA,i=0,o=ue;i<o.length;i++){var r=o[i];n._write(r.id,r.compute(t,n,e._read(r.id)))}return n},e._deepEquals=function(t,n){if("object"!==typeof t||"object"!==typeof n)return t===n;if(Array.isArray(t)||Array.isArray(n))return!(!Array.isArray(t)||!Array.isArray(n))&&Di(t,n);for(var i in t)if(!e._deepEquals(t[i],n[i]))return!1;return!0},e.checkEquals=function(t,n){for(var i=[],o=!1,r=0,s=ue;r<s.length;r++){var a=s[r],u=!e._deepEquals(t._read(a.id),n._read(a.id));i[a.id]=u,u&&(o=!0)}return o?new m(i):null},e}();function VA(e){var t=e.wordWrap;!0===t?e.wordWrap="on":!1===t&&(e.wordWrap="off");var n=e.lineNumbers;!0===n?e.lineNumbers="on":!1===n&&(e.lineNumbers="off");var i=e.autoClosingBrackets;!1===i&&(e.autoClosingBrackets="never",e.autoClosingQuotes="never",e.autoSurround="never");var o=e.cursorBlinking;"visible"===o&&(e.cursorBlinking="solid");var r=e.renderWhitespace;!0===r?e.renderWhitespace="boundary":!1===r&&(e.renderWhitespace="none");var s=e.renderLineHighlight;!0===s?e.renderLineHighlight="line":!1===s&&(e.renderLineHighlight="none");var a=e.acceptSuggestionOnEnter;!0===a?e.acceptSuggestionOnEnter="on":!1===a&&(e.acceptSuggestionOnEnter="off");var u=e.tabCompletion;!1===u?e.tabCompletion="off":!0===u&&(e.tabCompletion="onlySnippets");var l=e.suggest;if(l&&"object"===typeof l.filteredTypes&&l.filteredTypes){var c={method:"showMethods",function:"showFunctions",constructor:"showConstructors",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};FA(c,(function(e){var t=l.filteredTypes[e.key];!1===t&&(l[e.value]=t)}))}var d=e.hover;!0===d?e.hover={enabled:!0}:!1===d&&(e.hover={enabled:!1});var h=e.parameterHints;!0===h?e.parameterHints={enabled:!0}:!1===h&&(e.parameterHints={enabled:!1});var A=e.autoIndent;!0===A?e.autoIndent="full":!1===A&&(e.autoIndent="advanced");var p=e.matchBrackets;!0===p?e.matchBrackets="always":!1===p&&(e.matchBrackets="never")}function WA(e){var t=su(e);return VA(t),t}var KA=function(e){function t(t,n){var i=e.call(this)||this;return i._onDidChange=i._register(new Ye),i.onDidChange=i._onDidChange.event,i.isSimpleWidget=t,i._isDominatedByLongLines=!1,i._lineNumbersDigitCount=1,i._rawOptions=WA(n),i._readOptions=QA.readOptions(i._rawOptions),i._validatedOptions=QA.validateOptions(i._readOptions),i._register(vu.onDidChangeZoomLevel((function(e){return i._recomputeOptions()}))),i._register(PA.onDidChangeTabFocus((function(e){return i._recomputeOptions()}))),i}return OA(t,e),t.prototype.observeReferenceElement=function(e){},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._recomputeOptions=function(){var e=this.options,t=this._computeInternalOptions();if(e){var n=QA.checkEquals(e,t);if(null===n)return;this.options=t,this._onDidChange.fire(n)}else this.options=t},t.prototype.getRawOptions=function(){return this._rawOptions},t.prototype._computeInternalOptions=function(){var e=this._getEnvConfiguration(),t=bu.createFromValidatedSettings(this._validatedOptions,e.zoomLevel,this.isSimpleWidget),n={outerWidth:e.outerWidth,outerHeight:e.outerHeight,fontInfo:this.readConfiguration(t),extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:PA.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return QA.computeOptions(this._validatedOptions,n)},t._subsetEquals=function(e,t){for(var n in t)if(RA.call(t,n)){var i=t[n],o=e[n];if(o===i)continue;if(Array.isArray(o)&&Array.isArray(i)){if(!Di(o,i))return!1;continue}if("object"===typeof o&&"object"===typeof i){if(!this._subsetEquals(o,i))return!1;continue}return!1}return!0},t.prototype.updateOptions=function(e){if("undefined"!==typeof e){var n=WA(e);t._subsetEquals(this._rawOptions,n)||(this._rawOptions=du(this._rawOptions,n||{}),this._readOptions=QA.readOptions(this._rawOptions),this._validatedOptions=QA.validateOptions(this._readOptions),this._recomputeOptions())}},t.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e,this._recomputeOptions()},t.prototype.setMaxLineNumber=function(e){var n=t._digitCount(e);this._lineNumbersDigitCount!==n&&(this._lineNumbersDigitCount=n,this._recomputeOptions())},t._digitCount=function(e){var t=0;while(e)e=Math.floor(e/10),t++;return t||1},t}(Ie),zA=Object.freeze({id:"editor",order:5,type:"object",title:r("editorConfigurationTitle","Editor"),overridable:!0,scope:4}),jA=uA.as(AA.Configuration),GA=TA(TA({},zA),{properties:{"editor.tabSize":{type:"number",default:ae.tabSize,minimum:1,markdownDescription:r("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:ae.insertSpaces,markdownDescription:r("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:ae.detectIndentation,markdownDescription:r("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:ae.trimAutoWhitespace,description:r("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:ae.largeFileOptimizations,description:r("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:r("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:r("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:r("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:r("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:r("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:r("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:r("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}});function qA(e){return"undefined"!==typeof e.type||"undefined"!==typeof e.anyOf}for(var YA=0,XA=ue;YA<XA.length;YA++){var JA=XA[YA],ZA=JA.schema;if("undefined"!==typeof ZA)if(qA(ZA))GA.properties["editor."+JA.name]=ZA;else for(var $A in ZA)RA.call(ZA,$A)&&(GA.properties[$A]=ZA[$A])}var ep=null;function tp(){return null===ep&&(ep=Object.create(null),Object.keys(GA.properties).forEach((function(e){ep[e]=!0}))),ep}function np(e){var t=tp();return t["editor."+e]||!1}function ip(e){var t=tp();return t["diffEditor."+e]||!1}jA.registerConfiguration(GA);var op=function(){function e(){}return e.insert=function(e,t){return{range:new vn(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},e.delete=function(e){return{range:e,text:null}},e.replace=function(e,t){return{range:e,text:t}},e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},e}(),rp=Dn("configurationService");function sp(e,t){var n=Object.create(null);for(var i in e)ap(n,i,e[i],t);return n}function ap(e,t,n,i){for(var o=t.split("."),r=o.pop(),s=e,a=0;a<o.length;a++){var u=o[a],l=s[u];switch(typeof l){case"undefined":l=s[u]=Object.create(null);break;case"object":break;default:return void i("Ignoring "+t+" as "+o.slice(0,a+1).join(".")+" is "+JSON.stringify(l))}s=l}"object"===typeof s?s[r]=n:i("Ignoring "+t+" as "+o.join(".")+" is "+JSON.stringify(s))}function up(e,t){var n=t.split(".");lp(e,n)}function lp(e,t){var n=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(n)){var i=e[n];"object"!==typeof i||Array.isArray(i)||(lp(i,t),0===Object.keys(i).length&&delete e[n])}}else delete e[n]}function cp(e,t,n){function i(e,t){for(var n=e,i=0,o=t;i<o.length;i++){var r=o[i];if("object"!==typeof n||null===n)return;n=n[r]}return n}var o=t.split("."),r=i(e,o);return"undefined"===typeof r?n:r}function dp(){var e=uA.as(AA.Configuration).getConfigurationProperties();return Object.keys(e)}function hp(){var e=Object.create(null),t=uA.as(AA.Configuration).getConfigurationProperties();for(var n in t){var i=t[n].default;ap(e,n,i,(function(e){return console.error("Conflict in default settings: "+e)}))}return e}function Ap(e){return e.substring(1,e.length-1)}function pp(e,t,n){var i=e.inspect(t),o=e.inspect(n);return"undefined"!==typeof i.user||"undefined"!==typeof i.workspace||"undefined"!==typeof i.workspaceFolder?i.value:"undefined"!==typeof o.user||"undefined"!==typeof o.workspace||"undefined"!==typeof o.workspaceFolder?o.value:i.default}var fp=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)}}(),gp=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},mp=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===n&&(n=[]),this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1}return Object.defineProperty(e.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length},e.prototype.getValue=function(e){return e?cp(this.contents,e):this.contents},e.prototype.override=function(t){var n=this.getContentsForOverrideIdentifer(t);if(!n||"object"!==typeof n||!Object.keys(n).length)return this;for(var i={},o=0,r=Ui(gp(Object.keys(this.contents),Object.keys(n)));o<r.length;o++){var s=r[o],a=this.contents[s],u=n[s];u&&("object"===typeof a&&"object"===typeof u?(a=su(a),this.mergeContents(a,u)):a=u),i[s]=a}return new e(i)},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=su(this.contents),o=su(this.overrides),r=gp(this.keys),s=0,a=t;s<a.length;s++){var u=a[s];this.mergeContents(i,u.contents);for(var l=function(e){var t=o.filter((function(t){return Di(t.identifiers,e.identifiers)}))[0];t?c.mergeContents(t.contents,e.contents):o.push(su(e))},c=this,d=0,h=u.overrides;d<h.length;d++){var A=h[d];l(A)}for(var p=0,f=u.keys;p<f.length;p++){var g=f[p];-1===r.indexOf(g)&&r.push(g)}}return new e(i,r,o)},e.prototype.freeze=function(){return this.isFrozen=!0,this},e.prototype.mergeContents=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];o in e&&ga(e[o])&&ga(t[o])?this.mergeContents(e[o],t[o]):e[o]=su(t[o])}},e.prototype.checkAndFreeze=function(e){return this.isFrozen&&!Object.isFrozen(e)?au(e):e},e.prototype.getContentsForOverrideIdentifer=function(e){for(var t=0,n=this.overrides;t<n.length;t++){var i=n[t];if(-1!==i.identifiers.indexOf(e))return i.contents}return null},e.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},e.prototype.setValue=function(e,t){this.addKey(e),ap(this.contents,e,t,(function(e){throw new Error(e)}))},e.prototype.removeValue=function(e){this.removeKey(e)&&up(this.contents,e)},e.prototype.addKey=function(e){for(var t=this.keys.length,n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)},e.prototype.removeKey=function(e){var t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)},e}(),vp=function(e){function t(){for(var t=this,n=hp(),i=dp(),o=[],r=0,s=Object.keys(n);r<s.length;r++){var a=s[r];EA.test(a)&&o.push({identifiers:[Ap(a).trim()],contents:sp(n[a],(function(e){return console.error("Conflict in default settings file: "+e)}))})}return t=e.call(this,n,i,o)||this,t}return fp(t,e),t}(mp),_p=function(){function e(e,t,n,i,o,r,s,a){void 0===n&&(n=new mp),void 0===i&&(i=new mp),void 0===o&&(o=new Ha),void 0===r&&(r=new mp),void 0===s&&(s=new Ha),void 0===a&&(a=!0),this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=n,this._workspaceConfiguration=i,this._folderConfigurations=o,this._memoryConfiguration=r,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Ha,this._userConfiguration=null}return e.prototype.getValue=function(e,t,n){var i=this.getConsolidateConfigurationModel(t,n);return i.getValue(e)},e.prototype.updateValue=function(e,t,n){var i;void 0===n&&(n={}),n.resource?(i=this._memoryConfigurationByResource.get(n.resource),i||(i=new mp,this._memoryConfigurationByResource.set(n.resource,i))):i=this._memoryConfiguration,void 0===t?i.removeValue(e):i.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)},e.prototype.inspect=function(e,t,n){var i=this.getConsolidateConfigurationModel(t,n),o=this.getFolderConfigurationModelForResource(t.resource,n),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration;return{default:t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),user:t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.userConfiguration.freeze().getValue(e),userLocal:t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.localUserConfiguration.freeze().getValue(e),userRemote:t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.remoteUserConfiguration.freeze().getValue(e),workspace:n?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,workspaceFolder:o?t.overrideIdentifier?o.freeze().override(t.overrideIdentifier).getValue(e):o.freeze().getValue(e):void 0,memory:t.overrideIdentifier?r.override(t.overrideIdentifier).getValue(e):r.getValue(e),value:i.getValue(e)}},Object.defineProperty(e.prototype,"userConfiguration",{get:function(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),e.prototype.getConsolidateConfigurationModel=function(e,t){var n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n},e.prototype.getConsolidatedConfigurationModelForResource=function(e,t){var n=e.resource,i=this.getWorkspaceConsolidatedConfiguration();if(t&&n){var o=t.getFolder(n);o&&(i=this.getFolderConsolidatedConfiguration(o.uri)||i);var r=this._memoryConfigurationByResource.get(n);r&&(i=i.merge(r))}return i},e.prototype.getWorkspaceConsolidatedConfiguration=function(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration},e.prototype.getFolderConsolidatedConfiguration=function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){var n=this.getWorkspaceConsolidatedConfiguration(),i=this._folderConfigurations.get(e);i?(t=n.merge(i),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t},e.prototype.getFolderConfigurationModelForResource=function(e,t){if(t&&e){var n=t.getFolder(e);if(n)return this._folderConfigurations.get(n.uri)}},e}(),yp=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)}}(),wp=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._contextKeyService=t,r._commandService=n,r._telemetryService=i,r._notificationService=o,r._onDidUpdateKeybindings=r._register(new Ye),r._currentChord=null,r._currentChordChecker=new Ci,r._currentChordStatusMessage=null,r}return yp(t,e),Object.defineProperty(t.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Ue.None},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.getKeybindings=function(){return this._getResolver().getKeybindings()},t.prototype.lookupKeybinding=function(e){var t=this._getResolver().lookupPrimaryKeybinding(e);if(t)return t.resolvedKeybinding},t.prototype.softDispatch=function(e,t){var n=this.resolveKeyboardEvent(e);if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var i=n.getDispatchParts()[0];if(null===i)return null;var o=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(o,r,i)},t.prototype._enterChordMode=function(e,t){var n=this;this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(r("first.chord","({0}) was pressed. Waiting for second key of chord...",t));var i=Date.now();this._currentChordChecker.cancelAndSet((function(){n._documentHasFocus()?Date.now()-i>5e3&&n._leaveChordMode():n._leaveChordMode()}),500)},t.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},t.prototype._dispatch=function(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)},t.prototype._doDispatch=function(e,t){var n=this,i=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var o=e.getDispatchParts()[0];if(null===o)return i;var s=this._contextKeyService.getContext(t),a=this._currentChord?this._currentChord.keypress:null,u=e.getLabel(),l=this._getResolver().resolve(s,a,o);return l&&l.enterChord?(i=!0,this._enterChordMode(o,u),i):(this._currentChord&&(l&&l.commandId||(this._notificationService.status(r("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,u),{hideAfter:1e4}),i=!0)),this._leaveChordMode(),l&&l.commandId&&(l.bubble||(i=!0),"undefined"===typeof l.commandArgs?this._commandService.executeCommand(l.commandId).then(void 0,(function(e){return n._notificationService.warn(e)})):this._commandService.executeCommand(l.commandId,l.commandArgs).then(void 0,(function(e){return n._notificationService.warn(e)})),this._telemetryService.publicLog2("workbenchActionExecuted",{id:l.commandId,from:"keybinding"})),i)},t.prototype.mightProducePrintableCharacter=function(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)},t}(Ie),bp=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)}}(),Cp=function(){function e(){}return e.has=function(e){return Bp.create(e)},e.equals=function(e,t){return Ep.create(e,t)},e.regex=function(e,t){return Dp.create(e,t)},e.not=function(e){return Lp.create(e)},e.and=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return kp.create(e)},e.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ip.create(e)},e.deserialize=function(e,t){if(void 0===t&&(t=!1),e)return this._deserializeOrExpression(e,t)},e._deserializeOrExpression=function(e,t){var n=this,i=e.split("||");return Ip.create(i.map((function(e){return n._deserializeAndExpression(e,t)})))},e._deserializeAndExpression=function(e,t){var n=this,i=e.split("&&");return kp.create(i.map((function(e){return n._deserializeOne(e,t)})))},e._deserializeOne=function(e,t){if(e=e.trim(),e.indexOf("!=")>=0){var n=e.split("!=");return xp.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){n=e.split("==");return Ep.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){n=e.split("=~");return Dp.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}return/^\!\s*/.test(e)?Lp.create(e.substr(1).trim()):Bp.create(e)},e._deserializeValue=function(e,t){if(e=e.trim(),"true"===e)return!0;if("false"===e)return!1;var n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e},e._deserializeRegexValue=function(e,t){if(Sr(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var n=e.indexOf("/"),i=e.lastIndexOf("/");if(n===i||n<0){if(t)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var o=e.slice(n+1,i),r="i"===e[i+1]?"i":"";try{return new RegExp(o,r)}catch(s){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+s);return console.warn("bad regexp-value '"+e+"', parse error: "+s),null}},e}();function Sp(e,t){var n=e.getType(),i=t.getType();if(n!==i)return n-i;switch(n){case 1:return e.cmp(t);case 2:return e.cmp(t);case 3:return e.cmp(t);case 4:return e.cmp(t);case 6:return e.cmp(t);case 7:return e.cmp(t);case 5:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var Bp=function(){function e(e){this.key=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 1},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!!e.getValue(this.key)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Lp.create(this.key)},e}(),Ep=function(){function e(e,t){this.key=e,this.value=t}return e.create=function(t,n){return"boolean"===typeof n?n?Bp.create(t):Lp.create(t):new e(t,n)},e.prototype.getType=function(){return 3},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return xp.create(this.key,this.value)},e}(),xp=function(){function e(e,t){this.key=e,this.value=t}return e.create=function(t,n){return"boolean"===typeof n?n?Lp.create(t):Bp.create(t):new e(t,n)},e.prototype.getType=function(){return 4},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Ep.create(this.key,this.value)},e}(),Lp=function(){function e(e){this.key=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 2},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!e.getValue(this.key)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Bp.create(this.key)},e}(),Dp=function(){function e(e,t){this.key=e,this.regexp=t}return e.create=function(t,n){return new e(t,n)},e.prototype.getType=function(){return 6},e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0},e.prototype.equals=function(t){if(t instanceof e){var n=this.regexp?this.regexp.source:"",i=t.regexp?t.regexp.source:"";return this.key===t.key&&n===i}return!1},e.prototype.evaluate=function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Np.create(this)},e}(),Np=function(){function e(e){this._actual=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 7},e.prototype.cmp=function(e){return this._actual.cmp(e._actual)},e.prototype.equals=function(t){return t instanceof e&&this._actual.equals(t._actual)},e.prototype.evaluate=function(e){return!this._actual.evaluate(e)},e.prototype.keys=function(){return this._actual.keys()},e.prototype.negate=function(){return this._actual},e}(),kp=function(){function e(e){this.expr=e}return e.create=function(t){var n=e._normalizeArr(t);if(0!==n.length)return 1===n.length?n[0]:new e(n)},e.prototype.getType=function(){return 5},e.prototype.cmp=function(e){if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(var t=0,n=this.expr.length;t<n;t++){var i=Sp(this.expr[t],e.expr[t]);if(0!==i)return i}return 0},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(t.expr[n]))return!1;return!0}return!1},e.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0},e._normalizeArr=function(t){var n=[];if(t){for(var i=0,o=t.length;i<o;i++){var r=t[i];if(r)if(r instanceof e)n=n.concat(r.expr);else{if(r instanceof Ip)throw new Error('It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.');n.push(r)}}n.sort(Sp)}return n},e.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push.apply(e,i.keys())}return e},e.prototype.negate=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push(i.negate())}return Ip.create(e)},e}(),Ip=function(){function e(e){this.expr=e}return e.create=function(t){var n=e._normalizeArr(t);if(0!==n.length)return 1===n.length?n[0]:new e(n)},e.prototype.getType=function(){return 8},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(t.expr[n]))return!1;return!0}return!1},e.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1},e._normalizeArr=function(t){var n=[];if(t){for(var i=0,o=t.length;i<o;i++){var r=t[i];r&&(r instanceof e?n=n.concat(r.expr):n.push(r))}n.sort(Sp)}return n},e.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push.apply(e,i.keys())}return e},e.prototype.negate=function(){for(var t=[],n=0,i=this.expr;n<i.length;n++){var o=i[n];t.push(o.negate())}var r=function(t){return t instanceof e?t.expr:[t]};while(t.length>1){for(var s=t.shift(),a=t.shift(),u=[],l=0,c=r(s);l<c.length;l++)for(var d=c[l],h=0,A=r(a);h<A.length;h++){var p=A[h];u.push(Cp.and(d,p))}t.unshift(Cp.or.apply(Cp,u))}return t[0]},e}(),Fp=function(e){function t(t,n){var i=e.call(this,t)||this;return i._defaultValue=n,i}return bp(t,e),t.prototype.bindTo=function(e){return e.createKey(this.key,this._defaultValue)},t.prototype.getValue=function(e){return e.getContextKeyValue(this.key)},t.prototype.toNegated=function(){return Cp.not(this.key)},t}(Bp),Mp=Dn("contextKeyService"),Op="setContext",Tp=function(){function e(t,n){this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(var i=0,o=t.length;i<o;i++){var r=t[i].command;r&&this._defaultBoundCommands.set(r,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=e.combine(t,n);for(i=0,o=this._keybindings.length;i<o;i++){var s=this._keybindings[i];0!==s.keypressParts.length&&this._addKeyPress(s.keypressParts[0],s)}}return e._isTargetedForRemoval=function(e,t,n,i,o){if(e.command!==i)return!1;if(t&&e.keypressParts[0]!==t)return!1;if(n&&e.keypressParts[1]!==n)return!1;if(o){if(!e.when)return!1;if(!o.equals(e.when))return!1}return!0},e.combine=function(e,t){e=e.slice(0);for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i];if(r.command&&0!==r.command.length&&"-"===r.command.charAt(0))for(var s=r.command.substr(1),a=r.keypressParts[0],u=r.keypressParts[1],l=r.when,c=e.length-1;c>=0;c--)this._isTargetedForRemoval(e[c],a,u,s,l)&&e.splice(c,1);else n.push(r)}return e.concat(n)},e.prototype._addKeyPress=function(t,n){var i=this._map.get(t);if("undefined"===typeof i)return this._map.set(t,[n]),void this._addToLookupMap(n);for(var o=i.length-1;o>=0;o--){var r=i[o];if(r.command!==n.command){var s=r.keypressParts.length>1,a=n.keypressParts.length>1;s&&a&&r.keypressParts[1]!==n.keypressParts[1]||e.whenIsEntirelyIncluded(r.when,n.when)&&this._removeFromLookupMap(r)}}i.push(n),this._addToLookupMap(n)},e.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}},e.prototype._removeFromLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return void t.splice(n,1)}},e.whenIsEntirelyIncluded=function(e,t){return!t||!!e&&this._implies(e,t)},e._implies=function(e,t){for(var n=e.negate(),i=function(e){return e instanceof Ip?e.expr:[e]},o=i(n).concat(i(t)),r=0;r<o.length;r++)for(var s=o[r],a=s.negate(),u=r+1;u<o.length;u++){var l=o[u];if(a.equals(l))return!0}return!1},e.prototype.getKeybindings=function(){return this._keybindings},e.prototype.lookupPrimaryKeybinding=function(e){var t=this._lookupMap.get(e);return"undefined"===typeof t||0===t.length?null:t[t.length-1]},e.prototype.resolve=function(e,t,n){var i=null;if(null!==t){var o=this._map.get(t);if("undefined"===typeof o)return null;i=[];for(var r=0,s=o.length;r<s;r++){var a=o[r];a.keypressParts[1]===n&&i.push(a)}}else{o=this._map.get(n);if("undefined"===typeof o)return null;i=o}var u=this._findCommand(e,i);return u?null===t&&u.keypressParts.length>1&&null!==u.keypressParts[1]?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:u.command,commandArgs:u.commandArgs,bubble:u.bubble}:null},e.prototype._findCommand=function(t,n){for(var i=n.length-1;i>=0;i--){var o=n[i];if(e.contextMatchesRules(t,o.when))return o}return null},e.contextMatchesRules=function(e,t){return!t||t.evaluate(e)},e}(),Pp=function(){function e(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return e.bindToCurrentPlatform=function(e){if(1===s["a"]){if(e&&e.win)return e.win}else if(2===s["a"]){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e},e.prototype.registerKeybindingRule=function(t){var n=e.bindToCurrentPlatform(t);if(n&&n.primary){var i=lt(n.primary,s["a"]);i&&this._registerDefaultKeybinding(i,t.id,t.args,t.weight,0,t.when)}if(n&&Array.isArray(n.secondary))for(var o=0,r=n.secondary.length;o<r;o++){var a=n.secondary[o];i=lt(a,s["a"]);i&&this._registerDefaultKeybinding(i,t.id,t.args,t.weight,-o-1,t.when)}},e.prototype.registerCommandAndKeybindingRule=function(e){this.registerKeybindingRule(e),za.registerCommand(e)},e._mightProduceChar=function(e){return e>=21&&e<=30||(e>=31&&e<=56||(80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e))},e.prototype._assertNoCtrlAlt=function(t,n){t.ctrlKey&&t.altKey&&!t.metaKey&&e._mightProduceChar(t.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",t," for ",n)},e.prototype._registerDefaultKeybinding=function(e,t,n,i,o,r){1===s["a"]&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:r,weight1:i,weight2:o}),this._cachedMergedKeybindings=null},e.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(Hp)),this._cachedMergedKeybindings.slice(0)},e}(),Rp=new Pp,Up={EditorModes:"platform.keybindingsRegistry"};function Hp(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.command<t.command?-1:e.command>t.command?1:e.weight2-t.weight2}uA.add(Up.EditorModes,Rp);var Qp=function(){function e(e,t,n,i,o){this.resolvedKeybinding=e,this.keypressParts=e?Vp(e.getDispatchParts()):[],this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=o}return e}();function Vp(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];if(!o)return t;t.push(o)}return t}var Wp=function(){function e(e,t,n){void 0===n&&(n=t),this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}return e.prototype.toLabel=function(e,t,n){if(0===t.length)return null;for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=n(s);if(null===a)return null;i[o]=jp(s,a,this.modifierLabels[e])}return i.join(" ")},e}(),Kp=new Wp({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:r({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:r({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:r({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:r({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:r({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:r({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:r({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:r({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),zp=new Wp({ctrlKey:r({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:r({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:r({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:r({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:r({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:r({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:r({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:r({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:r({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:r({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:r({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:r({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function jp(e,t,n){if(null===t)return"";var i=[];return e.ctrlKey&&i.push(n.ctrlKey),e.shiftKey&&i.push(n.shiftKey),e.altKey&&i.push(n.altKey),e.metaKey&&i.push(n.metaKey),i.push(t),i.join(n.separator)}var Gp,qp,Yp=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)}}(),Xp=function(e){function t(t,n){var i=e.call(this)||this;if(0===n.length)throw _e("parts");return i._os=t,i._parts=n,i}return Yp(t,e),t.prototype.getLabel=function(){var e=this;return Kp.toLabel(this._os,this._parts,(function(t){return e._getLabel(t)}))},t.prototype.getAriaLabel=function(){var e=this;return zp.toLabel(this._os,this._parts,(function(t){return e._getAriaLabel(t)}))},t.prototype.isChord=function(){return this._parts.length>1},t.prototype.getParts=function(){var e=this;return this._parts.map((function(t){return e._getPart(t)}))},t.prototype._getPart=function(e){return new pt(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))},t.prototype.getDispatchParts=function(){var e=this;return this._parts.map((function(t){return e._getDispatchPart(t)}))},t}(ft),Jp=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)}}(),Zp=function(e){function t(t,n){return e.call(this,n,t.parts)||this}return Jp(t,e),t.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return tt.toString(e)},t.prototype._getLabel=function(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)},t.prototype._getAriaLabel=function(e){return e.isDuplicateModifierCase()?"":tt.toString(e.keyCode)},t.prototype._getDispatchPart=function(e){return t.getDispatchStr(e)},t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=tt.toString(e.keyCode),t},t}(Xp),$p=Dn("notificationService"),ef=function(){function e(){}return e}(),tf=Dn("contextService");(function(e){function t(e){return e&&"object"===typeof e&&"string"===typeof e.id&&Array.isArray(e.folders)}e.isIWorkspace=t})(Gp||(Gp={})),function(e){function t(e){return e&&"object"===typeof e&&Et.isUri(e.uri)&&"string"===typeof e.name&&"function"===typeof e.toResource}e.isIWorkspaceFolder=t}(qp||(qp={}));(function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=null),this._id=e,this._configuration=n,this._foldersMap=Ua.forPaths(),this.folders=t}Object.defineProperty(e.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),e.prototype.getFolder=function(e){return e&&this._foldersMap.findSubstr(e.with({scheme:e.scheme,authority:e.authority,path:e.path}).toString())||null},e.prototype.updateFoldersMap=function(){this._foldersMap=Ua.forPaths();for(var e=0,t=this.folders;e<t.length;e++){var n=t[e];this._foldersMap.set(n.uri.toString(),n)}},e.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}}})();var nf,of,rf,sf,af,uf,lf,cf,df=function(){function e(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}return e.prototype.toResource=function(e){return la(this.uri,e)},e.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},e}();(function(e){e.noSelection=r("noSelection","No selection"),e.singleSelectionRange=r("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=r("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=r("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=r("multiSelection","{0} selections"),e.emergencyConfOn=r("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=r("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=r("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=r("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=r("readonlyEditor"," in a read-only code editor"),e.editableEditor=r("editableEditor"," in a code editor"),e.changeConfigToOnMac=r("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=r("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=r("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=r("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=r("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=r("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=r("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=r("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=r("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=r("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=r("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=r("showAccessibilityHelpAction","Show Accessibility Help")})(nf||(nf={})),function(e){e.inspectTokensAction=r("inspectTokens","Developer: Inspect Tokens")}(of||(of={})),function(e){e.gotoLineLabelValidLineAndColumn=r("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),e.gotoLineLabelValidLine=r("gotoLineLabelValidLine","Go to line {0}"),e.gotoLineLabelEmptyWithLineLimit=r("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),e.gotoLineLabelEmptyWithLineAndColumnLimit=r("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),e.gotoLineAriaLabel=r("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),e.gotoLineActionInput=r("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),e.gotoLineActionLabel=r("gotoLineActionLabel","Go to Line...")}(rf||(rf={})),function(e){e.ariaLabelEntryWithKey=r("ariaLabelEntryWithKey","{0}, {1}, commands"),e.ariaLabelEntry=r("ariaLabelEntry","{0}, commands"),e.quickCommandActionInput=r("quickCommandActionInput","Type the name of an action you want to execute"),e.quickCommandActionLabel=r("quickCommandActionLabel","Command Palette")}(sf||(sf={})),function(e){e.entryAriaLabel=r("entryAriaLabel","{0}, symbols"),e.quickOutlineActionInput=r("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),e.quickOutlineActionLabel=r("quickOutlineActionLabel","Go to Symbol..."),e._symbols_=r("symbols","symbols ({0})"),e._modules_=r("modules","modules ({0})"),e._class_=r("class","classes ({0})"),e._interface_=r("interface","interfaces ({0})"),e._method_=r("method","methods ({0})"),e._function_=r("function","functions ({0})"),e._property_=r("property","properties ({0})"),e._variable_=r("variable","variables ({0})"),e._variable2_=r("variable2","variables ({0})"),e._constructor_=r("_constructor","constructors ({0})"),e._call_=r("call","calls ({0})")}(af||(af={})),function(e){e.editorViewAccessibleLabel=r("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessageIE=r("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),e.accessibilityHelpMessage=r("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(uf||(uf={})),function(e){e.toggleHighContrast=r("toggleHighContrast","Toggle High Contrast Theme")}(lf||(lf={})),function(e){e.bulkEditServiceSummary=r("bulkEditServiceSummary","Made {0} edits in {1} files")}(cf||(cf={}));var hf=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)}}(),Af=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},pf=function(e,t){return function(n,i){t(n,i,e)}},ff=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},gf=function(){function e(e){this.model=e,this._onDispose=new Ye}return Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose.fire()},e}();function mf(e,t,n){return sA(e)?t(e):n(e)}var vf=function(){function e(e){this.modelService=e}return e.prototype.setEditor=function(e){this.editor=e},e.prototype.createModelReference=function(e){var t=this,n=null;return this.editor&&(n=mf(this.editor,(function(n){return t.findModel(n,e)}),(function(n){return t.findModel(n.getOriginalEditor(),e)||t.findModel(n.getModifiedEditor(),e)}))),n?Promise.resolve(new Me(new gf(n))):Promise.reject(new Error("Model not found"))},e.prototype.findModel=function(e,t){var n=this.modelService?this.modelService.getModel(t):e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},e}(),_f=function(){function e(){}return e.prototype.show=function(){return e.NULL_PROGRESS_RUNNER},e.prototype.showWhile=function(e,t){return Promise.resolve(void 0)},e.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},e}(),yf=function(){function e(){}return e}(),wf=function(){function e(){}return e.prototype.info=function(e){return this.notify({severity:rA.Info,message:e})},e.prototype.warn=function(e){return this.notify({severity:rA.Warning,message:e})},e.prototype.error=function(e){return this.notify({severity:rA.Error,message:e})},e.prototype.notify=function(t){switch(t.severity){case rA.Error:console.error(t.message);break;case rA.Warning:console.warn(t.message);break;default:console.log(t.message);break}return e.NO_OP},e.prototype.status=function(e,t){return Ie.None},e.NO_OP=new ef,e}(),bf=function(){function e(e){this._onWillExecuteCommand=new Ye,this._onDidExecuteCommand=new Ye,this._instantiationService=e,this._dynamicCommands=Object.create(null)}return e.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,De((function(){delete t._dynamicCommands[n]}))},e.prototype.executeCommand=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=za.getCommand(e)||this._dynamicCommands[e];if(!i)return Promise.reject(new Error("command '"+e+"' not found"));try{this._onWillExecuteCommand.fire({commandId:e,args:t});var o=this._instantiationService.invokeFunction.apply(this._instantiationService,ff([i.handler],t));return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(o)}catch(r){return Promise.reject(r)}},e}(),Cf=function(e){function t(t,n,i,o,r){var s=e.call(this,t,n,i,o)||this;return s._cachedResolver=null,s._dynamicKeybindings=[],s._register(vo(r,tr.KEY_DOWN,(function(e){var t=new oi(e),n=s._dispatch(t,t.target);n&&(t.preventDefault(),t.stopPropagation())}))),s}return hf(t,e),t.prototype.addDynamicKeybinding=function(e,t,n,i){var o=this,r=lt(t,s["a"]),a=new ke;r&&(this._dynamicKeybindings.push({keybinding:r,command:e,when:i,weight1:1e3,weight2:0}),a.add(De((function(){for(var t=0;t<o._dynamicKeybindings.length;t++){var n=o._dynamicKeybindings[t];if(n.command===e)return o._dynamicKeybindings.splice(t,1),void o.updateResolver({source:1})}}))));var u=this._commandService;if(!(u instanceof bf))throw new Error("Unknown command service!");return a.add(u.addCommand({id:e,handler:n})),this.updateResolver({source:1}),a},t.prototype.updateResolver=function(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e)},t.prototype._getResolver=function(){if(!this._cachedResolver){var e=this._toNormalizedKeybindingItems(Rp.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Tp(e,t)}return this._cachedResolver},t.prototype._documentHasFocus=function(){return document.hasFocus()},t.prototype._toNormalizedKeybindingItems=function(e,t){for(var n=[],i=0,o=0,r=e;o<r.length;o++){var s=r[o],a=s.when||void 0,u=s.keybinding;if(u)for(var l=this.resolveKeybinding(u),c=0,d=l;c<d.length;c++){var h=d[c];n[i++]=new Qp(h,s.command,s.commandArgs,a,t)}else n[i++]=new Qp(void 0,s.command,s.commandArgs,a,t)}return n},t.prototype.resolveKeybinding=function(e){return[new Zp(e,s["a"])]},t.prototype.resolveKeyboardEvent=function(e){var t=new ht(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new Zp(t,s["a"])},t}(wp);function Sf(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof Et)}var Bf=function(){function e(){this._onDidChangeConfiguration=new Ye,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new _p(new vp,new mp)}return e.prototype.configuration=function(){return this._configuration},e.prototype.getValue=function(e,t){var n="string"===typeof e?e:void 0,i=Sf(e)?e:Sf(t)?t:{};return this.configuration().getValue(n,i,void 0)},e.prototype.updateValue=function(e,t,n,i){return this.configuration().updateValue(e,t),Promise.resolve()},e.prototype.inspect=function(e,t){return void 0===t&&(t={}),this.configuration().inspect(e,t,void 0)},e}(),Ef=function(){function e(e){var t=this;this.configurationService=e,this._onDidChangeConfiguration=new Ye,this.configurationService.onDidChangeConfiguration((function(e){t._onDidChangeConfiguration.fire(e)}))}return e.prototype.getValue=function(e,t,n){var i=mn.isIPosition(t)?t:null,o=i?"string"===typeof n?n:void 0:"string"===typeof t?t:void 0;return"undefined"===typeof o?this.configurationService.getValue():this.configurationService.getValue(o)},e}(),xf=function(){function e(e){this.configurationService=e}return e.prototype.getEOL=function(e,t){var n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"auto"!==n?n:s["d"]||s["e"]?"\n":"\r\n"},e=Af([pf(0,rp)],e),e}(),Lf=function(){function e(){}return e.prototype.publicLog=function(e,t){return Promise.resolve(void 0)},e.prototype.publicLog2=function(e,t){return this.publicLog(e,t)},e}(),Df=function(){function e(){var t=Et.from({scheme:e.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new df({uri:t,name:"",index:0})]}}return e.prototype.getWorkspace=function(){return this.workspace},e.prototype.getWorkspaceFolder=function(t){return t&&t.scheme===e.SCHEME?this.workspace.folders[0]:null},e.SCHEME="inmemory",e}();function Nf(e,t,n){t&&e instanceof Bf&&Object.keys(t).forEach((function(i){np(i)&&e.updateValue("editor."+i,t[i]),n&&ip(i)&&e.updateValue("diffEditor."+i,t[i])}))}var kf,If,Ff,Mf=function(){function e(e){this._modelService=e}return e.prototype.apply=function(e,t){var n=new Map;if(e.edits)for(var i=0,o=e.edits;i<o.length;i++){var r=o[i];if(!Cl(r))return Promise.reject(new Error("bad edit - only text edits are supported"));var s=this._modelService.getModel(r.resource);if(!s)return Promise.reject(new Error("bad edit - model not found"));var a=n.get(s);a||(a=[]),n.set(s,a.concat(r.edits))}var u=0,l=0;return n.forEach((function(e,t){t.pushStackElement(),t.pushEditOperations([],e.map((function(e){return op.replaceMove(vn.lift(e.range),e.text)})),(function(){return[]})),t.pushStackElement(),l+=1,u+=e.length})),Promise.resolve({selection:void 0,ariaSummary:xr(cf.bulkEditServiceSummary,u,l)})},e}(),Of=function(){function e(){}return e.prototype.getUriLabel=function(e,t){return"file"===e.scheme?e.fsPath:e.path},e}(),Tf=function(){function e(e){this._container=e,this.onLayout=Ue.None}return Object.defineProperty(e.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),e}();n("5029");function Pf(e){kf=document.createElement("div"),kf.className="monaco-aria-container",If=document.createElement("div"),If.className="monaco-alert",If.setAttribute("role","alert"),If.setAttribute("aria-atomic","true"),kf.appendChild(If),Ff=document.createElement("div"),Ff.className="monaco-status",Ff.setAttribute("role","status"),Ff.setAttribute("aria-atomic","true"),kf.appendChild(Ff),e.appendChild(kf)}function Rf(e,t){Vf(If,e,t)}function Uf(e,t){s["e"]?Rf(e,t):Vf(Ff,e,t)}var Hf=0,Qf=void 0;function Vf(e,t,n){if(kf){if(!n)switch(Qf===t?Hf++:(Qf=t,Hf=0),Hf){case 0:break;case 1:t=r("repeated","{0} (occurred again)",t);break;default:t=r("repeatedNtimes","{0} (occurred {1} times)",t,Hf);break}oo(e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}}n("96b9");var Wf=function(){function e(e,t){this.chr=e,this.type=t,this.width=0}return e.prototype.fulfill=function(e){this.width=e},e}(),Kf=function(){function e(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}return e.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},e.prototype._createDomElements=function(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight=this._bareFontInfo.fontWeight,n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(n);var i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight="bold",i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(i);var o=document.createElement("div");o.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),o.style.fontWeight=this._bareFontInfo.fontWeight,o.style.fontSize=this._bareFontInfo.fontSize+"px",o.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,o.style.lineHeight=this._bareFontInfo.lineHeight+"px",o.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",o.style.fontStyle="italic",t.appendChild(o);for(var r=[],s=0,a=this._requests;s<a.length;s++){var u=a[s],l=void 0;0===u.type&&(l=n),2===u.type&&(l=i),1===u.type&&(l=o),l.appendChild(document.createElement("br"));var c=document.createElement("span");e._render(c,u),l.appendChild(c),r.push(c)}this._container=t,this._testElements=r},e._render=function(e,t){if(" "===t.chr){for(var n="&#160;",i=0;i<8;i++)n+=n;e.innerHTML=n}else{var o=t.chr;for(i=0;i<8;i++)o+=o;e.textContent=o}},e.prototype._readFromDomElements=function(){for(var e=0,t=this._requests.length;e<t;e++){var n=this._requests[e],i=this._testElements[e];n.fulfill(i.offsetWidth/256)}},e}();function zf(e,t){var n=new Kf(e,t);n.read()}var jf=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)}}(),Gf=function(e){function t(t,n,i){var o=e.call(this)||this;return o.referenceDomElement=t,o.changeCallback=i,o.measureReferenceDomElementToken=-1,o.width=-1,o.height=-1,o.measureReferenceDomElement(!1,n),o}return jf(t,e),t.prototype.dispose=function(){this.stopObserving(),e.prototype.dispose.call(this)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.startObserving=function(){var e=this;-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval((function(){return e.measureReferenceDomElement(!0)}),100))},t.prototype.stopObserving=function(){-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)},t.prototype.observe=function(e){this.measureReferenceDomElement(!0,e)},t.prototype.measureReferenceDomElement=function(e,t){var n=0,i=0;t?(n=t.width,i=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,i=this.referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),this.width===n&&this.height===i||(this.width=n,this.height=i,e&&this.changeCallback())},t}(Ie),qf=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)}}(),Yf=function(){function e(){this._keys=Object.create(null),this._values=Object.create(null)}return e.prototype.has=function(e){var t=e.getId();return!!this._values[t]},e.prototype.get=function(e){var t=e.getId();return this._values[t]},e.prototype.put=function(e,t){var n=e.getId();this._keys[n]=e,this._values[n]=t},e.prototype.remove=function(e){var t=e.getId();delete this._keys[t],delete this._values[t]},e.prototype.getValues=function(){var e=this;return Object.keys(this._keys).map((function(t){return e._values[t]}))},e}();function Xf(){Jf.INSTANCE.clearCache()}var Jf=function(e){function t(){var t=e.call(this)||this;return t._onDidChange=t._register(new Ye),t.onDidChange=t._onDidChange.event,t._cache=new Yf,t._evictUntrustedReadingsTimeout=-1,t}return qf(t,e),t.prototype.dispose=function(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),e.prototype.dispose.call(this)},t.prototype.clearCache=function(){this._cache=new Yf,this._onDidChange.fire()},t.prototype._writeToCache=function(e,t){var n=this;this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout((function(){n._evictUntrustedReadingsTimeout=-1,n._evictUntrustedReadings()}),5e3))},t.prototype._evictUntrustedReadings=function(){for(var e=this._cache.getValues(),t=!1,n=0,i=e.length;n<i;n++){var o=e[n];o.isTrusted||(t=!0,this._cache.remove(o))}t&&this._onDidChange.fire()},t.prototype.readConfiguration=function(e){if(!this._cache.has(e)){var n=t._actualReadConfiguration(e);(n.typicalHalfwidthCharacterWidth<=2||n.typicalFullwidthCharacterWidth<=2||n.spaceWidth<=2||n.maxDigitWidth<=2)&&(n=new Cu({zoomLevel:Fn(),fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,fontFeatureSettings:n.fontFeatureSettings,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,isMonospace:n.isMonospace,typicalHalfwidthCharacterWidth:Math.max(n.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(n.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:n.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(n.spaceWidth,5),maxDigitWidth:Math.max(n.maxDigitWidth,5)},!1)),this._writeToCache(e,n)}return this._cache.get(e)},t.createRequest=function(e,t,n,i){var o=new Wf(e,t);return n.push(o),i&&i.push(o),o},t._actualReadConfiguration=function(e){var t=[],n=[],i=this.createRequest("n",0,t,n),o=this.createRequest("",0,t,null),r=this.createRequest(" ",0,t,n),s=this.createRequest("0",0,t,n),a=this.createRequest("1",0,t,n),u=this.createRequest("2",0,t,n),l=this.createRequest("3",0,t,n),c=this.createRequest("4",0,t,n),d=this.createRequest("5",0,t,n),h=this.createRequest("6",0,t,n),A=this.createRequest("7",0,t,n),p=this.createRequest("8",0,t,n),f=this.createRequest("9",0,t,n),g=this.createRequest("→",0,t,n),m=this.createRequest("→",0,t,null);this.createRequest("·",0,t,n),this.createRequest("|",0,t,n),this.createRequest("/",0,t,n),this.createRequest("-",0,t,n),this.createRequest("_",0,t,n),this.createRequest("i",0,t,n),this.createRequest("l",0,t,n),this.createRequest("m",0,t,n),this.createRequest("|",1,t,n),this.createRequest("_",1,t,n),this.createRequest("i",1,t,n),this.createRequest("l",1,t,n),this.createRequest("m",1,t,n),this.createRequest("n",1,t,n),this.createRequest("|",2,t,n),this.createRequest("_",2,t,n),this.createRequest("i",2,t,n),this.createRequest("l",2,t,n),this.createRequest("m",2,t,n),this.createRequest("n",2,t,n),zf(e,t);for(var v=Math.max(s.width,a.width,u.width,l.width,c.width,d.width,h.width,A.width,p.width,f.width),_=e.fontFeatureSettings===T.OFF,y=n[0].width,w=1,b=n.length;_&&w<b;w++){var C=y-n[w].width;if(C<-.001||C>.001){_=!1;break}}var S=!0;_&&m.width!==y&&(S=!1),m.width>g.width&&(S=!1);var B=Mn()>2e3;return new Cu({zoomLevel:Fn(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:_,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:S,spaceWidth:r.width,maxDigitWidth:v},B)},t.INSTANCE=new t,t}(Ie),Zf=function(e){function t(t,n,i,o){void 0===i&&(i=null);var r=e.call(this,t,n)||this;return r.accessibilityService=o,r._elementSizeObserver=r._register(new Gf(i,n.dimension,(function(){return r._onReferenceDomElementSizeChanged()}))),r._register(Jf.INSTANCE.onDidChange((function(){return r._onCSSBasedConfigurationChanged()}))),r._validatedOptions.get(9)&&r._elementSizeObserver.startObserving(),r._register(On((function(e){return r._recomputeOptions()}))),r._register(r.accessibilityService.onDidChangeAccessibilitySupport((function(){return r._recomputeOptions()}))),r._recomputeOptions(),r}return qf(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.fontFeatureSettings=t.fontFeatureSettings,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.setFontFeatureSettings(t.fontFeatureSettings),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 Kn||zn||(e+="no-user-select "),s["e"]&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:Vn||Qn,pixelRatio:Tn(),zoomLevel:Fn(),accessibilitySupport:this.accessibilityService.getAccessibilitySupport()}},t.prototype.readConfiguration=function(e){return Jf.INSTANCE.readConfiguration(e)},t}(KA),$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)}}(),eg=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},tg=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},ng=function(e){function t(t,n,i,o,r){void 0===n&&(n=""),void 0===i&&(i=""),void 0===o&&(o=!0);var s=e.call(this)||this;return s._onDidChange=s._register(new Ye),s.onDidChange=s._onDidChange.event,s._enabled=!0,s._checked=!1,s._id=t,s._label=n,s._cssClass=i,s._enabled=o,s._actionCallback=r,s}return $f(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),t.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),t.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(t.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),t.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),t.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),t.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},t.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},t}(Ie),ig=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new Ye),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new Ye),t.onDidRun=t._onDidRun.event,t}return $f(t,e),t.prototype.run=function(e,t){return eg(this,void 0,void 0,(function(){var n,i;return tg(this,(function(o){switch(o.label){case 0:if(!e.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:e}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.runAction(e,t)];case 2:return n=o.sent(),this._onDidRun.fire({action:e,result:n}),[3,4];case 3:return i=o.sent(),this._onDidRun.fire({action:e,error:i}),[3,4];case 4:return[2]}}))}))},t.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n)},t}(Ie),og=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)}}(),rg=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},sg=function(e,t){return function(n,i){t(n,i,e)}},ag=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function ug(e){return void 0!==e.command}var lg,cg=Dn("menuService"),dg=new(function(){function e(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Ye,this.onDidChangeMenu=this._onDidChangeMenu.event}return e.prototype.addCommand=function(e){var t=this;return this._commands.set(e.id,e),this._onDidChangeMenu.fire(0),{dispose:function(){t._commands.delete(e.id)&&t._onDidChangeMenu.fire(0)}}},e.prototype.getCommand=function(e){return this._commands.get(e)},e.prototype.getCommands=function(){var e=new Map;return this._commands.forEach((function(t,n){return e.set(n,t)})),e},e.prototype.appendMenuItem=function(e,t){var n=this,i=this._menuItems.get(e);return i?i.push(t):(i=[t],this._menuItems.set(e,i)),this._onDidChangeMenu.fire(e),{dispose:function(){var o=i.indexOf(t);o>=0&&(i.splice(o,1),n._onDidChangeMenu.fire(e))}}},e.prototype.getMenuItems=function(e){var t=(this._menuItems.get(e)||[]).slice(0);return 0===e&&this._appendImplicitItems(t),t},e.prototype._appendImplicitItems=function(e){for(var t=new Set,n=e.filter((function(e){return ug(e)})),i=0,o=n;i<o.length;i++){var r=o[i],s=r.command,a=r.alt;t.add(s.id),a&&t.add(a.id)}this._commands.forEach((function(n,i){t.has(i)||e.push({command:n})}))},e}()),hg=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o._commandService=i,o}return og(t,e),t.prototype.run=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._commandService).executeCommand.apply(e,ag([this.id],t))},t=rg([sg(2,Ka)],t),t}(ng),Ag=function(e){function t(t){var n=this;return n="string"===typeof t.title?e.call(this,"",t.title,"submenu")||this:e.call(this,"",t.title.value,"submenu")||this,n.item=t,n}return og(t,e),t}(ng),pg=function(e){function t(n,i,o,r,s){var a=this;return a="string"===typeof n.title?e.call(this,n.id,n.title,s)||this:e.call(this,n.id,n.title.value,s)||this,a._cssClass=void 0,a._enabled=!n.precondition||r.contextMatchesRules(n.precondition),a._checked=Boolean(n.toggled&&r.contextMatchesRules(n.toggled)),a._options=o||{},a.item=n,a.alt=i?new t(i,void 0,a._options,r,s):void 0,a}return og(t,e),t.prototype.dispose=function(){this.alt&&this.alt.dispose(),e.prototype.dispose.call(this)},t.prototype.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=[];return this._options.arg&&(i=ag(i,[this._options.arg])),this._options.shouldForwardArgs&&(i=ag(i,t)),e.prototype.run.apply(this,i)},t=rg([sg(3,Mp),sg(4,Ka)],t),t}(hg),fg=Dn("telemetryService"),gg=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)}}(),mg=function(){function e(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}return e.prototype.register=function(){var e=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var t=this._kbOpts.kbExpr;this.precondition&&(t=t?Cp.and(t,this.precondition):this.precondition),Rp.registerCommandAndKeybindingRule({id:this.id,handler:function(t,n){return e.runCommand(t,n)},weight:this._kbOpts.weight,when:t,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else za.registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})},e.prototype._registerMenuItem=function(e){dg.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title},when:e.when,order:e.order})},e}(),vg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gg(t,e),t.bindToContribution=function(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._callback=e.handler,n}return gg(n,t),n.prototype.runEditorCommand=function(t,n,i){var o=e(n);o&&this._callback(e(n),i)},n}(t)},t.prototype.runCommand=function(e,t){var n=this,i=e.get(kn),o=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(o)return o.invokeWithinContext((function(e){var i=e.get(Mp);if(i.contextMatchesRules(Na(n.precondition)))return n.runEditorCommand(e,o,t)}))},t}(mg),_g=function(e){function t(n){var i=e.call(this,t.convertOptions(n))||this;return i.label=n.label,i.alias=n.alias,i}return gg(t,e),t.convertOptions=function(e){var t;function n(t){return t.menuId||(t.menuId=7),t.title||(t.title=e.label),t.when=Cp.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push.apply(t,e.contextMenuOpts.map(n)):e.contextMenuOpts&&t.push(n(e.contextMenuOpts)),e.menuOpts=t,e},t.prototype.runEditorCommand=function(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})},t.prototype.reportTelemetry=function(e,t){e.get(fg).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},t}(vg);function yg(e,t){za.registerCommand(e,(function(e,n){return t(e,n||{})}))}function wg(e,t){yg(e,(function(e,n){var i=n.resource,o=n.position;if(!(i instanceof Et))throw _e("resource");if(!mn.isIPosition(o))throw _e("position");var r=e.get(ll).getModel(i);if(r){var s=mn.lift(o);return t(r,s,n)}return e.get(ec).createModelReference(i).then((function(e){return new Promise((function(i,r){try{var s=t(e.object.textEditorModel,mn.lift(o),n);i(s)}catch(a){r(a)}})).finally((function(){e.dispose()}))}))}))}function bg(e){return xg.INSTANCE.registerEditorCommand(e),e}function Cg(e){xg.INSTANCE.registerEditorAction(new e)}function Sg(e){xg.INSTANCE.registerEditorAction(e)}function Bg(e,t){xg.INSTANCE.registerEditorContribution(e,t)}(function(e){function t(e){return xg.INSTANCE.getEditorCommand(e)}function n(){return xg.INSTANCE.getEditorActions()}function i(){return xg.INSTANCE.getEditorContributions()}function o(e){return xg.INSTANCE.getEditorContributions().filter((function(t){return e.indexOf(t.id)>=0}))}function r(){return xg.INSTANCE.getDiffEditorContributions()}e.getEditorCommand=t,e.getEditorActions=n,e.getEditorContributions=i,e.getSomeEditorContributions=o,e.getDiffEditorContributions=r})(lg||(lg={}));var Eg={EditorCommonContributions:"editor.contributions"},xg=function(){function e(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return e.prototype.registerEditorContribution=function(e,t){this.editorContributions.push({id:e,ctor:t})},e.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},e.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},e.prototype.registerEditorAction=function(e){e.register(),this.editorActions.push(e)},e.prototype.getEditorActions=function(){return this.editorActions.slice(0)},e.prototype.registerEditorCommand=function(e){e.register(),this.editorCommands[e.id]=e},e.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null},e.INSTANCE=new e,e}();uA.add(Eg.EditorCommonContributions,xg.INSTANCE);var Lg=function(){function e(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._layerHint=!1,this._contain="none"}return e.prototype.setMaxWidth=function(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")},e.prototype.setWidth=function(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")},e.prototype.setHeight=function(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")},e.prototype.setTop=function(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")},e.prototype.unsetTop=function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")},e.prototype.setLeft=function(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")},e.prototype.setBottom=function(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")},e.prototype.setRight=function(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")},e.prototype.setFontFamily=function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)},e.prototype.setFontWeight=function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)},e.prototype.setFontSize=function(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")},e.prototype.setFontFeatureSettings=function(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)},e.prototype.setLineHeight=function(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")},e.prototype.setLetterSpacing=function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")},e.prototype.setClassName=function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)},e.prototype.toggleClassName=function(e,t){go(this.domNode,e,t),this._className=this.domNode.className},e.prototype.setDisplay=function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)},e.prototype.setPosition=function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)},e.prototype.setVisibility=function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)},e.prototype.setLayerHinting=function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")},e.prototype.setContain=function(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)},e.prototype.setAttribute=function(e,t){this.domNode.setAttribute(e,t)},e.prototype.removeAttribute=function(e){this.domNode.removeAttribute(e)},e.prototype.appendChild=function(e){this.domNode.appendChild(e.domNode)},e.prototype.removeChild=function(e){this.domNode.removeChild(e.domNode)},e}();function Dg(e){return new Lg(e)}var Ng=0;function kg(){var e="$memoize"+Ng++,t=void 0,n=function(n,i,o){var r=null,s=null;if("function"===typeof o.value?(r="value",s=o.value,0!==s.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof o.get&&(r="get",s=o.get),!s)throw new Error("not supported");var a=e+":"+i;o[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t=this,this.hasOwnProperty(a)||Object.defineProperty(this,a,{configurable:!0,enumerable:!1,writable:!0,value:s.apply(this,e)}),this[a]}};return n.clear=function(){"undefined"!==typeof t&&Object.getOwnPropertyNames(t).forEach((function(n){0===n.indexOf(e)&&delete t[n]}))},n}function Ig(e,t,n){return kg()(e,t,n)}var Fg,Mg=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)}}(),Og=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){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"})(Fg||(Fg={}));var Tg=function(e){function t(){var t=e.call(this)||this;return t.dispatched=!1,t.activeTouches={},t.handle=null,t.targets=[],t.ignoreTargets=[],t._lastSetTapCountTime=0,t._register(vo(document,"touchstart",(function(e){return t.onTouchStart(e)}))),t._register(vo(document,"touchend",(function(e){return t.onTouchEnd(e)}))),t._register(vo(document,"touchmove",(function(e){return t.onTouchMove(e)}))),t}return Mg(t,e),t.addTarget=function(e){return t.isTouchDevice()?(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.targets.push(e),{dispose:function(){t.INSTANCE.targets=t.INSTANCE.targets.filter((function(t){return t!==e}))}}):Ie.None},t.ignoreTarget=function(e){return t.isTouchDevice()?(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.ignoreTargets.push(e),{dispose:function(){t.INSTANCE.ignoreTargets=t.INSTANCE.ignoreTargets.filter((function(t){return t!==e}))}}):Ie.None},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},t.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this)},t.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,i=e.targetTouches.length;n<i;n++){var o=e.targetTouches.item(n);this.activeTouches[o.identifier]={id:o.identifier,initialTarget:o.target,initialTimeStamp:t,initialPageX:o.pageX,initialPageY:o.pageY,rollingTimestamps:[t],rollingPageX:[o.pageX],rollingPageY:[o.pageY]};var r=this.newGestureEvent(Fg.Start,o.target);r.pageX=o.pageX,r.pageY=o.pageY,this.dispatchEvent(r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.onTouchEnd=function(e){for(var n=Date.now(),i=Object.keys(this.activeTouches).length,o=function(o,s){var a=e.changedTouches.item(o);if(!r.activeTouches.hasOwnProperty(String(a.identifier)))return console.warn("move of an UNKNOWN touch",a),"continue";var u=r.activeTouches[a.identifier],l=Date.now()-u.initialTimeStamp;if(l<t.HOLD_DELAY&&Math.abs(u.initialPageX-xi(u.rollingPageX))<30&&Math.abs(u.initialPageY-xi(u.rollingPageY))<30){var c=r.newGestureEvent(Fg.Tap,u.initialTarget);c.pageX=xi(u.rollingPageX),c.pageY=xi(u.rollingPageY),r.dispatchEvent(c)}else if(l>=t.HOLD_DELAY&&Math.abs(u.initialPageX-xi(u.rollingPageX))<30&&Math.abs(u.initialPageY-xi(u.rollingPageY))<30){c=r.newGestureEvent(Fg.Contextmenu,u.initialTarget);c.pageX=xi(u.rollingPageX),c.pageY=xi(u.rollingPageY),r.dispatchEvent(c)}else if(1===i){var d=xi(u.rollingPageX),h=xi(u.rollingPageY),A=xi(u.rollingTimestamps)-u.rollingTimestamps[0],p=d-u.rollingPageX[0],f=h-u.rollingPageY[0],g=r.targets.filter((function(e){return u.initialTarget instanceof Node&&e.contains(u.initialTarget)}));r.inertia(g,n,Math.abs(p)/A,p>0?1:-1,d,Math.abs(f)/A,f>0?1:-1,h)}r.dispatchEvent(r.newGestureEvent(Fg.End,u.initialTarget)),delete r.activeTouches[a.identifier]},r=this,s=0,a=e.changedTouches.length;s<a;s++)o(s,a);this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n.tapCount=0,n},t.prototype.dispatchEvent=function(e){var n=this;if(e.type===Fg.Tap){var i=(new Date).getTime(),o=0;o=i-this._lastSetTapCountTime>t.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=i,e.tapCount=o}else e.type!==Fg.Change&&e.type!==Fg.Contextmenu||(this._lastSetTapCountTime=0);for(var r=0;r<this.ignoreTargets.length;r++)if(e.initialTarget instanceof Node&&this.ignoreTargets[r].contains(e.initialTarget))return;this.targets.forEach((function(t){e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),n.dispatched=!0)}))},t.prototype.inertia=function(e,n,i,o,r,s,a,u){var l=this;this.handle=Lo((function(){var c=Date.now(),d=c-n,h=0,A=0,p=!0;i+=t.SCROLL_FRICTION*d,s+=t.SCROLL_FRICTION*d,i>0&&(p=!1,h=o*i*d),s>0&&(p=!1,A=a*s*d);var f=l.newGestureEvent(Fg.Change);f.translationX=h,f.translationY=A,e.forEach((function(e){return e.dispatchEvent(f)})),p||l.inertia(e,c,i,o,r+h,s,a,u+A)}))},t.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,i=e.changedTouches.length;n<i;n++){var o=e.changedTouches.item(n);if(this.activeTouches.hasOwnProperty(String(o.identifier))){var r=this.activeTouches[o.identifier],s=this.newGestureEvent(Fg.Change,r.initialTarget);s.translationX=o.pageX-xi(r.rollingPageX),s.translationY=o.pageY-xi(r.rollingPageY),s.pageX=o.pageX,s.pageY=o.pageY,this.dispatchEvent(s),r.rollingPageX.length>3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(o.pageX),r.rollingPageY.push(o.pageY),r.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,t.CLEAR_TAP_COUNT_TIME=400,Og([Ig],t,"isTouchDevice",null),t}(Ie);function Pg(e,t){var n=new di(t);return n.preventDefault(),{leftButton:n.leftButton,posx:n.posx,posy:n.posy}}var Rg=function(){function e(){this.hooks=new ke,this.mouseMoveEventMerger=null,this.mouseMoveCallback=null,this.onStopCallback=null}return e.prototype.dispose=function(){this.stopMonitoring(!1),this.hooks.dispose()},e.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this.hooks.clear(),this.mouseMoveEventMerger=null,this.mouseMoveCallback=null;var t=this.onStopCallback;this.onStopCallback=null,e&&t&&t()}},e.prototype.isMonitoring=function(){return!!this.mouseMoveEventMerger},e.prototype.startMonitoring=function(e,t,n){var i=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=n;for(var o=li.getSameOriginWindowChain(),r=s["c"]&&eo.pointerEvents?"pointermove":"mousemove",a=s["c"]&&eo.pointerEvents?"pointerup":"mouseup",u=0,l=o;u<l.length;u++){var c=l[u];this.hooks.add(Oo(c.window.document,r,(function(e){return i.mouseMoveCallback(e)}),(function(e,t){return i.mouseMoveEventMerger(e,t)}))),this.hooks.add(vo(c.window.document,a,(function(e){return i.stopMonitoring(!0)})))}if(li.hasDifferentOriginAncestor()){var d=o[o.length-1];this.hooks.add(vo(d.window.document,"mouseout",(function(e){var t=new di(e);"html"===t.target.tagName.toLowerCase()&&i.stopMonitoring(!0)}))),this.hooks.add(vo(d.window.document,"mouseover",(function(e){var t=new di(e);"html"===t.target.tagName.toLowerCase()&&i.stopMonitoring(!0)}))),this.hooks.add(vo(d.window.document.body,"mouseleave",(function(e){i.stopMonitoring(!0)})))}}},e}(),Ug=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)}}(),Hg=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.toClientCoordinates=function(){return new Qg(this.x-Qo.scrollX,this.y-Qo.scrollY)},e}(),Qg=function(){function e(e,t){this.clientX=e,this.clientY=t}return e.prototype.toPageCoordinates=function(){return new Hg(this.clientX+Qo.scrollX,this.clientY+Qo.scrollY)},e}(),Vg=function(){function e(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}return e}();function Wg(e){var t=Ho(e);return new Vg(t.left,t.top,t.width,t.height)}var Kg=function(e){function t(t,n){var i=e.call(this,t)||this;return i.pos=new Hg(i.posx,i.posy),i.editorPos=Wg(n),i}return Ug(t,e),t}(di),zg=function(){function e(e){this._editorViewDomNode=e}return e.prototype._create=function(e){return new Kg(e,this._editorViewDomNode)},e.prototype.onContextMenu=function(e,t){var n=this;return vo(e,"contextmenu",(function(e){t(n._create(e))}))},e.prototype.onMouseUp=function(e,t){var n=this;return vo(e,"mouseup",(function(e){t(n._create(e))}))},e.prototype.onMouseDown=function(e,t){var n=this;return vo(e,"mousedown",(function(e){t(n._create(e))}))},e.prototype.onMouseLeave=function(e,t){var n=this;return Bo(e,(function(e){t(n._create(e))}))},e.prototype.onMouseMoveThrottled=function(e,t,n,i){var o=this,r=function(e,t){return n(e,o._create(t))};return Oo(e,"mousemove",t,r,i)},e}(),jg=function(){function e(e){this._editorViewDomNode=e}return e.prototype._create=function(e){return new Kg(e,this._editorViewDomNode)},e.prototype.onPointerUp=function(e,t){var n=this;return vo(e,"pointerup",(function(e){t(n._create(e))}))},e.prototype.onPointerDown=function(e,t){var n=this;return vo(e,"pointerdown",(function(e){t(n._create(e))}))},e.prototype.onPointerLeave=function(e,t){var n=this;return Eo(e,(function(e){t(n._create(e))}))},e.prototype.onPointerMoveThrottled=function(e,t,n,i){var o=this,r=function(e,t){return n(e,o._create(t))};return Oo(e,"pointermove",t,r,i)},e}(),Gg=function(e){function t(t){var n=e.call(this)||this;return n._editorViewDomNode=t,n._globalMouseMoveMonitor=n._register(new Rg),n._keydownListener=null,n}return Ug(t,e),t.prototype.startMonitoring=function(e,t,n){var i=this;this._keydownListener=wo(document,"keydown",(function(e){var t=e.toKeybinding();t.isModifierKey()||i._globalMouseMoveMonitor.stopMonitoring(!0)}),!0);var o=function(t,n){return e(t,new Kg(n,i._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(o,t,(function(){i._keydownListener.dispose(),n()}))},t}(Ie),qg=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)}}(),Yg=function(e){function t(){var t=e.call(this)||this;return t._shouldRender=!0,t}return qg(t,e),t.prototype.shouldRender=function(){return this._shouldRender},t.prototype.forceShouldRender=function(){this._shouldRender=!0},t.prototype.setShouldRender=function(){this._shouldRender=!0},t.prototype.onDidRender=function(){this._shouldRender=!1},t.prototype.onConfigurationChanged=function(e){return!1},t.prototype.onCursorStateChanged=function(e){return!1},t.prototype.onDecorationsChanged=function(e){return!1},t.prototype.onFlushed=function(e){return!1},t.prototype.onFocusChanged=function(e){return!1},t.prototype.onLanguageConfigurationChanged=function(e){return!1},t.prototype.onLineMappingChanged=function(e){return!1},t.prototype.onLinesChanged=function(e){return!1},t.prototype.onLinesDeleted=function(e){return!1},t.prototype.onLinesInserted=function(e){return!1},t.prototype.onRevealRangeRequest=function(e){return!1},t.prototype.onScrollChanged=function(e){return!1},t.prototype.onTokensChanged=function(e){return!1},t.prototype.onTokensColorsChanged=function(e){return!1},t.prototype.onZonesChanged=function(e){return!1},t.prototype.onThemeChanged=function(e){return!1},t.prototype.handleEvents=function(e){for(var t=!1,n=0,i=e.length;n<i;n++){var o=e[n];switch(o.type){case 1:this.onConfigurationChanged(o)&&(t=!0);break;case 2:this.onCursorStateChanged(o)&&(t=!0);break;case 3:this.onDecorationsChanged(o)&&(t=!0);break;case 4:this.onFlushed(o)&&(t=!0);break;case 5:this.onFocusChanged(o)&&(t=!0);break;case 16:this.onLanguageConfigurationChanged(o)&&(t=!0);break;case 6:this.onLineMappingChanged(o)&&(t=!0);break;case 7:this.onLinesChanged(o)&&(t=!0);break;case 8:this.onLinesDeleted(o)&&(t=!0);break;case 9:this.onLinesInserted(o)&&(t=!0);break;case 10:this.onRevealRangeRequest(o)&&(t=!0);break;case 11:this.onScrollChanged(o)&&(t=!0);break;case 12:this.onTokensChanged(o)&&(t=!0);break;case 13:this.onTokensColorsChanged(o)&&(t=!0);break;case 14:this.onZonesChanged(o)&&(t=!0);break;case 15:this.onThemeChanged(o)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(o)}}t&&(this._shouldRender=!0)},t}(Ie),Xg=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)}}(),Jg=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._context.addEventHandler(n),n}return Xg(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t}(Yg),Zg=function(){function e(){}return e.write=function(e,t){e.setAttribute("data-mprt",String(t))},e.read=function(e){var t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)},e.collect=function(e,t){var n=[],i=0;while(e&&e!==document.body){if(e===t)break;e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement}for(var o=new Uint8Array(i),r=0;r<i;r++)o[r]=n[i-r-1];return o},e}(),$g=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)}}(),em=function(){function e(e,t){this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height}return e.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)},e.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},e}(),tm=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o._viewLines=i,o}return $g(t,e),t.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)},t.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)},t}(em),nm=function(){function e(e,t,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=n}return e}(),im=function(){function e(e,t){this.left=Math.round(e),this.width=Math.round(t)}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e}(),om=function(){function e(e,t){this.outsideRenderedLine=e,this.left=Math.round(t)}return e}(),rm=function(){function e(e,t){this.outsideRenderedLine=e,this.ranges=t}return e}(),sm=function(){function e(e,t){this.left=e,this.width=t}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e.compare=function(e,t){return e.left-t.left},e}(),am=function(){function e(){}return e._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},e._detachRange=function(e,t){e.selectNodeContents(t)},e._readClientRects=function(e,t,n,i,o){var r=this._createRange();try{return r.setStart(e,t),r.setEnd(n,i),r.getClientRects()}catch(s){return null}finally{this._detachRange(r,o)}},e._mergeAdjacentRanges=function(e){if(1===e.length)return[new im(e[0].left,e[0].width)];e.sort(sm.compare);for(var t=[],n=0,i=e[0].left,o=e[0].width,r=1,s=e.length;r<s;r++){var a=e[r],u=a.left,l=a.width;i+o+.9>=u?o=Math.max(o,u+l-i):(t[n++]=new im(i,o),i=u,o=l)}return t[n++]=new im(i,o),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];n[i]=new sm(Math.max(0,r.left-t),r.width)}return this._mergeAdjacentRanges(n)},e.readHorizontalRanges=function(e,t,n,i,o,r,s){var a=0,u=e.children.length-1;if(a>u)return null;t=Math.min(u,Math.max(a,t)),i=Math.min(u,Math.max(a,i)),t!==i&&i>0&&0===o&&(i--,o=1073741824);var l=e.children[t].firstChild,c=e.children[i].firstChild;if(l&&c||(!l&&0===n&&t>0&&(l=e.children[t-1].firstChild,n=1073741824),!c&&0===o&&i>0&&(c=e.children[i-1].firstChild,o=1073741824)),!l||!c)return null;n=Math.min(l.textContent.length,Math.max(0,n)),o=Math.min(c.textContent.length,Math.max(0,o));var d=this._readClientRects(l,n,c,o,s);return this._createHorizontalRangesFromClientRects(d,r)},e}(),um=Dn("themeService");function lm(e){return{id:e}}var cm="dark",dm="hc";function hm(e){switch(e){case cm:return"vs-dark";case dm:return"hc-black";default:return"vs"}}var Am={ThemingContribution:"base.contributions.theming"},pm=function(){function e(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Ye}return e.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),De((function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)}))},e.prototype.getThemingParticipants=function(){return this.themingParticipants},e}(),fm=new pm;function gm(e){return fm.onThemeChange(e)}uA.add(Am.ThemingContribution,fm);var mm=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)}}(),vm=function(){return!!s["f"]||!(s["d"]||Qn||Kn)}(),_m=Hn,ym=function(){function e(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(e.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),e}(),wm=function(){function e(e,t){this.themeType=t;var n=e.options,i=n.get(32);this.renderWhitespace=n.get(70),this.renderControlCharacters=n.get(66),this.spaceWidth=i.spaceWidth,this.useMonospaceOptimizations=i.isMonospace&&!n.get(22),this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=n.get(47),this.stopRenderingLineAfter=n.get(84),this.fontLigatures=n.get(33)}return e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},e}(),bm=function(){function e(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}return e.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},e.prototype.setDomNode=function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Dg(e)},e.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},e.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},e.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},e.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},e.prototype.onSelectionChanged=function(){return!(!_m&&this._options.themeType!==dm&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)},e.prototype.renderLine=function(t,n,i,o){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var r=i.getViewLineRenderingData(t),s=this._options,a=sh.filter(r.inlineDecorations,t,r.minColumn,r.maxColumn),u=null;if(_m||s.themeType===dm||"selection"===this._options.renderWhitespace)for(var l=i.selections,c=0,d=l;c<d.length;c++){var h=d[c];if(!(h.endLineNumber<t||h.startLineNumber>t)){var A=h.startLineNumber===t?h.startColumn:r.minColumn,p=h.endLineNumber===t?h.endColumn:r.maxColumn;A<p&&("selection"!==this._options.renderWhitespace?a.push(new sh(A,p,"inline-selected-text",0)):(u||(u=[]),u.push(new dh(A-1,p-1))))}}var f=new hh(s.useMonospaceOptimizations,s.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,a,r.tabSize,s.spaceWidth,s.stopRenderingLineAfter,s.renderWhitespace,s.renderControlCharacters,s.fontLigatures!==T.OFF,u);if(this._renderedViewLine&&this._renderedViewLine.input.equals(f))return!1;o.appendASCIIString('<div style="top:'),o.appendASCIIString(String(n)),o.appendASCIIString("px;height:"),o.appendASCIIString(String(this._options.lineHeight)),o.appendASCIIString('px;" class="'),o.appendASCIIString(e.CLASS_NAME),o.appendASCIIString('">');var g=fh(f,o);o.appendASCIIString("</div>");var m=null;return vm&&r.isBasicASCII&&s.useMonospaceOptimizations&&0===g.containsForeignElements&&r.content.length<300&&f.lineTokens.getCount()<100&&(m=new Cm(this._renderedViewLine?this._renderedViewLine.domNode:null,f,g.characterMapping)),m||(m=Em(this._renderedViewLine?this._renderedViewLine.domNode:null,f,g.characterMapping,g.containsRTL,g.containsForeignElements)),this._renderedViewLine=m,!0},e.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},e.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},e.prototype.getVisibleRangesForRange=function(e,t,n){if(!this._renderedViewLine)return null;e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=0|this._renderedViewLine.input.stopRenderingLineAfter,o=!1;-1!==i&&e>i+1&&t>i+1&&(o=!0),-1!==i&&e>i+1&&(e=i+1),-1!==i&&t>i+1&&(t=i+1);var r=this._renderedViewLine.getVisibleRangesForRange(e,t,n);return r&&r.length>0?new rm(o,r):null},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1},e.CLASS_NAME="view-line",e}(),Cm=function(){function e(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}return e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},e.prototype.getWidthIsFast=function(){return!0},e.prototype.getVisibleRangesForRange=function(e,t,n){var i=this._getCharPosition(e),o=this._getCharPosition(t);return[new im(i,o-i)]},e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},e.prototype.getColumnOfNodeOffset=function(e,t,n){var i=t.textContent.length,o=-1;while(t)t=t.previousSibling,o++;var r=this._characterMapping.partDataToCharOffset(o,i,n);return r+1},e}(),Sm=function(){function e(e,t,n,i,o){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var r=0,s=this._characterMapping.length;r<=s;r++)this._pixelOffsetCache[r]=-1}}return e.prototype._getReadingTarget=function(e){return e.domNode.firstChild},e.prototype.getWidth=function(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},e.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},e.prototype.getVisibleRangesForRange=function(e,t,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){var i=this._readPixelOffset(this.domNode,e,n);if(-1===i)return null;var o=this._readPixelOffset(this.domNode,t,n);return-1===o?null:[new im(i,o-i)]}return this._readVisibleRangesForRange(this.domNode,e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n,i){if(t===n){var o=this._readPixelOffset(e,t,i);return-1===o?null:[new im(o,0)]}return this._readRawVisibleRangesForRange(e,t,n,i)},e.prototype._readPixelOffset=function(e,t,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth()}if(null!==this._pixelOffsetCache){var i=this._pixelOffsetCache[t];if(-1!==i)return i;var o=this._actualReadPixelOffset(e,t,n);return this._pixelOffsetCache[t]=o,o}return this._actualReadPixelOffset(e,t,n)},e.prototype._actualReadPixelOffset=function(e,t,n){if(0===this._characterMapping.length){var i=am.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.endNode);return i&&0!==i.length?i[0].left:-1}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var o=this._characterMapping.charOffsetToPartData(t-1),r=Ah.getPartIndex(o),s=Ah.getCharIndex(o),a=am.readHorizontalRanges(this._getReadingTarget(e),r,s,r,s,n.clientRectDeltaLeft,n.endNode);return a&&0!==a.length?a[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n,i){if(1===t&&n===this._characterMapping.length)return[new im(0,this.getWidth())];var o=this._characterMapping.charOffsetToPartData(t-1),r=Ah.getPartIndex(o),s=Ah.getCharIndex(o),a=this._characterMapping.charOffsetToPartData(n-1),u=Ah.getPartIndex(a),l=Ah.getCharIndex(a);return am.readHorizontalRanges(this._getReadingTarget(e),r,s,u,l,i.clientRectDeltaLeft,i.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){var i=t.textContent.length,o=-1;while(t)t=t.previousSibling,o++;var r=this._characterMapping.partDataToCharOffset(o,i,n);return r+1},e}(),Bm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mm(t,e),t.prototype._readVisibleRangesForRange=function(t,n,i,o){var r=e.prototype._readVisibleRangesForRange.call(this,t,n,i,o);if(!r||0===r.length||n===i||1===n&&i===this._characterMapping.length)return r;if(!this.input.containsRTL){var s=this._readPixelOffset(t,i,o);if(-1!==s){var a=r[r.length-1];a.left<s&&(a.width=s-a.left)}}return r},t}(Sm),Em=function(){return Vn?xm:Lm}();function xm(e,t,n,i,o){return new Bm(e,t,n,i,o)}function Lm(e,t,n,i,o){return new Sm(e,t,n,i,o)}var Dm=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return e.prototype.undo=function(e){for(var t=this.editOperations.length-1;t>=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e.prototype.redo=function(e){for(var t=0;t<this.editOperations.length;t++)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e}();function Nm(e){var t=e.getEOL();return"\n"===t?0:1}var km=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=t}return e.prototype.undo=function(e){var t=Nm(e);e.setEOL(this.eol),this.eol=t},e.prototype.redo=function(e){var t=Nm(e);e.setEOL(this.eol),this.eol=t},e}(),Im=function(){function e(e){this.model=e,this.currentOpenStackElement=null,this.past=[],this.future=[]}return e.prototype.pushStackElement=function(){null!==this.currentOpenStackElement&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},e.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},e.prototype.pushEOL=function(e){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var t=Nm(this.model),n=new km(this.model.getAlternativeVersionId(),t);this.model.setEOL(e),n.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=n,this.pushStackElement()},e.prototype.pushEditOperation=function(t,n,i){this.future=[];var o=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof Dm?o=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(o=new Dm(this.model.getAlternativeVersionId(),t),this.currentOpenStackElement=o);var r={operations:this.model.applyEdits(n)};return o.editOperations.push(r),o.afterCursorState=e._computeCursorState(i,r.operations),o.afterVersionId=this.model.getVersionId(),o.afterCursorState},e._computeCursorState=function(e,t){try{return e?e(t):null}catch(n){return Ae(n),null}},e.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var e=this.past.pop();try{e.undo(this.model)}catch(t){return Ae(t),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},e.prototype.canUndo=function(){return this.past.length>0||null!==this.currentOpenStackElement},e.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(t){return Ae(t),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},e.prototype.canRedo=function(){return this.future.length>0},e}(),Fm=function(){function e(){this.spacesDiff=0,this.looksLikeAlignment=!1}return e}();function Mm(e,t,n,i,o){var r;for(o.spacesDiff=0,o.looksLikeAlignment=!1,r=0;r<t&&r<i;r++){var s=e.charCodeAt(r),a=n.charCodeAt(r);if(s!==a)break}for(var u=0,l=0,c=r;c<t;c++){s=e.charCodeAt(c);32===s?u++:l++}var d=0,h=0;for(c=r;c<i;c++){a=n.charCodeAt(c);32===a?d++:h++}if(!(u>0&&l>0)&&!(d>0&&h>0)){var A=Math.abs(l-h),p=Math.abs(u-d);if(0===A)return o.spacesDiff=p,void(p>0&&0<=d-1&&d-1<e.length&&d<n.length&&32!==n.charCodeAt(d)&&32===e.charCodeAt(d-1)&&(o.looksLikeAlignment=!0));p%A!==0||(o.spacesDiff=p/A)}}function Om(e,t,n){for(var i=Math.min(e.getLineCount(),1e4),o=0,r=0,s="",a=0,u=[2,4,6,8,3,5,7],l=8,c=[0,0,0,0,0,0,0,0,0],d=new Fm,h=1;h<=i;h++){for(var A=e.getLineLength(h),p=e.getLineContent(h),f=A<=65536,g=!1,m=0,v=0,_=0,y=0,w=A;y<w;y++){var b=f?p.charCodeAt(y):e.getLineCharCode(h,y);if(9===b)_++;else{if(32!==b){g=!0,m=y;break}v++}}if(g&&(_>0?o++:v>1&&r++,Mm(s,a,p,m,d),!d.looksLikeAlignment||n&&t===d.spacesDiff)){var C=d.spacesDiff;C<=l&&c[C]++,s=p,a=m}}var S=n;o!==r&&(S=o<r);var B=t;if(S){var E=S?0:.1*i;u.forEach((function(e){var t=c[e];t>E&&(E=t,B=e)})),4===B&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(B=2)}return{insertSpaces:S,tabSize:B}}function Tm(e){return(1&e.metadata)>>>0}function Pm(e,t){e.metadata=254&e.metadata|t<<0}function Rm(e){return(2&e.metadata)>>>1===1}function Um(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function Hm(e){return(4&e.metadata)>>>2===1}function Qm(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function Vm(e){return(8&e.metadata)>>>3===1}function Wm(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function Km(e){return(48&e.metadata)>>>4}function zm(e,t){e.metadata=207&e.metadata|t<<4}function jm(e){return(64&e.metadata)>>>6===1}function Gm(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}var qm=function(){function e(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Pm(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,Qm(this,!1),zm(this,1),Wm(this,!1),Gm(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,Um(this,!1)}return e.prototype.reset=function(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;Qm(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),zm(this,this.options.stickiness),Wm(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),Gm(this,this.options.collapseOnReplaceEdit)},e.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),Ym=new qm(null,0,0);Ym.parent=Ym,Ym.left=Ym,Ym.right=Ym,Pm(Ym,0);var Xm=function(){function e(){this.root=Ym,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,t,n,i,o){return this.root===Ym?[]:rv(this,e,t,n,i,o)},e.prototype.search=function(e,t,n){return this.root===Ym?[]:ov(this,e,t,n)},e.prototype.collectNodesFromOwner=function(e){return nv(this,e)},e.prototype.collectNodesPostOrder=function(){return iv(this)},e.prototype.insert=function(e){sv(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){uv(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){var n=e,i=0;while(e!==this.root)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;var o=n.start+i,r=n.end+i;n.setCachedOffsets(o,r,t)},e.prototype.acceptReplace=function(e,t,n,i){for(var o=ev(this,e,e+t),r=0,s=o.length;r<s;r++){var a=o[r];uv(this,a)}this._normalizeDeltaIfNecessary(),tv(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(r=0,s=o.length;r<s;r++){a=o[r];a.start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,$m(a,e,e+t,n,i),a.maxEnd=a.end,sv(this,a)}this._normalizeDeltaIfNecessary()},e.prototype._normalizeDeltaIfNecessary=function(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,Jm(this))},e}();function Jm(e){var t=e.root,n=0;while(t!==Ym)t.left===Ym||Rm(t.left)?t.right===Ym||Rm(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,pv(t),Um(t,!0),Um(t.left,!1),Um(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;Um(e.root,!1)}function Zm(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function $m(e,t,n,i,o){var r=Km(e),s=0===r||2===r,a=1===r||2===r,u=n-t,l=i,c=Math.min(u,l),d=e.start,h=!1,A=e.end,p=!1;t<=d&&A<=n&&jm(e)&&(e.start=t,h=!0,e.end=t,p=!0);var f=o?1:u>0?2:0;if(!h&&Zm(d,s,t,f)&&(h=!0),!p&&Zm(A,a,t,f)&&(p=!0),c>0&&!o){f=u>l?2:0;!h&&Zm(d,s,t+c,f)&&(h=!0),!p&&Zm(A,a,t+c,f)&&(p=!0)}f=o?1:0;!h&&Zm(d,s,n,f)&&(e.start=t+l,h=!0),!p&&Zm(A,a,n,f)&&(e.end=t+l,p=!0);var g=l-u;h||(e.start=Math.max(0,d+g)),p||(e.end=Math.max(0,A+g)),e.start>e.end&&(e.end=e.start)}function ev(e,t,n){var i=e.root,o=0,r=0,s=0,a=0,u=[],l=0;while(i!==Ym)if(Rm(i))Um(i.left,!1),Um(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;else{if(!Rm(i.left)){if(r=o+i.maxEnd,r<t){Um(i,!0);continue}if(i.left!==Ym){i=i.left;continue}}s=o+i.start,s>n?Um(i,!0):(a=o+i.end,a>=t&&(i.setCachedOffsets(s,a,0),u[l++]=i),Um(i,!0),i.right===Ym||Rm(i.right)||(o+=i.delta,i=i.right))}return Um(e.root,!1),u}function tv(e,t,n,i){var o=e.root,r=0,s=0,a=0,u=i-(n-t);while(o!==Ym)if(Rm(o))Um(o.left,!1),Um(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),pv(o),o=o.parent;else{if(!Rm(o.left)){if(s=r+o.maxEnd,s<t){Um(o,!0);continue}if(o.left!==Ym){o=o.left;continue}}a=r+o.start,a>n?(o.start+=u,o.end+=u,o.delta+=u,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),Um(o,!0)):(Um(o,!0),o.right===Ym||Rm(o.right)||(r+=o.delta,o=o.right))}Um(e.root,!1)}function nv(e,t){var n=e.root,i=[],o=0;while(n!==Ym)Rm(n)?(Um(n.left,!1),Um(n.right,!1),n=n.parent):n.left===Ym||Rm(n.left)?(n.ownerId===t&&(i[o++]=n),Um(n,!0),n.right===Ym||Rm(n.right)||(n=n.right)):n=n.left;return Um(e.root,!1),i}function iv(e){var t=e.root,n=[],i=0;while(t!==Ym)Rm(t)?(Um(t.left,!1),Um(t.right,!1),t=t.parent):t.left===Ym||Rm(t.left)?t.right===Ym||Rm(t.right)?(n[i++]=t,Um(t,!0)):t=t.right:t=t.left;return Um(e.root,!1),n}function ov(e,t,n,i){var o=e.root,r=0,s=0,a=0,u=[],l=0;while(o!==Ym)if(Rm(o))Um(o.left,!1),Um(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),o=o.parent;else if(o.left===Ym||Rm(o.left)){s=r+o.start,a=r+o.end,o.setCachedOffsets(s,a,i);var c=!0;t&&o.ownerId&&o.ownerId!==t&&(c=!1),n&&Hm(o)&&(c=!1),c&&(u[l++]=o),Um(o,!0),o.right===Ym||Rm(o.right)||(r+=o.delta,o=o.right)}else o=o.left;return Um(e.root,!1),u}function rv(e,t,n,i,o,r){var s=e.root,a=0,u=0,l=0,c=0,d=[],h=0;while(s!==Ym)if(Rm(s))Um(s.left,!1),Um(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!Rm(s.left)){if(u=a+s.maxEnd,u<t){Um(s,!0);continue}if(s.left!==Ym){s=s.left;continue}}if(l=a+s.start,l>n)Um(s,!0);else{if(c=a+s.end,c>=t){s.setCachedOffsets(l,c,r);var A=!0;i&&s.ownerId&&s.ownerId!==i&&(A=!1),o&&Hm(s)&&(A=!1),A&&(d[h++]=s)}Um(s,!0),s.right===Ym||Rm(s.right)||(a+=s.delta,s=s.right)}}return Um(e.root,!1),d}function sv(e,t){if(e.root===Ym)return t.parent=Ym,t.left=Ym,t.right=Ym,Pm(t,0),e.root=t,e.root;av(e,t),fv(t.parent);var n=t;while(n!==e.root&&1===Tm(n.parent))if(n.parent===n.parent.parent.left){var i=n.parent.parent.right;1===Tm(i)?(Pm(n.parent,0),Pm(i,0),Pm(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,dv(e,n)),Pm(n.parent,0),Pm(n.parent.parent,1),hv(e,n.parent.parent))}else{i=n.parent.parent.left;1===Tm(i)?(Pm(n.parent,0),Pm(i,0),Pm(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,hv(e,n)),Pm(n.parent,0),Pm(n.parent.parent,1),dv(e,n.parent.parent))}return Pm(e.root,0),t}function av(e,t){var n=0,i=e.root,o=t.start,r=t.end;while(1){var s=gv(o,r,i.start+n,i.end+n);if(s<0){if(i.left===Ym){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===Ym){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=Ym,t.right=Ym,Pm(t,1)}function uv(e,t){var n,i;if(t.left===Ym?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===Ym?(n=t.left,i=t):(i=lv(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Pm(n,0),t.detach(),cv(),pv(n),void(e.root.parent=Ym);var o,r=1===Tm(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Pm(i,Tm(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Ym&&(i.left.parent=i),i.right!==Ym&&(i.right.parent=i)),t.detach(),r)return fv(n.parent),i!==t&&(fv(i),fv(i.parent)),void cv();fv(n),fv(n.parent),i!==t&&(fv(i),fv(i.parent));while(n!==e.root&&0===Tm(n))n===n.parent.left?(o=n.parent.right,1===Tm(o)&&(Pm(o,0),Pm(n.parent,1),dv(e,n.parent),o=n.parent.right),0===Tm(o.left)&&0===Tm(o.right)?(Pm(o,1),n=n.parent):(0===Tm(o.right)&&(Pm(o.left,0),Pm(o,1),hv(e,o),o=n.parent.right),Pm(o,Tm(n.parent)),Pm(n.parent,0),Pm(o.right,0),dv(e,n.parent),n=e.root)):(o=n.parent.left,1===Tm(o)&&(Pm(o,0),Pm(n.parent,1),hv(e,n.parent),o=n.parent.left),0===Tm(o.left)&&0===Tm(o.right)?(Pm(o,1),n=n.parent):(0===Tm(o.left)&&(Pm(o.right,0),Pm(o,1),dv(e,o),o=n.parent.left),Pm(o,Tm(n.parent)),Pm(n.parent,0),Pm(o.left,0),hv(e,n.parent),n=e.root));Pm(n,0),cv()}function lv(e){while(e.left!==Ym)e=e.left;return e}function cv(){Ym.parent=Ym,Ym.delta=0,Ym.start=0,Ym.end=0}function dv(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==Ym&&(n.left.parent=t),n.parent=t.parent,t.parent===Ym?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,pv(t),pv(n)}function hv(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==Ym&&(n.right.parent=t),n.parent=t.parent,t.parent===Ym?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,pv(t),pv(n)}function Av(e){var t=e.end;if(e.left!==Ym){var n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==Ym){var i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function pv(e){e.maxEnd=Av(e)}function fv(e){while(e!==Ym){var t=Av(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function gv(e,t,n,i){return e===n?t-i:e-n}var mv=function(){function e(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return e.prototype.next=function(){if(this.right!==vv)return _v(this.right);var e=this;while(e.parent!==vv){if(e.parent.left===e)break;e=e.parent}return e.parent===vv?vv:e.parent},e.prototype.prev=function(){if(this.left!==vv)return yv(this.left);var e=this;while(e.parent!==vv){if(e.parent.right===e)break;e=e.parent}return e.parent===vv?vv:e.parent},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),vv=new mv(null,0);function _v(e){while(e.left!==vv)e=e.left;return e}function yv(e){while(e.right!==vv)e=e.right;return e}function wv(e){return e===vv?0:e.size_left+e.piece.length+wv(e.right)}function bv(e){return e===vv?0:e.lf_left+e.piece.lineFeedCnt+bv(e.right)}function Cv(){vv.parent=vv}function Sv(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==vv&&(n.left.parent=t),n.parent=t.parent,t.parent===vv?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Bv(e,t){var n=t.left;t.left=n.right,n.right!==vv&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===vv?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Ev(e,t){var n,i;if(t.left===vv?(i=t,n=i.right):t.right===vv?(i=t,n=i.left):(i=_v(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),Cv(),void(e.root.parent=vv);var o=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,Dv(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,Dv(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==vv&&(i.left.parent=i),i.right!==vv&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,Dv(e,i)),t.detach(),n.parent.left===n){var r=wv(n),s=bv(n);if(r!==n.parent.size_left||s!==n.parent.lf_left){var a=r-n.parent.size_left,u=s-n.parent.lf_left;n.parent.size_left=r,n.parent.lf_left=s,Lv(e,n.parent,a,u)}}if(Dv(e,n.parent),o)Cv();else{var l;while(n!==e.root&&0===n.color)n===n.parent.left?(l=n.parent.right,1===l.color&&(l.color=0,n.parent.color=1,Sv(e,n.parent),l=n.parent.right),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.right.color&&(l.left.color=0,l.color=1,Bv(e,l),l=n.parent.right),l.color=n.parent.color,n.parent.color=0,l.right.color=0,Sv(e,n.parent),n=e.root)):(l=n.parent.left,1===l.color&&(l.color=0,n.parent.color=1,Bv(e,n.parent),l=n.parent.left),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.left.color&&(l.right.color=0,l.color=1,Sv(e,l),l=n.parent.left),l.color=n.parent.color,n.parent.color=0,l.left.color=0,Bv(e,n.parent),n=e.root));n.color=0,Cv()}}function xv(e,t){Dv(e,t);while(t!==e.root&&1===t.parent.color)if(t.parent===t.parent.parent.left){var n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&(t=t.parent,Sv(e,t)),t.parent.color=0,t.parent.parent.color=1,Bv(e,t.parent.parent))}else{n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&(t=t.parent,Bv(e,t)),t.parent.color=0,t.parent.parent.color=1,Sv(e,t.parent.parent))}e.root.color=0}function Lv(e,t,n,i){while(t!==e.root&&t!==vv)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function Dv(e,t){var n=0,i=0;if(t!==e.root){if(0===n){while(t!==e.root&&t===t.parent.right)t=t.parent;if(t===e.root)return;t=t.parent,n=wv(t.left)-t.size_left,i=bv(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i}while(t!==e.root&&(0!==n||0!==i))t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}vv.parent=vv,vv.left=vv,vv.right=vv,vv.color=0;var Nv=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)}}(),kv=function(e){function t(t){for(var n=e.call(this,0)||this,i=0,o=t.length;i<o;i++)n.set(t.charCodeAt(i),2);return n.set(32,1),n.set(9,1),n}return Nv(t,e),t}(fd);function Iv(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e(n)),t[n]}}var Fv=Iv((function(e){return new kv(e)})),Mv=999,Ov=function(){function e(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}return e.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var e;e=this.isRegex?Tv(this.searchString):this.searchString.indexOf("\n")>=0;var t=null;try{t=Tr(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(i){return null}if(!t)return null;var n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new Pv(t,this.wordSeparators?Fv(this.wordSeparators):null,n?this.searchString:null)},e}();function Tv(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t<n;t++){var i=e.charCodeAt(t);if(92===i){if(t++,t>=n)break;var o=e.charCodeAt(t);if(110===o||114===o||87===o||119===o)return!0}}return!1}var Pv=function(){function e(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}return e}();function Rv(e,t,n){if(!n)return new Nu(e,null);for(var i=[],o=0,r=t.length;o<r;o++)i[o]=t[o];return new Nu(e,i)}var Uv=function(){function e(e){for(var t=[],n=0,i=0,o=e.length;i<o;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}return e.prototype.findLineFeedCountBeforeOffset=function(e){var t=this._lineFeedsOffsets,n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;while(n<i){var o=n+((i-n)/2>>0);t[o]>=e?i=o-1:t[o+1]>=e?(n=o,i=o):n=o+1}return n+1},e}(),Hv=function(){function e(){}return e.findMatches=function(e,t,n,i,o){var r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,n,new Kv(r.wordSeparators,r.regex),i,o):this._doFindMatchesLineByLine(e,n,r,i,o):[]},e._getMultilineMatchRange=function(e,t,n,i,o,r){var s,a,u=0;if(i?(u=i.findLineFeedCountBeforeOffset(o),s=t+o+u):s=t+o,i){var l=i.findLineFeedCountBeforeOffset(o+r.length),c=l-u;a=s+r.length+c}else a=s+r.length;var d=e.getPositionAt(s),h=e.getPositionAt(a);return new vn(d.lineNumber,d.column,h.lineNumber,h.column)},e._doFindMatchesMultiline=function(e,t,n,i,o){var r,s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),u="\r\n"===e.getEOL()?new Uv(a):null,l=[],c=0;n.reset(0);while(r=n.next(a))if(l[c++]=Rv(this._getMultilineMatchRange(e,s,a,u,r.index,r[0]),r,i),c>=o)return l;return l},e._doFindMatchesLineByLine=function(e,t,n,i,o){var r=[],s=0;if(t.startLineNumber===t.endLineNumber){var a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,r,i,o),r}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,u,t.startLineNumber,t.startColumn-1,s,r,i,o);for(var l=t.startLineNumber+1;l<t.endLineNumber&&s<o;l++)s=this._findMatchesInLine(n,e.getLineContent(l),l,0,s,r,i,o);if(s<o){var c=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);s=this._findMatchesInLine(n,c,t.endLineNumber,0,s,r,i,o)}return r},e._findMatchesInLine=function(e,t,n,i,o,r,s,a){var u=e.wordSeparators;if(!s&&e.simpleSearch){var l=e.simpleSearch,c=l.length,d=t.length,h=-c;while(-1!==(h=t.indexOf(l,h+c)))if((!u||Wv(u,t,d,h,c))&&(r[o++]=new Nu(new vn(n,h+1+i,n,h+1+c+i),null),o>=a))return o;return o}var A,p=new Kv(e.wordSeparators,e.regex);p.reset(0);do{if(A=p.next(t),A&&(r[o++]=Rv(new vn(n,A.index+1+i,n,A.index+1+A[0].length+i),A,s),o>=a))return o}while(A);return o},e.findNextMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new Kv(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,r,i):this._doFindNextMatchLineByLine(e,n,r,i)},e._doFindNextMatchMultiline=function(e,t,n,i){var o=new mn(t.lineNumber,1),r=e.getOffsetAt(o),s=e.getLineCount(),a=e.getValueInRange(new vn(o.lineNumber,o.column,s,e.getLineMaxColumn(s)),1),u="\r\n"===e.getEOL()?new Uv(a):null;n.reset(t.column-1);var l=n.next(a);return l?Rv(this._getMultilineMatchRange(e,r,a,u,l.index,l[0]),l,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new mn(1,1),n,i):null},e._doFindNextMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r),a=this._findFirstMatchInLine(n,s,r,t.column,i);if(a)return a;for(var u=1;u<=o;u++){var l=(r+u-1)%o,c=e.getLineContent(l+1),d=this._findFirstMatchInLine(n,c,l+1,1,i);if(d)return d}return null},e._findFirstMatchInLine=function(e,t,n,i,o){e.reset(i-1);var r=e.next(t);return r?Rv(new vn(n,r.index+1,n,r.index+1+r[0].length),r,o):null},e.findPreviousMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new Kv(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,r,i):this._doFindPreviousMatchLineByLine(e,n,r,i)},e._doFindPreviousMatchMultiline=function(e,t,n,i){var o=this._doFindMatchesMultiline(e,new vn(1,1,t.lineNumber,t.column),n,i,10*Mv);if(o.length>0)return o[o.length-1];var r=e.getLineCount();return t.lineNumber!==r||t.column!==e.getLineMaxColumn(r)?this._doFindPreviousMatchMultiline(e,new mn(r,e.getLineMaxColumn(r)),n,i):null},e._doFindPreviousMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,r,i);if(a)return a;for(var u=1;u<=o;u++){var l=(o+r-u-1)%o,c=e.getLineContent(l+1),d=this._findLastMatchInLine(n,c,l+1,i);if(d)return d}return null},e._findLastMatchInLine=function(e,t,n,i){var o,r=null;e.reset(0);while(o=e.next(t))r=Rv(new vn(n,o.index+1,n,o.index+1+o[0].length),o,i);return r},e}();function Qv(e,t,n,i,o){if(0===i)return!0;var r=t.charCodeAt(i-1);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(o>0){var s=t.charCodeAt(i);if(0!==e.get(s))return!0}return!1}function Vv(e,t,n,i,o){if(i+o===n)return!0;var r=t.charCodeAt(i+o);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(o>0){var s=t.charCodeAt(i+o-1);if(0!==e.get(s))return!0}return!1}function Wv(e,t,n,i,o){return Qv(e,t,n,i,o)&&Vv(e,t,n,i,o)}var Kv=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},e.prototype.next=function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(t=this._searchRegex.exec(e),!t)return null;var i=t.index,o=t[0].length;if(i===this._prevMatchStartIndex&&o===this._prevMatchLength){if(0===o){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||Wv(this._wordSeparators,e,n,i,o))return t}while(t);return null},e}(),zv=65535;function jv(e){var t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}var Gv=function(){function e(e,t,n,i,o){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=o}return e}();function qv(e,t){void 0===t&&(t=!0);for(var n=[0],i=1,o=0,r=e.length;o<r;o++){var s=e.charCodeAt(o);13===s?o+1<r&&10===e.charCodeAt(o+1)?(n[i++]=o+2,o++):n[i++]=o+1:10===s&&(n[i++]=o+1)}return t?jv(n):n}function Yv(e,t){e.length=0,e[0]=0;for(var n=1,i=0,o=0,r=0,s=!0,a=0,u=t.length;a<u;a++){var l=t.charCodeAt(a);13===l?a+1<u&&10===t.charCodeAt(a+1)?(r++,e[n++]=a+2,a++):(i++,e[n++]=a+1):10===l?(o++,e[n++]=a+1):s&&9!==l&&(l<32||l>126)&&(s=!1)}var c=new Gv(jv(e),i,o,r,s);return e.length=0,c}var Xv=function(){function e(e,t,n,i,o){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=o}return e}(),Jv=function(){function e(e,t){this.buffer=e,this.lineStarts=t}return e}(),Zv=function(){function e(e){this._limit=e,this._cache=[]}return e.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null},e.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},e.prototype.valdiate=function(e){for(var t=!1,n=this._cache,i=0;i<n.length;i++){var o=n[i];(null===o.node.parent||o.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){for(var r=[],s=0,a=n;s<a.length;s++){var u=a[s];null!==u&&r.push(u)}this._cache=r}},e}(),$v=function(){function e(e,t,n){this.create(e,t,n)}return e.prototype.create=function(e,t,n){this._buffers=[new Jv("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=vv,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;for(var i=null,o=0,r=e.length;o<r;o++)if(e[o].buffer.length>0){e[o].lineStarts||(e[o].lineStarts=qv(e[o].buffer));var s=new Xv(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),i=this.rbInsertRight(i,s)}this._searchCache=new Zv(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var t=this,n=zv,i=n-Math.floor(n/3),o=2*i,r="",s=0,a=[];if(this.iterate(this.root,(function(n){var u=t.getNodeContent(n),l=u.length;if(s<=i||s+l<o)return r+=u,s+=l,!0;var c=r.replace(/\r\n|\r|\n/g,e);return a.push(new Jv(c,qv(c))),r=u,s=l,!0})),s>0){var u=r.replace(/\r\n|\r|\n/g,e);a.push(new Jv(u,qv(u)))}this.create(a,e,!0)},e.prototype.getEOL=function(){return this._EOL},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},e.prototype.getOffsetAt=function(e,t){var n=0,i=this.root;while(i!==vv)if(i.left!==vv&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;var o=this.getAccumulatedValue(i,e-i.lf_left-2);return n+(o+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);var t=this.root,n=0,i=e;while(t!==vv)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var o=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+o.index,0===o.index){var r=this.getOffsetAt(n+1,1),s=i-r;return new mn(n+1,s+1)}return new mn(n+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===vv){r=this.getOffsetAt(n+1,1),s=i-e-r;return new mn(n+1,s+1)}t=t.right}return new mn(1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(o+e.remainder,o+t.remainder)}var r=e.node,s=this._buffers[r.piece.bufferIndex].buffer,a=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start),u=s.substring(a+e.remainder,a+r.piece.length);r=r.next();while(r!==vv){var l=this._buffers[r.piece.bufferIndex].buffer,c=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===t.node){u+=l.substring(c,c+t.remainder);break}u+=l.substr(c,r.piece.length),r=r.next()}return u},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},e.prototype.getLength=function(){return this._length},e.prototype.getLineCount=function(){return this._lineCnt},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value},e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var i=n.node.next();if(!i)return 0;var o=this._buffers[i.piece.bufferIndex],r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o.buffer.charCodeAt(r)}o=this._buffers[n.node.piece.bufferIndex],r=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start);var s=r+n.remainder;return o.buffer.charCodeAt(s)},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},e.prototype.findMatchesInNode=function(e,t,n,i,o,r,s,a,u,l,c){var d,h,A,p=this._buffers[e.piece.bufferIndex],f=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,o),m=this.offsetInBuffer(e.piece.bufferIndex,r),v={line:0,column:0};t._wordSeparators?(h=p.buffer.substring(g,m),A=function(e){return e+g},t.reset(-1)):(h=p.buffer,A=function(e){return e},t.reset(g));do{if(d=t.next(h),d){if(A(d.index)>=m)return l;this.positionInBuffer(e,A(d.index)-f,v);var _=this.getLineFeedCnt(e.piece.bufferIndex,o,v),y=v.line===o.line?v.column-o.column+i:v.column+1,w=y+d[0].length;if(c[l++]=Rv(new vn(n+_,y,n+_,w),d,a),A(d.index)+d[0].length>=m)return l;if(l>=u)return l}}while(d);return l},e.prototype.findMatchesLineByLine=function(e,t,n,i){var o=[],r=0,s=new Kv(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];var l=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(u.node,u.remainder);if(a.node===u.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,l,c,t,n,i,r,o),o;var d=e.startLineNumber,h=a.node;while(h!==u.node){var A=this.getLineFeedCnt(h.piece.bufferIndex,l,h.piece.end);if(A>=1){var p=this._buffers[h.piece.bufferIndex].lineStarts,f=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),g=p[l.line+A],m=d===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(h,s,d,m,l,this.positionInBuffer(h,g-f),t,n,i,r,o),r>=i)return o;d+=A}var v=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var _=this.getLineContent(d).substring(v,e.endColumn-1);return r=this._findMatchesInLine(t,s,_,e.endLineNumber,v,r,o,n,i),o}if(r=this._findMatchesInLine(t,s,this.getLineContent(d).substr(v),d,v,r,o,n,i),r>=i)return o;d++,a=this.nodeAt2(d,1),h=a.node,l=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){var y=d===e.startLineNumber?e.startColumn-1:0;_=this.getLineContent(d).substring(y,e.endColumn-1);return r=this._findMatchesInLine(t,s,_,e.endLineNumber,y,r,o,n,i),o}var w=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(u.node,s,d,w,l,c,t,n,i,r,o),o},e.prototype._findMatchesInLine=function(e,t,n,i,o,r,s,a,u){var l,c=e.wordSeparators;if(!a&&e.simpleSearch){var d=e.simpleSearch,h=d.length,A=n.length,p=-h;while(-1!==(p=n.indexOf(d,p+h)))if((!c||Wv(c,n,A,p,h))&&(s[r++]=new Nu(new vn(i,p+1+o,i,p+1+h+o),null),r>=u))return r;return r}t.reset(0);do{if(l=t.next(n),l&&(s[r++]=Rv(new vn(i,l.index+1+o,i,l.index+1+l[0].length+o),l,a),r>=u))return r}while(l);return r},e.prototype.insert=function(e,t,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==vv){var i=this.nodeAt(e),o=i.node,r=i.remainder,s=i.nodeStartOffset,a=o.piece,u=a.bufferIndex,l=this.positionInBuffer(o,r);if(0===o.piece.bufferIndex&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&s+a.length===e&&t.length<zv)return this.appendToNode(o,t),void this.computeBufferMetadata();if(s===e)this.insertContentToNodeLeft(t,o),this._searchCache.valdiate(e);else if(s+o.piece.length>e){var c=[],d=new Xv(a.bufferIndex,l,a.end,this.getLineFeedCnt(a.bufferIndex,l,a.end),this.offsetInBuffer(u,a.end)-this.offsetInBuffer(u,l));if(this.shouldCheckCRLF()&&this.endWithCR(t)){var h=this.nodeCharCodeAt(o,r);if(10===h){var A={line:d.start.line+1,column:0};d=new Xv(d.bufferIndex,A,d.end,this.getLineFeedCnt(d.bufferIndex,A,d.end),d.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){var p=this.nodeCharCodeAt(o,r-1);if(13===p){var f=this.positionInBuffer(o,r-1);this.deleteNodeTail(o,f),t="\r"+t,0===o.piece.length&&c.push(o)}else this.deleteNodeTail(o,l)}else this.deleteNodeTail(o,l);var g=this.createNewPieces(t);d.length>0&&this.rbInsertRight(o,d);for(var m=o,v=0;v<g.length;v++)m=this.rbInsertRight(m,g[v]);this.deleteNodes(c)}else this.insertContentToNodeRight(t,o)}else{var _=this.createNewPieces(t);for(o=this.rbInsertLeft(null,_[0]),v=1;v<_.length;v++)o=this.rbInsertRight(o,_[v])}this.computeBufferMetadata()},e.prototype.delete=function(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",!(t<=0||this.root===vv)){var n=this.nodeAt(e),i=this.nodeAt(e+t),o=n.node,r=i.node;if(o===r){var s=this.positionInBuffer(o,n.remainder),a=this.positionInBuffer(o,i.remainder);if(n.nodeStartOffset===e){if(t===o.piece.length){var u=o.next();return Ev(this,o),this.validateCRLFWithPrevNode(u),void this.computeBufferMetadata()}return this.deleteNodeHead(o,a),this._searchCache.valdiate(e),this.validateCRLFWithPrevNode(o),void this.computeBufferMetadata()}return n.nodeStartOffset+o.piece.length===e+t?(this.deleteNodeTail(o,s),this.validateCRLFWithNextNode(o),void this.computeBufferMetadata()):(this.shrinkNode(o,s,a),void this.computeBufferMetadata())}var l=[],c=this.positionInBuffer(o,n.remainder);this.deleteNodeTail(o,c),this._searchCache.valdiate(e),0===o.piece.length&&l.push(o);var d=this.positionInBuffer(r,i.remainder);this.deleteNodeHead(r,d),0===r.piece.length&&l.push(r);for(var h=o.next(),A=h;A!==vv&&A!==r;A=A.next())l.push(A);var p=0===o.piece.length?o.prev():o;this.deleteNodes(l),this.validateCRLFWithNextNode(p),this.computeBufferMetadata()}},e.prototype.insertContentToNodeLeft=function(e,t){var n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){var i=t.piece,o={line:i.start.line+1,column:0},r=new Xv(i.bufferIndex,o,i.end,this.getLineFeedCnt(i.bufferIndex,o,i.end),i.length-1);t.piece=r,e+="\n",Lv(this,t,-1,-1),0===t.piece.length&&n.push(t)}for(var s=this.createNewPieces(e),a=this.rbInsertLeft(t,s[s.length-1]),u=s.length-2;u>=0;u--)a=this.rbInsertLeft(a,s[u]);this.validateCRLFWithPrevNode(a),this.deleteNodes(n)},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),o=i,r=1;r<n.length;r++)o=this.rbInsertRight(o,n[r]);this.validateCRLFWithPrevNode(i)},e.prototype.positionInBuffer=function(e,t,n){var i=e.piece,o=e.piece.bufferIndex,r=this._buffers[o].lineStarts,s=r[i.start.line]+i.start.column,a=s+t,u=i.start.line,l=i.end.line,c=0,d=0,h=0;while(u<=l){if(c=u+(l-u)/2|0,h=r[c],c===l)break;if(d=r[c+1],a<h)l=c-1;else{if(!(a>=d))break;u=c+1}}return n?(n.line=c,n.column=a-h,null):{line:c,column:a-h}},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;var o=i[n.line+1],r=i[n.line]+n.column;if(o>r+1)return n.line-t.line;var s=r-1,a=this._buffers[e].buffer;return 13===a.charCodeAt(s)?n.line-t.line+1:n.line-t.line},e.prototype.offsetInBuffer=function(e,t){var n=this._buffers[e].lineStarts;return n[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;t<e.length;t++)Ev(this,e[t])},e.prototype.createNewPieces=function(e){if(e.length>zv){var t=[];while(e.length>zv){var n=e.charCodeAt(zv-1),i=void 0;13===n||n>=55296&&n<=56319?(i=e.substring(0,zv-1),e=e.substring(zv-1)):(i=e.substring(0,zv),e=e.substring(zv));var o=qv(i);t.push(new Xv(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new Jv(i,o))}var r=qv(e);return t.push(new Xv(this._buffers.length,{line:0,column:0},{line:r.length-1,column:e.length-r[r.length-1]},r.length-1,e.length)),this._buffers.push(new Jv(e,r)),t}var s=this._buffers[0].buffer.length,a=qv(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&0!==s&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},u=this._lastChangeBufferPos;for(var l=0;l<a.length;l++)a[l]+=s+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+="_"+e,s+=1}else{if(0!==s)for(l=0;l<a.length;l++)a[l]+=s;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+=e}var c=this._buffers[0].buffer.length,d=this._buffers[0].lineStarts.length-1,h=c-this._buffers[0].lineStarts[d],A={line:d,column:h},p=new Xv(0,u,A,this.getLineFeedCnt(0,u,A),c-s);return this._lastChangeBufferPos=A,[p]},e.prototype.getLineRawContent=function(e,t){void 0===t&&(t=0);var n=this.root,i="",o=this._searchCache.get2(e);if(o){n=o.node;var r=this.getAccumulatedValue(n,e-o.nodeStartLineNumber-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(o.nodeStartLineNumber+n.piece.lineFeedCnt!==e){var u=this.getAccumulatedValue(n,e-o.nodeStartLineNumber);return s.substring(a+r,a+u-t)}i=s.substring(a+r,a+n.piece.length)}else{var l=0,c=e;while(n!==vv)if(n.left!==vv&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2),u=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return l+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:l,nodeStartLineNumber:c-(e-1-n.lf_left)}),s.substring(a+r,a+u-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=s.substring(a+r,a+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,l+=n.size_left+n.piece.length,n=n.right}}n=n.next();while(n!==vv){s=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){u=this.getAccumulatedValue(n,0),a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=s.substring(a,a+u-t),i}a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=s.substr(a,n.piece.length),n=n.next()}return i},e.prototype.computeBufferMetadata=function(){var e=this.root,t=1,n=0;while(e!==vv)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var n=e.piece,i=this.positionInBuffer(e,t),o=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var r=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(r!==o)return{index:r,remainder:0}}return{index:o,remainder:i.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,o=n.start.line+t+1;return o>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[o]-i[n.start.line]-n.start.column},e.prototype.deleteNodeTail=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.end),r=t,s=this.offsetInBuffer(n.bufferIndex,r),a=this.getLineFeedCnt(n.bufferIndex,n.start,r),u=a-i,l=s-o,c=n.length+l;e.piece=new Xv(n.bufferIndex,n.start,r,a,c),Lv(this,e,l,u)},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.start),r=t,s=this.getLineFeedCnt(n.bufferIndex,r,n.end),a=this.offsetInBuffer(n.bufferIndex,r),u=s-i,l=o-a,c=n.length+l;e.piece=new Xv(n.bufferIndex,r,n.end,s,c),Lv(this,e,l,u)},e.prototype.shrinkNode=function(e,t,n){var i=e.piece,o=i.start,r=i.end,s=i.length,a=i.lineFeedCnt,u=t,l=this.getLineFeedCnt(i.bufferIndex,i.start,u),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,o);e.piece=new Xv(i.bufferIndex,i.start,u,l,c),Lv(this,e,c-s,l-a);var d=new Xv(i.bufferIndex,n,r,this.getLineFeedCnt(i.bufferIndex,n,r),this.offsetInBuffer(i.bufferIndex,r)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var o=qv(t,!1),r=0;r<o.length;r++)o[r]+=i;if(n){var s=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-s}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1));var a=this._buffers[0].lineStarts.length-1,u=this._buffers[0].buffer.length-this._buffers[0].lineStarts[a],l={line:a,column:u},c=e.piece.length+t.length,d=e.piece.lineFeedCnt,h=this.getLineFeedCnt(0,e.piece.start,l),A=h-d;e.piece=new Xv(e.piece.bufferIndex,e.piece.start,l,h,c),this._lastChangeBufferPos=l,Lv(this,e,t.length,A)},e.prototype.nodeAt=function(e){var t=this.root,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};var i=0;while(t!==vv)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;var o={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(o),o}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){var n=this.root,i=0;while(n!==vv)if(n.left!==vv&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var o=this.getAccumulatedValue(n,e-n.lf_left-2),r=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(o+t-1,r),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){o=this.getAccumulatedValue(n,e-n.lf_left-2);if(o+t-1<=n.piece.length)return{node:n,remainder:o+t-1,nodeStartOffset:i};t-=n.piece.length-o;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}n=n.next();while(n!==vv){if(n.piece.lineFeedCnt>0){r=this.getAccumulatedValue(n,0);var s=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,r),nodeStartOffset:s}}if(n.piece.length>=t-1){var a=this.offsetOfNode(n);return{node:n,remainder:t-1,nodeStartOffset:a}}t-=n.piece.length,n=n.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)},e.prototype.offsetOfNode=function(e){if(!e)return 0;var t=e.size_left;while(e!==this.root)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},e.prototype.startWithLF=function(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===vv||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,o=n[i]+t.start.column;if(i===n.length-1)return!1;var r=n[i+1];return!(r>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)},e.prototype.endWithCR=function(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==vv&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},e.prototype.fixCRLF=function(e,t){var n,i=[],o=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:o[e.piece.end.line]-o[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var r=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new Xv(e.piece.bufferIndex,e.piece.start,n,s,r),Lv(this,e,-1,-1),0===e.piece.length&&i.push(e);var a={line:t.piece.start.line+1,column:0},u=t.piece.length-1,l=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Xv(t.piece.bufferIndex,a,t.piece.end,l,u),Lv(this,t,-1,-1),0===t.piece.length&&i.push(t);var c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(var d=0;d<i.length;d++)Ev(this,i[d])},e.prototype.adjustCarriageReturnFromNext=function(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Ev(this,n);else{var i=n.piece,o={line:i.start.line+1,column:0},r=i.length-1,s=this.getLineFeedCnt(i.bufferIndex,o,i.end);n.piece=new Xv(i.bufferIndex,o,i.end,s,r),Lv(this,n,-1,-1)}return!0}}return!1},e.prototype.iterate=function(e,t){if(e===vv)return t(vv);var n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n},e.prototype.getNodeContent=function(e){if(e===vv)return"";var t,n=this._buffers[e.piece.bufferIndex],i=e.piece,o=this.offsetInBuffer(i.bufferIndex,i.start),r=this.offsetInBuffer(i.bufferIndex,i.end);return t=n.buffer.substring(o,r),t},e.prototype.rbInsertRight=function(e,t){var n=new mv(t,1);n.left=vv,n.right=vv,n.parent=vv,n.size_left=0,n.lf_left=0;var i=this.root;if(i===vv)this.root=n,n.color=0;else if(e.right===vv)e.right=n,n.parent=e;else{var o=_v(e.right);o.left=n,n.parent=o}return xv(this,n),n},e.prototype.rbInsertLeft=function(e,t){var n=new mv(t,1);if(n.left=vv,n.right=vv,n.parent=vv,n.size_left=0,n.lf_left=0,this.root===vv)this.root=n,n.color=0;else if(e.left===vv)e.left=n,n.parent=e;else{var i=yv(e.left);i.right=n,n.parent=i}return xv(this,n),n},e.prototype.getContentOfSubTree=function(e){var t=this,n="";return this.iterate(e,(function(e){return n+=t.getNodeContent(e),!0})),n},e}(),e_=function(){function e(e,t,n,i,o,r){this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=i,this._pieceTree=new $v(e,n,r)}return e.prototype.mightContainRTL=function(){return this._mightContainRTL},e.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},e.prototype.getBOM=function(){return this._BOM},e.prototype.getEOL=function(){return this._pieceTree.getEOL()},e.prototype.getOffsetAt=function(e,t){return this._pieceTree.getOffsetAt(e,t)},e.prototype.getPositionAt=function(e){return this._pieceTree.getPositionAt(e)},e.prototype.getRangeAt=function(e,t){var n=e+t,i=this.getPositionAt(e),o=this.getPositionAt(n);return new vn(i.lineNumber,i.column,o.lineNumber,o.column)},e.prototype.getValueInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return"";var n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)},e.prototype.getValueLengthInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;var n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);return i-n},e.prototype.getCharacterCountInRange=function(e,t){if(void 0===t&&(t=0),this._mightContainNonBasicASCII){for(var n=0,i=e.startLineNumber,o=e.endLineNumber,r=i;r<=o;r++)for(var s=this.getLineContent(r),a=r===i?e.startColumn-1:0,u=r===o?e.endColumn-1:s.length,l=a;l<u;l++)Zr(s.charCodeAt(l))?(n+=1,l+=1):n+=1;return n+=this._getEndOfLine(t).length*(o-i),n}return this.getValueLengthInRange(e,t)},e.prototype.getLength=function(){return this._pieceTree.getLength()},e.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},e.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},e.prototype.getLineContent=function(e){return this._pieceTree.getLineContent(e)},e.prototype.getLineCharCode=function(e,t){return this._pieceTree.getLineCharCode(e,t)},e.prototype.getLineLength=function(e){return this._pieceTree.getLineLength(e)},e.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=Ur(this.getLineContent(e));return-1===t?0:t+1},e.prototype.getLineLastNonWhitespaceColumn=function(e){var t=Qr(this.getLineContent(e));return-1===t?0:t+2},e.prototype._getEndOfLine=function(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},e.prototype.setEOL=function(e){this._pieceTree.setEOL(e)},e.prototype.applyEdits=function(t,n){for(var i=this._mightContainRTL,o=this._mightContainNonBasicASCII,r=!0,s=[],a=0;a<t.length;a++){var u=t[a];r&&u._isTracked&&(r=!1);var l=u.range;!i&&u.text&&(i=as(u.text)),!o&&u.text&&(o=!ds(u.text)),s[a]={sortIndex:a,identifier:u.identifier||null,range:l,rangeOffset:this.getOffsetAt(l.startLineNumber,l.startColumn),rangeLength:this.getValueLengthInRange(l),lines:u.text?u.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(u.forceMoveMarkers),isAutoWhitespaceEdit:u.isAutoWhitespaceEdit||!1}}s.sort(e._sortOpsAscending);for(var c=!1,d=(a=0,s.length-1);a<d;a++){var h=s[a].range.getEndPosition(),A=s[a+1].range.getStartPosition();if(A.isBeforeOrEqual(h)){if(A.isBefore(h))throw new Error("Overlapping ranges are not allowed!");c=!0}}r&&(s=this._reduceOperations(s));var p=e._getInverseEditRanges(s),f=[];for(a=0;a<s.length;a++){u=s[a];var g=p[a];if(n&&u.isAutoWhitespaceEdit&&u.range.isEmpty())for(var m=g.startLineNumber;m<=g.endLineNumber;m++){var v="";m===g.startLineNumber&&(v=this.getLineContent(u.range.startLineNumber),-1!==Ur(v))||f.push({lineNumber:m,oldContent:v})}}var _=[];for(a=0;a<s.length;a++){u=s[a],g=p[a];_[a]={sortIndex:u.sortIndex,identifier:u.identifier,range:g,text:this.getValueInRange(u.range),forceMoveMarkers:u.forceMoveMarkers}}c||_.sort((function(e,t){return e.sortIndex-t.sortIndex})),this._mightContainRTL=i,this._mightContainNonBasicASCII=o;var y=this._doApplyEdits(s),w=null;if(n&&f.length>0){f.sort((function(e,t){return t.lineNumber-e.lineNumber})),w=[];a=0;for(var b=f.length;a<b;a++){m=f[a].lineNumber;if(!(a>0&&f[a-1].lineNumber===m)){var C=f[a].oldContent,S=this.getLineContent(m);0!==S.length&&S!==C&&-1===Ur(S)&&w.push(m)}}}return new ku(_,y,w)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,i=e[e.length-1].range,o=new vn(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn),r=n.startLineNumber,s=n.startColumn,a=[],u=0,l=e.length;u<l;u++){var c=e[u],d=c.range;t=t||c.forceMoveMarkers;for(var h=r;h<d.startLineNumber;h++)h===r?a.push(this.getLineContent(h).substring(s-1)):(a.push("\n"),a.push(this.getLineContent(h)));if(d.startLineNumber===r?a.push(this.getLineContent(d.startLineNumber).substring(s-1,d.startColumn-1)):(a.push("\n"),a.push(this.getLineContent(d.startLineNumber).substring(0,d.startColumn-1))),c.lines)for(var A=0,p=c.lines.length;A<p;A++)0!==A&&a.push("\n"),a.push(c.lines[A]);r=c.range.endLineNumber,s=c.range.endColumn}return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),lines:a.join("").split("\n"),forceMoveMarkers:t,isAutoWhitespaceEdit:!1}},e.prototype._doApplyEdits=function(t){t.sort(e._sortOpsDescending);for(var n=[],i=0;i<t.length;i++){var o=t[i],r=o.range.startLineNumber,s=o.range.startColumn,a=o.range.endLineNumber,u=o.range.endColumn;if(r!==a||s!==u||o.lines&&0!==o.lines.length){var l=a-r,c=o.lines?o.lines.length-1:0,d=Math.min(l,c),h=o.lines?o.lines.join(this.getEOL()):"";if(h?(this._pieceTree.delete(o.rangeOffset,o.rangeLength),this._pieceTree.insert(o.rangeOffset,h,!0)):this._pieceTree.delete(o.rangeOffset,o.rangeLength),d<c){for(var A=[],p=d+1;p<=c;p++)A.push(o.lines[p]);A[A.length-1]=this.getLineContent(r+c-1)}var f=new vn(r,s,a,u);n.push({range:f,rangeLength:o.rangeLength,text:h,rangeOffset:o.rangeOffset,forceMoveMarkers:o.forceMoveMarkers})}}return n},e.prototype.findMatchesLineByLine=function(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)},e._getInverseEditRanges=function(e){for(var t=[],n=0,i=0,o=null,r=0,s=e.length;r<s;r++){var a=e[r],u=void 0,l=void 0;o?o.range.endLineNumber===a.range.startLineNumber?(u=n,l=i+(a.range.startColumn-o.range.endColumn)):(u=n+(a.range.startLineNumber-o.range.endLineNumber),l=a.range.startColumn):(u=a.range.startLineNumber,l=a.range.startColumn);var c=void 0;if(a.lines&&a.lines.length>0){var d=a.lines.length,h=a.lines[0],A=a.lines[d-1];c=1===d?new vn(u,l,u,l+h.length):new vn(u,l,u+d-1,A.length+1)}else c=new vn(u,l,u,l);n=c.endLineNumber,i=c.endColumn,t.push(c),o=a}return t},e._sortOpsAscending=function(e,t){var n=vn.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},e._sortOpsDescending=function(e,t){var n=vn.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},e}(),t_=function(){function e(e,t,n,i,o,r,s,a){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=o,this._containsRTL=r,this._isBasicASCII=s,this._normalizeEOL=a}return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"},e.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var i=0,o=n.length;i<o;i++){var r=n[i].buffer.replace(/\r\n|\r|\n/g,t),s=qv(r);n[i]=new Jv(r,s)}return new e_(n,this._bom,t,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},e}(),n_=function(){function e(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.isBasicASCII=!0}return e.prototype.acceptChunk=function(e){if(0!==e.length){0===this.chunks.length&&gs(e)&&(this.BOM=fs,e=e.substr(1));var t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}},e.prototype._acceptChunk1=function(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},e.prototype._acceptChunk2=function(e){var t=Yv(this._tmpLineStarts,e);this.chunks.push(new Jv(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=as(e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new t_(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},e.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=qv(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}(),i_=function(){function e(){this.changeType=1}return e}(),o_=function(){function e(e,t){this.changeType=2,this.lineNumber=e,this.detail=t}return e}(),r_=function(){function e(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}return e}(),s_=function(){function e(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}return e}(),a_=function(){function e(){this.changeType=5}return e}(),u_=function(){function e(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i}return e.prototype.containsEvent=function(e){for(var t=0,n=this.changes.length;t<n;t++){var i=this.changes[t];if(i.changeType===e)return!0}return!1},e.merge=function(t,n){var i=[].concat(t.changes).concat(n.changes),o=n.versionId,r=t.isUndoing||n.isUndoing,s=t.isRedoing||n.isRedoing;return new e(i,o,r,s)},e}(),l_=function(){function e(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}return e.prototype.merge=function(t){var n=u_.merge(this.rawContentChangedEvent,t.rawContentChangedEvent),i=e._mergeChangeEvents(this.contentChangedEvent,t.contentChangedEvent);return new e(n,i)},e._mergeChangeEvents=function(e,t){var n=[].concat(e.changes).concat(t.changes),i=t.eol,o=t.versionId,r=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,versionId:o,isUndoing:r,isRedoing:s,isFlush:a}},e}();function c_(e){for(var t=0,n=0,i=0,o=0,r=e.length;o<r;o++){var s=e.charCodeAt(o);13===s?(0===t&&(n=o),t++,o+1<r&&10===e.charCodeAt(o+1)&&o++,i=o+1):10===s&&(0===t&&(n=o),t++,i=o+1)}return 0===t&&(n=e.length),[t,n,e.length-i]}function d_(e){return(16384|e<<0|2<<23)>>>0}var h_=new Uint32Array(0).buffer,A_=function(){function e(){this.tokens=[]}return e.prototype.add=function(e,t){if(this.tokens.length>0){var n=this.tokens[this.tokens.length-1],i=n.startLineNumber+n.tokens.length-1;if(i+1===e)return void n.tokens.push(t)}this.tokens.push(new m_(e,[t]))},e}(),p_=function(){function e(e){this._tokens=e,this._tokenCount=e.length/4}return e.prototype.getMaxDeltaLine=function(){var e=this.getTokenCount();return 0===e?-1:this.getDeltaLine(e-1)},e.prototype.getTokenCount=function(){return this._tokenCount},e.prototype.getDeltaLine=function(e){return this._tokens[4*e]},e.prototype.getStartCharacter=function(e){return this._tokens[4*e+1]},e.prototype.getEndCharacter=function(e){return this._tokens[4*e+2]},e.prototype.getMetadata=function(e){return this._tokens[4*e+3]},e.prototype.clear=function(){this._tokenCount=0},e.prototype.acceptDeleteRange=function(e,t,n,i,o){for(var r=this._tokens,s=this._tokenCount,a=i-t,u=0,l=!1,c=0;c<s;c++){var d=4*c,h=r[d],A=r[d+1],p=r[d+2],f=r[d+3];if(h<t||h===t&&p<=n)u++;else{if(h===t&&A<n)h===i&&p>o?p-=o-n:p=n;else if(h===t&&A===n){if(!(h===i&&p>o)){l=!0;continue}p-=o-n}else if(h<i||h===i&&A<o){if(!(h===i&&p>o)){l=!0;continue}h===t?(A=n,p=A+(p-o)):(A=0,p=A+(p-o))}else if(h>i){if(0===a&&!l){u=s;break}h-=a}else{if(!(h===i&&A>=o))throw new Error("Not possible!");e&&0===h&&(A+=e,p+=e),h-=a,A-=o-n,p-=o-n}var g=4*u;r[g]=h,r[g+1]=A,r[g+2]=p,r[g+3]=f,u++}}this._tokenCount=u},e.prototype.acceptInsertText=function(e,t,n,i,o,r){for(var s=0===n&&1===i&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),a=this._tokens,u=this._tokenCount,l=0;l<u;l++){var c=4*l,d=a[c],h=a[c+1],A=a[c+2];if(!(d<e||d===e&&A<t)){if(d===e&&A===t){if(!s)continue;A+=1}else if(d===e&&h<t&&t<A)0===n?A+=i:A=t;else{if(d===e&&h===t&&s)continue;if(d===e)if(d+=n,0===n)h+=i,A+=i;else{var p=A-h;h=o+(h-t),A=h+p}else d+=n}a[c]=d,a[c+1]=h,a[c+2]=A}}},e}(),f_=function(){function e(e,t,n){this._actual=e,this._startTokenIndex=t,this._endTokenIndex=n}return e.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},e.prototype.getStartCharacter=function(e){return this._actual.getStartCharacter(this._startTokenIndex+e)},e.prototype.getEndCharacter=function(e){return this._actual.getEndCharacter(this._startTokenIndex+e)},e.prototype.getMetadata=function(e){return this._actual.getMetadata(this._startTokenIndex+e)},e}(),g_=function(){function e(e,t){this.startLineNumber=e,this.tokens=t,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}return e.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},e.prototype.getLineTokens=function(t){if(this.startLineNumber<=t&&t<=this.endLineNumber){var n=e._findTokensWithLine(this.tokens,t-this.startLineNumber);if(n){var i=n[0],o=n[1];return new f_(this.tokens,i,o)}}return null},e._findTokensWithLine=function(e,t){var n=0,i=e.getTokenCount()-1;while(n<i){var o=n+Math.floor((i-n)/2),r=e.getDeltaLine(o);if(r<t)n=o+1;else{if(!(r>t)){var s=o;while(s>n&&e.getDeltaLine(s-1)===t)s--;var a=o;while(a<i&&e.getDeltaLine(a+1)===t)a++;return[s,a]}i=o-1}}return e.getDeltaLine(n)===t?[n,n]:null},e.prototype.applyEdit=function(e,t){var n=c_(t),i=n[0],o=n[1],r=n[2];this.acceptEdit(e,i,o,r,t.length>0?t.charCodeAt(0):0)},e.prototype.acceptEdit=function(e,t,n,i,o){this._acceptDeleteRange(e),this._acceptInsertText(new mn(e.startLineNumber,e.startColumn),t,n,i,o),this._updateEndLineNumber()},e.prototype._acceptDeleteRange=function(e){if(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn){var t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber;if(n<0){var i=n-t;this.startLineNumber-=i}else{var o=this.tokens.getMaxDeltaLine();if(!(t>=o+1)){if(t<0&&n>=o+1)return this.startLineNumber=0,void this.tokens.clear();if(t<0){var r=-t;this.startLineNumber-=r,this.tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this.tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}}},e.prototype._acceptInsertText=function(e,t,n,i,o){if(0!==t||0!==n){var r=e.lineNumber-this.startLineNumber;if(r<0)this.startLineNumber+=t;else{var s=this.tokens.getMaxDeltaLine();r>=s+1||this.tokens.acceptInsertText(r,e.column-1,t,n,i,o)}}},e}(),m_=function(){function e(e,t){this.startLineNumber=e,this.tokens=t}return e}();function v_(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var __=function(){function e(){this._pieces=[]}return e.prototype.flush=function(){this._pieces=[]},e.prototype.set=function(e){this._pieces=e||[]},e.prototype.addSemanticTokens=function(t,n){var i=this._pieces;if(0===i.length)return n;var o=e._findFirstPieceWithLine(i,t),r=this._pieces[o].getLineTokens(t);if(!r)return n;for(var s=n.getCount(),a=r.getCount(),u=0,l=[],c=0,d=0;d<a;d++){var h=r.getStartCharacter(d),A=r.getEndCharacter(d),p=r.getMetadata(d);while(u<s&&n.getEndOffset(u)<=h)l[c++]=n.getEndOffset(u),l[c++]=n.getMetadata(u),u++;u<s&&n.getStartOffset(u)<h&&(l[c++]=h,l[c++]=n.getMetadata(u));while(u<s&&n.getEndOffset(u)<=A)u++;var f=n.getMetadata(u-1>0?u-1:u),g=vl.getLanguageId(f),m=vl.getTokenType(f);l[c++]=A,l[c++]=4294965248&p|g<<0>>>0|m<<8>>>0}while(u<s)l[c++]=n.getEndOffset(u),l[c++]=n.getMetadata(u),u++;return new nh(new Uint32Array(l),n.getLineContent())},e._findFirstPieceWithLine=function(e,t){var n=0,i=e.length-1;while(n<i){var o=n+Math.floor((i-n)/2);if(e[o].endLineNumber<t)n=o+1;else{if(!(e[o].startLineNumber>t)){while(o>n&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber)o--;return o}i=o-1}}return n},e.prototype.acceptEdit=function(e,t,n,i,o){for(var r=0,s=this._pieces;r<s.length;r++){var a=s[r];a.acceptEdit(e,t,n,i,o)}},e}(),y_=function(){function e(){this._lineTokens=[],this._len=0}return e.prototype.flush=function(){this._lineTokens=[],this._len=0},e.prototype.getTokens=function(e,t,n){var i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==h_)return new nh(v_(i),n);var o=new Uint32Array(2);return o[0]=n.length,o[1]=d_(e),new nh(o,n)},e._massageTokens=function(e,t,n){var i=n?v_(n):null;if(0===t){var o=!1;if(i&&i.length>1&&(o=vl.getLanguageId(i[1])!==e),!o)return h_}if(!i||0===i.length){var r=new Uint32Array(2);return r[0]=t,r[1]=d_(e),r.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i},e.prototype._ensureLine=function(e){while(e>=this._len)this._lineTokens[this._len]=null,this._len++},e.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)},e.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],i=0;i<t;i++)n[i]=null;this._lineTokens=Gi(this._lineTokens,e,n),this._len+=t}},e.prototype.setTokens=function(t,n,i,o){var r=e._massageTokens(t,i,o);this._ensureLine(n),this._lineTokens[n]=r},e.prototype.acceptEdit=function(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new mn(e.startLineNumber,e.startColumn),t,n)},e.prototype._acceptDeleteRange=function(t){var n=t.startLineNumber-1;if(!(n>=this._len))if(t.startLineNumber!==t.endLineNumber){this._lineTokens[n]=e._deleteEnding(this._lineTokens[n],t.startColumn-1);var i=t.endLineNumber-1,o=null;i<this._len&&(o=e._deleteBeginning(this._lineTokens[i],t.endColumn-1)),this._lineTokens[n]=e._append(this._lineTokens[n],o),this._deleteLines(t.startLineNumber,t.endLineNumber-t.startLineNumber)}else{if(t.startColumn===t.endColumn)return;this._lineTokens[n]=e._delete(this._lineTokens[n],t.startColumn-1,t.endColumn-1)}},e.prototype._acceptInsertText=function(t,n,i){if(0!==n||0!==i){var o=t.lineNumber-1;o>=this._len||(0!==n?(this._lineTokens[o]=e._deleteEnding(this._lineTokens[o],t.column-1),this._lineTokens[o]=e._insert(this._lineTokens[o],t.column-1,i),this._insertLines(t.lineNumber,n)):this._lineTokens[o]=e._insert(this._lineTokens[o],t.column-1,i))}},e._deleteBeginning=function(t,n){return null===t||t===h_?t:e._delete(t,0,n)},e._deleteEnding=function(t,n){if(null===t||t===h_)return t;var i=v_(t),o=i[i.length-2];return e._delete(t,n,o)},e._delete=function(e,t,n){if(null===e||e===h_||t===n)return e;var i=v_(e),o=i.length>>>1;if(0===t&&i[i.length-2]===n)return h_;var r,s,a=nh.findIndexInTokensArray(i,t),u=a>0?i[a-1<<1]:0,l=i[a<<1];if(n<l){for(var c=n-t,d=a;d<o;d++)i[d<<1]-=c;return e}u!==t?(i[a<<1]=t,r=a+1<<1,s=t):(r=a<<1,s=u);for(var h=n-t,A=a+1;A<o;A++){var p=i[A<<1]-h;p>s&&(i[r++]=p,i[r++]=i[1+(A<<1)],s=p)}if(r===i.length)return e;var f=new Uint32Array(r);return f.set(i.subarray(0,r),0),f.buffer},e._append=function(e,t){if(t===h_)return e;if(e===h_)return t;if(null===e)return e;if(null===t)return null;var n=v_(e),i=v_(t),o=i.length>>>1,r=new Uint32Array(n.length+i.length);r.set(n,0);for(var s=n.length,a=n[n.length-2],u=0;u<o;u++)r[s++]=i[u<<1]+a,r[s++]=i[1+(u<<1)];return r.buffer},e._insert=function(e,t,n){if(null===e||e===h_)return e;var i=v_(e),o=i.length>>>1,r=nh.findIndexInTokensArray(i,t);if(r>0){var s=i[r-1<<1];s===t&&r--}for(var a=r;a<o;a++)i[a<<1]+=n;return e},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)}}(),b_=function(){function e(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return e.prototype._reset=function(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)},e.prototype.flush=function(e){this._reset(e)},Object.defineProperty(e.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),e.prototype._invalidateLine=function(e){e<this._len&&(this._valid[e]=!1),e<this._invalidLineStartIndex&&(this._invalidLineStartIndex=e)},e.prototype._isValid=function(e){return e<this._len&&this._valid[e]},e.prototype.getBeginState=function(e){return e<this._len?this._beginState[e]:null},e.prototype._ensureLine=function(e){while(e>=this._len)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},e.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)},e.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],i=[],o=0;o<t;o++)n[o]=null,i[o]=!1;this._beginState=Gi(this._beginState,e,n),this._valid=Gi(this._valid,e,i),this._len+=t}},e.prototype._setValid=function(e,t){this._ensureLine(e),this._valid[e]=t},e.prototype._setBeginState=function(e,t){this._ensureLine(e),this._beginState[e]=t},e.prototype.setEndState=function(e,t,n){if(this._setValid(t,!0),this._invalidLineStartIndex=t+1,t!==e-1){var i=this.getBeginState(t+1);if(null===i||!n.equals(i))return this._setBeginState(t+1,n),void this._invalidateLine(t+1);var o=t+1;while(o<e){if(!this._isValid(o))break;o++}this._invalidLineStartIndex=o}},e.prototype.setFakeTokens=function(e){this._setValid(e,!1)},e.prototype.applyEdits=function(e,t){for(var n=e.endLineNumber-e.startLineNumber,i=t,o=Math.min(n,i),r=o;r>=0;r--)this._invalidateLine(e.startLineNumber+r-1);this._acceptDeleteRange(e),this._acceptInsertText(new mn(e.startLineNumber,e.startColumn),t)},e.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;t>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)},e.prototype._acceptInsertText=function(e,t){var n=e.lineNumber-1;n>=this._len||this._insertLines(e.lineNumber,t)},e}(),C_=function(e){function t(t){var n=e.call(this)||this;return n._isDisposed=!1,n._textModel=t,n._tokenizationStateStore=new b_,n._tokenizationSupport=null,n._register(zl.onDidChange((function(e){var t=n._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(t.language)&&(n._resetTokenizationState(),n._textModel.clearTokens())}))),n._register(n._textModel.onDidChangeRawContentFast((function(e){e.containsEvent(1)&&n._resetTokenizationState()}))),n._register(n._textModel.onDidChangeContentFast((function(e){for(var t=0,i=e.changes.length;t<i;t++){var o=e.changes[t],r=c_(o.text)[0];n._tokenizationStateStore.applyEdits(o.range,r)}n._beginBackgroundTokenization()}))),n._register(n._textModel.onDidChangeAttached((function(){n._beginBackgroundTokenization()}))),n._register(n._textModel.onDidChangeLanguage((function(){n._resetTokenizationState(),n._textModel.clearTokens()}))),n._resetTokenizationState(),n}return w_(t,e),t.prototype.dispose=function(){this._isDisposed=!0,e.prototype.dispose.call(this)},t.prototype._resetTokenizationState=function(){var e=S_(this._textModel),t=e[0],n=e[1];this._tokenizationSupport=t,this._tokenizationStateStore.flush(n),this._beginBackgroundTokenization()},t.prototype._beginBackgroundTokenization=function(){var e=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&s["i"]((function(){e._isDisposed||e._revalidateTokensNow()}))},t.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._textModel.getLineCount());var t=1,n=new A_,i=Td.create(!1);while(this._hasLinesToTokenize()){if(i.elapsed()>t)break;var o=this._tokenizeOneInvalidLine(n);if(o>=e)break}this._beginBackgroundTokenization(),this._textModel.setTokens(n.tokens)},t.prototype.tokenizeViewport=function(e,t){var n=new A_;this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens)},t.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},t.prototype.forceTokenization=function(e){var t=new A_;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)},t.prototype.isCheapToTokenize=function(e){if(!this._tokenizationSupport)return!0;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e<t||this._textModel.getLineLength(e)<2048)},t.prototype._hasLinesToTokenize=function(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()},t.prototype._tokenizeOneInvalidLine=function(e){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t},t.prototype._updateTokensUntilLine=function(e,t){if(this._tokenizationSupport)for(var n=this._textModel.getLanguageIdentifier(),i=this._textModel.getLineCount(),o=t-1,r=this._tokenizationStateStore.invalidLineStartIndex;r<=o;r++){var s=this._textModel.getLineContent(r+1),a=this._tokenizationStateStore.getBeginState(r),u=B_(n,this._tokenizationSupport,s,a);e.add(r+1,u.tokens),this._tokenizationStateStore.setEndState(i,r,u.endState),r=this._tokenizationStateStore.invalidLineStartIndex-1}},t.prototype._tokenizeViewport=function(e,t,n){if(this._tokenizationSupport&&!(n<=this._tokenizationStateStore.invalidLineStartIndex))if(t<=this._tokenizationStateStore.invalidLineStartIndex)this._updateTokensUntilLine(e,n);else{for(var i=this._textModel.getLineFirstNonWhitespaceColumn(t),o=[],r=null,s=t-1;i>0&&s>=1;s--){var a=this._textModel.getLineFirstNonWhitespaceColumn(s);if(0!==a&&a<i){if(r=this._tokenizationStateStore.getBeginState(s-1),r)break;o.push(this._textModel.getLineContent(s)),i=a}}r||(r=this._tokenizationSupport.getInitialState());var u=this._textModel.getLanguageIdentifier(),l=r;for(s=o.length-1;s>=0;s--){var c=B_(u,this._tokenizationSupport,o[s],l);l=c.endState}for(var d=t;d<=n;d++){var h=this._textModel.getLineContent(d);c=B_(u,this._tokenizationSupport,h,l);e.add(d,c.tokens),this._tokenizationStateStore.setFakeTokens(d-1),l=c.endState}}},t}(Ie);function S_(e){var t=e.getLanguageIdentifier(),n=e.isTooLargeForTokenization()?null:zl.get(t.language),i=null;if(n)try{i=n.getInitialState()}catch(o){Ae(o),n=null}return[n,i]}function B_(e,t,n,i){var o=null;if(t)try{o=t.tokenize2(n,i.clone(),0)}catch(r){Ae(r)}return o||(o=Jl(e.id,n,i,0)),nh.convertToEndOffset(o.tokens,n.length),o}function E_(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}var x_=function(){function e(e,t,n,i){void 0===i&&(i=1),this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=E_(Math.max(Math.min(1,i),0),3)}return e.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},e}(),L_=function(){function e(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0),this.s=E_(Math.max(Math.min(1,t),0),3),this.l=E_(Math.max(Math.min(1,n),0),3),this.a=E_(Math.max(Math.min(1,i),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},e.fromRGBA=function(t){var n=t.r/255,i=t.g/255,o=t.b/255,r=t.a,s=Math.max(n,i,o),a=Math.min(n,i,o),u=0,l=0,c=(a+s)/2,d=s-a;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case n:u=(i-o)/d+(i<o?6:0);break;case i:u=(o-n)/d+2;break;case o:u=(n-i)/d+4;break}u*=60,u=Math.round(u)}return new e(u,l,c,r)},e._hue2rgb=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},e.toRGBA=function(t){var n,i,o,r=t.h/360,s=t.s,a=t.l,u=t.a;if(0===s)n=i=o=a;else{var l=a<.5?a*(1+s):a+s-a*s,c=2*a-l;n=e._hue2rgb(c,l,r+1/3),i=e._hue2rgb(c,l,r),o=e._hue2rgb(c,l,r-1/3)}return new x_(Math.round(255*n),Math.round(255*i),Math.round(255*o),u)},e}(),D_=function(){function e(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0),this.s=E_(Math.max(Math.min(1,t),0),3),this.v=E_(Math.max(Math.min(1,n),0),3),this.a=E_(Math.max(Math.min(1,i),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},e.fromRGBA=function(t){var n,i=t.r/255,o=t.g/255,r=t.b/255,s=Math.max(i,o,r),a=Math.min(i,o,r),u=s-a,l=0===s?0:u/s;return n=0===u?0:s===i?((o-r)/u%6+6)%6:s===o?(r-i)/u+2:(i-o)/u+4,new e(Math.round(60*n),l,s,t.a)},e.toRGBA=function(e){var t=e.h,n=e.s,i=e.v,o=e.a,r=i*n,s=r*(1-Math.abs(t/60%2-1)),a=i-r,u=[0,0,0],l=u[0],c=u[1],d=u[2];return t<60?(l=r,c=s):t<120?(l=s,c=r):t<180?(c=r,d=s):t<240?(c=s,d=r):t<300?(l=s,d=r):t<360&&(l=r,d=s),l=Math.round(255*(l+a)),c=Math.round(255*(c+a)),d=Math.round(255*(d+a)),new x_(l,c,d,o)},e}(),N_=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof x_)this.rgba=e;else if(e instanceof L_)this._hsla=e,this.rgba=L_.toRGBA(e);else{if(!(e instanceof D_))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=D_.toRGBA(e)}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:L_.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:D_.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return!!e&&x_.equals(this.rgba,e.rgba)&&L_.equals(this.hsla,e.hsla)&&D_.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){var t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),i=e._relativeLuminanceForComponent(this.rgba.b),o=.2126*t+.7152*n+.0722*i;return E_(o,4)},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},e.prototype.isLighter=function(){var e=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3;return e>=128},e.prototype.isLighterThan=function(e){var t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n},e.prototype.isDarkerThan=function(e){var t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t<n},e.prototype.lighten=function(t){return new e(new L_(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))},e.prototype.darken=function(t){return new e(new L_(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))},e.prototype.transparent=function(t){var n=this.rgba,i=n.r,o=n.g,r=n.b,s=n.a;return new e(new x_(i,o,r,s*t))},e.prototype.isTransparent=function(){return 0===this.rgba.a},e.prototype.isOpaque=function(){return 1===this.rgba.a},e.prototype.opposite=function(){return new e(new x_(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},e.prototype.toString=function(){return""+e.Format.CSS.format(this)},e.getLighterColor=function(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;var i=e.getRelativeLuminance(),o=t.getRelativeLuminance();return n=n*(o-i)/o,e.lighten(n)},e.getDarkerColor=function(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;var i=e.getRelativeLuminance(),o=t.getRelativeLuminance();return n=n*(i-o)/i,e.darken(n)},e.white=new e(new x_(255,255,255,1)),e.black=new e(new x_(0,0,0,1)),e.red=new e(new x_(255,0,0,1)),e.blue=new e(new x_(0,0,255,1)),e.cyan=new e(new x_(0,255,255,1)),e.lightgrey=new e(new x_(211,211,211,1)),e.transparent=new e(new x_(0,0,0,0)),e}();(function(e){(function(t){(function(t){function n(t){return 1===t.rgba.a?"rgb("+t.rgba.r+", "+t.rgba.g+", "+t.rgba.b+")":e.Format.CSS.formatRGBA(t)}function i(e){return"rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+ +e.rgba.a.toFixed(2)+")"}function o(t){return 1===t.hsla.a?"hsl("+t.hsla.h+", "+(100*t.hsla.s).toFixed(2)+"%, "+(100*t.hsla.l).toFixed(2)+"%)":e.Format.CSS.formatHSLA(t)}function r(e){return"hsla("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%, "+e.hsla.a.toFixed(2)+")"}function s(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}function a(e){return"#"+s(e.rgba.r)+s(e.rgba.g)+s(e.rgba.b)}function u(t,n){return void 0===n&&(n=!1),n&&1===t.rgba.a?e.Format.CSS.formatHex(t):"#"+s(t.rgba.r)+s(t.rgba.g)+s(t.rgba.b)+s(Math.round(255*t.rgba.a))}function l(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)}function c(t){var n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){var i=16*d(t.charCodeAt(1))+d(t.charCodeAt(2)),o=16*d(t.charCodeAt(3))+d(t.charCodeAt(4)),r=16*d(t.charCodeAt(5))+d(t.charCodeAt(6));return new e(new x_(i,o,r,1))}if(9===n){i=16*d(t.charCodeAt(1))+d(t.charCodeAt(2)),o=16*d(t.charCodeAt(3))+d(t.charCodeAt(4)),r=16*d(t.charCodeAt(5))+d(t.charCodeAt(6));var s=16*d(t.charCodeAt(7))+d(t.charCodeAt(8));return new e(new x_(i,o,r,s/255))}if(4===n){i=d(t.charCodeAt(1)),o=d(t.charCodeAt(2)),r=d(t.charCodeAt(3));return new e(new x_(16*i+i,16*o+o,16*r+r))}if(5===n){i=d(t.charCodeAt(1)),o=d(t.charCodeAt(2)),r=d(t.charCodeAt(3)),s=d(t.charCodeAt(4));return new e(new x_(16*i+i,16*o+o,16*r+r,(16*s+s)/255))}return null}function d(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}t.formatRGB=n,t.formatRGBA=i,t.formatHSL=o,t.formatHSLA=r,t.formatHex=a,t.formatHexA=u,t.format=l,t.parseHex=c})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(N_||(N_={}));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)}}();function I_(){return new n_}function F_(e){var t=I_();return t.acceptChunk(e),t.finish()}function M_(e,t){var n="string"===typeof e?F_(e):e;return n.create(t)}var O_=0,T_=999,P_=1e4,R_=function(){throw new Error("Invalid change accessor")},U_=function(e){function t(n,i,o,r){void 0===r&&(r=null);var s=e.call(this)||this;s._onWillDispose=s._register(new Ye),s.onWillDispose=s._onWillDispose.event,s._onDidChangeDecorations=s._register(new q_),s.onDidChangeDecorations=s._onDidChangeDecorations.event,s._onDidChangeLanguage=s._register(new Ye),s.onDidChangeLanguage=s._onDidChangeLanguage.event,s._onDidChangeLanguageConfiguration=s._register(new Ye),s.onDidChangeLanguageConfiguration=s._onDidChangeLanguageConfiguration.event,s._onDidChangeTokens=s._register(new Ye),s.onDidChangeTokens=s._onDidChangeTokens.event,s._onDidChangeOptions=s._register(new Ye),s.onDidChangeOptions=s._onDidChangeOptions.event,s._onDidChangeAttached=s._register(new Ye),s.onDidChangeAttached=s._onDidChangeAttached.event,s._eventEmitter=s._register(new Y_),O_++,s.id="$model"+O_,s.isForSimpleWidget=i.isForSimpleWidget,s._associatedResource="undefined"===typeof r||null===r?Et.parse("inmemory://model/"+O_):r,s._attachedEditorCount=0,s._buffer=M_(n,i.defaultEOL),s._options=t.resolveOptions(s._buffer,i);var a=s._buffer.getLineCount(),u=s._buffer.getValueLengthInRange(new vn(1,1,a,s._buffer.getLineLength(a)+1),0);return i.largeFileOptimizations?s._isTooLargeForTokenization=u>t.LARGE_FILE_SIZE_THRESHOLD||a>t.LARGE_FILE_LINE_COUNT_THRESHOLD:s._isTooLargeForTokenization=!1,s._isTooLargeForSyncing=u>t.MODEL_SYNC_LIMIT,s._versionId=1,s._alternativeVersionId=1,s._isDisposed=!1,s._isDisposing=!1,s._languageIdentifier=o||Yl,s._languageRegistryListener=Pc.onDidChange((function(e){e.languageIdentifier.id===s._languageIdentifier.id&&s._onDidChangeLanguageConfiguration.fire({})})),s._instanceId=ys(O_),s._lastDecorationId=0,s._decorations=Object.create(null),s._decorationsTree=new H_,s._commandManager=new Im(s),s._isUndoing=!1,s._isRedoing=!1,s._trimAutoWhitespaceLines=null,s._tokens=new y_,s._tokens2=new __,s._tokenization=new C_(s),s}return k_(t,e),t.createFromString=function(e,n,i,o){return void 0===n&&(n=t.DEFAULT_CREATION_OPTIONS),void 0===i&&(i=null),void 0===o&&(o=null),new t(e,n,i,o)},t.resolveOptions=function(e,t){if(t.detectIndentation){var n=Om(e,t.tabSize,t.insertSpaces);return new Du({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new Du({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},t.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.rawContentChangedEvent)}))},t.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.rawContentChangedEvent)}))},t.prototype.onDidChangeContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.contentChangedEvent)}))},t.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.contentChangedEvent)}))},t.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,e.prototype.dispose.call(this),this._isDisposing=!1},t.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},t.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new l_(e,t))},t.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=M_(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},t.prototype._createContentChanged2=function(e,t,n,i,o,r,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o,isRedoing:r,isFlush:s}},t.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._buffer=e,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new H_,this._commandManager=new Im(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new u_([new i_],this._versionId,!1,!1),this._createContentChanged2(new vn(1,1,i,o),0,n,this.getValue(),!1,!1,!0))}},t.prototype.setEOL=function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new u_([new a_],this._versionId,!1,!1),this._createContentChanged2(new vn(1,1,o,r),0,i,this.getValue(),!1,!1,!1))}},t.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},t.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,i=t.length;n<i;n++){var o=t[n],r=o.cachedAbsoluteStart-o.start,s=this._buffer.getOffsetAt(o.range.startLineNumber,o.range.startColumn),a=this._buffer.getOffsetAt(o.range.endLineNumber,o.range.endColumn);o.cachedAbsoluteStart=s,o.cachedAbsoluteEnd=a,o.cachedVersionId=e,o.start=s-r,o.end=a-r,pv(o)}},t.prototype.onBeforeAttached=function(){this._attachedEditorCount++,1===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},t.prototype.onBeforeDetached=function(){this._attachedEditorCount--,0===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},t.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},t.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},t.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},t.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),i=1;i<=n;i++){var o=this._buffer.getLineLength(i);o>=P_?t+=o:e+=o}return t>e},Object.defineProperty(t.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},t.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},t.prototype.updateOptions=function(e){this._assertNotDisposed();var t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.indentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=new Du({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o});if(!this._options.equals(r)){var s=this._options.createChangeEvent(r);this._options=r,this._onDidChangeOptions.fire(s)}},t.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=Om(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})},t._normalizeIndentationFromWhitespace=function(e,t,n){for(var i=0,o=0;o<e.length;o++)"\t"===e.charAt(o)?i+=t:i++;var r="";if(!n){var s=Math.floor(i/t);i%=t;for(o=0;o<s;o++)r+="\t"}for(o=0;o<i;o++)r+=" ";return r},t.normalizeIndentation=function(e,n,i){var o=Ur(e);return-1===o&&(o=e.length),t._normalizeIndentationFromWhitespace(e.substring(0,o),n,i)+e.substring(o)},t.prototype.normalizeIndentation=function(e){return this._assertNotDisposed(),t.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)},t.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},t.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},t.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},t.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},t.prototype.getOffsetAt=function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,!1);return this._buffer.getOffsetAt(t.lineNumber,t.column)},t.prototype.getPositionAt=function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)},t.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},t.prototype._overwriteAlternativeVersionId=function(e){this._alternativeVersionId=e},t.prototype.getValue=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i},t.prototype.getValueLength=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i},t.prototype.getValueInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)},t.prototype.getValueLengthInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)},t.prototype.getCharacterCountInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)},t.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},t.prototype.getLineContent=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},t.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},t.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},t.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},t.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},t.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},t.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},t.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},t.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,i=this._buffer.getLineCount(),o=e.startLineNumber,r=e.startColumn;if(o<1)t=1,n=1;else if(o>i)t=i,n=this.getLineMaxColumn(t);else if(t=0|o,r<=1)n=1;else{var s=this.getLineMaxColumn(t);n=r>=s?s:0|r}var a,u,l=e.endLineNumber,c=e.endColumn;if(l<1)a=1,u=1;else if(l>i)a=i,u=this.getLineMaxColumn(a);else if(a=0|l,c<=1)u=1;else{s=this.getLineMaxColumn(a);u=c>=s?s:0|c}return o===t&&r===n&&l===a&&c===u&&e instanceof vn&&!(e instanceof yn)?e:new vn(t,n,a,u)},t.prototype._isValidPosition=function(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;var i=this._buffer.getLineCount();if(e>i)return!1;var o=this.getLineMaxColumn(e);if(t>o)return!1;if(n){var r=rs(this._buffer.getLineContent(e),t-1)[0];if(t!==r+1)return!1}return!0},t.prototype._validatePosition=function(e,t,n){var i=Math.floor("number"!==typeof e||isNaN(e)?1:e),o=Math.floor("number"!==typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(i<1)return new mn(1,1);if(i>r)return new mn(r,this.getLineMaxColumn(r));if(o<=1)return new mn(i,1);var s=this.getLineMaxColumn(i);if(o>=s)return new mn(i,s);if(n){var a=rs(this._buffer.getLineContent(i),o-1)[0];if(o!==a+1)return new mn(i,a+1)}return new mn(i,o)},t.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof mn&&this._isValidPosition(e.lineNumber,e.column,!0)?e:this._validatePosition(e.lineNumber,e.column,!0)},t.prototype._isValidRange=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(n,i,!1))return!1;if(!this._isValidPosition(o,r,!1))return!1;if(t){var s=this._buffer.getLineContent(n);if(i<s.length+1){var a=rs(s,i-1)[0];if(i!==a+1)return!1}if(r>=2){var u=o===n?s:this._buffer.getLineContent(o),l=rs(u,r-2),c=l[1];if(r!==c+1)return!1}return!0}return!0},t.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof vn&&!(e instanceof yn)&&this._isValidRange(e,!0))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),i=t.lineNumber,o=t.column,r=n.lineNumber,s=n.column,a=i===r&&o===s,u=this._buffer.getLineContent(i);if(o<u.length+1){var l=rs(u,o-1)[0];if(o!==l+1){if(a)return new vn(i,l+1,i,l+1);o=l+1}}if(s>=2){var c=r===i?u:this._buffer.getLineContent(r),d=rs(c,s-2),h=d[1];s!==h+1&&(s=h+1)}return new vn(i,o,r,s)},t.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))},t.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new vn(1,1,e,this.getLineMaxColumn(e))},t.prototype.findMatchesLineByLine=function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)},t.prototype.findMatches=function(e,t,n,i,o,r,s){var a;if(void 0===s&&(s=T_),this._assertNotDisposed(),a=vn.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var u=new Ov(e,n,i,o),l=u.parseSearchRequest();return l?this.findMatchesLineByLine(a,l,r,s):[]}return Hv.findMatches(this,new Ov(e,n,i,o),a,r,s)},t.prototype.findNextMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new Ov(e,n,i,o),u=a.parseSearchRequest();if(!u)return null;var l=this.getLineCount(),c=new vn(s.lineNumber,s.column,l,this.getLineMaxColumn(l)),d=this.findMatchesLineByLine(c,u,r,1);return Hv.findNextMatch(this,new Ov(e,n,i,o),s,r),d.length>0?d[0]:(c=new vn(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),d=this.findMatchesLineByLine(c,u,r,1),d.length>0?d[0]:null)}return Hv.findNextMatch(this,new Ov(e,n,i,o),s,r)},t.prototype.findPreviousMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);return Hv.findPreviousMatch(this,new Ov(e,n,i,o),s,r)},t.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},t.prototype.pushEOL=function(e){var t="\n"===this.getEOL()?0:1;if(t!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._pushEditOperations=function(e,t,n){var i=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var o=t.map((function(e){return{range:i.validateRange(e.range),text:e.text}})),r=!0,s=0,a=e.length;s<a;s++){for(var u=e[s],l=!1,c=0,d=o.length;c<d;c++){var h=o[c].range,A=h.startLineNumber>u.endLineNumber,p=u.startLineNumber>h.endLineNumber;if(!A&&!p){l=!0;break}}if(!l){r=!1;break}}if(r)for(s=0,a=this._trimAutoWhitespaceLines.length;s<a;s++){var f=this._trimAutoWhitespaceLines[s],g=this.getLineMaxColumn(f),m=!0;for(c=0,d=o.length;c<d;c++){h=o[c].range;var v=o[c].text;if(!(f<h.startLineNumber||f>h.endLineNumber)&&(!(f===h.startLineNumber&&h.startColumn===g&&h.isEmpty()&&v&&v.length>0&&"\n"===v.charAt(0))&&!(f===h.startLineNumber&&1===h.startColumn&&h.isEmpty()&&v&&v.length>0&&"\n"===v.charAt(v.length-1)))){m=!1;break}}m&&t.push({range:new vn(f,1,f,g),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},t.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._applyEdits=function(e){for(var t=0,n=e.length;t<n;t++)e[t].range=this.validateRange(e[t].range);var i=this._buffer.getLineCount(),o=this._buffer.applyEdits(e,this._options.trimAutoWhitespace),r=this._buffer.getLineCount(),s=o.changes;if(this._trimAutoWhitespaceLines=o.trimAutoWhitespaceLineNumbers,0!==s.length){var a=[],u=i;for(t=0,n=s.length;t<n;t++){var l=s[t],c=c_(l.text),d=c[0],h=c[1],A=c[2];this._tokens.acceptEdit(l.range,d,h),this._tokens2.acceptEdit(l.range,d,h,A,l.text.length>0?l.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(l.rangeOffset,l.rangeLength,l.text.length,l.forceMoveMarkers);for(var p=l.range.startLineNumber,f=l.range.endLineNumber,g=f-p,m=d,v=Math.min(g,m),_=m-g,y=v;y>=0;y--){var w=p+y,b=r-u-_+w;a.push(new o_(w,this.getLineContent(b)))}if(v<g){var C=p+v;a.push(new r_(C+1,f))}if(v<m){for(var S=p+v,B=m-v,E=r-u-B+S+1,x=[],L=0;L<B;L++){var D=E+L;x[D-E]=this.getLineContent(D)}a.push(new s_(S+1,p+m,x))}u+=_}this._increaseVersionId(),this._emitContentChangedEvent(new u_(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return o.reverseEdits},t.prototype._undo=function(){this._isUndoing=!0;var e=this._commandManager.undo();return this._isUndoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},t.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.canUndo=function(){return this._commandManager.canUndo()},t.prototype._redo=function(){this._isRedoing=!0;var e=this._commandManager.redo();return this._isRedoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},t.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.canRedo=function(){return this._commandManager.canRedo()},t.prototype.changeDecorations=function(e,t){void 0===t&&(t=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._changeDecorations=function(e,t){var n=this,i={addDecoration:function(t,i){return n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0]},changeDecoration:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationImpl(e,t)},changeDecorationOptions:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationOptionsImpl(e,G_(t))},removeDecoration:function(t){n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[t],[])},deltaDecorations:function(t,i){return 0===t.length&&0===i.length?[]:(n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,t,i))}},o=null;try{o=t(i)}catch(r){Ae(r)}return i.addDecoration=R_,i.changeDecoration=R_,i.changeDecorationOptions=R_,i.removeDecoration=R_,i.deltaDecorations=R_,o},t.prototype.deltaDecorations=function(e,t,n){if(void 0===n&&(n=0),this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._getTrackedRange=function(e){return this.getDecorationRange(e)},t.prototype._setTrackedRange=function(e,t,n){var i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:j_[n]}])[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;var o=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),s=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),r,s,o),i.setOptions(j_[n]),this._decorationsTree.insert(i),i.id},t.prototype.removeAllDecorationsWithOwnerId=function(e){if(!this._isDisposed)for(var t=this._decorationsTree.collectNodesFromOwner(e),n=0,i=t.length;n<i;n++){var o=t[n];this._decorationsTree.delete(o),delete this._decorations[o.id]}},t.prototype.getDecorationOptions=function(e){var t=this._decorations[e];return t?t.options:null},t.prototype.getDecorationRange=function(e){var t=this._decorations[e];if(!t)return null;var n=this.getVersionId();return t.cachedVersionId!==n&&this._decorationsTree.resolveNode(t,n),null===t.range&&(t.range=this._getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range},t.prototype.getLineDecorations=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=!1),e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},t.prototype.getLinesDecorations=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),s=Math.min(o,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new vn(r,1,s,a),n,i)},t.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)},t.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i)},t.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(i)},t.prototype._getDecorationsInRange=function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),r=this.getVersionId(),s=this._decorationsTree.intervalSearch(i,o,t,n,r);return this._ensureNodesHaveRanges(s)},t.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];null===i.range&&(i.range=this._getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd))}return e},t.prototype._getRangeAt=function(e,t){return this._buffer.getRangeAt(e,t-e)},t.prototype._changeDecorationImpl=function(e,t){var n=this._decorations[e];if(n){var i=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),r=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,r,i),this._decorationsTree.insert(n)}},t.prototype._changeDecorationOptionsImpl=function(e,t){var n=this._decorations[e];if(n){var i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),o=!(!t.overviewRuler||!t.overviewRuler.color);i!==o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}},t.prototype._deltaDecorationsImpl=function(e,t,n){var i=this.getVersionId(),o=t.length,r=0,s=n.length,a=0,u=new Array(s);while(r<o||a<s){var l=null;if(r<o){do{l=this._decorations[t[r++]]}while(!l&&r<o);l&&this._decorationsTree.delete(l)}if(a<s){if(!l){var c=++this._lastDecorationId,d=this._instanceId+";"+c;l=new qm(d,0,0),this._decorations[d]=l}var h=n[a],A=this._validateRangeRelaxedNoAllocations(h.range),p=G_(h.options),f=this._buffer.getOffsetAt(A.startLineNumber,A.startColumn),g=this._buffer.getOffsetAt(A.endLineNumber,A.endColumn);l.ownerId=e,l.reset(i,f,g,A),l.setOptions(p),this._decorationsTree.insert(l),u[a]=l.id,a++}else l&&delete this._decorations[l.id]}return u},t.prototype.setLineTokens=function(e,t){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,e-1,this._buffer.getLineLength(e),t)},t.prototype.setTokens=function(e){if(0!==e.length){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];t.push({fromLineNumber:o.startLineNumber,toLineNumber:o.startLineNumber+o.tokens.length-1});for(var r=0,s=o.tokens.length;r<s;r++)this.setLineTokens(o.startLineNumber+r,o.tokens[r])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:t})}},t.prototype.setSemanticTokens=function(e){this._tokens2.set(e),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},t.prototype.tokenizeViewport=function(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)},t.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},t.prototype._emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},t.prototype.resetTokenization=function(){this._tokenization.reset()},t.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)},t.prototype.isCheapToTokenize=function(e){return this._tokenization.isCheapToTokenize(e)},t.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},t.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},t.prototype._getLineTokens=function(e){var t=this.getLineContent(e),n=this._tokens.getTokens(this._languageIdentifier.id,e-1,t);return this._tokens2.addSemanticTokens(e,n)},t.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},t.prototype.getModeId=function(){return this._languageIdentifier.language},t.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},t.prototype.getLanguageIdAtPosition=function(e,t){var n=this.validatePosition(new mn(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))},t.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var n=this.validatePosition(e),i=this.getLineContent(n.lineNumber),o=this._getLineTokens(n.lineNumber),r=o.findTokenIndexAtOffset(n.column-1),s=t._findLanguageBoundaries(o,r),a=s[0],u=s[1],l=A(n.column,Pc.getWordDefinition(o.getLanguageId(r)),i.substring(a,u),a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(r>0&&a===n.column-1){var c=t._findLanguageBoundaries(o,r-1),d=c[0],h=c[1],p=A(n.column,Pc.getWordDefinition(o.getLanguageId(r-1)),i.substring(d,h),d);if(p&&p.startColumn<=e.column&&e.column<=p.endColumn)return p}return null},t._findLanguageBoundaries=function(e,t){for(var n=e.getLanguageId(t),i=0,o=t;o>=0&&e.getLanguageId(o)===n;o--)i=e.getStartOffset(o);for(var r=e.getLineContent().length,s=(o=t,e.getCount());o<s&&e.getLanguageId(o)===n;o++)r=e.getEndOffset(o);return[i,r]},t.prototype.getWordUntilPosition=function(e){var t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype.findMatchingBracketUp=function(e,t){var n=e.toLowerCase(),i=this.validatePosition(t),o=this._getLineTokens(i.lineNumber),r=o.getLanguageId(o.findTokenIndexAtOffset(i.column-1)),s=Pc.getBracketsSupport(r);if(!s)return null;var a=s.textIsBracket[n];return a?this._findMatchingBracketUp(a,i):null},t.prototype.matchBracket=function(e){return this._matchBracket(this.validatePosition(e))},t.prototype._matchBracket=function(e){var t=e.lineNumber,n=this._getLineTokens(t),i=this._buffer.getLineContent(t),o=n.findTokenIndexAtOffset(e.column-1);if(o<0)return null;var r=Pc.getBracketsSupport(n.getLanguageId(o));if(r&&!fc(n.getStandardTokenType(o))){var s=Math.max(0,e.column-1-r.maxBracketLength),a=Math.min(i.length,e.column-1+r.maxBracketLength),u=null;while(1){var l=Nc.findNextBracketInRange(r.forwardRegex,t,i,s,a);if(!l)break;if(l.startColumn<=e.column&&e.column<=l.endColumn){var c=i.substring(l.startColumn-1,l.endColumn-1).toLowerCase(),d=this._matchFoundBracket(l,r.textIsBracket[c],r.textIsOpenBracket[c]);d&&(u=d)}s=l.endColumn-1}if(u)return u}if(o>0&&n.getStartOffset(o)===e.column-1){var h=o-1,A=Pc.getBracketsSupport(n.getLanguageId(h));if(A&&!fc(n.getStandardTokenType(h))){s=Math.max(0,e.column-1-A.maxBracketLength),a=Math.min(i.length,e.column-1+A.maxBracketLength),l=Nc.findPrevBracketInRange(A.reversedRegex,t,i,s,a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn){c=i.substring(l.startColumn-1,l.endColumn-1).toLowerCase(),d=this._matchFoundBracket(l,A.textIsBracket[c],A.textIsOpenBracket[c]);if(d)return d}}}return null},t.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;if(n){var i=this._findMatchingBracketDown(t,e.getEndPosition());if(i)return[e,i]}else{i=this._findMatchingBracketUp(t,e.getStartPosition());if(i)return[e,i]}return null},t.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,i=e.reversedRegex,o=-1,r=function(t,n,r,s){while(1){var a=Nc.findPrevBracketInRange(i,t,n,r,s);if(!a)break;var u=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(e.isOpen(u)?o++:e.isClose(u)&&o--,0===o)return a;s=a.startColumn-1}return null},s=t.lineNumber;s>=1;s--){var a=this._getLineTokens(s),u=a.getCount(),l=this._buffer.getLineContent(s),c=u-1,d=l.length,h=l.length;s===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),d=t.column-1,h=t.column-1);for(var A=!0;c>=0;c--){var p=a.getLanguageId(c)===n&&!fc(a.getStandardTokenType(c));if(p)A?d=a.getStartOffset(c):(d=a.getStartOffset(c),h=a.getEndOffset(c));else if(A&&d!==h){var f=r(s,l,d,h);if(f)return f}A=p}if(A&&d!==h){f=r(s,l,d,h);if(f)return f}}return null},t.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,i=e.forwardRegex,o=1,r=function(t,n,r,s){while(1){var a=Nc.findNextBracketInRange(i,t,n,r,s);if(!a)break;var u=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(e.isOpen(u)?o++:e.isClose(u)&&o--,0===o)return a;r=a.endColumn-1}return null},s=this.getLineCount(),a=t.lineNumber;a<=s;a++){var u=this._getLineTokens(a),l=u.getCount(),c=this._buffer.getLineContent(a),d=0,h=0,A=0;a===t.lineNumber&&(d=u.findTokenIndexAtOffset(t.column-1),h=t.column-1,A=t.column-1);for(var p=!0;d<l;d++){var f=u.getLanguageId(d)===n&&!fc(u.getStandardTokenType(d));if(f)p||(h=u.getStartOffset(d)),A=u.getEndOffset(d);else if(p&&h!==A){var g=r(a,c,h,A);if(g)return g}p=f}if(p&&h!==A){g=r(a,c,h,A);if(g)return g}}return null},t.prototype.findPrevBracket=function(e){for(var t=this.validatePosition(e),n=-1,i=null,o=t.lineNumber;o>=1;o--){var r=this._getLineTokens(o),s=r.getCount(),a=this._buffer.getLineContent(o),u=s-1,l=a.length,c=a.length;if(o===t.lineNumber){u=r.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1;var d=r.getLanguageId(u);n!==d&&(n=d,i=Pc.getBracketsSupport(n))}for(var h=!0;u>=0;u--){d=r.getLanguageId(u);if(n!==d){if(i&&h&&l!==c){var A=Nc.findPrevBracketInRange(i.reversedRegex,o,a,l,c);if(A)return this._toFoundBracket(i,A);h=!1}n=d,i=Pc.getBracketsSupport(n)}var p=!!i&&!fc(r.getStandardTokenType(u));if(p)h?l=r.getStartOffset(u):(l=r.getStartOffset(u),c=r.getEndOffset(u));else if(i&&h&&l!==c){A=Nc.findPrevBracketInRange(i.reversedRegex,o,a,l,c);if(A)return this._toFoundBracket(i,A)}h=p}if(i&&h&&l!==c){A=Nc.findPrevBracketInRange(i.reversedRegex,o,a,l,c);if(A)return this._toFoundBracket(i,A)}}return null},t.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=this.getLineCount(),i=-1,o=null,r=t.lineNumber;r<=n;r++){var s=this._getLineTokens(r),a=s.getCount(),u=this._buffer.getLineContent(r),l=0,c=0,d=0;if(r===t.lineNumber){l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1,d=t.column-1;var h=s.getLanguageId(l);i!==h&&(i=h,o=Pc.getBracketsSupport(i))}for(var A=!0;l<a;l++){h=s.getLanguageId(l);if(i!==h){if(o&&A&&c!==d){var p=Nc.findNextBracketInRange(o.forwardRegex,r,u,c,d);if(p)return this._toFoundBracket(o,p);A=!1}i=h,o=Pc.getBracketsSupport(i)}var f=!!o&&!fc(s.getStandardTokenType(l));if(f)A||(c=s.getStartOffset(l)),d=s.getEndOffset(l);else if(o&&A&&c!==d){p=Nc.findNextBracketInRange(o.forwardRegex,r,u,c,d);if(p)return this._toFoundBracket(o,p)}A=f}if(o&&A&&c!==d){p=Nc.findNextBracketInRange(o.forwardRegex,r,u,c,d);if(p)return this._toFoundBracket(o,p)}}return null},t.prototype.findEnclosingBrackets=function(e,t){var n=this;void 0===t&&(t=1073741824);for(var i=this.validatePosition(e),o=this.getLineCount(),r=new Map,s=[],a=function(e,t){if(!r.has(e)){for(var n=[],i=0,o=t?t.brackets.length:0;i<o;i++)n[i]=0;r.set(e,n)}s=r.get(e)},u=function(e,t,i,o,r){while(1){var a=Nc.findNextBracketInRange(e.forwardRegex,t,i,o,r);if(!a)break;var u=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),l=e.textIsBracket[u];if(l&&(l.isOpen(u)?s[l.index]++:l.isClose(u)&&s[l.index]--,-1===s[l.index]))return n._matchFoundBracket(a,l,!1);o=a.endColumn-1}return null},l=-1,c=null,d=Date.now(),h=i.lineNumber;h<=o;h++){var A=Date.now()-d;if(A>t)return null;var p=this._getLineTokens(h),f=p.getCount(),g=this._buffer.getLineContent(h),m=0,v=0,_=0;if(h===i.lineNumber){m=p.findTokenIndexAtOffset(i.column-1),v=i.column-1,_=i.column-1;var y=p.getLanguageId(m);l!==y&&(l=y,c=Pc.getBracketsSupport(l),a(l,c))}for(var w=!0;m<f;m++){y=p.getLanguageId(m);if(l!==y){if(c&&w&&v!==_){var b=u(c,h,g,v,_);if(b)return b;w=!1}l=y,c=Pc.getBracketsSupport(l),a(l,c)}var C=!!c&&!fc(p.getStandardTokenType(m));if(C)w||(v=p.getStartOffset(m)),_=p.getEndOffset(m);else if(c&&w&&v!==_){b=u(c,h,g,v,_);if(b)return b}w=C}if(c&&w&&v!==_){b=u(c,h,g,v,_);if(b)return b}}return null},t.prototype._toFoundBracket=function(e,t){if(!t)return null;var n=this.getValueInRange(t);n=n.toLowerCase();var i=e.textIsBracket[n];return i?{range:t,open:i.open,close:i.close,isOpen:e.textIsOpenBracket[n]}:null},t.computeIndentLevel=function(e,t){var n=0,i=0,o=e.length;while(i<o){var r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===o?-1:n},t.prototype._computeIndentLevel=function(e){return t.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)},t.prototype.getActiveIndentGuide=function(e,t,n){var i=this;this._assertNotDisposed();var o=this.getLineCount();if(e<1||e>o)throw new Error("Illegal value for lineNumber");for(var r=Pc.getFoldingRules(this._languageIdentifier.id),s=Boolean(r&&r.offSide),a=-2,u=-1,l=-2,c=-1,d=function(e){if(-1!==a&&(-2===a||a>e-1)){a=-1,u=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){a=t,u=n;break}}}if(-2===l){l=-1,c=-1;for(t=e;t<o;t++){var r=i._computeIndentLevel(t);if(r>=0){l=t,c=r;break}}}},h=-2,A=-1,p=-2,f=-1,g=function(e){if(-2===h){h=-1,A=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){h=t,A=n;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,f=-1;for(t=e;t<o;t++){var r=i._computeIndentLevel(t);if(r>=0){p=t,f=r;break}}}},m=0,v=!0,_=0,y=!0,w=0,b=0;v||y;b++){var C=e-b,S=e+b;if(0!==b&&(C<1||C<t)&&(v=!1),0!==b&&(S>o||S>n)&&(y=!1),b>5e4&&(v=!1,y=!1),v){var B=void 0,E=this._computeIndentLevel(C-1);if(E>=0?(l=C-1,c=E,B=Math.ceil(E/this._options.indentSize)):(d(C),B=this._getIndentLevelForWhitespaceLine(s,u,c)),0===b){if(m=C,_=S,w=B,0===w)return{startLineNumber:m,endLineNumber:_,indent:w};continue}B>=w?m=C:v=!1}if(y){var x=void 0;E=this._computeIndentLevel(S-1);E>=0?(h=S-1,A=E,x=Math.ceil(E/this._options.indentSize)):(g(S),x=this._getIndentLevelForWhitespaceLine(s,A,f)),x>=w?_=S:y=!1}}return{startLineNumber:m,endLineNumber:_,indent:w}},t.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var i=Pc.getFoldingRules(this._languageIdentifier.id),o=Boolean(i&&i.offSide),r=new Array(t-e+1),s=-2,a=-1,u=-2,l=-1,c=e;c<=t;c++){var d=c-e,h=this._computeIndentLevel(c-1);if(h>=0)s=c-1,a=h,r[d]=Math.ceil(h/this._options.indentSize);else{if(-2===s){s=-1,a=-1;for(var A=c-2;A>=0;A--){var p=this._computeIndentLevel(A);if(p>=0){s=A,a=p;break}}}if(-1!==u&&(-2===u||u<c-1)){u=-1,l=-1;for(A=c;A<n;A++){p=this._computeIndentLevel(A);if(p>=0){u=A,l=p;break}}}r[d]=this._getIndentLevelForWhitespaceLine(o,a,l)}}return r},t.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:t<n?1+Math.floor(t/this._options.indentSize):t===n||e?Math.ceil(n/this._options.indentSize):1+Math.floor(n/this._options.indentSize)},t.MODEL_SYNC_LIMIT=52428800,t.LARGE_FILE_SIZE_THRESHOLD=20971520,t.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,t.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:ae.tabSize,indentSize:ae.indentSize,insertSpaces:ae.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:ae.trimAutoWhitespace,largeFileOptimizations:ae.largeFileOptimizations},t}(Ie),H_=function(){function e(){this._decorationsTree0=new Xm,this._decorationsTree1=new Xm}return e.prototype.intervalSearch=function(e,t,n,i,o){var r=this._decorationsTree0.intervalSearch(e,t,n,i,o),s=this._decorationsTree1.intervalSearch(e,t,n,i,o);return r.concat(s)},e.prototype.search=function(e,t,n,i){if(n)return this._decorationsTree1.search(e,t,i);var o=this._decorationsTree0.search(e,t,i),r=this._decorationsTree1.search(e,t,i);return o.concat(r)},e.prototype.collectNodesFromOwner=function(e){var t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)},e.prototype.collectNodesPostOrder=function(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)},e.prototype.insert=function(e){Vm(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)},e.prototype.delete=function(e){Vm(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)},e.prototype.resolveNode=function(e,t){Vm(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)},e.prototype.acceptReplace=function(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i)},e}();function Q_(e){return e.replace(/[^a-z0-9\-_]/gi," ")}var V_=function(){function e(e){this.color=e.color||"",this.darkColor=e.darkColor||""}return e}(),W_=function(e){function t(t){var n=e.call(this,t)||this;return n._resolvedColor=null,n.position="number"===typeof t.position?t.position:Bu.Center,n}return k_(t,e),t.prototype.getColor=function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor},t.prototype.invalidateCachedColor=function(){this._resolvedColor=null},t.prototype._resolveColor=function(e,t){if("string"===typeof e)return e;var n=e?t.getColor(e.id):null;return n?n.toString():""},t}(V_),K_=function(e){function t(t){var n=e.call(this,t)||this;return n.position=t.position,n}return k_(t,e),t.prototype.getColor=function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor},t.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},t.prototype._resolveColor=function(e,t){return"string"===typeof e?N_.fromHex(e):t.getColor(e.id)},t}(V_),z_=function(){function e(e){this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Q_(e.className):null,this.hoverMessage=ka(e.hoverMessage),this.glyphMarginHoverMessage=ka(e.glyphMarginHoverMessage),this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new W_(e.overviewRuler):null,this.minimap=e.minimap?new K_(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?Q_(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Q_(e.linesDecorationsClassName):null,this.marginClassName=e.marginClassName?Q_(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Q_(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Q_(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Q_(e.afterContentClassName):null}return e.register=function(t){return new e(t)},e.createDynamic=function(t){return new e(t)},e}();z_.EMPTY=z_.register({});var j_=[z_.register({stickiness:0}),z_.register({stickiness:1}),z_.register({stickiness:2}),z_.register({stickiness:3})];function G_(e){return e instanceof z_?e:z_.createDynamic(e)}var q_=function(e){function t(){var t=e.call(this)||this;return t._actual=t._register(new Ye),t.event=t._actual.event,t._deferredCnt=0,t._shouldFire=!1,t}return k_(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){this._deferredCnt--,0===this._deferredCnt&&this._shouldFire&&(this._shouldFire=!1,this._actual.fire({}))},t.prototype.fire=function(){this._shouldFire=!0},t}(Ie),Y_=function(e){function t(){var t=e.call(this)||this;return t._fastEmitter=t._register(new Ye),t.fastEvent=t._fastEmitter.event,t._slowEmitter=t._register(new Ye),t.slowEvent=t._slowEmitter.event,t._deferredCnt=0,t._deferredEvent=null,t}return k_(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){var e=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(e),this._slowEmitter.fire(e)}},t.prototype.fire=function(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},t}(Ie),X_=function(){return!0},J_=function(){return!1},Z_=function(e){return" "===e||"\t"===e};function $_(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}var ey=function(){function e(t,n,i){this._languageIdentifier=t;var o=i.options,r=o.get(103);this.readOnly=o.get(65),this.tabSize=n.tabSize,this.indentSize=n.indentSize,this.insertSpaces=n.insertSpaces,this.lineHeight=o.get(47),this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=o.get(91),this.wordSeparators=o.get(92),this.emptySelectionClipboard=o.get(24),this.copyWithSyntaxHighlighting=o.get(14),this.multiCursorMergeOverlapping=o.get(56),this.multiCursorPaste=o.get(58),this.autoClosingBrackets=o.get(5),this.autoClosingQuotes=o.get(7),this.autoClosingOvertype=o.get(6),this.autoSurround=o.get(10),this.autoIndent=o.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:e._getShouldAutoClose(t,this.autoClosingQuotes),bracket:e._getShouldAutoClose(t,this.autoClosingBrackets)};var s=e._getAutoClosingPairs(t);if(s)for(var a=0,u=s;a<u.length;a++){var l=u[a];$_(this.autoClosingPairsOpen2,l.open.charAt(l.open.length-1),l),1===l.close.length&&$_(this.autoClosingPairsClose2,l.close,l)}var c=e._getSurroundingPairs(t);if(c)for(var d=0,h=c;d<h.length;d++){l=h[d];this.surroundingPairs[l.open]=l.close}}return e.shouldRecreate=function(e){return e.hasChanged(103)||e.hasChanged(92)||e.hasChanged(24)||e.hasChanged(56)||e.hasChanged(58)||e.hasChanged(5)||e.hasChanged(7)||e.hasChanged(6)||e.hasChanged(10)||e.hasChanged(91)||e.hasChanged(47)||e.hasChanged(65)},Object.defineProperty(e.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var t=e._getElectricCharacters(this._languageIdentifier);if(t)for(var n=0,i=t;n<i.length;n++){var o=i[n];this._electricChars[o]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),e.prototype.normalizeIndentation=function(e){return U_.normalizeIndentation(e,this.indentSize,this.insertSpaces)},e._getElectricCharacters=function(e){try{return Pc.getElectricCharacters(e.id)}catch(t){return Ae(t),null}},e._getAutoClosingPairs=function(e){try{return Pc.getAutoClosingPairs(e.id)}catch(t){return Ae(t),null}},e._getShouldAutoClose=function(t,n){switch(n){case"beforeWhitespace":return Z_;case"languageDefined":return e._getLanguageDefinedShouldAutoClose(t);case"always":return X_;case"never":return J_}},e._getLanguageDefinedShouldAutoClose=function(e){try{var t=Pc.getAutoCloseBeforeSet(e.id);return function(e){return-1!==t.indexOf(e)}}catch(n){return Ae(n),J_}},e._getSurroundingPairs=function(e){try{return Pc.getSurroundingPairs(e.id)}catch(t){return Ae(t),null}},e}(),ty=function(){function e(t,n,i,o){this.selectionStart=t,this.selectionStartLeftoverVisibleColumns=n,this.position=i,this.leftoverVisibleColumns=o,this.selection=e._computeSelection(this.selectionStart,this.position)}return e.prototype.equals=function(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)},e.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},e.prototype.move=function(t,n,i,o){return t?new e(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new mn(n,i),o):new e(new vn(n,i,n,i),o,new mn(n,i),o)},e._computeSelection=function(e,t){var n,i,o,r;return e.isEmpty()?(n=e.startLineNumber,i=e.startColumn,o=t.lineNumber,r=t.column):t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,i=e.endColumn,o=t.lineNumber,r=t.column):(n=e.startLineNumber,i=e.startColumn,o=t.lineNumber,r=t.column),new yn(n,i,o,r)},e}(),ny=function(){function e(e,t,n){this.model=t,this.viewModel=n,this.config=new ey(this.model.getLanguageIdentifier(),this.model.getOptions(),e)}return e.prototype.validateViewPosition=function(e,t){return this.viewModel.coordinatesConverter.validateViewPosition(e,t)},e.prototype.validateViewRange=function(e,t){return this.viewModel.coordinatesConverter.validateViewRange(e,t)},e.prototype.convertViewRangeToModelRange=function(e){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},e.prototype.convertViewPositionToModelPosition=function(e,t){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new mn(e,t))},e.prototype.convertModelPositionToViewPosition=function(e){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(e)},e.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},e.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},e.prototype.getCompletelyVisibleModelRange=function(){var e=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},e.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(e)},e.prototype.getVerticalOffsetForViewLine=function(e){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(e)},e}(),iy=function(){function e(e){this.modelState=e,this.viewState=null}return e}(),oy=function(){function e(e){this.modelState=null,this.viewState=e}return e}(),ry=function(){function e(e,t){this.modelState=e,this.viewState=t}return e.fromModelState=function(e){return new iy(e)},e.fromViewState=function(e){return new oy(e)},e.fromModelSelection=function(t){var n=t.selectionStartLineNumber,i=t.selectionStartColumn,o=t.positionLineNumber,r=t.positionColumn,s=new ty(new vn(n,i,n,i),0,new mn(o,r),0);return e.fromModelState(s)},e.fromModelSelections=function(e){for(var t=[],n=0,i=e.length;n<i;n++)t[n]=this.fromModelSelection(e[n]);return t},e.prototype.equals=function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)},e}(),sy=function(){function e(e,t,n){this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter}return e}(),ay=function(){function e(){}return e.visibleColumnFromColumn=function(t,n,i){var o=t.length,r=n-1<o?n-1:o,s=0,a=0;while(a<r){var u=es(t,r,a);if(a+=u>=65536?2:1,9===u)s=e.nextRenderTabStop(s,i);else{var l=ws(u);while(a<r){var c=es(t,r,a),d=ws(c);if(bs(l,d))break;a+=c>=65536?2:1,l=d}As(u)||ps(u)?s+=2:s+=1}}return s},e.visibleColumnFromColumn2=function(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)},e.columnFromVisibleColumn=function(t,n,i){if(n<=0)return 1;var o=t.length,r=0,s=1,a=0;while(a<o){var u=es(t,o,a);a+=u>=65536?2:1;var l=void 0;if(9===u)l=e.nextRenderTabStop(r,i);else{var c=ws(u);while(a<o){var d=es(t,o,a),h=ws(d);if(bs(c,h))break;a+=d>=65536?2:1,c=h}l=As(u)||ps(u)?r+2:r+1}var A=a+1;if(l>=n){var p=n-r,f=l-n;return f<p?A:s}r=l,s=A}return o+1},e.columnFromVisibleColumn2=function(e,t,n,i){var o=this.columnFromVisibleColumn(t.getLineContent(n),i,e.tabSize),r=t.getLineMinColumn(n);if(o<r)return r;var s=t.getLineMaxColumn(n);return o>s?s:o},e.nextRenderTabStop=function(e,t){return e+t-e%t},e.nextIndentTabStop=function(e,t){return e+t-e%t},e.prevRenderTabStop=function(e,t){return e-1-(e-1)%t},e.prevIndentTabStop=function(e,t){return e-1-(e-1)%t},e}();function uy(e){return"'"===e||'"'===e||"`"===e}var ly=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)}}(),cy=function(){function e(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}return e}(),dy=function(){function e(e,t,n,i,o,r){void 0===n&&(n=0),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),this.element=e,this.type=t,this.mouseColumn=n,this.position=i,!o&&i&&(o=new vn(i.lineNumber,i.column,i.lineNumber,i.column)),this.range=o,this.detail=r}return e._typeToString=function(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"},e.toString=function(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail},e.prototype.toString=function(){return e.toString(this)},e}(),hy=function(){function e(){}return e.isTextArea=function(e){return 2===e.length&&3===e[0]&&6===e[1]},e.isChildOfViewLines=function(e){return e.length>=4&&3===e[0]&&7===e[3]},e.isStrictChildOfViewLines=function(e){return e.length>4&&3===e[0]&&7===e[3]},e.isChildOfScrollableElement=function(e){return e.length>=2&&3===e[0]&&5===e[1]},e.isChildOfMinimap=function(e){return e.length>=2&&3===e[0]&&8===e[1]},e.isChildOfContentWidgets=function(e){return e.length>=4&&3===e[0]&&1===e[3]},e.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&2===e[0]},e.isChildOfOverlayWidgets=function(e){return e.length>=2&&3===e[0]&&4===e[1]},e}(),Ay=function(){function e(e,t,n){this.model=e.model;var i=e.configuration.options;this.layoutInfo=i.get(103),this.viewDomNode=t.viewDomNode,this.lineHeight=i.get(47),this.typicalHalfwidthCharacterWidth=i.get(32).typicalHalfwidthCharacterWidth,this.lastRenderData=n,this._context=e,this._viewHelper=t}return e.prototype.getZoneAtCoord=function(t){return e.getZoneAtCoord(this._context,t)},e.getZoneAtCoord=function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var i=n.verticalOffset+n.height/2,o=e.model.getLineCount(),r=null,s=void 0,a=null;return n.afterLineNumber!==o&&(a=new mn(n.afterLineNumber+1,1)),n.afterLineNumber>0&&(r=new mn(n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),s=null===a?r:null===r?a:t<i?r:a,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:r,positionAfter:a,position:s}}return null},e.prototype.getFullLineRangeAtCoord=function(e){if(this._context.viewLayout.isAfterLines(e)){var t=this._context.model.getLineCount(),n=this._context.model.getLineMaxColumn(t);return{range:new vn(t,n,t,n),isAfterLines:!0}}var i=this._context.viewLayout.getLineNumberAtVerticalOffset(e),o=this._context.model.getLineMaxColumn(i);return{range:new vn(i,1,i,o),isAfterLines:!1}},e.prototype.getLineNumberAtVerticalOffset=function(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)},e.prototype.isAfterLines=function(e){return this._context.viewLayout.isAfterLines(e)},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)},e.prototype.findAttribute=function(t,n){return e._findAttribute(t,n,this._viewHelper.viewDomNode)},e._findAttribute=function(e,t,n){while(e&&e!==document.body){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode}return null},e.prototype.getLineWidth=function(e){return this._viewHelper.getLineWidth(e)},e.prototype.visibleRangeForPosition=function(e,t){return this._viewHelper.visibleRangeForPosition(e,t)},e.prototype.getPositionFromDOMInfo=function(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)},e.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},e.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},e}(),py=function(){function e(e,t,n){this.editorPos=t,this.pos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+n.y-t.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+n.x-t.x-e.layoutInfo.contentLeft,this.isInMarginArea=n.x-t.x<e.layoutInfo.contentLeft&&n.x-t.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,vy._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}return e}(),fy=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r._ctx=t,o?(r.target=o,r.targetPath=Zg.collect(o,t.viewDomNode)):(r.target=null,r.targetPath=new Uint8Array(0)),r}return ly(t,e),t.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+"\n\ttarget: "+(this.target?this.target.outerHTML:null)},t.prototype.fulfill=function(e,t,n,i){void 0===t&&(t=null),void 0===n&&(n=null),void 0===i&&(i=null);var o=this.mouseColumn;return t&&t.column<this._ctx.model.getLineMaxColumn(t.lineNumber)&&(o=ay.visibleColumnFromColumn(this._ctx.model.getLineContent(t.lineNumber),t.column,this._ctx.model.getOptions().tabSize)+1),new dy(this.target,e,o,t,n,i)},t.prototype.withTarget=function(e){return new t(this._ctx,this.editorPos,this.pos,e)},t}(py),gy={isAfterLines:!0};function my(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var vy=function(){function e(e,t){this._context=e,this._viewHelper=t}return e.prototype.mouseTargetIsWidget=function(e){var t=e.target,n=Zg.collect(t,this._viewHelper.viewDomNode);return!(!hy.isChildOfContentWidgets(n)&&!hy.isChildOfOverflowingContentWidgets(n))||!!hy.isChildOfOverlayWidgets(n)},e.prototype.createMouseTarget=function(t,n,i,o){var r=new Ay(this._context,this._viewHelper,t),s=new fy(r,n,i,o);try{var a=e._createMouseTarget(r,s,!1);return a}catch(u){return s.fulfill(0)}},e._createMouseTarget=function(t,n,i){if(null===n.target){if(i)return n.fulfill(0);var o=e._doHitTest(t,n);return o.position?e.createMouseTargetFromHitTestPosition(t,n,o.position.lineNumber,o.position.column):this._createMouseTarget(t,n.withTarget(o.hitTarget),!0)}var r=n,s=null;return s=s||e._hitTestContentWidget(t,r),s=s||e._hitTestOverlayWidget(t,r),s=s||e._hitTestMinimap(t,r),s=s||e._hitTestScrollbarSlider(t,r),s=s||e._hitTestViewZone(t,r),s=s||e._hitTestMargin(t,r),s=s||e._hitTestViewCursor(t,r),s=s||e._hitTestTextArea(t,r),s=s||e._hitTestViewLines(t,r,i),s=s||e._hitTestScrollbar(t,r),s||n.fulfill(0)},e._hitTestContentWidget=function(e,t){if(hy.isChildOfContentWidgets(t.targetPath)||hy.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null},e._hitTestOverlayWidget=function(e,t){if(hy.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null},e._hitTestViewCursor=function(e,t){if(t.target)for(var n=e.lastRenderData.lastViewCursorsRenderData,i=0,o=n;i<o.length;i++){var r=o[i];if(t.target===r.domNode)return t.fulfill(6,r.position)}if(t.isInContentArea){n=e.lastRenderData.lastViewCursorsRenderData;for(var s=t.mouseContentHorizontalOffset,a=t.mouseVerticalOffset,u=0,l=n;u<l.length;u++){r=l[u];if(!(s<r.contentLeft)&&!(s>r.contentLeft+r.width)){var c=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(c<=a&&a<=c+r.height)return t.fulfill(6,r.position)}}}return null},e._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var i=t.isInContentArea?8:5;return t.fulfill(i,n.position,null,n)}return null},e._hitTestTextArea=function(e,t){return hy.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfill(6,e.lastRenderData.lastTextareaPosition):t.fulfill(1,e.lastRenderData.lastTextareaPosition):null},e._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition(),o=Math.abs(t.pos.x-t.editorPos.x),r={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return o-=e.layoutInfo.glyphMarginLeft,o<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,i,n.range,r):(o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,i,n.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,i,n.range,r)))}return null},e._hitTestViewLines=function(t,n,i){if(!hy.isChildOfViewLines(n.targetPath))return null;if(t.isAfterLines(n.mouseVerticalOffset)){var o=t.model.getLineCount(),r=t.model.getLineMaxColumn(o);return n.fulfill(7,new mn(o,r),void 0,gy)}if(i){if(hy.isStrictChildOfViewLines(n.targetPath)){var s=t.getLineNumberAtVerticalOffset(n.mouseVerticalOffset);if(0===t.model.getLineLength(s)){var a=t.getLineWidth(s),u=my(n.mouseContentHorizontalOffset-a);return n.fulfill(7,new mn(s,1),void 0,u)}var l=t.getLineWidth(s);if(n.mouseContentHorizontalOffset>=l){u=my(n.mouseContentHorizontalOffset-l);var c=new mn(s,t.model.getLineMaxColumn(s));return n.fulfill(7,c,void 0,u)}}return n.fulfill(0)}var d=e._doHitTest(t,n);return d.position?e.createMouseTargetFromHitTestPosition(t,n,d.position.lineNumber,d.position.column):this._createMouseTarget(t,n.withTarget(d.hitTarget),!0)},e._hitTestMinimap=function(e,t){if(hy.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new mn(n,i))}return null},e._hitTestScrollbarSlider=function(e,t){if(hy.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(i);return t.fulfill(11,new mn(i,o))}}return null},e._hitTestScrollbar=function(e,t){if(hy.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new mn(n,i))}return null},e.prototype.getMouseColumn=function(t,n){var i=this._context.configuration.options,o=i.get(103),r=this._context.viewLayout.getCurrentScrollLeft()+n.x-t.x-o.contentLeft;return e._getMouseColumn(r,i.get(32).typicalHalfwidthCharacterWidth)},e._getMouseColumn=function(e,t){if(e<0)return 1;var n=Math.round(e/t);return n+1},e.createMouseTargetFromHitTestPosition=function(e,t,n,i){var o=new mn(n,i),r=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>r){if(Un&&1===o.column){var s=my(t.mouseContentHorizontalOffset-r);return t.fulfill(7,new mn(n,e.model.getLineMaxColumn(n)),void 0,s)}var a=my(t.mouseContentHorizontalOffset-r);return t.fulfill(7,o,void 0,a)}var u=e.visibleRangeForPosition(n,i);if(!u)return t.fulfill(0,o);var l=u.left;if(t.mouseContentHorizontalOffset===l)return t.fulfill(6,o);var c=[];if(c.push({offset:u.left,column:i}),i>1){var d=e.visibleRangeForPosition(n,i-1);d&&c.push({offset:d.left,column:i-1})}var h=e.model.getLineMaxColumn(n);if(i<h){var A=e.visibleRangeForPosition(n,i+1);A&&c.push({offset:A.left,column:i+1})}c.sort((function(e,t){return e.offset-t.offset}));for(var p=1;p<c.length;p++){var f=c[p-1],g=c[p];if(f.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=g.offset){var m=new vn(n,f.column,n,g.column);return t.fulfill(6,o,m)}}return t.fulfill(6,o)},e._doHitTestWithCaretRangeFromPoint=function(e,t){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.getVerticalOffsetForLineNumber(n),o=i+Math.floor(e.lineHeight/2),r=t.pos.y+(o-t.mouseVerticalOffset);r<=t.editorPos.y&&(r=t.editorPos.y+1),r>=t.editorPos.y+e.layoutInfo.height&&(r=t.editorPos.y+e.layoutInfo.height-1);var s=new Hg(t.pos.x,r),a=this._actualDoHitTestWithCaretRangeFromPoint(e,s.toClientCoordinates());return a.position?a:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},e._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(!n||!n.startContainer)return{position:null,hitTarget:null};var i=n.startContainer,o=null;if(i.nodeType===i.TEXT_NODE){var r=i.parentNode,s=r?r.parentNode:null,a=s?s.parentNode:null,u=a&&a.nodeType===a.ELEMENT_NODE?a.className:null;if(u===bm.CLASS_NAME){var l=e.getPositionFromDOMInfo(r,n.startOffset);return{position:l,hitTarget:null}}o=i.parentNode}else if(i.nodeType===i.ELEMENT_NODE){r=i.parentNode,s=r?r.parentNode:null;var c=s&&s.nodeType===s.ELEMENT_NODE?s.className:null;if(c===bm.CLASS_NAME){l=e.getPositionFromDOMInfo(i,i.textContent.length);return{position:l,hitTarget:null}}o=i}return{position:null,hitTarget:o}},e._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){var i=n.offsetNode.parentNode,o=i?i.parentNode:null,r=o?o.parentNode:null,s=r&&r.nodeType===r.ELEMENT_NODE?r.className:null;if(s===bm.CLASS_NAME){var a=e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset);return{position:a,hitTarget:null}}return{position:null,hitTarget:n.offsetNode.parentNode}}return{position:null,hitTarget:n.offsetNode}},e._doHitTestWithMoveToPoint=function(e,t){var n=null,i=null,o=document.body.createTextRange();try{o.moveToPoint(t.clientX,t.clientY)}catch(c){return{position:null,hitTarget:null}}o.collapse(!0);var r=o?o.parentElement():null,s=r?r.parentNode:null,a=s?s.parentNode:null,u=a&&a.nodeType===a.ELEMENT_NODE?a.className:"";if(u===bm.CLASS_NAME){var l=o.duplicate();l.moveToElementText(r),l.setEndPoint("EndToStart",o),n=e.getPositionFromDOMInfo(r,l.text.length),l.moveToElementText(e.viewDomNode)}else i=r;return o.moveToElementText(e.viewDomNode),{position:n,hitTarget:i}},e._doHitTest=function(e,t){return"function"===typeof document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},e}(),_y=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 yy(e){return function(t,n){var i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}var wy=function(e){function t(n,i,o){var r=e.call(this)||this;r._isFocused=!1,r._context=n,r.viewController=i,r.viewHelper=o,r.mouseTargetFactory=new vy(r._context,o),r._mouseDownOperation=r._register(new by(r._context,r.viewController,r.viewHelper,(function(e,t){return r._createMouseTarget(e,t)}),(function(e){return r._getMouseColumn(e)}))),r._asyncFocus=r._register(new Si((function(){return r.viewHelper.focusTextArea()}),0)),r.lastMouseLeaveTime=-1;var s=new zg(r.viewHelper.viewDomNode);r._register(s.onContextMenu(r.viewHelper.viewDomNode,(function(e){return r._onContextMenu(e,!0)}))),r._register(s.onMouseMoveThrottled(r.viewHelper.viewDomNode,(function(e){return r._onMouseMove(e)}),yy(r.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),r._register(s.onMouseUp(r.viewHelper.viewDomNode,(function(e){return r._onMouseUp(e)}))),r._register(s.onMouseLeave(r.viewHelper.viewDomNode,(function(e){return r._onMouseLeave(e)}))),r._register(s.onMouseDown(r.viewHelper.viewDomNode,(function(e){return r._onMouseDown(e)})));var a=function(e){if(r.viewController.emitMouseWheel(e),r._context.configuration.options.get(55)){var t=new Ai(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=vu.getZoomLevel(),i=t.deltaY>0?1:-1;vu.setZoomLevel(n+i),t.preventDefault(),t.stopPropagation()}}};return r._register(vo(r.viewHelper.viewDomNode,Hn?"mousewheel":"wheel",a,{capture:!0,passive:!1})),r._context.addEventHandler(r),r}return _y(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},t.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},t.prototype.getTargetAtClientPoint=function(e,t){var n=new Qg(e,t),i=n.toPageCoordinates(),o=Wg(this.viewHelper.viewDomNode);return i.y<o.y||i.y>o.y+o.height||i.x<o.x||i.x>o.x+o.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),o,i,null)},t.prototype._createMouseTarget=function(e,t){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,t?e.target:null)},t.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},t.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},t.prototype._onMouseMove=function(e){if(!this._mouseDownOperation.isActive()){var t=e.timestamp;t<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}},t.prototype._onMouseLeave=function(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})},t.prototype._onMouseUp=function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})},t.prototype._onMouseDown=function(e){var t=this,n=this._createMouseTarget(e,!0),i=6===n.type||7===n.type,o=2===n.type||3===n.type||4===n.type,r=3===n.type,a=this._context.configuration.options.get(79),u=8===n.type||5===n.type,l=9===n.type,c=e.leftButton||e.middleButton;s["e"]&&e.leftButton&&e.ctrlKey&&(c=!1);var d=function(){Rn&&!t._isFocused?t._asyncFocus.schedule():(e.preventDefault(),t.viewHelper.focusTextArea())};if(c&&(i||r&&a))d(),this._mouseDownOperation.start(n.type,e);else if(o)e.preventDefault();else if(u){var h=n.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(h.viewZoneId)&&(d(),this._mouseDownOperation.start(n.type,e),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(n.detail)&&(d(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:n})},t.MOUSE_MOVE_MINIMUM_TIME=100,t}(Yg),by=function(e){function t(t,n,i,o,r){var s=e.call(this)||this;return s._context=t,s._viewController=n,s._viewHelper=i,s._createMouseTarget=o,s._getMouseColumn=r,s._mouseMoveMonitor=s._register(new Gg(s._viewHelper.viewDomNode)),s._onScrollTimeout=s._register(new bi),s._mouseState=new Cy,s._currentSelection=new yn(1,1,1,1),s._isActive=!1,s._lastMouseEvent=null,s}return _y(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.isActive=function(){return this._isActive},t.prototype._onMouseDownThenMove=function(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);var t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))},t.prototype.start=function(e,t){var n=this;this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);var i=this._findMousePosition(t,!0);if(i&&i.position){this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count;var o=this._context.configuration.options;if(!o.get(65)&&o.get(23)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===i.type&&i.position&&this._currentSelection.containsPosition(i.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(yy(null),(function(e){return n._onMouseDownThenMove(e)}),(function(){var e=n._findMousePosition(n._lastMouseEvent,!0);n._viewController.emitMouseDrop({event:n._lastMouseEvent,target:e?n._createMouseTarget(n._lastMouseEvent,!0):null}),n._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(i,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(yy(null),(function(e){return n._onMouseDownThenMove(e)}),(function(){return n._stop()})))}},t.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},t.prototype.onScrollChanged=function(){var e=this;this._isActive&&this._onScrollTimeout.setIfNotSet((function(){if(e._lastMouseEvent){var t=e._findMousePosition(e._lastMouseEvent,!1);t&&(e._mouseState.isDragAndDrop||e._dispatchMouse(t,!0))}}),10)},t.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0]},t.prototype._getPositionOutsideEditor=function(e){var t=e.editorPos,n=this._context.model,i=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posy<t.y){var r=Math.max(i.getCurrentScrollTop()-(t.y-e.posy),0),s=Ay.getZoneAtCoord(this._context,r);if(s){var a=this._helpPositionJumpOverViewZone(s);if(a)return new dy(null,13,o,a)}var u=i.getLineNumberAtVerticalOffset(r);return new dy(null,13,o,new mn(u,1))}if(e.posy>t.y+t.height){r=i.getCurrentScrollTop()+(e.posy-t.y),s=Ay.getZoneAtCoord(this._context,r);if(s){a=this._helpPositionJumpOverViewZone(s);if(a)return new dy(null,13,o,a)}var l=i.getLineNumberAtVerticalOffset(r);return new dy(null,13,o,new mn(l,n.getLineMaxColumn(l)))}var c=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posx<t.x?new dy(null,13,o,new mn(c,1)):e.posx>t.x+t.width?new dy(null,13,o,new mn(c,n.getLineMaxColumn(c))):null},t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t),o=i.position;if(!o)return null;if(8===i.type||5===i.type){var r=this._helpPositionJumpOverViewZone(i.detail);if(r)return new dy(i.element,i.type,i.mouseColumn,r,null,i.detail)}return i},t.prototype._helpPositionJumpOverViewZone=function(e){var t=new mn(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null},t.prototype._dispatchMouse=function(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},t}(Ie),Cy=function(){function e(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),e.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},e.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},e.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},e.prototype.trySetCount=function(t,n){var i=(new Date).getTime();i-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=i,t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(n)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=n,this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount)},e.CLEAR_MOUSE_DOWN_COUNT_TIME=400,e}(),Sy=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 By(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var Ey=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.viewHelper.linesContentDomNode.style.msTouchAction="none",o.viewHelper.linesContentDomNode.style.msContentZooming="none",o._installGestureHandlerTimeout=window.setTimeout((function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=o.viewHelper.linesContentDomNode,t.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",(function(n){var i=n.pointerType;i!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?i===(n.MSPOINTER_TYPE_TOUCH||"touch")?(o._lastPointerType="touch",e.addPointer(n.pointerId)):(o._lastPointerType="pen",t.addPointer(n.pointerId)):o._lastPointerType="mouse"})),o._register(Oo(o.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return o._onGestureChange(e)}),By)),o._register(vo(o.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return o._onCaptureGestureTap(e)}),!0))}}),100),o._lastPointerType="mouse",o}return Sy(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new Kg(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout((function(){t.viewHelper.focusTextArea()}))},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(wy),xy=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.viewHelper.linesContentDomNode.style.touchAction="none",o._installGestureHandlerTimeout=window.setTimeout((function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=o.viewHelper.linesContentDomNode,t.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("pointerdown",(function(n){var i=n.pointerType;"mouse"!==i?"touch"===i?(o._lastPointerType="touch",e.addPointer(n.pointerId)):(o._lastPointerType="pen",t.addPointer(n.pointerId)):o._lastPointerType="mouse"})),o._register(Oo(o.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return o._onGestureChange(e)}),By)),o._register(vo(o.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return o._onCaptureGestureTap(e)}),!0))}}),100),o._lastPointerType="mouse",o}return Sy(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new Kg(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout((function(){t.viewHelper.focusTextArea()}))},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(wy),Ly=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;o._register(Tg.addTarget(o.viewHelper.linesContentDomNode)),o._register(vo(o.viewHelper.linesContentDomNode,Fg.Tap,(function(e){return o.onTap(e)}))),o._register(vo(o.viewHelper.linesContentDomNode,Fg.Change,(function(e){return o.onChange(e)}))),o._register(vo(o.viewHelper.linesContentDomNode,Fg.Contextmenu,(function(e){return o._onContextMenu(new Kg(e,o.viewHelper.viewDomNode),!1)}))),o._lastPointerType="mouse",o._register(vo(o.viewHelper.linesContentDomNode,"pointerdown",(function(e){var t=e.pointerType;o._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));var r=new jg(o.viewHelper.viewDomNode);return o._register(r.onPointerMoveThrottled(o.viewHelper.viewDomNode,(function(e){return o._onMouseMove(e)}),yy(o.mouseTargetFactory),wy.MOUSE_MOVE_MINIMUM_TIME)),o._register(r.onPointerUp(o.viewHelper.viewDomNode,(function(e){return o._onMouseUp(e)}))),o._register(r.onPointerLeave(o.viewHelper.viewDomNode,(function(e){return o._onMouseLeave(e)}))),o._register(r.onPointerDown(o.viewHelper.viewDomNode,(function(e){return o._onMouseDown(e)}))),o}return Sy(t,e),t.prototype.onTap=function(e){if(e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new Kg(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}},t.prototype.onChange=function(e){"touch"===this._lastPointerType&&this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype._onMouseDown=function(t){t.target&&this.viewHelper.linesContentDomNode.contains(t.target)&&"touch"===this._lastPointerType||e.prototype._onMouseDown.call(this,t)},t}(wy),Dy=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o._register(Tg.addTarget(o.viewHelper.linesContentDomNode)),o._register(vo(o.viewHelper.linesContentDomNode,Fg.Tap,(function(e){return o.onTap(e)}))),o._register(vo(o.viewHelper.linesContentDomNode,Fg.Change,(function(e){return o.onChange(e)}))),o._register(vo(o.viewHelper.linesContentDomNode,Fg.Contextmenu,(function(e){return o._onContextMenu(new Kg(e,o.viewHelper.viewDomNode),!1)}))),o}return Sy(t,e),t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new Kg(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},t.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t}(wy),Ny=function(e){function t(t,n,i){var o=e.call(this)||this;return window.navigator.msPointerEnabled?o.handler=o._register(new Ey(t,n,i)):s["c"]&&eo.pointerEvents?o.handler=o._register(new Ly(t,n,i)):window.TouchEvent?o.handler=o._register(new Dy(t,n,i)):window.navigator.pointerEnabled||window.PointerEvent?o.handler=o._register(new xy(t,n,i)):o.handler=o._register(new wy(t,n,i)),o}return Sy(t,e),t.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},t}(Ie),ky=(n("56f3"),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,i){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,r=e.selectionStart,s=e.selectionEnd,a=t.value,u=t.selectionStart,l=t.selectionEnd;i&&o.length>0&&r===s&&u===l&&!Mr(a,o)&&Or(a,o)&&(r=0,s=0);var c=o.substring(s),d=a.substring(l),h=Jr(c,d);a=a.substring(0,a.length-h),o=o.substring(0,o.length-h);var A=o.substring(0,r),p=a.substring(0,u),f=Xr(A,p);if(a=a.substring(f),o=o.substring(f),u-=f,r-=f,l-=f,s-=f,n&&u===l&&o.length>0){var g=null;if(u===a.length?Mr(a,o)&&(g=a.substring(o.length)):Or(a,o)&&(g=a.substring(0,a.length-o.length)),null!==g&&g.length>0&&(/\uFE0F/.test(g)||ls(g)))return{text:g,replaceCharCnt:0}}if(u===l){if(o===a&&0===r&&s===o.length&&u===a.length&&-1===a.indexOf("\n")&&hs(a))return{text:"",replaceCharCnt:0};var m=A.length-f;return{text:a,replaceCharCnt:m}}var v=s-r;return{text:a,replaceCharCnt:v}},e.EMPTY=new e("",0,0,null,null),e}()),Iy=function(){function e(){}return e._getPageOfLine=function(e,t){return Math.floor((e-1)/t)},e._getRangeForPage=function(e,t){var n=e*t,i=n+1,o=n+t;return new vn(i,1,o+1,1)},e.fromEditorSelection=function(t,n,i,o,r){var s,a=e._getPageOfLine(i.startLineNumber,o),u=e._getRangeForPage(a,o),l=e._getPageOfLine(i.endLineNumber,o),c=e._getRangeForPage(l,o),d=u.intersectRanges(new vn(1,1,i.startLineNumber,i.startColumn)),h=n.getValueInRange(d,1),A=n.getLineCount(),p=n.getLineMaxColumn(A),f=c.intersectRanges(new vn(i.endLineNumber,i.endColumn,A,p)),g=n.getValueInRange(f,1);if(a===l||a+1===l)s=n.getValueInRange(i,1);else{var m=u.intersectRanges(i),v=c.intersectRanges(i);s=n.getValueInRange(m,1)+String.fromCharCode(8230)+n.getValueInRange(v,1)}if(r){var _=500;h.length>_&&(h=h.substring(h.length-_,h.length)),g.length>_&&(g=g.substring(0,_)),s.length>2*_&&(s=s.substring(0,_)+String.fromCharCode(8230)+s.substring(s.length-_,s.length))}return new ky(h+s+g,h.length,h.length+s.length,new mn(i.startLineNumber,i.startColumn),new mn(i.endLineNumber,i.endColumn))},e}(),Fy=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)}}(),My={forceCopyWithSyntaxHighlighting:!1},Oy=function(){function e(){this._lastState=null}return e.prototype.set=function(e,t){this._lastState={lastCopiedValue:e,data:t}},e.prototype.get=function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)},e.INSTANCE=new e,e}(),Ty=function(e){function t(t,n){var i=e.call(this)||this;i.textArea=n,i._onFocus=i._register(new Ye),i.onFocus=i._onFocus.event,i._onBlur=i._register(new Ye),i.onBlur=i._onBlur.event,i._onKeyDown=i._register(new Ye),i.onKeyDown=i._onKeyDown.event,i._onKeyUp=i._register(new Ye),i.onKeyUp=i._onKeyUp.event,i._onCut=i._register(new Ye),i.onCut=i._onCut.event,i._onPaste=i._register(new Ye),i.onPaste=i._onPaste.event,i._onType=i._register(new Ye),i.onType=i._onType.event,i._onCompositionStart=i._register(new Ye),i.onCompositionStart=i._onCompositionStart.event,i._onCompositionUpdate=i._register(new Ye),i.onCompositionUpdate=i._onCompositionUpdate.event,i._onCompositionEnd=i._register(new Ye),i.onCompositionEnd=i._onCompositionEnd.event,i._onSelectionChangeRequest=i._register(new Ye),i.onSelectionChangeRequest=i._onSelectionChangeRequest.event,i._host=t,i._textArea=i._register(new Ry(n)),i._lastTextAreaEvent=0,i._asyncTriggerCut=i._register(new Si((function(){return i._onCut.fire()}),0)),i._textAreaState=ky.EMPTY,i._selectionChangeListener=null,i.writeScreenReaderContent("ctor"),i._hasFocus=!1,i._isDoingComposition=!1,i._nextCommand=0,i._register(wo(n.domNode,"keydown",(function(e){!i._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),i._onKeyDown.fire(e)}))),i._register(wo(n.domNode,"keyup",(function(e){i._onKeyUp.fire(e)}))),i._register(vo(n.domNode,"compositionstart",(function(e){i._lastTextAreaEvent=1,i._isDoingComposition||(i._isDoingComposition=!0,Hn||i._setAndWriteTextAreaState("compositionstart",ky.EMPTY),i._onCompositionStart.fire())})));var o=function(e,t){var n=i._textAreaState,o=ky.readFromTextArea(i._textArea);return[o,ky.deduceInput(n,o,e,t)]},r=function(e){var t=i._textAreaState,n=ky.selectedText(e),o={text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart};return[n,o]},a=function(e){return!(!Hn||"ja"!==e)||!(!Rn||0!==e.indexOf("zh-Han"))};return i._register(vo(n.domNode,"compositionupdate",(function(e){if(i._lastTextAreaEvent=2,a(e.locale)){var t=o(!1,!1),n=t[0],s=t[1];return i._textAreaState=n,i._onType.fire(s),void i._onCompositionUpdate.fire(e)}var u=r(e.data),l=u[0],c=u[1];i._textAreaState=l,i._onType.fire(c),i._onCompositionUpdate.fire(e)}))),i._register(vo(n.domNode,"compositionend",(function(e){if(i._lastTextAreaEvent=3,i._isDoingComposition){if(a(e.locale)){var t=o(!1,!1),n=t[0],s=t[1];i._textAreaState=n,i._onType.fire(s)}else{var u=r(e.data);n=u[0],s=u[1];i._textAreaState=n,i._onType.fire(s)}(Hn||Wn)&&(i._textAreaState=ky.readFromTextArea(i._textArea)),i._isDoingComposition&&(i._isDoingComposition=!1,i._onCompositionEnd.fire())}}))),i._register(vo(n.domNode,"input",(function(){var e=8===i._lastTextAreaEvent;if(i._lastTextAreaEvent=4,i._textArea.setIgnoreSelectionChangeTime("received input event"),!i._isDoingComposition){var t=o(s["e"],e&&s["e"]),n=t[0],r=t[1];0===r.replaceCharCnt&&1===r.text.length&&Zr(r.text.charCodeAt(0))||(i._textAreaState=n,0===i._nextCommand?""!==r.text&&i._onType.fire(r):(""!==r.text&&i._firePaste(r.text,null),i._nextCommand=0))}}))),i._register(vo(n.domNode,"cut",(function(e){i._lastTextAreaEvent=5,i._textArea.setIgnoreSelectionChangeTime("received cut event"),i._ensureClipboardGetsEditorSelection(e),i._asyncTriggerCut.schedule()}))),i._register(vo(n.domNode,"copy",(function(e){i._lastTextAreaEvent=6,i._ensureClipboardGetsEditorSelection(e)}))),i._register(vo(n.domNode,"paste",(function(e){if(i._lastTextAreaEvent=7,i._textArea.setIgnoreSelectionChangeTime("received paste event"),Py.canUseTextData(e)){var t=Py.getTextData(e),n=t[0],o=t[1];""!==n&&i._firePaste(n,o)}else i._textArea.getSelectionStart()!==i._textArea.getSelectionEnd()&&i._setAndWriteTextAreaState("paste",ky.EMPTY),i._nextCommand=1}))),i._register(vo(n.domNode,"focus",(function(){i._lastTextAreaEvent=8,i._setHasFocus(!0)}))),i._register(vo(n.domNode,"blur",(function(){i._lastTextAreaEvent=9,i._setHasFocus(!1)}))),i}return Fy(t,e),t.prototype._installSelectionChangeListener=function(){var e=this,t=0;return vo(document,"selectionchange",(function(n){if(e._hasFocus&&!e._isDoingComposition&&Wn&&s["h"]){var i=Date.now(),o=i-t;if(t=i,!(o<5)){var r=i-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(r<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var a=e._textArea.getValue();if(e._textAreaState.value===a){var u=e._textArea.getSelectionStart(),l=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==u||e._textAreaState.selectionEnd!==l){var c=e._textAreaState.deduceEditorPosition(u),d=e._host.deduceModelPosition(c[0],c[1],c[2]),h=e._textAreaState.deduceEditorPosition(l),A=e._host.deduceModelPosition(h[0],h[1],h[2]),p=new yn(d.lineNumber,d.column,A.lineNumber,A.column);e._onSelectionChangeRequest.fire(p)}}}}}}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},t.prototype.focusTextArea=function(){this._setHasFocus(!0)},t.prototype.isFocused=function(){return this._hasFocus},t.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(Un?this._setAndWriteTextAreaState("focusgain",ky.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},t.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},t.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},t.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getDataToCopy(Py.canUseTextData(e)&&eo.clipboard.richText),n={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText};Oy.INSTANCE.set(Qn?t.text.replace(/\r\n/g,"\n"):t.text,n),Py.canUseTextData(e)?Py.setTextData(e,t.text,t.html,n):this._setAndWriteTextAreaState("copy or cut",ky.selectedText(t.text))},t.prototype._firePaste=function(e,t){t||(t=Oy.INSTANCE.get(e)),this._onPaste.fire({text:e,metadata:t})},t}(Ie),Py=function(){function e(){}return e.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},e.getTextData=function(e){if(e.clipboardData){e.preventDefault();var t=e.clipboardData.getData("text/plain"),n=null,i=e.clipboardData.getData("vscode-editor-data");if("string"===typeof i)try{n=JSON.parse(i),1!==n.version&&(n=null)}catch(o){}return[t,n]}if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},e.setTextData=function(e,t,n,i){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),"string"===typeof n&&e.clipboardData.setData("text/html",n),e.clipboardData.setData("vscode-editor-data",JSON.stringify(i)),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},e}(),Ry=function(e){function t(t){var n=e.call(this)||this;return n._actual=t,n._ignoreSelectionChangeTime=0,n}return Fy(t,e),t.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},t.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},t.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},t.prototype.getValue=function(){return this._actual.domNode.value},t.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},t.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},t.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},t.prototype.setSelectionRange=function(e,t,n){var i=this._actual.domNode,o=document.activeElement===i,r=i.selectionStart,s=i.selectionEnd;if(o&&r===t&&s===n)Qn&&window.parent!==window&&i.focus();else{if(o)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(Qn&&window.parent!==window&&i.focus());try{var a=ir(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),or(i,a)}catch(u){}}},t}(Ie),Uy=(n("2ab7"),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)}}()),Hy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Uy(t,e),t}(Yg),Qy={ColorContribution:"base.contributions.colors"},Vy=function(){function e(){this._onDidChangeSchema=new Ye,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return e.prototype.registerColor=function(e,t,n,i,o){void 0===i&&(i=!1);var r={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:o};this.colorsById[e]=r;var s={type:"string",description:n,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(s.deprecationMessage=o),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e},e.prototype.resolveDefaultColor=function(e,t){var n=this.colorsById[e];if(n&&n.defaults){var i=n.defaults[t.type];return Xb(i,t)}},e.prototype.getColorSchema=function(){return this.colorSchema},e.prototype.toString=function(){var e=this,t=function(e,t){var n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)};return Object.keys(this.colorsById).sort(t).map((function(t){return"- `"+t+"`: "+e.colorsById[t].description})).join("\n")},e}(),Wy=new Vy;function Ky(e,t,n,i,o){return Wy.registerColor(e,t,n,i,o)}uA.add(Qy.ColorContribution,Wy);var zy=Ky("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},r("foreground","Overall foreground color. This color is only used if not overridden by a component.")),jy=Ky("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},r("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),Gy=Ky("focusBorder",{dark:N_.fromHex("#0E639C").transparent(.8),light:N_.fromHex("#007ACC").transparent(.4),hc:"#F38518"},r("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),qy=Ky("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},r("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),Yy=Ky("contrastActiveBorder",{light:null,dark:null,hc:Gy},r("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),Xy=Ky("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},r("textLinkForeground","Foreground color for links in text.")),Jy=Ky("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:N_.black},r("textCodeBlockBackground","Background color for code blocks in text.")),Zy=Ky("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},r("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),$y=Ky("input.background",{dark:"#3C3C3C",light:N_.white,hc:N_.black},r("inputBoxBackground","Input box background.")),ew=Ky("input.foreground",{dark:zy,light:zy,hc:zy},r("inputBoxForeground","Input box foreground.")),tw=Ky("input.border",{dark:null,light:null,hc:qy},r("inputBoxBorder","Input box border.")),nw=Ky("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:qy},r("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),iw=Ky("inputOption.activeBackground",{dark:Gb(Gy,.5),light:Gb(Gy,.3),hc:null},r("inputOption.activeBackground","Background color of activated options in input fields.")),ow=Ky("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:N_.black},r("inputValidationInfoBackground","Input validation background color for information severity.")),rw=Ky("inputValidation.infoForeground",{dark:null,light:null,hc:null},r("inputValidationInfoForeground","Input validation foreground color for information severity.")),sw=Ky("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:qy},r("inputValidationInfoBorder","Input validation border color for information severity.")),aw=Ky("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:N_.black},r("inputValidationWarningBackground","Input validation background color for warning severity.")),uw=Ky("inputValidation.warningForeground",{dark:null,light:null,hc:null},r("inputValidationWarningForeground","Input validation foreground color for warning severity.")),lw=Ky("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:qy},r("inputValidationWarningBorder","Input validation border color for warning severity.")),cw=Ky("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:N_.black},r("inputValidationErrorBackground","Input validation background color for error severity.")),dw=Ky("inputValidation.errorForeground",{dark:null,light:null,hc:null},r("inputValidationErrorForeground","Input validation foreground color for error severity.")),hw=Ky("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:qy},r("inputValidationErrorBorder","Input validation border color for error severity.")),Aw=Ky("dropdown.background",{dark:"#3C3C3C",light:N_.white,hc:N_.black},r("dropdownBackground","Dropdown background.")),pw=Ky("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:N_.white},r("dropdownForeground","Dropdown foreground.")),fw=Ky("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:N_.white},r("pickerGroupForeground","Quick picker color for grouping labels.")),gw=Ky("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:N_.white},r("pickerGroupBorder","Quick picker color for grouping borders.")),mw=Ky("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:N_.black},r("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),vw=Ky("badge.foreground",{dark:N_.white,light:"#333",hc:N_.white},r("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),_w=Ky("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},r("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),yw=Ky("scrollbarSlider.background",{dark:N_.fromHex("#797979").transparent(.4),light:N_.fromHex("#646464").transparent(.4),hc:Gb(qy,.6)},r("scrollbarSliderBackground","Scrollbar slider background color.")),ww=Ky("scrollbarSlider.hoverBackground",{dark:N_.fromHex("#646464").transparent(.7),light:N_.fromHex("#646464").transparent(.7),hc:Gb(qy,.8)},r("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),bw=Ky("scrollbarSlider.activeBackground",{dark:N_.fromHex("#BFBFBF").transparent(.4),light:N_.fromHex("#000000").transparent(.6),hc:qy},r("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),Cw=Ky("progressBar.background",{dark:N_.fromHex("#0E70C0"),light:N_.fromHex("#0E70C0"),hc:qy},r("progressBarBackground","Background color of the progress bar that can show for long running operations.")),Sw=Ky("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},r("editorError.foreground","Foreground color of error squigglies in the editor.")),Bw=Ky("editorError.border",{dark:null,light:null,hc:N_.fromHex("#E47777").transparent(.8)},r("errorBorder","Border color of error boxes in the editor.")),Ew=Ky("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},r("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),xw=Ky("editorWarning.border",{dark:null,light:null,hc:N_.fromHex("#FFCC00").transparent(.8)},r("warningBorder","Border color of warning boxes in the editor.")),Lw=Ky("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},r("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Dw=Ky("editorInfo.border",{dark:null,light:null,hc:N_.fromHex("#75BEFF").transparent(.8)},r("infoBorder","Border color of info boxes in the editor.")),Nw=Ky("editorHint.foreground",{dark:N_.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},r("editorHint.foreground","Foreground color of hint squigglies in the editor.")),kw=Ky("editorHint.border",{dark:null,light:null,hc:N_.fromHex("#eeeeee").transparent(.8)},r("hintBorder","Border color of hint boxes in the editor.")),Iw=Ky("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:N_.black},r("editorBackground","Editor background color.")),Fw=Ky("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:N_.white},r("editorForeground","Editor default foreground color.")),Mw=Ky("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},r("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),Ow=Ky("editorWidget.foreground",{dark:zy,light:zy,hc:zy},r("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),Tw=Ky("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:qy},r("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),Pw=Ky("editorWidget.resizeBorder",{light:null,dark:null,hc:null},r("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),Rw=Ky("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},r("editorSelectionBackground","Color of the editor selection.")),Uw=Ky("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},r("editorSelectionForeground","Color of the selected text for high contrast.")),Hw=Ky("editor.inactiveSelectionBackground",{light:Gb(Rw,.5),dark:Gb(Rw,.5),hc:Gb(Rw,.5)},r("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Qw=Ky("editor.selectionHighlightBackground",{light:Yb(Rw,Iw,.3,.6),dark:Yb(Rw,Iw,.3,.6),hc:null},r("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Vw=Ky("editor.selectionHighlightBorder",{light:null,dark:null,hc:Yy},r("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Ww=Ky("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},r("editorFindMatch","Color of the current search match.")),Kw=Ky("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},r("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),zw=Ky("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},r("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),jw=Ky("editor.findMatchBorder",{light:null,dark:null,hc:Yy},r("editorFindMatchBorder","Border color of the current search match.")),Gw=Ky("editor.findMatchHighlightBorder",{light:null,dark:null,hc:Yy},r("findMatchHighlightBorder","Border color of the other search matches.")),qw=Ky("editor.findRangeHighlightBorder",{dark:null,light:null,hc:Gb(Yy,.4)},r("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Yw=Ky("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},r("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Xw=Ky("editorHoverWidget.background",{light:Mw,dark:Mw,hc:Mw},r("hoverBackground","Background color of the editor hover.")),Jw=Ky("editorHoverWidget.foreground",{light:Ow,dark:Ow,hc:Ow},r("hoverForeground","Foreground color of the editor hover.")),Zw=Ky("editorHoverWidget.border",{light:Tw,dark:Tw,hc:Tw},r("hoverBorder","Border color of the editor hover.")),$w=Ky("editorHoverWidget.statusBarBackground",{dark:jb(Xw,.2),light:zb(Xw,.05),hc:Mw},r("statusBarBackground","Background color of the editor hover status bar.")),eb=Ky("editorLink.activeForeground",{dark:"#4E94CE",light:N_.blue,hc:N_.cyan},r("activeLinkForeground","Color of active links.")),tb=Ky("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},r("editorLightBulbForeground","The color used for the lightbulb actions icon.")),nb=Ky("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},r("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),ib=new N_(new x_(155,185,85,.2)),ob=new N_(new x_(255,0,0,.2)),rb=Ky("diffEditor.insertedTextBackground",{dark:ib,light:ib,hc:null},r("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),sb=Ky("diffEditor.removedTextBackground",{dark:ob,light:ob,hc:null},r("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),ab=Ky("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},r("diffEditorInsertedOutline","Outline color for the text that got inserted.")),ub=Ky("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},r("diffEditorRemovedOutline","Outline color for text that got removed.")),lb=Ky("diffEditor.border",{dark:null,light:null,hc:qy},r("diffEditorBorder","Border color between the two text editors.")),cb=Ky("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},r("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),db=Ky("list.focusForeground",{dark:null,light:null,hc:null},r("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),hb=Ky("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},r("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ab=Ky("list.activeSelectionForeground",{dark:N_.white,light:N_.white,hc:null},r("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),pb=Ky("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},r("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),fb=Ky("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},r("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),gb=Ky("list.inactiveFocusBackground",{dark:null,light:null,hc:null},r("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),mb=Ky("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},r("listHoverBackground","List/Tree background when hovering over items using the mouse.")),vb=Ky("list.hoverForeground",{dark:null,light:null,hc:null},r("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),_b=Ky("list.dropBackground",{dark:cb,light:cb,hc:null},r("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),yb=Ky("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:Gy},r("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),wb=Ky("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:N_.black},r("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),bb=Ky("listFilterWidget.outline",{dark:N_.transparent,light:N_.transparent,hc:"#f38518"},r("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Cb=Ky("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:qy},r("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Sb=Ky("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},r("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Bb=Ky("menu.border",{dark:null,light:null,hc:qy},r("menuBorder","Border color of menus.")),Eb=Ky("menu.foreground",{dark:pw,light:zy,hc:pw},r("menuForeground","Foreground color of menu items.")),xb=Ky("menu.background",{dark:Aw,light:Aw,hc:Aw},r("menuBackground","Background color of menu items.")),Lb=Ky("menu.selectionForeground",{dark:Ab,light:Ab,hc:Ab},r("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Db=Ky("menu.selectionBackground",{dark:hb,light:hb,hc:hb},r("menuSelectionBackground","Background color of the selected menu item in menus.")),Nb=Ky("menu.selectionBorder",{dark:null,light:null,hc:Yy},r("menuSelectionBorder","Border color of the selected menu item in menus.")),kb=Ky("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:qy},r("menuSeparatorBackground","Color of a separator menu item in menus.")),Ib=Ky("editor.snippetTabstopHighlightBackground",{dark:new N_(new x_(124,124,124,.3)),light:new N_(new x_(10,50,100,.2)),hc:new N_(new x_(124,124,124,.3))},r("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Fb=Ky("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},r("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Mb=Ky("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},r("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Ob=Ky("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new N_(new x_(10,50,100,.5)),hc:"#525252"},r("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),Tb=Ky("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},r("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Pb=Ky("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},r("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Rb=Ky("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},r("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Ub=Ky("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},r("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Hb=Ky("minimap.errorHighlight",{dark:new N_(new x_(255,18,18,.7)),light:new N_(new x_(255,18,18,.7)),hc:new N_(new x_(255,50,50,1))},r("minimapError","Minimap marker color for errors.")),Qb=Ky("minimap.warningHighlight",{dark:Ew,light:Ew,hc:xw},r("overviewRuleWarning","Minimap marker color for warnings.")),Vb=Ky("problemsErrorIcon.foreground",{dark:Sw,light:Sw,hc:Sw},r("problemsErrorIconForeground","The color used for the problems error icon.")),Wb=Ky("problemsWarningIcon.foreground",{dark:Ew,light:Ew,hc:Ew},r("problemsWarningIconForeground","The color used for the problems warning icon.")),Kb=Ky("problemsInfoIcon.foreground",{dark:Lw,light:Lw,hc:Lw},r("problemsInfoIconForeground","The color used for the problems info icon."));function zb(e,t){return function(n){var i=Xb(e,n);if(i)return i.darken(t)}}function jb(e,t){return function(n){var i=Xb(e,n);if(i)return i.lighten(t)}}function Gb(e,t){return function(n){var i=Xb(e,n);if(i)return i.transparent(t)}}function qb(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0,i=e;n<i.length;n++){var o=i[n],r=Xb(o,t);if(r)return r}}}function Yb(e,t,n,i){return function(o){var r=Xb(e,o);if(r){var s=Xb(t,o);return s?r.isDarkerThan(s)?N_.getLighterColor(r,s,n).transparent(i):N_.getDarkerColor(r,s,n).transparent(i):r.transparent(n*i)}}}function Xb(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?N_.fromHex(e):t.getColor(e):e instanceof N_?e:"function"===typeof e?e(t):void 0}var Jb="vscode://schemas/workbench-colors",Zb=uA.as(lA.JSONContribution);Zb.registerSchema(Jb,Wy.getColorSchema());var $b=new Si((function(){return Zb.notifySchemaChanged(Jb)}),200);Wy.onDidChangeSchema((function(){$b.isScheduled()||$b.schedule()}));var eC=Ky("editor.lineHighlightBackground",{dark:null,light:null,hc:null},r("lineHighlight","Background color for the highlight of line at the cursor position.")),tC=Ky("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},r("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),nC=Ky("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},r("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),iC=Ky("editor.rangeHighlightBorder",{dark:null,light:null,hc:Yy},r("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),oC=Ky("editor.symbolHighlightBackground",{dark:Kw,light:Kw,hc:null},r("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),rC=Ky("editor.symbolHighlightBorder",{dark:null,light:null,hc:Yy},r("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),sC=Ky("editorCursor.foreground",{dark:"#AEAFAD",light:N_.black,hc:N_.white},r("caret","Color of the editor cursor.")),aC=Ky("editorCursor.background",null,r("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),uC=Ky("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},r("editorWhitespaces","Color of whitespace characters in the editor.")),lC=Ky("editorIndentGuide.background",{dark:uC,light:uC,hc:uC},r("editorIndentGuides","Color of the editor indentation guides.")),cC=Ky("editorIndentGuide.activeBackground",{dark:uC,light:uC,hc:uC},r("editorActiveIndentGuide","Color of the active editor indentation guides.")),dC=Ky("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:N_.white},r("editorLineNumbers","Color of editor line numbers.")),hC=Ky("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:Yy},r("editorActiveLineNumber","Color of editor active line number"),!1,r("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),AC=Ky("editorLineNumber.activeForeground",{dark:hC,light:hC,hc:hC},r("editorActiveLineNumber","Color of editor active line number")),pC=Ky("editorRuler.foreground",{dark:"#5A5A5A",light:N_.lightgrey,hc:N_.white},r("editorRuler","Color of the editor rulers.")),fC=Ky("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},r("editorCodeLensForeground","Foreground color of editor code lenses")),gC=Ky("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},r("editorBracketMatchBackground","Background color behind matching brackets")),mC=Ky("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:qy},r("editorBracketMatchBorder","Color for matching brackets boxes")),vC=Ky("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},r("editorOverviewRulerBorder","Color of the overview ruler border.")),_C=Ky("editorGutter.background",{dark:Iw,light:Iw,hc:Iw},r("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),yC=Ky("editorUnnecessaryCode.border",{dark:null,light:null,hc:N_.fromHex("#fff").transparent(.8)},r("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),wC=Ky("editorUnnecessaryCode.opacity",{dark:N_.fromHex("#000a"),light:N_.fromHex("#0007"),hc:null},r("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),bC=Ky("editorOverviewRuler.errorForeground",{dark:new N_(new x_(255,18,18,.7)),light:new N_(new x_(255,18,18,.7)),hc:new N_(new x_(255,50,50,1))},r("overviewRuleError","Overview ruler marker color for errors.")),CC=Ky("editorOverviewRuler.warningForeground",{dark:Ew,light:Ew,hc:xw},r("overviewRuleWarning","Overview ruler marker color for warnings.")),SC=Ky("editorOverviewRuler.infoForeground",{dark:Lw,light:Lw,hc:Dw},r("overviewRuleInfo","Overview ruler marker color for infos."));gm((function(e,t){var n=e.getColor(Iw);n&&t.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+n+"; }");var i=e.getColor(Fw);i&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+i+"; }");var o=e.getColor(_C);o&&t.addRule(".monaco-editor .margin { background-color: "+o+"; }");var r=e.getColor(nC);r&&t.addRule(".monaco-editor .rangeHighlight { background-color: "+r+"; }");var s=e.getColor(iC);s&&t.addRule(".monaco-editor .rangeHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+s+"; }");var a=e.getColor(oC);a&&t.addRule(".monaco-editor .symbolHighlight { background-color: "+a+"; }");var u=e.getColor(rC);u&&t.addRule(".monaco-editor .symbolHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+u+"; }");var l=e.getColor(uC);l&&t.addRule(".vs-whitespace { color: "+l+" !important; }")}));var BC=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)}}(),EC=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._readConfig(),n._lastCursorModelPosition=new mn(1,1),n._renderResult=null,n._context.addEventHandler(n),n}return BC(t,e),t.prototype._readConfig=function(){var e=this._context.configuration.options;this._lineHeight=e.get(47);var t=e.get(48);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(68);var n=e.get(103);this._lineNumbersLeft=n.lineNumbersLeft,this._lineNumbersWidth=n.lineNumbersWidth},t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t),2===this._renderLineNumbers||3===this._renderLineNumbers},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new mn(e,1));if(1!==t.column)return"";var n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){var i=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===i?'<span class="relative-current-line-number">'+n+"</span>":String(i)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n||n%10===0?String(n):"":String(n)},t.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var n=s["d"]?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,r='<div class="'+t.CLASS_NAME+n+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',a=this._context.model.getLineCount(),u=[],l=i;l<=o;l++){var c=l-i;if(this._renderFinalNewline||l!==a||0!==this._context.model.getLineLength(l)){var d=this._getLineRenderLineNumber(l);u[c]=d?r+d+"</div>":""}else u[c]=""}this._renderResult=u}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.CLASS_NAME="line-numbers",t}(Hy);gm((function(e,t){var n=e.getColor(dC);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var i=e.getColor(AC);i&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")}));var xC=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)}}(),LC=function(e){function t(n){var i=e.call(this,n)||this,o=i._context.configuration.options,r=o.get(103);return i._canUseLayerHinting=!o.get(21),i._contentLeft=r.contentLeft,i._glyphMarginLeft=r.glyphMarginLeft,i._glyphMarginWidth=r.glyphMarginWidth,i._domNode=Dg(document.createElement("div")),i._domNode.setClassName(t.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=Dg(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(t.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return xC(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(103);return this._canUseLayerHinting=!t.get(21),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);var n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n)},t.CLASS_NAME="glyph-margin",t.OUTER_CLASS_NAME="margin",t}(Jg),DC=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)}}(),NC=function(){function e(e){this.type=1,this._source=e}return e.prototype.hasChanged=function(e){return this._source.hasChanged(e)},e}(),kC=function(){function e(e){this.type=2,this.selections=e}return e}(),IC=function(){function e(){this.type=3}return e}(),FC=function(){function e(){this.type=4}return e}(),MC=function(){function e(e){this.type=5,this.isFocused=e}return e}(),OC=function(){function e(){this.type=6}return e}(),TC=function(){function e(e,t){this.type=7,this.fromLineNumber=e,this.toLineNumber=t}return e}(),PC=function(){function e(e,t){this.type=8,this.fromLineNumber=e,this.toLineNumber=t}return e}(),RC=function(){function e(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t}return e}(),UC=function(){function e(e,t,n,i,o){this.type=10,this.source=e,this.range=t,this.verticalType=n,this.revealHorizontal=i,this.scrollType=o}return e}(),HC=function(){function e(e){this.type=11,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}return e}(),QC=function(){function e(e){this.type=12,this.ranges=e}return e}(),VC=function(){function e(){this.type=15}return e}(),WC=function(){function e(){this.type=13}return e}(),KC=function(){function e(){this.type=14}return e}(),zC=function(){function e(){this.type=16}return e}(),jC=function(e){function t(){var t=e.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return DC(t,e),t.prototype.dispose=function(){this._listeners=[],e.prototype.dispose.call(this)},t.prototype._beginEmit=function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new GC),this._collector},t.prototype._endEmit=function(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.finalize();this._collector=null,e.length>0&&this._emit(e)}},t.prototype._emit=function(e){for(var t=this._listeners.slice(0),n=0,i=t.length;n<i;n++)qC(t[n],e)},t.prototype.addEventListener=function(e){var t=this;return this._listeners.push(e),De((function(){for(var n=t._listeners,i=0,o=n.length;i<o;i++)if(n[i]===e){n.splice(i,1);break}}))},t}(Ie),GC=function(){function e(){this._eventsLen=0,this._events=[],this._eventsLen=0}return e.prototype.emit=function(e){this._events[this._eventsLen++]=e},e.prototype.finalize=function(){var e=this._events;return this._events=[],e},e}();function qC(e,t){try{e(t)}catch(n){Ae(n)}}var YC=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)}}(),XC=function(){function e(e,t,n){this.top=e,this.left=t,this.width=n}return e.prototype.setWidth=function(t){return new e(this.top,this.left,t)},e}(),JC=Hn||Qn,ZC=function(e){function t(t,n,i){var o=e.call(this,t)||this;o._primaryCursorPosition=new mn(1,1),o._primaryCursorVisibleRange=null,o._viewController=n,o._viewHelper=i,o._scrollLeft=0,o._scrollTop=0;var r=o._context.configuration.options,a=r.get(103);o._accessibilitySupport=r.get(2),o._accessibilityPageSize=r.get(3),o._contentLeft=a.contentLeft,o._contentWidth=a.contentWidth,o._contentHeight=a.contentHeight,o._fontInfo=r.get(32),o._lineHeight=r.get(47),o._emptySelectionClipboard=r.get(24),o._copyWithSyntaxHighlighting=r.get(14),o._visibleTextArea=null,o._selections=[new yn(1,1,1,1)],o._lastRenderPosition=null,o.textArea=Dg(document.createElement("textarea")),Zg.write(o.textArea,6),o.textArea.setClassName("inputarea"),o.textArea.setAttribute("wrap","off"),o.textArea.setAttribute("autocorrect","off"),o.textArea.setAttribute("autocapitalize","off"),o.textArea.setAttribute("autocomplete","off"),o.textArea.setAttribute("spellcheck","false"),o.textArea.setAttribute("aria-label",o._getAriaLabel(r)),o.textArea.setAttribute("role","textbox"),o.textArea.setAttribute("aria-multiline","true"),o.textArea.setAttribute("aria-haspopup","false"),o.textArea.setAttribute("aria-autocomplete","both"),s["g"]&&r.get(65)&&o.textArea.setAttribute("readonly","true"),o.textAreaCover=Dg(document.createElement("div")),o.textAreaCover.setPosition("absolute");var u={getLineCount:function(){return o._context.model.getLineCount()},getLineMaxColumn:function(e){return o._context.model.getLineMaxColumn(e)},getValueInRange:function(e,t){return o._context.model.getValueInRange(e,t)}},l={getDataToCopy:function(e){var t=o._context.model.getPlainTextToCopy(o._selections,o._emptySelectionClipboard,s["h"]),n=o._context.model.getEOL(),i=o._emptySelectionClipboard&&1===o._selections.length&&o._selections[0].isEmpty(),r=Array.isArray(t)?t:null,a=Array.isArray(t)?t.join(n):t,u=void 0;return e&&(My.forceCopyWithSyntaxHighlighting||o._copyWithSyntaxHighlighting&&a.length<65536)&&(u=o._context.model.getHTMLToCopy(o._selections,o._emptySelectionClipboard)),{isFromEmptySelection:i,multicursorText:r,text:a,html:u}},getScreenReaderContent:function(e){if(jn)return ky.EMPTY;if(1===o._accessibilitySupport){if(s["e"]){var t=o._selections[0];if(t.isEmpty()){var n=t.getStartPosition(),i=o._getWordBeforePosition(n);if(0===i.length&&(i=o._getCharacterBeforePosition(n)),i.length>0)return new ky(i,i.length,i.length,n,n)}}return ky.EMPTY}return Iy.fromEditorSelection(e,u,o._selections[0],o._accessibilityPageSize,0===o._accessibilitySupport)},deduceModelPosition:function(e,t,n){return o._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}};return o._textAreaInput=o._register(new Ty(l,o.textArea)),o._register(o._textAreaInput.onKeyDown((function(e){o._viewController.emitKeyDown(e)}))),o._register(o._textAreaInput.onKeyUp((function(e){o._viewController.emitKeyUp(e)}))),o._register(o._textAreaInput.onPaste((function(e){var t=!1,n=null;e.metadata&&(t=o._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,n="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null),o._viewController.paste("keyboard",e.text,t,n)}))),o._register(o._textAreaInput.onCut((function(){o._viewController.cut("keyboard")}))),o._register(o._textAreaInput.onType((function(e){e.replaceCharCnt?o._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):o._viewController.type("keyboard",e.text)}))),o._register(o._textAreaInput.onSelectionChangeRequest((function(e){o._viewController.setSelection("keyboard",e)}))),o._register(o._textAreaInput.onCompositionStart((function(){var e=o._selections[0].startLineNumber,t=o._selections[0].startColumn;o._context.privateViewEventBus.emit(new UC("keyboard",new vn(e,t,e,t),0,!0,1));var n=o._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(o._visibleTextArea=new XC(o._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,JC?0:1),o._render()),o.textArea.setClassName("inputarea ime-input"),o._viewController.compositionStart("keyboard")}))),o._register(o._textAreaInput.onCompositionUpdate((function(e){o._visibleTextArea=Hn?o._visibleTextArea.setWidth(0):o._visibleTextArea.setWidth($C(e.data,o._fontInfo)),o._render()}))),o._register(o._textAreaInput.onCompositionEnd((function(){o._visibleTextArea=null,o._render(),o.textArea.setClassName("inputarea"),o._viewController.compositionEnd("keyboard")}))),o._register(o._textAreaInput.onFocus((function(){o._context.privateViewEventBus.emit(new MC(!0))}))),o._register(o._textAreaInput.onBlur((function(){o._context.privateViewEventBus.emit(new MC(!1))}))),o}return YC(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getWordBeforePosition=function(e){var t=this._context.model.getLineContent(e.lineNumber),n=Fv(this._context.configuration.options.get(92)),i=e.column,o=0;while(i>1){var r=t.charCodeAt(i-2),s=n.get(r);if(0!==s||o>50)return t.substring(i-1,e.column-1);o++,i--}return t.substring(0,e.column-1)},t.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var t=this._context.model.getLineContent(e.lineNumber),n=t.charAt(e.column-2);if(!Zr(n.charCodeAt(0)))return n}return""},t.prototype._getAriaLabel=function(e){var t=e.get(2);return 1===t?r("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.get(4)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(103);return this._accessibilitySupport=t.get(2),this._accessibilityPageSize=t.get(3),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._contentHeight=n.contentHeight,this._fontInfo=t.get(32),this._lineHeight=t.get(47),this._emptySelectionClipboard=t.get(24),this._copyWithSyntaxHighlighting=t.get(14),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),s["g"]&&e.hasChanged(65)&&(t.get(65)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.isFocused=function(){return this._textAreaInput.isFocused()},t.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},t.prototype.getLastRenderData=function(){return this._lastRenderPosition},t.prototype.prepareRender=function(e){this._primaryCursorPosition=new mn(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)},t.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},t.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);else if(this._primaryCursorVisibleRange){var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():s["e"]?this._renderInsideEditor(this._primaryCursorPosition,t,e,JC?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,t,e,JC?0:1,JC?0:1)}}else this._renderAtTopLeft()},t.prototype._renderInsideEditor=function(e,t,n,i,o){this._lastRenderPosition=e;var r=this.textArea,s=this.textAreaCover;Zf.applyFontInfo(r,this._fontInfo),r.setTop(t),r.setLeft(n),r.setWidth(i),r.setHeight(o),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},t.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var e=this.textArea,t=this.textAreaCover;if(Zf.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),JC)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1);var n=this._context.configuration.options;n.get(38)?t.setClassName("monaco-editor-background textAreaCover "+LC.OUTER_CLASS_NAME):0!==n.get(48).renderType?t.setClassName("monaco-editor-background textAreaCover "+EC.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")},t}(Jg);function $C(e,t){var n=document.createElement("canvas"),i=n.getContext("2d");i.font=eS(t);var o=i.measureText(e);return Qn?o.width+2:o.width}function eS(e){return tS("normal",e.fontWeight,e.fontSize,e.lineHeight,e.fontFamily)}function tS(e,t,n,i,o){return e+" normal "+t+" "+n+"px / "+i+"px "+o}var nS=function(){function e(){}return e.columnSelect=function(e,t,n,i,o,r){for(var s=Math.abs(o-n)+1,a=n>o,u=i>r,l=i<r,c=[],d=0;d<s;d++){var h=n+(a?-d:d),A=ay.columnFromVisibleColumn2(e,t,h,i),p=ay.columnFromVisibleColumn2(e,t,h,r),f=ay.visibleColumnFromColumn2(e,t,new mn(h,A)),g=ay.visibleColumnFromColumn2(e,t,new mn(h,p));if(l){if(f>r)continue;if(g<i)continue}if(u){if(g>i)continue;if(f<r)continue}c.push(new ty(new vn(h,A,h,A),0,new mn(h,p),0))}if(0===c.length)for(d=0;d<s;d++){h=n+(a?-d:d);var m=t.getLineMaxColumn(h);c.push(new ty(new vn(h,m,h,m),0,new mn(h,m),0))}return{viewStates:c,reversed:a,fromLineNumber:n,fromVisualColumn:i,toLineNumber:o,toVisualColumn:r}},e.columnSelectLeft=function(t,n,i){var o=i.toViewVisualColumn;return o>1&&o--,e.columnSelect(t,n,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,o)},e.columnSelectRight=function(e,t,n){for(var i=0,o=Math.min(n.fromViewLineNumber,n.toViewLineNumber),r=Math.max(n.fromViewLineNumber,n.toViewLineNumber),s=o;s<=r;s++){var a=t.getLineMaxColumn(s),u=ay.visibleColumnFromColumn2(e,t,new mn(s,a));i=Math.max(i,u)}var l=n.toViewVisualColumn;return l<i&&l++,this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,l)},e.columnSelectUp=function(e,t,n,i){var o=i?e.pageSize:1,r=Math.max(1,n.toViewLineNumber-o);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,r,n.toViewVisualColumn)},e.columnSelectDown=function(e,t,n,i){var o=i?e.pageSize:1,r=Math.min(t.getLineCount(),n.toViewLineNumber+o);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,r,n.toViewVisualColumn)},e}(),iS=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range;return new yn(i.endLineNumber,i.endColumn,i.endLineNumber,i.endColumn)},e}(),oS=function(){function e(e,t){this._range=e,this._text=t}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range;return new yn(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)},e}(),rS=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range;return new yn(i.startLineNumber,i.startColumn,i.startLineNumber,i.startColumn)},e}(),sS=function(){function e(e,t,n,i,o){void 0===o&&(o=!1),this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=o}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range;return new yn(i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset,i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset)},e}(),aS=function(){function e(e,t,n){this._range=e,this._text=t,this._initialSelection=n,this._selectionId=null}return e.prototype.getEditOperations=function(e,t){t.addEditOperation(this._range,this._text),this._selectionId=t.trackSelection(this._initialSelection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},e}(),uS=function(){function e(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n}return e}(),lS=function(){function e(){}return e.leftPosition=function(e,t,n){return n>e.getLineMinColumn(t)?n-=is(e.getLineContent(t),n-1):t>1&&(t-=1,n=e.getLineMaxColumn(t)),new mn(t,n)},e.left=function(t,n,i,o){var r=e.leftPosition(n,i,o);return new uS(r.lineNumber,r.column,0)},e.moveLeft=function(t,n,i,o,r){var s,a;if(i.hasSelection()&&!o)s=i.selection.startLineNumber,a=i.selection.startColumn;else{var u=e.left(t,n,i.position.lineNumber,i.position.column-(r-1));s=u.lineNumber,a=u.column}return i.move(o,s,a,0)},e.rightPosition=function(e,t,n){return n<e.getLineMaxColumn(t)?n+=ns(e.getLineContent(t),n-1):t<e.getLineCount()&&(t+=1,n=e.getLineMinColumn(t)),new mn(t,n)},e.right=function(t,n,i,o){var r=e.rightPosition(n,i,o);return new uS(r.lineNumber,r.column,0)},e.moveRight=function(t,n,i,o,r){var s,a;if(i.hasSelection()&&!o)s=i.selection.endLineNumber,a=i.selection.endColumn;else{var u=e.right(t,n,i.position.lineNumber,i.position.column+(r-1));s=u.lineNumber,a=u.column}return i.move(o,s,a,0)},e.down=function(e,t,n,i,o,r,s){var a=ay.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+o;n+=r;var u=t.getLineCount();return n>u?(n=u,i=s?t.getLineMaxColumn(n):Math.min(t.getLineMaxColumn(n),i)):i=ay.columnFromVisibleColumn2(e,t,n,a),o=a-ay.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new uS(n,i,o)},e.moveDown=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.endLineNumber,a=i.selection.endColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.down(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateDown=function(t,n,i){var o=i.selection,r=e.down(t,n,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),s=e.down(t,n,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new ty(new vn(r.lineNumber,r.column,r.lineNumber,r.column),r.leftoverVisibleColumns,new mn(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.up=function(e,t,n,i,o,r,s){var a=ay.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+o;return n-=r,n<1?(n=1,i=s?t.getLineMinColumn(n):Math.min(t.getLineMaxColumn(n),i)):i=ay.columnFromVisibleColumn2(e,t,n,a),o=a-ay.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new uS(n,i,o)},e.moveUp=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.startLineNumber,a=i.selection.startColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.up(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateUp=function(t,n,i){var o=i.selection,r=e.up(t,n,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),s=e.up(t,n,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new ty(new vn(r.lineNumber,r.column,r.lineNumber,r.column),r.leftoverVisibleColumns,new mn(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.moveToBeginningOfLine=function(e,t,n,i){var o,r=n.position.lineNumber,s=t.getLineMinColumn(r),a=t.getLineFirstNonWhitespaceColumn(r)||s,u=n.position.column;return o=u===a?s:a,n.move(i,r,o,0)},e.moveToEndOfLine=function(e,t,n,i){var o=n.position.lineNumber,r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},e.moveToBeginningOfBuffer=function(e,t,n,i){return n.move(i,1,1,0)},e.moveToEndOfBuffer=function(e,t,n,i){var o=t.getLineCount(),r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},e}(),cS=function(){function e(){}return e.deleteRight=function(e,t,n,i){for(var o=[],r=3!==e,s=0,a=i.length;s<a;s++){var u=i[s],l=u;if(l.isEmpty()){var c=u.getPosition(),d=lS.right(t,n,c.lineNumber,c.column);l=new vn(d.lineNumber,d.column,c.lineNumber,c.column)}l.isEmpty()?o[s]=null:(l.startLineNumber!==l.endLineNumber&&(r=!0),o[s]=new iS(l,""))}return[r,o]},e._isAutoClosingPairDelete=function(e,t,n){if("never"===e.autoClosingBrackets&&"never"===e.autoClosingQuotes)return!1;for(var i=0,o=n.length;i<o;i++){var r=n[i],s=r.getPosition();if(!r.isEmpty())return!1;var a=t.getLineContent(s.lineNumber),u=a[s.column-2],l=e.autoClosingPairsOpen2.get(u);if(!l)return!1;if(uy(u)){if("never"===e.autoClosingQuotes)return!1}else if("never"===e.autoClosingBrackets)return!1;for(var c=a[s.column-1],d=!1,h=0,A=l;h<A.length;h++){var p=A[h];p.open===u&&p.close===c&&(d=!0)}if(!d)return!1}return!0},e._runAutoClosingPairDelete=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o].getPosition(),a=new vn(s.lineNumber,s.column-1,s.lineNumber,s.column+1);i[o]=new iS(a,"")}return[!0,i]},e.deleteLeft=function(e,t,n,i){if(this._isAutoClosingPairDelete(t,n,i))return this._runAutoClosingPairDelete(t,n,i);for(var o=[],r=2!==e,s=0,a=i.length;s<a;s++){var u=i[s],l=u;if(l.isEmpty()){var c=u.getPosition();if(t.useTabStops&&c.column>1){var d=n.getLineContent(c.lineNumber),h=Ur(d),A=-1===h?d.length+1:h+1;if(c.column<=A){var p=ay.visibleColumnFromColumn2(t,n,c),f=ay.prevIndentTabStop(p,t.indentSize),g=ay.columnFromVisibleColumn2(t,n,c.lineNumber,f);l=new vn(c.lineNumber,g,c.lineNumber,c.column)}else l=new vn(c.lineNumber,c.column-1,c.lineNumber,c.column)}else{var m=lS.left(t,n,c.lineNumber,c.column);l=new vn(m.lineNumber,m.column,c.lineNumber,c.column)}}l.isEmpty()?o[s]=null:(l.startLineNumber!==l.endLineNumber&&(r=!0),o[s]=new iS(l,""))}return[r,o]},e.cut=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o];if(s.isEmpty())if(e.emptySelectionClipboard){var a=s.getPosition(),u=void 0,l=void 0,c=void 0,d=void 0;a.lineNumber<t.getLineCount()?(u=a.lineNumber,l=1,c=a.lineNumber+1,d=1):a.lineNumber>1?(u=a.lineNumber-1,l=t.getLineMaxColumn(a.lineNumber-1),c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber)):(u=a.lineNumber,l=1,c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber));var h=new vn(u,l,c,d);h.isEmpty()?i[o]=null:i[o]=new iS(h,"")}else i[o]=null;else i[o]=new iS(s,"")}return new sy(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e}(),dS=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)}}(),hS=function(){function e(){}return e._createWord=function(e,t,n,i,o){return{start:i,end:o,wordType:t,nextCharClass:n}},e._findPreviousWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n)},e._doFindPreviousWordOnLine=function(e,t,n){for(var i=0,o=n.column-2;o>=0;o--){var r=e.charCodeAt(o),s=t.get(r);if(0===s){if(2===i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=1}else if(2===s){if(1===i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=2}else if(1===s&&0!==i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1))}return 0!==i?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null},e._findEndOfWord=function(e,t,n,i){for(var o=e.length,r=i;r<o;r++){var s=e.charCodeAt(r),a=t.get(s);if(1===a)return r;if(1===n&&2===a)return r;if(2===n&&0===a)return r}return o},e._findNextWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(i,e,n)},e._doFindNextWordOnLine=function(e,t,n){for(var i=0,o=e.length,r=n.column-1;r<o;r++){var s=e.charCodeAt(r),a=t.get(s);if(0===a){if(2===i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r);i=1}else if(2===a){if(1===i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r);i=2}else if(1===a&&0!==i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r)}return 0!==i?this._createWord(e,i,1,this._findStartOfWord(e,t,i,o-1),o):null},e._findStartOfWord=function(e,t,n,i){for(var o=i;o>=0;o--){var r=e.charCodeAt(o),s=t.get(r);if(1===s)return o+1;if(1===n&&2===s)return o+1;if(2===n&&0===s)return o+1}return 0},e.moveWordLeft=function(t,n,i,o){var r=i.lineNumber,s=i.column,a=!1;1===s&&r>1&&(a=!0,r-=1,s=n.getLineMaxColumn(r));var u=e._findPreviousWordOnLine(t,n,new mn(r,s));if(0===o){if(u&&!a){var l=n.getLineLastNonWhitespaceColumn(r);if(l<s)return new mn(r,u.end+1)}return new mn(r,u?u.start+1:1)}if(1===o)return u&&2===u.wordType&&u.end-u.start===1&&0===u.nextCharClass&&(u=e._findPreviousWordOnLine(t,n,new mn(r,u.start+1))),new mn(r,u?u.start+1:1);if(3===o){while(u&&2===u.wordType)u=e._findPreviousWordOnLine(t,n,new mn(r,u.start+1));return new mn(r,u?u.start+1:1)}return u&&s<=u.end+1&&(u=e._findPreviousWordOnLine(t,n,new mn(r,u.start+1))),new mn(r,u?u.end+1:1)},e._moveWordPartLeft=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(1===t.column)return n>1?new mn(n-1,e.getLineMaxColumn(n-1)):t;for(var o=e.getLineContent(n),r=t.column-1;r>1;r--){var s=o.charCodeAt(r-2),a=o.charCodeAt(r-1);if(95!==s&&95===a)return new mn(n,r);if(Kr(s)&&zr(a))return new mn(n,r);if(zr(s)&&zr(a)&&r+1<i){var u=o.charCodeAt(r);if(Kr(u))return new mn(n,r)}}return new mn(n,1)},e.moveWordRight=function(t,n,i,o){var r=i.lineNumber,s=i.column,a=!1;s===n.getLineMaxColumn(r)&&r<n.getLineCount()&&(a=!0,r+=1,s=1);var u=e._findNextWordOnLine(t,n,new mn(r,s));if(2===o)u&&2===u.wordType&&u.end-u.start===1&&0===u.nextCharClass&&(u=e._findNextWordOnLine(t,n,new mn(r,u.end+1))),s=u?u.end+1:n.getLineMaxColumn(r);else if(3===o){a&&(s=0);while(u&&(2===u.wordType||u.start+1<=s))u=e._findNextWordOnLine(t,n,new mn(r,u.end+1));s=u?u.start+1:n.getLineMaxColumn(r)}else u&&!a&&s>=u.start+1&&(u=e._findNextWordOnLine(t,n,new mn(r,u.end+1))),s=u?u.start+1:n.getLineMaxColumn(r);return new mn(r,s)},e._moveWordPartRight=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(t.column===i)return n<e.getLineCount()?new mn(n+1,1):t;for(var o=e.getLineContent(n),r=t.column+1;r<i;r++){var s=o.charCodeAt(r-2),a=o.charCodeAt(r-1);if(95===s&&95!==a)return new mn(n,r);if(Kr(s)&&zr(a))return new mn(n,r);if(zr(s)&&zr(a)&&r+1<i){var u=o.charCodeAt(r);if(Kr(u))return new mn(n,r)}}return new mn(n,i)},e._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-2,o=Qr(n,i);return o+1<i?new vn(t.lineNumber,o+2,t.lineNumber,t.column):null},e.deleteWordLeft=function(t,n,i,o,r){if(!i.isEmpty())return i;var s=new mn(i.positionLineNumber,i.positionColumn),a=s.lineNumber,u=s.column;if(1===a&&1===u)return null;if(o){var l=this._deleteWordLeftWhitespace(n,s);if(l)return l}var c=e._findPreviousWordOnLine(t,n,s);return 0===r?c?u=c.start+1:u>1?u=1:(a--,u=n.getLineMaxColumn(a)):(c&&u<=c.end+1&&(c=e._findPreviousWordOnLine(t,n,new mn(a,c.start+1))),c?u=c.end+1:u>1?u=1:(a--,u=n.getLineMaxColumn(a))),new vn(a,u,s.lineNumber,s.column)},e._deleteWordPartLeft=function(t,n){if(!n.isEmpty())return n;var i=n.getPosition(),o=e._moveWordPartLeft(t,i);return new vn(i.lineNumber,i.column,o.lineNumber,o.column)},e._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,i=t;i<n;i++){var o=e.charAt(i);if(" "!==o&&"\t"!==o)return i}return n},e._deleteWordRightWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-1,o=this._findFirstNonWhitespaceChar(n,i);return i+1<o?new vn(t.lineNumber,t.column,t.lineNumber,o+1):null},e.deleteWordRight=function(t,n,i,o,r){if(!i.isEmpty())return i;var s=new mn(i.positionLineNumber,i.positionColumn),a=s.lineNumber,u=s.column,l=n.getLineCount(),c=n.getLineMaxColumn(a);if(a===l&&u===c)return null;if(o){var d=this._deleteWordRightWhitespace(n,s);if(d)return d}var h=e._findNextWordOnLine(t,n,s);return 2===r?h?u=h.end+1:u<c||a===l?u=c:(a++,h=e._findNextWordOnLine(t,n,new mn(a,1)),u=h?h.start+1:n.getLineMaxColumn(a)):(h&&u>=h.start+1&&(h=e._findNextWordOnLine(t,n,new mn(a,h.end+1))),h?u=h.start+1:u<c||a===l?u=c:(a++,h=e._findNextWordOnLine(t,n,new mn(a,1)),u=h?h.start+1:n.getLineMaxColumn(a))),new vn(a,u,s.lineNumber,s.column)},e._deleteWordPartRight=function(t,n){if(!n.isEmpty())return n;var i=n.getPosition(),o=e._moveWordPartRight(t,i);return new vn(i.lineNumber,i.column,o.lineNumber,o.column)},e.word=function(t,n,i,o,r){var s,a,u,l,c=Fv(t.wordSeparators),d=e._findPreviousWordOnLine(c,n,r),h=e._findNextWordOnLine(c,n,r);if(!o)return d&&1===d.wordType&&d.start<=r.column-1&&r.column-1<=d.end?(s=d.start+1,a=d.end+1):h&&1===h.wordType&&h.start<=r.column-1&&r.column-1<=h.end?(s=h.start+1,a=h.end+1):(s=d?d.end+1:1,a=h?h.start+1:n.getLineMaxColumn(r.lineNumber)),new ty(new vn(r.lineNumber,s,r.lineNumber,a),0,new mn(r.lineNumber,a),0);d&&1===d.wordType&&d.start<r.column-1&&r.column-1<d.end?(u=d.start+1,l=d.end+1):h&&1===h.wordType&&h.start<r.column-1&&r.column-1<h.end?(u=h.start+1,l=h.end+1):(u=r.column,l=r.column);var A,p=r.lineNumber;if(i.selectionStart.containsPosition(r))A=i.selectionStart.endColumn;else if(r.isBeforeOrEqual(i.selectionStart.getStartPosition())){A=u;var f=new mn(p,A);i.selectionStart.containsPosition(f)&&(A=i.selectionStart.endColumn)}else{A=l;f=new mn(p,A);i.selectionStart.containsPosition(f)&&(A=i.selectionStart.startColumn)}return i.move(!0,p,A,0)},e}(),AS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dS(t,e),t.deleteWordPartLeft=function(e,t,n,i){var o=pS([hS.deleteWordLeft(e,t,n,i,0),hS.deleteWordLeft(e,t,n,i,2),hS._deleteWordPartLeft(t,n)]);return o.sort(vn.compareRangesUsingEnds),o[2]},t.deleteWordPartRight=function(e,t,n,i){var o=pS([hS.deleteWordRight(e,t,n,i,0),hS.deleteWordRight(e,t,n,i,2),hS._deleteWordPartRight(t,n)]);return o.sort(vn.compareRangesUsingStarts),o[0]},t.moveWordPartLeft=function(e,t,n){var i=pS([hS.moveWordLeft(e,t,n,0),hS.moveWordLeft(e,t,n,2),hS._moveWordPartLeft(t,n)]);return i.sort(mn.compare),i[2]},t.moveWordPartRight=function(e,t,n){var i=pS([hS.moveWordRight(e,t,n,0),hS.moveWordRight(e,t,n,2),hS._moveWordPartRight(t,n)]);return i.sort(mn.compare),i[0]},t}(hS);function pS(e){return e.filter((function(e){return Boolean(e)}))}var fS,gS=function(){function e(){}return e.addCursorDown=function(e,t,n){for(var i=[],o=0,r=0,s=t.length;r<s;r++){var a=t[r];i[o++]=new ry(a.modelState,a.viewState),i[o++]=n?ry.fromModelState(lS.translateDown(e.config,e.model,a.modelState)):ry.fromViewState(lS.translateDown(e.config,e.viewModel,a.viewState))}return i},e.addCursorUp=function(e,t,n){for(var i=[],o=0,r=0,s=t.length;r<s;r++){var a=t[r];i[o++]=new ry(a.modelState,a.viewState),i[o++]=n?ry.fromModelState(lS.translateUp(e.config,e.model,a.modelState)):ry.fromViewState(lS.translateUp(e.config,e.viewModel,a.viewState))}return i},e.moveToBeginningOfLine=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=this._moveToLineStart(e,s,n)}return i},e._moveToLineStart=function(e,t,n){var i=t.viewState.position.column,o=t.modelState.position.column,r=i===o,s=t.viewState.position.lineNumber,a=e.viewModel.getLineFirstNonWhitespaceColumn(s),u=i===a;return r||u?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n)},e._moveToLineStartByView=function(e,t,n){return ry.fromViewState(lS.moveToBeginningOfLine(e.config,e.viewModel,t.viewState,n))},e._moveToLineStartByModel=function(e,t,n){return ry.fromModelState(lS.moveToBeginningOfLine(e.config,e.model,t.modelState,n))},e.moveToEndOfLine=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=this._moveToLineEnd(e,s,n)}return i},e._moveToLineEnd=function(e,t,n){var i=t.viewState.position,o=e.viewModel.getLineMaxColumn(i.lineNumber),r=i.column===o,s=t.modelState.position,a=e.model.getLineMaxColumn(s.lineNumber),u=o-i.column===a-s.column;return r||u?this._moveToLineEndByModel(e,t,n):this._moveToLineEndByView(e,t,n)},e._moveToLineEndByView=function(e,t,n){return ry.fromViewState(lS.moveToEndOfLine(e.config,e.viewModel,t.viewState,n))},e._moveToLineEndByModel=function(e,t,n){return ry.fromModelState(lS.moveToEndOfLine(e.config,e.model,t.modelState,n))},e.expandLineSelection=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r=t[i],s=r.modelState.selection.startLineNumber,a=e.model.getLineCount(),u=r.modelState.selection.endLineNumber,l=void 0;u===a?l=e.model.getLineMaxColumn(a):(u++,l=1),n[i]=ry.fromModelState(new ty(new vn(s,1,s,1),0,new mn(u,l),0))}return n},e.moveToBeginningOfBuffer=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=ry.fromModelState(lS.moveToBeginningOfBuffer(e.config,e.model,s.modelState,n))}return i},e.moveToEndOfBuffer=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=ry.fromModelState(lS.moveToEndOfBuffer(e.config,e.model,s.modelState,n))}return i},e.selectAll=function(e,t){var n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return ry.fromModelState(new ty(new vn(1,1,1,1),0,new mn(n,i),0))},e.line=function(e,t,n,i,o){var r=e.model.validatePosition(i),s=o?e.validateViewPosition(new mn(o.lineNumber,o.column),r):e.convertModelPositionToViewPosition(r);if(!n||!t.modelState.hasSelection()){var a=e.model.getLineCount(),u=r.lineNumber+1,l=1;return u>a&&(u=a,l=e.model.getLineMaxColumn(u)),ry.fromModelState(new ty(new vn(r.lineNumber,1,u,l),0,new mn(u,l),0))}var c=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumber<c)return ry.fromViewState(t.viewState.move(t.modelState.hasSelection(),s.lineNumber,1,0));if(r.lineNumber>c){a=e.viewModel.getLineCount();var d=s.lineNumber+1,h=1;return d>a&&(d=a,h=e.viewModel.getLineMaxColumn(d)),ry.fromViewState(t.viewState.move(t.modelState.hasSelection(),d,h,0))}var A=t.modelState.selectionStart.getEndPosition();return ry.fromModelState(t.modelState.move(t.modelState.hasSelection(),A.lineNumber,A.column,0))},e.word=function(e,t,n,i){var o=e.model.validatePosition(i);return ry.fromModelState(hS.word(e.config,e.model,t.modelState,n,o))},e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new ry(t.modelState,t.viewState);var n=t.viewState.position.lineNumber,i=t.viewState.position.column;return ry.fromViewState(new ty(new vn(n,i,n,i),0,new mn(n,i),0))},e.moveTo=function(e,t,n,i,o){var r=e.model.validatePosition(i),s=o?e.validateViewPosition(new mn(o.lineNumber,o.column),r):e.convertModelPositionToViewPosition(r);return ry.fromViewState(t.viewState.move(n,s.lineNumber,s.column,0))},e.move=function(e,t,n){var i=n.select,o=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,o);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,o);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,i,o):this._moveUpByModelLines(e,t,i,o);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,i,o):this._moveDownByModelLines(e,t,i,o);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,i);case 9:var r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._firstLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,u)];case 11:r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._lastLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,u)];case 10:r=t[0],s=e.getCompletelyVisibleModelRange(),a=Math.round((s.startLineNumber+s.endLineNumber)/2),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,u)];case 12:for(var l=e.getCompletelyVisibleViewRange(),c=[],d=0,h=t.length;d<h;d++){r=t[d];c[d]=this.findPositionInViewportIfOutside(e,r,l,i)}return c}return null},e.findPositionInViewportIfOutside=function(e,t,n,i){var o=t.viewState.position.lineNumber;if(n.startLineNumber<=o&&o<=n.endLineNumber-1)return new ry(t.modelState,t.viewState);o>n.endLineNumber-1&&(o=n.endLineNumber-1),o<n.startLineNumber&&(o=n.startLineNumber);var r=e.viewModel.getLineFirstNonWhitespaceColumn(o);return this._moveToViewPosition(e,t,i,o,r)},e._firstLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.min(t.endLineNumber,i+n-1)},e._lastLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.max(i,t.endLineNumber-n+1)},e._moveLeft=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r],u=lS.moveLeft(e.config,e.viewModel,a.viewState,n,i);if(1===i&&u.position.lineNumber!==a.viewState.position.lineNumber){var l=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position);l.lineNumber===a.modelState.position.lineNumber&&(u=lS.moveLeft(e.config,e.viewModel,u,n,1))}o[r]=ry.fromViewState(u)}return o},e._moveHalfLineLeft=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=Math.round(e.viewModel.getLineContent(a).length/2);i[o]=ry.fromViewState(lS.moveLeft(e.config,e.viewModel,s.viewState,n,u))}return i},e._moveRight=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r],u=lS.moveRight(e.config,e.viewModel,a.viewState,n,i);if(1===i&&u.position.lineNumber!==a.viewState.position.lineNumber){var l=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position);l.lineNumber===a.modelState.position.lineNumber&&(u=lS.moveRight(e.config,e.viewModel,u,n,1))}o[r]=ry.fromViewState(u)}return o},e._moveHalfLineRight=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=Math.round(e.viewModel.getLineContent(a).length/2);i[o]=ry.fromViewState(lS.moveRight(e.config,e.viewModel,s.viewState,n,u))}return i},e._moveDownByViewLines=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r];o[r]=ry.fromViewState(lS.moveDown(e.config,e.viewModel,a.viewState,n,i))}return o},e._moveDownByModelLines=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r];o[r]=ry.fromModelState(lS.moveDown(e.config,e.model,a.modelState,n,i))}return o},e._moveUpByViewLines=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r];o[r]=ry.fromViewState(lS.moveUp(e.config,e.viewModel,a.viewState,n,i))}return o},e._moveUpByModelLines=function(e,t,n,i){for(var o=[],r=0,s=t.length;r<s;r++){var a=t[r];o[r]=ry.fromModelState(lS.moveUp(e.config,e.model,a.modelState,n,i))}return o},e._moveToViewPosition=function(e,t,n,i,o){return ry.fromViewState(t.viewState.move(n,i,o,0))},e._moveToModelPosition=function(e,t,n,i,o){return ry.fromModelState(t.modelState.move(n,i,o,0))},e._moveToViewMinColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineMinColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewFirstNonWhitespaceColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineFirstNonWhitespaceColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewCenterColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=Math.round((e.viewModel.getLineMaxColumn(a)+e.viewModel.getLineMinColumn(a))/2);i[o]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewMaxColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineMaxColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewLastNonWhitespaceColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineLastNonWhitespaceColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u)}return i},e}();(function(e){var t=function(e){if(!ga(e))return!1;var t=e;return!!fa(t.to)&&(!(!_a(t.select)&&!va(t.select))&&(!(!_a(t.by)&&!fa(t.by))&&!(!_a(t.value)&&!ma(t.value))))};function n(t){if(!t.to)return null;var n;switch(t.to){case e.RawDirection.Left:n=0;break;case e.RawDirection.Right:n=1;break;case e.RawDirection.Up:n=2;break;case e.RawDirection.Down:n=3;break;case e.RawDirection.WrappedLineStart:n=4;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:n=5;break;case e.RawDirection.WrappedLineColumnCenter:n=6;break;case e.RawDirection.WrappedLineEnd:n=7;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:n=8;break;case e.RawDirection.ViewPortTop:n=9;break;case e.RawDirection.ViewPortBottom:n=11;break;case e.RawDirection.ViewPortCenter:n=10;break;case e.RawDirection.ViewPortIfOutside:n=12;break;default:return null}var i=0;switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Character:i=3;break;case e.RawUnit.HalfLine:i=4;break}return{direction:n,unit:i,select:!!t.select,value:t.value||1}}e.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down'\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=n})(fS||(fS={}));var mS=Object.create(null);function vS(e,t){mS[e]||(mS[e]=["",e]);for(var n=mS[e],i=n.length;i<=t;i++)n[i]=n[i-1]+e;return n[t]}var _S,yS=function(){function e(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return e.unshiftIndent=function(e,t,n,i,o){var r=ay.visibleColumnFromColumn(e,t,n);if(o){var s=vS(" ",i),a=ay.prevIndentTabStop(r,i),u=a/i;return vS(s,u)}s="\t",a=ay.prevRenderTabStop(r,n),u=a/n;return vS(s,u)},e.shiftIndent=function(e,t,n,i,o){var r=ay.visibleColumnFromColumn(e,t,n);if(o){var s=vS(" ",i),a=ay.nextIndentTabStop(r,i),u=a/i;return vS(s,u)}s="\t",a=ay.nextRenderTabStop(r,n),u=a/n;return vS(s,u)},e.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)},e.prototype.getEditOperations=function(t,n){var i=this._selection.startLineNumber,o=this._selection.endLineNumber;1===this._selection.endColumn&&i!==o&&(o-=1);var r=this._opts,s=r.tabSize,a=r.indentSize,u=r.insertSpaces,l=i===o;if(this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var c=0,d=0,h=i;h<=o;h++,c=d){d=0;var A=t.getLineContent(h),p=Ur(A);if((!this._opts.isUnshift||0!==A.length&&0!==p)&&(l||this._opts.isUnshift||0!==A.length)){if(-1===p&&(p=A.length),h>1){var f=ay.visibleColumnFromColumn(A,p+1,s);if(f%a!==0&&t.isCheapToTokenize(h-1)){var g=Pc.getEnterAction(this._opts.autoIndent,t,new vn(h-1,t.getLineMaxColumn(h-1),h-1,t.getLineMaxColumn(h-1)));if(g){if(d=c,g.appendText)for(var m=0,v=g.appendText.length;m<v&&d<a;m++){if(32!==g.appendText.charCodeAt(m))break;d++}g.removeText&&(d=Math.max(0,d-g.removeText));for(m=0;m<d;m++){if(0===p||32!==A.charCodeAt(p-1))break;p--}}}}if(!this._opts.isUnshift||0!==p){var _=void 0;_=this._opts.isUnshift?e.unshiftIndent(A,p+1,s,a,u):e.shiftIndent(A,p+1,s,a,u),this._addEditOperation(n,new vn(h,1,h,p+1),_),h!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=p+1)}}}else{var y=u?vS(" ",a):"\t";for(h=i;h<=o;h++){A=t.getLineContent(h),p=Ur(A);if((!this._opts.isUnshift||0!==A.length&&0!==p)&&((l||this._opts.isUnshift||0!==A.length)&&(-1===p&&(p=A.length),!this._opts.isUnshift||0!==p)))if(this._opts.isUnshift){p=Math.min(p,a);for(var w=0;w<p;w++){var b=A.charCodeAt(w);if(9===b){p=w+1;break}}this._addEditOperation(n,new vn(h,1,h,p+1),"")}else this._addEditOperation(n,new vn(h,1,h,1),y),h!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=n.trackSelection(this._selection)},e.prototype.computeCursorState=function(e,t){if(this._useLastEditRangeForCursorEndPosition){var n=t.getInverseEditOperations()[0];return new yn(n.range.endLineNumber,n.range.endColumn,n.range.endLineNumber,n.range.endColumn)}var i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var o=this._selection.startColumn,r=i.startColumn;return r<=o?i:0===i.getDirection()?new yn(i.startLineNumber,o,i.endLineNumber,i.endColumn):new yn(i.endLineNumber,i.endColumn,i.startLineNumber,o)}return i},e}(),wS=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 vn(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new vn(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 yn(i.endLineNumber,i.endColumn,o.endLineNumber,o.endColumn-this._charAfterSelection.length)},e}(),bS=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)}}(),CS=function(){function e(){}return e.indent=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,r=n.length;o<r;o++)i[o]=new yS(n[o],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i},e.outdent=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++)i[o]=new yS(n[o],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i},e.shiftIndent=function(e,t,n){return n=n||1,yS.shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},e.unshiftIndent=function(e,t,n){return n=n||1,yS.unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},e._distributedPaste=function(e,t,n,i){for(var o=[],r=0,s=n.length;r<s;r++)o[r]=new iS(n[r],i[r]);return new sy(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._simplePaste=function(e,t,n,i,o){for(var r=[],s=0,a=n.length;s<a;s++){var u=n[s],l=u.getPosition();if(o&&!u.isEmpty()&&(o=!1),o&&i.indexOf("\n")!==i.length-1&&(o=!1),o){var c=new vn(l.lineNumber,1,l.lineNumber,1);r[s]=new aS(c,i,u)}else r[s]=new iS(u,i)}return new sy(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._distributePasteToCursors=function(e,t,n,i,o){if(i)return null;if(1===t.length)return null;if(o&&o.length===t.length)return o;if("spread"===e.multiCursorPaste){10===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1)),13===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1));var r=n.split(/\r\n|\r|\n/);if(r.length===t.length)return r}return null},e.paste=function(e,t,n,i,o,r){var s=this._distributePasteToCursors(e,n,i,o,r);return s?(n=n.sort(vn.compareRangesUsingStarts),this._distributedPaste(e,t,n,s)):this._simplePaste(e,t,n,i,o)},e._goodIndentForLine=function(t,n,i){var o=null,r="",s=Pc.getInheritIndentForLine(t.autoIndent,n,i,!1);if(s)o=s.action,r=s.indentation;else if(i>1){var a=void 0;for(a=i-1;a>=1;a--){var u=n.getLineContent(a),l=Qr(u);if(l>=0)break}if(a<1)return null;var c=n.getLineMaxColumn(a),d=Pc.getEnterAction(t.autoIndent,n,new vn(a,c,a,c));d&&(r=d.indentation+d.appendText)}return o&&(o===lc.Indent&&(r=e.shiftIndent(t,r)),o===lc.Outdent&&(r=e.unshiftIndent(t,r)),r=t.normalizeIndentation(r)),r||null},e._replaceJumpToNextIndent=function(e,t,n,i){var o="",r=n.getStartPosition();if(e.insertSpaces)for(var s=ay.visibleColumnFromColumn2(e,t,r),a=e.indentSize,u=a-s%a,l=0;l<u;l++)o+=" ";else o="\t";return new iS(n,o,i)},e.tab=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o];if(s.isEmpty()){var a=t.getLineContent(s.startLineNumber);if(/^\s*$/.test(a)&&t.isCheapToTokenize(s.startLineNumber)){var u=this._goodIndentForLine(e,t,s.startLineNumber);u=u||"\t";var l=e.normalizeIndentation(u);if(!Mr(a,l)){i[o]=new iS(new vn(s.startLineNumber,1,s.startLineNumber,a.length+1),l,!0);continue}}i[o]=this._replaceJumpToNextIndent(e,t,s,!0)}else{if(s.startLineNumber===s.endLineNumber){var c=t.getLineMaxColumn(s.startLineNumber);if(1!==s.startColumn||s.endColumn!==c){i[o]=this._replaceJumpToNextIndent(e,t,s,!1);continue}}i[o]=new yS(s,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent})}}return i},e.replacePreviousChar=function(e,t,n,i,o,r){for(var s=[],a=0,u=i.length;a<u;a++){var l=i[a];if(l.isEmpty()){var c=l.getPosition(),d=Math.max(1,c.column-r),h=new vn(c.lineNumber,d,c.lineNumber,c.column);s[a]=new iS(h,o)}else s[a]=null}return new sy(1,s,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e._typeCommand=function(e,t,n){return n?new rS(e,t,!0):new iS(e,t,!0)},e._enter=function(t,n,i,o){if(0===t.autoIndent)return e._typeCommand(o,"\n",i);if(!n.isCheapToTokenize(o.getStartPosition().lineNumber)||1===t.autoIndent){var r=n.getLineContent(o.startLineNumber),s=Hr(r).substring(0,o.startColumn-1);return e._typeCommand(o,"\n"+t.normalizeIndentation(s),i)}var a=Pc.getEnterAction(t.autoIndent,n,o);if(a){if(a.indentAction===lc.None)return e._typeCommand(o,"\n"+t.normalizeIndentation(a.indentation+a.appendText),i);if(a.indentAction===lc.Indent)return e._typeCommand(o,"\n"+t.normalizeIndentation(a.indentation+a.appendText),i);if(a.indentAction===lc.IndentOutdent){var u=t.normalizeIndentation(a.indentation),l=t.normalizeIndentation(a.indentation+a.appendText),c="\n"+l+"\n"+u;return i?new rS(o,c,!0):new sS(o,c,-1,l.length-u.length,!0)}if(a.indentAction===lc.Outdent){var d=e.unshiftIndent(t,a.indentation);return e._typeCommand(o,"\n"+t.normalizeIndentation(d+a.appendText),i)}}var h=n.getLineContent(o.startLineNumber),A=Hr(h).substring(0,o.startColumn-1);if(t.autoIndent>=4){var p=Pc.getIndentForEnter(t.autoIndent,n,o,{unshiftIndent:function(n){return e.unshiftIndent(t,n)},shiftIndent:function(n){return e.shiftIndent(t,n)},normalizeIndentation:function(e){return t.normalizeIndentation(e)}});if(p){var f=ay.visibleColumnFromColumn2(t,n,o.getEndPosition()),g=o.endColumn,m="\n";A!==t.normalizeIndentation(p.beforeEnter)&&(m=t.normalizeIndentation(p.beforeEnter)+h.substring(A.length,o.startColumn-1)+"\n",o=new vn(o.startLineNumber,1,o.endLineNumber,o.endColumn));var v=n.getLineContent(o.endLineNumber),_=Ur(v);if(o=_>=0?o.setEndPosition(o.endLineNumber,Math.max(o.endColumn,_+1)):o.setEndPosition(o.endLineNumber,n.getLineMaxColumn(o.endLineNumber)),i)return new rS(o,m+t.normalizeIndentation(p.afterEnter),!0);var y=0;return g<=_+1&&(t.insertSpaces||(f=Math.ceil(f/t.indentSize)),y=Math.min(f+1-t.normalizeIndentation(p.afterEnter).length-1,0)),new sS(o,m+t.normalizeIndentation(p.afterEnter),0,y,!0)}}return e._typeCommand(o,"\n"+t.normalizeIndentation(A),i)},e._isAutoIndentType=function(e,t,n){if(e.autoIndent<4)return!1;for(var i=0,o=n.length;i<o;i++)if(!t.isCheapToTokenize(n[i].getEndPosition().lineNumber))return!1;return!0},e._runAutoIndentType=function(t,n,i,o){var r=Pc.getIndentationAtPosition(n,i.startLineNumber,i.startColumn),s=Pc.getIndentActionForType(t.autoIndent,n,i,o,{shiftIndent:function(n){return e.shiftIndent(t,n)},unshiftIndent:function(n){return e.unshiftIndent(t,n)}});if(null===s)return null;if(s!==t.normalizeIndentation(r)){var a=n.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===a?e._typeCommand(new vn(i.startLineNumber,0,i.endLineNumber,i.endColumn),t.normalizeIndentation(s)+o,!1):e._typeCommand(new vn(i.startLineNumber,0,i.endLineNumber,i.endColumn),t.normalizeIndentation(s)+n.getLineContent(i.startLineNumber).substring(a-1,i.startColumn-1)+o,!1)}return null},e._isAutoClosingOvertype=function(e,t,n,i,o){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairsClose2.has(o))return!1;for(var r=0,s=n.length;r<s;r++){var a=n[r];if(!a.isEmpty())return!1;var u=a.getPosition(),l=t.getLineContent(u.lineNumber),c=l.charAt(u.column-1);if(c!==o)return!1;var d=uy(o),h=u.column>2?l.charCodeAt(u.column-2):0;if(92===h&&d)return!1;if("auto"===e.autoClosingOvertype){for(var A=!1,p=0,f=i.length;p<f;p++){var g=i[p];if(u.lineNumber===g.startLineNumber&&u.column===g.startColumn){A=!0;break}}if(!A)return!1}}return!0},e._runAutoClosingOvertype=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s<a;s++){var u=i[s],l=u.getPosition(),c=new vn(l.lineNumber,l.column,l.lineNumber,l.column+1);r[s]=new iS(c,o)}return new sy(1,r,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e._isBeforeClosingBrace=function(e,t,n){var i=e.autoClosingPairsClose2.get(n);if(!i)return!1;for(var o=t.open===t.close,r=0,s=i;r<s.length;r++){var a=s[r],u=a.open===a.close;if(o||!u)return!0}return!1},e._findAutoClosingPairOpen=function(e,t,n,i){var o=e.autoClosingPairsOpen2.get(i);if(!o)return null;for(var r=null,s=0,a=o;s<a.length;s++){var u=a[s];if(null===r||u.open.length>r.open.length){for(var l=!0,c=0,d=n;c<d.length;c++){var h=d[c],A=t.getValueInRange(new vn(h.lineNumber,h.column-u.open.length+1,h.lineNumber,h.column));if(A+i!==u.open){l=!1;break}}l&&(r=u)}}return r},e._isAutoClosingOpenCharType=function(t,n,i,o,r){var s=uy(o),a=s?t.autoClosingQuotes:t.autoClosingBrackets;if("never"===a)return null;var u=this._findAutoClosingPairOpen(t,n,i.map((function(e){return e.getPosition()})),o);if(!u)return null;for(var l=s?t.shouldAutoCloseBefore.quote:t.shouldAutoCloseBefore.bracket,c=0,d=i.length;c<d;c++){var h=i[c];if(!h.isEmpty())return null;var A=h.getPosition(),p=n.getLineContent(A.lineNumber);if(p.length>A.column-1){var f=p.charAt(A.column-1),g=e._isBeforeClosingBrace(t,u,f);if(!g&&!l(f))return null}if(!n.isCheapToTokenize(A.lineNumber))return null;if(1===u.open.length&&s&&"always"!==a){var m=Fv(t.wordSeparators);if(r&&A.column>1&&0===m.get(p.charCodeAt(A.column-2)))return null;if(!r&&A.column>2&&0===m.get(p.charCodeAt(A.column-3)))return null}n.forceTokenization(A.lineNumber);var v=n.getLineTokens(A.lineNumber),_=!1;try{_=Pc.shouldAutoClosePair(u,v,r?A.column:A.column-1)}catch(y){Ae(y)}if(!_)return null}return u},e._runAutoClosingOpenCharType=function(e,t,n,i,o,r,s){for(var a=[],u=0,l=i.length;u<l;u++){var c=i[u];a[u]=new SS(c,o,r,s.close)}return new sy(1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},e._shouldSurroundChar=function(e,t){return uy(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround},e._isSurroundSelectionType=function(t,n,i,o){if(!e._shouldSurroundChar(t,o)||!t.surroundingPairs.hasOwnProperty(o))return!1;for(var r=uy(o),s=0,a=i.length;s<a;s++){var u=i[s];if(u.isEmpty())return!1;for(var l=!0,c=u.startLineNumber;c<=u.endLineNumber;c++){var d=n.getLineContent(c),h=c===u.startLineNumber?u.startColumn-1:0,A=c===u.endLineNumber?u.endColumn-1:d.length,p=d.substring(h,A);if(/[^ \t]/.test(p)){l=!1;break}}if(l)return!1;if(r&&u.startLineNumber===u.endLineNumber&&u.startColumn+1===u.endColumn){var f=n.getValueInRange(u);if(uy(f))return!1}}return!0},e._runSurroundSelectionType=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s<a;s++){var u=i[s],l=t.surroundingPairs[o];r[s]=new wS(u,o,l)}return new sy(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._isTypeInterceptorElectricChar=function(e,t,n){return!(1!==n.length||!t.isCheapToTokenize(n[0].getEndPosition().lineNumber))},e._typeInterceptorElectricChar=function(e,t,n,i,o){if(!t.electricChars.hasOwnProperty(o)||!i.isEmpty())return null;var r=i.getPosition();n.forceTokenization(r.lineNumber);var s,a=n.getLineTokens(r.lineNumber);try{s=Pc.onElectricCharacter(o,a,r.column)}catch(_){return Ae(_),null}if(!s)return null;if(s.matchOpenBracket){var u=(a.getLineContent()+o).lastIndexOf(s.matchOpenBracket)+1,l=n.findMatchingBracketUp(s.matchOpenBracket,{lineNumber:r.lineNumber,column:u});if(l){if(l.startLineNumber===r.lineNumber)return null;var c=n.getLineContent(l.startLineNumber),d=Hr(c),h=t.normalizeIndentation(d),A=n.getLineContent(r.lineNumber),p=n.getLineFirstNonWhitespaceColumn(r.lineNumber)||r.column,f=A.substring(p-1,r.column-1),g=h+f+o,m=new vn(r.lineNumber,1,r.lineNumber,r.column),v=new iS(m,g);return new sy(1,[v],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},e.compositionEndWithInterceptors=function(e,t,n,i,o,r){if(!i||yn.selectionsArrEqual(i,o))return null;for(var s=null,a=0,u=o;a<u.length;a++){var l=u[a];if(!l.isEmpty())return null;var c=l.getPosition(),d=n.getValueInRange(new vn(c.lineNumber,c.column-1,c.lineNumber,c.column));if(null===s)s=d;else if(s!==d)return null}if(!s)return null;if(this._isAutoClosingOvertype(t,n,o,r,s)){var h=o.map((function(e){return new iS(new vn(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)}));return new sy(1,h,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var A=this._isAutoClosingOpenCharType(t,n,o,s,!1);return A?this._runAutoClosingOpenCharType(e,t,n,o,s,!1,A):null},e.typeWithInterceptors=function(t,n,i,o,r,s){if("\n"===s){for(var a=[],u=0,l=o.length;u<l;u++)a[u]=e._enter(n,i,!1,o[u]);return new sy(1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(n,i,o)){var c=[],d=!1;for(u=0,l=o.length;u<l;u++)if(c[u]=this._runAutoIndentType(n,i,o[u],s),!c[u]){d=!0;break}if(!d)return new sy(1,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(n,i,o,r,s))return this._runAutoClosingOvertype(t,n,i,o,s);var h=this._isAutoClosingOpenCharType(n,i,o,s,!0);if(h)return this._runAutoClosingOpenCharType(t,n,i,o,s,!0,h);if(this._isSurroundSelectionType(n,i,o,s))return this._runSurroundSelectionType(t,n,i,o,s);if(this._isTypeInterceptorElectricChar(n,i,o)){var A=this._typeInterceptorElectricChar(t,n,i,o[0],s);if(A)return A}var p=[];for(u=0,l=o.length;u<l;u++)p[u]=new iS(o[u],s);var f=1!==t;return" "===s&&(f=!0),new sy(1,p,{shouldPushStackElementBefore:f,shouldPushStackElementAfter:!1})},e.typeWithoutInterceptors=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s<a;s++)r[s]=new iS(i[s],o);return new sy(1,r,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e.lineInsertBefore=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o].positionLineNumber;if(1===s)i[o]=new rS(new vn(1,1,1,1),"\n");else{s--;var a=t.getLineMaxColumn(s);i[o]=this._enter(e,t,!1,new vn(s,a,s,a))}}return i},e.lineInsertAfter=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o].positionLineNumber,a=t.getLineMaxColumn(s);i[o]=this._enter(e,t,!1,new vn(s,a,s,a))}return i},e.lineBreakInsert=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++)i[o]=this._enter(e,t,!0,n[o]);return i},e}(),SS=function(e){function t(t,n,i,o){var r=e.call(this,t,(i?n:"")+o,0,-o.length)||this;return r._openCharacter=n,r._closeCharacter=o,r.closeCharacterRange=null,r.enclosingRange=null,r}return bS(t,e),t.prototype.computeCursorState=function(t,n){var i=n.getInverseEditOperations(),o=i[0].range;return this.closeCharacterRange=new vn(o.startLineNumber,o.endColumn-this._closeCharacter.length,o.endLineNumber,o.endColumn),this.enclosingRange=new vn(o.startLineNumber,o.endColumn-this._openCharacter.length-this._closeCharacter.length,o.endLineNumber,o.endColumn),e.prototype.computeCursorState.call(this,t,n)},t}(sS);(function(e){e.editorTextFocus=new Fp("editorTextFocus",!1),e.focus=new Fp("editorFocus",!1),e.textInputFocus=new Fp("textInputFocus",!1),e.readOnly=new Fp("editorReadonly",!1),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new Fp("editorHasSelection",!1),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new Fp("editorHasMultipleSelections",!1),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new Fp("editorTabMovesFocus",!1),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new Fp("isInEmbeddedEditor",!1),e.canUndo=new Fp("canUndo",!1),e.canRedo=new Fp("canRedo",!1),e.languageId=new Fp("editorLangId",""),e.hasCompletionItemProvider=new Fp("editorHasCompletionItemProvider",!1),e.hasCodeActionsProvider=new Fp("editorHasCodeActionsProvider",!1),e.hasCodeLensProvider=new Fp("editorHasCodeLensProvider",!1),e.hasDefinitionProvider=new Fp("editorHasDefinitionProvider",!1),e.hasDeclarationProvider=new Fp("editorHasDeclarationProvider",!1),e.hasImplementationProvider=new Fp("editorHasImplementationProvider",!1),e.hasTypeDefinitionProvider=new Fp("editorHasTypeDefinitionProvider",!1),e.hasHoverProvider=new Fp("editorHasHoverProvider",!1),e.hasDocumentHighlightProvider=new Fp("editorHasDocumentHighlightProvider",!1),e.hasDocumentSymbolProvider=new Fp("editorHasDocumentSymbolProvider",!1),e.hasReferenceProvider=new Fp("editorHasReferenceProvider",!1),e.hasRenameProvider=new Fp("editorHasRenameProvider",!1),e.hasSignatureHelpProvider=new Fp("editorHasSignatureHelpProvider",!1),e.hasDocumentFormattingProvider=new Fp("editorHasDocumentFormattingProvider",!1),e.hasDocumentSelectionFormattingProvider=new Fp("editorHasDocumentSelectionFormattingProvider",!1),e.hasMultipleDocumentFormattingProvider=new Fp("editorHasMultipleDocumentFormattingProvider",!1),e.hasMultipleDocumentSelectionFormattingProvider=new Fp("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(_S||(_S={}));var BS,ES,xS,LS,DS=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)}}(),NS=0,kS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DS(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditorCommand(i,n||{})},t}(vg);function IS(e){e.register()}(function(e){var t=function(e){if(!ga(e))return!1;var t=e;return!!fa(t.to)&&(!(!_a(t.by)&&!fa(t.by))&&(!(!_a(t.value)&&!ma(t.value))&&!(!_a(t.revealCursor)&&!va(t.revealCursor))))};function n(t){var n,i;switch(t.to){case e.RawDirection.Up:n=1;break;case e.RawDirection.Down:n=2;break;default:return null}switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Page:i=3;break;case e.RawUnit.HalfPage:i=4;break;default:i=2}var o=Math.floor(t.value||1),r=!!t.revealCursor;return{direction:n,unit:i,value:o,revealCursor:r,select:!!t.select}}e.description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Down:"down"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},e.parse=n})(BS||(BS={})),function(e){var t=function(e){if(!ga(e))return!1;var t=e;return!!ma(t.lineNumber)&&!(!_a(t.at)&&!fa(t.at))};e.description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:t,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(ES||(ES={})),function(e){var t=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[gS.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(t.source,!0,0,0)},t}(kS);e.MoveTo=bg(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=bg(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,3,n.viewStates.map((function(e){return ry.fromViewState(e)}))),e.setColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(t.source,!0,n.reversed?1:2,0)},t}(kS);e.ColumnSelect=bg(new(function(e){function t(){return e.call(this,{id:"columnSelect",precondition:void 0})||this}return DS(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){var o=e.model.validatePosition(i.position),r=e.validateViewPosition(new mn(i.viewPosition.lineNumber,i.viewPosition.column),o),s=i.doColumnSelect?n.fromViewLineNumber:r.lineNumber,a=i.doColumnSelect?n.fromViewVisualColumn:i.mouseColumn-1;return nS.columnSelect(e.config,e.viewModel,s,a,r.lineNumber,i.mouseColumn-1)},t}(n))),e.CursorColumnSelectLeft=bg(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:3599,linux:{primary:0}}})||this}return DS(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return nS.columnSelectLeft(e.config,e.viewModel,n)},t}(n))),e.CursorColumnSelectRight=bg(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:3601,linux:{primary:0}}})||this}return DS(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return nS.columnSelectRight(e.config,e.viewModel,n)},t}(n)));var i=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return DS(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return nS.columnSelectUp(e.config,e.viewModel,n,this._isPaged)},t}(n);e.CursorColumnSelectUp=bg(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=bg(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:3595,linux:{primary:0}}}));var o=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return DS(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return nS.columnSelectDown(e.config,e.viewModel,n,this._isPaged)},t}(n);e.CursorColumnSelectDown=bg(new o({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=bg(new o({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:3596,linux:{primary:0}}}));var r=function(e){function t(){return e.call(this,{id:"cursorMove",precondition:void 0,description:fS.description})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=fS.parse(t);n&&this._runCursorMove(e,t.source,n)},t.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,3,gS.move(e.context,e.getAll(),n)),e.reveal(t,!0,0,0)},t}(kS);e.CursorMoveImpl=r,e.CursorMove=bg(new r);var s=function(t){function n(e){var n=t.call(this,e)||this;return n._staticArgs=e.args,n}return DS(n,t),n.prototype.runCoreEditorCommand=function(t,n){var i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,i)},n}(kS);e.CursorLeft=bg(new s({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=bg(new s({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:1039}})),e.CursorRight=bg(new s({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=bg(new s({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:1041}})),e.CursorUp=bg(new s({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=bg(new s({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=bg(new s({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:11}})),e.CursorPageUpSelect=bg(new s({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:1035}})),e.CursorDown=bg(new s({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=bg(new s({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=bg(new s({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:12}})),e.CursorPageDownSelect=bg(new s({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:1036}})),e.CreateCursor=bg(new(function(e){function t(){return e.call(this,{id:"createCursor",precondition:void 0})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n,i=e.context;n=t.wholeLine?gS.line(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition):gS.moveTo(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var o=e.getAll();if(o.length>1)for(var r=n.modelState?n.modelState.position:null,s=n.viewState?n.viewState.position:null,a=0,u=o.length;a<u;a++){var l=o[a];if((!r||l.modelState.selection.containsPosition(r))&&(!s||l.viewState.selection.containsPosition(s)))return o.splice(a,1),e.context.model.pushStackElement(),void e.setStates(t.source,3,o)}o.push(n),e.context.model.pushStackElement(),e.setStates(t.source,3,o)},t}(kS))),e.LastCursorMoveToSelect=bg(new(function(e){function t(){return e.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),o=e.getAll(),r=o.slice(0);r[i]=gS.moveTo(n,o[i],!0,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,r)},t}(kS)));var a=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,gS.moveToBeginningOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},t}(kS);e.CursorHome=bg(new a({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=bg(new a({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}})),e.CursorLineStart=bg(new(function(e){function t(){return e.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:0,mac:{primary:287}}})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},t.prototype._exec=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r=t[i],s=r.modelState.position.lineNumber;n[i]=ry.fromModelState(r.modelState.move(!1,s,1,0))}return n},t}(kS)));var u=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,gS.moveToEndOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},t}(kS);e.CursorEnd=bg(new u({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}}})),e.CursorEndSelect=bg(new u({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}}})),e.CursorLineEnd=bg(new(function(e){function t(){return e.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:0,mac:{primary:291}}})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},t.prototype._exec=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r=t[i],s=r.modelState.position.lineNumber,a=e.model.getLineMaxColumn(s);n[i]=ry.fromModelState(r.modelState.move(!1,s,a,0))}return n},t}(kS)));var l=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,gS.moveToBeginningOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},t}(kS);e.CursorTop=bg(new l({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=bg(new l({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:3086,mac:{primary:3088}}}));var c=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,gS.moveToEndOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},t}(kS);e.CursorBottom=bg(new c({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=bg(new c({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:3085,mac:{primary:3090}}}));var d=function(e){function t(){return e.call(this,{id:"editorScroll",precondition:void 0,description:BS.description})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=BS.parse(t);n&&this._runEditorScroll(e,t.source,n)},t.prototype._runEditorScroll=function(e,t,n){var i=this._computeDesiredScrollTop(e.context,n);if(n.revealCursor){var o=e.context.getCompletelyVisibleViewRangeAtScrollTop(i);e.setStates(t,3,[gS.findPositionInViewportIfOutside(e.context,e.getPrimaryCursor(),o,n.select)])}e.scrollTo(i)},t.prototype._computeDesiredScrollTop=function(e,t){if(1===t.unit){var n=e.getCompletelyVisibleModelRange(),i=void 0;i=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);var o=e.convertModelPositionToViewPosition(new mn(i,1));return e.getVerticalOffsetForViewLine(o.lineNumber)}var r;r=3===t.unit?e.config.pageSize*t.value:4===t.unit?Math.round(e.config.pageSize/2)*t.value:t.value;var s=(1===t.direction?-1:1)*r;return e.getCurrentScrollTop()+s*e.config.lineHeight},t}(kS);e.EditorScrollImpl=d,e.EditorScroll=bg(new d),e.ScrollLineUp=bg(new(function(t){function n(){return t.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:2064,mac:{primary:267}}})||this}return DS(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},n}(kS))),e.ScrollPageUp=bg(new(function(t){function n(){return t.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})||this}return DS(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},n}(kS))),e.ScrollLineDown=bg(new(function(t){function n(){return t.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:2066,mac:{primary:268}}})||this}return DS(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},n}(kS))),e.ScrollPageDown=bg(new(function(t){function n(){return t.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})||this}return DS(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},n}(kS)));var h=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[gS.word(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position)]),e.reveal(t.source,!0,0,0)},t}(kS);e.WordSelect=bg(new h({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=bg(new h({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=bg(new(function(e){function t(){return e.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),o=e.getAll(),r=o.slice(0),s=o[i];r[i]=gS.word(n,s,s.modelState.hasSelection(),t.position),n.model.pushStackElement(),e.setStates(t.source,3,r)},t}(kS)));var A=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[gS.line(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(t.source,!1,0,0)},t}(kS);e.LineSelect=bg(new A({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=bg(new A({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var p=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.getLastAddedCursorIndex(),i=e.getAll(),o=i.slice(0);o[n]=gS.line(e.context,i[n],this._inSelectionMode,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,o)},t}(kS);e.LastCursorLineSelect=bg(new p({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=bg(new p({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.ExpandLineSelection=bg(new(function(e){function t(){return e.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:2090}})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,gS.expandLineSelection(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},t}(kS))),e.CancelSelection=bg(new(function(e){function t(){return e.call(this,{id:"cancelSelection",precondition:_S.hasNonEmptySelection,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:9,secondary:[1033]}})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[gS.cancelSelection(e.context,e.getPrimaryCursor())]),e.reveal(t.source,!0,0,0)},t}(kS))),e.RemoveSecondaryCursors=bg(new(function(e){function t(){return e.call(this,{id:"removeSecondaryCursors",precondition:_S.hasMultipleSelections,kbOpts:{weight:NS+1,kbExpr:_S.textInputFocus,primary:9,secondary:[1033]}})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[e.getPrimaryCursor()]),e.reveal(t.source,!0,0,0)},t}(kS))),e.RevealLine=bg(new(function(e){function t(){return e.call(this,{id:"revealLine",precondition:void 0,description:ES.description})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=t,i=(n.lineNumber||0)+1;i<1&&(i=1);var o=e.context.model.getLineCount();i>o&&(i=o);var r=new vn(i,1,i,e.context.model.getLineMaxColumn(i)),s=0;if(n.at)switch(n.at){case ES.RawAtArgument.Top:s=3;break;case ES.RawAtArgument.Center:s=1;break;case ES.RawAtArgument.Bottom:s=4;break;default:break}var a=e.context.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,a,s,0)},t}(kS))),e.SelectAll=bg(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:void 0})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[gS.selectAll(e.context,e.getPrimaryCursor())])},t}(kS))),e.SetSelection=bg(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:void 0})||this}return DS(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[ry.fromModelSelection(t.selection)])},t}(kS)))}(xS||(xS={})),function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return DS(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditingCommand(t,i,n||{})},t}(vg);e.CoreEditingCommand=t,e.LineBreakInsert=bg(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:_S.writable,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:0,mac:{primary:301}}})||this}return DS(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,CS.lineBreakInsert(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))))},t}(t))),e.Outdent=bg(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:_S.writable,kbOpts:{weight:NS,kbExpr:Cp.and(_S.editorTextFocus,_S.tabDoesNotMoveFocus),primary:1026}})||this}return DS(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,CS.outdent(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},t}(t))),e.Tab=bg(new(function(e){function t(){return e.call(this,{id:"tab",precondition:_S.writable,kbOpts:{weight:NS,kbExpr:Cp.and(_S.editorTextFocus,_S.tabDoesNotMoveFocus),primary:2}})||this}return DS(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,CS.tab(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},t}(t))),e.DeleteLeft=bg(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:_S.writable,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return DS(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var i=cS.deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),o=i[0],r=i[1];o&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(2)},t}(t))),e.DeleteRight=bg(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:_S.writable,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return DS(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var i=cS.deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),o=i[0],r=i[1];o&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(3)},t}(t)))}(LS||(LS={}));var FS=function(e){function t(t){var n=e.call(this,t)||this;return n._editorHandler=t.editorHandler,n._inputHandler=t.inputHandler,n}return DS(t,e),t.prototype.runCommand=function(e,t){var n=e.get(kn).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var i=document.activeElement;if(!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)){var o=e.get(kn).getActiveCodeEditor();return o?(o.focus(),this._runEditorHandler(e,o,t)):void 0}document.execCommand(this._inputHandler)},t.prototype._runEditorHandler=function(e,t,n){var i=this._editorHandler;"string"===typeof i?t.trigger("keyboard",i,n):(n=n||{},n.source="keyboard",i.runEditorCommand(e,t,n))},t}(mg),MS=function(e){function t(t,n,i){var o=e.call(this,{id:t,precondition:void 0,description:i})||this;return o._handlerId=n,o}return DS(t,e),t.prototype.runCommand=function(e,t){var n=e.get(kn).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)},t}(mg);function OS(e,t){IS(new MS("default:"+e,e)),IS(new MS(e,e,t))}IS(new FS({editorHandler:xS.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:_S.textInputFocus,kbOpts:{weight:NS,kbExpr:null,primary:2079},menuOpts:{menuId:23,group:"1_basic",title:r({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),IS(new FS({editorHandler:Lu.Undo,inputHandler:"undo",id:Lu.Undo,precondition:_S.writable,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:2104},menuOpts:{menuId:15,group:"1_do",title:r({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),IS(new MS("default:"+Lu.Undo,Lu.Undo)),IS(new FS({editorHandler:Lu.Redo,inputHandler:"redo",id:Lu.Redo,precondition:_S.writable,kbOpts:{weight:NS,kbExpr:_S.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:{menuId:15,group:"1_do",title:r({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),IS(new MS("default:"+Lu.Redo,Lu.Redo)),OS(Lu.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),OS(Lu.ReplacePreviousChar),OS(Lu.CompositionStart),OS(Lu.CompositionEnd),OS(Lu.Paste),OS(Lu.Cut);var TS=function(){function e(e,t,n,i){this.configuration=e,this.viewModel=t,this.outgoingEvents=n,this.commandDelegate=i}return e.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t)},e.prototype.paste=function(e,t,n,i){this.commandDelegate.paste(e,t,n,i)},e.prototype.type=function(e,t){this.commandDelegate.type(e,t)},e.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)},e.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},e.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},e.prototype.cut=function(e){this.commandDelegate.cut(e)},e.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(xS.SetSelection,{source:e,selection:t})},e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new mn(e.lineNumber,t):e},e.prototype._hasMulticursorModifier=function(e){switch(this.configuration.options.get(57)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey}return!1},e.prototype._hasNonMulticursorModifier=function(e){switch(this.configuration.options.get(57)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey}return!1},e.prototype.dispatchMouse=function(e){var t=s["d"]&&this.configuration.options.get(77);e.middleButton&&!t?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)},e.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this._convertViewToModelPosition(e),viewPosition:e}},e.prototype.moveTo=function(e){this._execMouseCommand(xS.MoveTo,this._usualArgs(e))},e.prototype._moveToSelect=function(e){this._execMouseCommand(xS.MoveToSelect,this._usualArgs(e))},e.prototype._columnSelect=function(e,t,n){e=this._validateViewColumn(e),this._execMouseCommand(xS.ColumnSelect,{position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:n})},e.prototype._createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(xS.CreateCursor,{position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},e.prototype._lastCursorMoveToSelect=function(e){this._execMouseCommand(xS.LastCursorMoveToSelect,this._usualArgs(e))},e.prototype._wordSelect=function(e){this._execMouseCommand(xS.WordSelect,this._usualArgs(e))},e.prototype._wordSelectDrag=function(e){this._execMouseCommand(xS.WordSelectDrag,this._usualArgs(e))},e.prototype._lastCursorWordSelect=function(e){this._execMouseCommand(xS.LastCursorWordSelect,this._usualArgs(e))},e.prototype._lineSelect=function(e){this._execMouseCommand(xS.LineSelect,this._usualArgs(e))},e.prototype._lineSelectDrag=function(e){this._execMouseCommand(xS.LineSelectDrag,this._usualArgs(e))},e.prototype._lastCursorLineSelect=function(e){this._execMouseCommand(xS.LastCursorLineSelect,this._usualArgs(e))},e.prototype._lastCursorLineSelectDrag=function(e){this._execMouseCommand(xS.LastCursorLineSelectDrag,this._usualArgs(e))},e.prototype._selectAll=function(){this._execMouseCommand(xS.SelectAll,{})},e.prototype._convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},e.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},e.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},e.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},e.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},e.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},e.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},e.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},e.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},e.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},e.prototype.emitMouseWheel=function(e){this.outgoingEvents.emitMouseWheel(e)},e}(),PS=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)}}(),RS=function(e){function t(t){var n=e.call(this)||this;return n.onDidScroll=null,n.onDidGainFocus=null,n.onDidLoseFocus=null,n.onKeyDown=null,n.onKeyUp=null,n.onContextMenu=null,n.onMouseMove=null,n.onMouseLeave=null,n.onMouseUp=null,n.onMouseDown=null,n.onMouseDrag=null,n.onMouseDrop=null,n.onMouseWheel=null,n._viewModel=t,n}return PS(t,e),t.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)},t.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},t.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},t.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)},t.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)},t.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseWheel=function(e){this.onMouseWheel&&this.onMouseWheel(e)},t.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e},t.prototype._convertViewToModelMouseTarget=function(e){return t.convertViewToModelMouseTarget(e,this._viewModel.coordinatesConverter)},t.convertViewToModelMouseTarget=function(e,t){return new US(e.element,e.type,e.mouseColumn,e.position?t.convertViewPositionToModelPosition(e.position):null,e.range?t.convertViewRangeToModelRange(e.range):null,e.detail)},t}(Ie),US=function(){function e(e,t,n,i,o,r){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,this.range=o,this.detail=r}return e.prototype.toString=function(){return dy.toString(this)},e}(),HS=function(){function e(e){this._createLine=e,this._set(1,[])}return e.prototype.flush=function(){this._set(1,[])},e.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e},e.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},e.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},e.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},e.prototype.getCount=function(){return this._lines.length},e.prototype.getLine=function(e){var t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(t<n){var o=t-e+1;return this._rendLineNumberStart-=o,null}if(e>i)return null;for(var r=0,s=0,a=n;a<=i;a++){var u=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===s?(r=u,s=1):s++)}if(e<n){var l=0;l=t<n?t-e+1:n-e,this._rendLineNumberStart-=l}var c=this._lines.splice(r,s);return c},e.prototype.onLinesChanged=function(e,t){if(0===this.getCount())return!1;for(var n=this.getStartLineNumber(),i=this.getEndLineNumber(),o=!1,r=e;r<=t;r++)r>=n&&r<=i&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,i=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>o)return null;if(n+e>o){var r=this._lines.splice(e-this._rendLineNumberStart,o-e+1);return r}for(var s=[],a=0;a<n;a++)s[a]=this._createLine();var u=e-this._rendLineNumberStart,l=this._lines.slice(0,u),c=this._lines.slice(u,this._lines.length-n),d=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=l.concat(s).concat(c),d},e.prototype.onTokensChanged=function(e){if(0===this.getCount())return!1;for(var t=this.getStartLineNumber(),n=this.getEndLineNumber(),i=!1,o=0,r=e.length;o<r;o++){var s=e[o];if(!(s.toLineNumber<t||s.fromLineNumber>n))for(var a=Math.max(t,s.fromLineNumber),u=Math.min(n,s.toLineNumber),l=a;l<=u;l++){var c=l-this._rendLineNumberStart;this._lines[c].onTokensChanged(),i=!0}}return i},e}(),QS=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new HS((function(){return t._host.createVisibleLine()}))}return e.prototype._createDomNode=function(){var e=Dg(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},e.prototype.onConfigurationChanged=function(e){return!!e.hasChanged(103)},e.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var o=t[n].getDomNode();o&&this.domNode.domNode.removeChild(o)}return!0},e.prototype.onLinesInserted=function(e){var t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var o=t[n].getDomNode();o&&this.domNode.domNode.removeChild(o)}return!0},e.prototype.onScrollChanged=function(e){return e.scrollTopChanged},e.prototype.onTokensChanged=function(e){return this._linesCollection.onTokensChanged(e.ranges)},e.prototype.onZonesChanged=function(e){return!0},e.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},e.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},e.prototype.getVisibleLine=function(e){return this._linesCollection.getLine(e)},e.prototype.renderLines=function(e){var t=this._linesCollection._get(),n=new VS(this.domNode.domNode,this._host,e),i={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},o=n.render(i,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(o.rendLineNumberStart,o.lines)},e}(),VS=function(){function e(e,t,n){this.domNode=e,this.host=t,this.viewportData=n}return e.prototype.render=function(e,t,n,i){var o={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(o.rendLineNumberStart+o.linesLength-1<t||n<o.rendLineNumberStart){o.rendLineNumberStart=t,o.linesLength=n-t+1,o.lines=[];for(var r=t;r<=n;r++)o.lines[r-t]=this.host.createVisibleLine();return this._finishRendering(o,!0,i),o}if(this._renderUntouchedLines(o,Math.max(t-o.rendLineNumberStart,0),Math.min(n-o.rendLineNumberStart,o.linesLength-1),i,t),o.rendLineNumberStart>t){var s=t,a=Math.min(n,o.rendLineNumberStart-1);s<=a&&(this._insertLinesBefore(o,s,a,i,t),o.linesLength+=a-s+1)}else if(o.rendLineNumberStart<t){var u=Math.min(o.linesLength,t-o.rendLineNumberStart);u>0&&(this._removeLinesBefore(o,u),o.linesLength-=u)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1<n){s=o.rendLineNumberStart+o.linesLength,a=n;s<=a&&(this._insertLinesAfter(o,s,a,i,t),o.linesLength+=a-s+1)}else if(o.rendLineNumberStart+o.linesLength-1>n){s=Math.max(0,n-o.rendLineNumberStart+1),a=o.linesLength-1,u=a-s+1;u>0&&(this._removeLinesAfter(o,u),o.linesLength-=u)}return this._finishRendering(o,!1,i),o},e.prototype._renderUntouchedLines=function(e,t,n,i,o){for(var r=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var u=r+a;s[a].layoutLine(u,i[u-o])}},e.prototype._insertLinesBefore=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var n=0;n<t;n++){var i=e.lines[n].getDomNode();i&&this.domNode.removeChild(i)}e.lines.splice(0,t)},e.prototype._insertLinesAfter=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=e.lines.concat(r)},e.prototype._removeLinesAfter=function(e,t){for(var n=e.linesLength-t,i=0;i<t;i++){var o=e.lines[n+i].getDomNode();o&&this.domNode.removeChild(o)}e.lines.splice(n,t)},e.prototype._finishRenderingNewLines=function(e,t,n,i){var o=this.domNode.lastChild;t||!o?this.domNode.innerHTML=n:o.insertAdjacentHTML("afterend",n);for(var r=this.domNode.lastChild,s=e.linesLength-1;s>=0;s--){var a=e.lines[s];i[s]&&(a.setDomNode(r),r=r.previousSibling)}},e.prototype._finishRenderingInvalidLines=function(e,t,n){var i=document.createElement("div");i.innerHTML=t;for(var o=0;o<e.linesLength;o++){var r=e.lines[o];if(n[o]){var s=i.firstChild,a=r.getDomNode();a.parentNode.replaceChild(s,a),r.setDomNode(s)}}},e.prototype._finishRendering=function(t,n,i){var o=e._sb,r=t.linesLength,s=t.lines,a=t.rendLineNumberStart,u=[];o.reset();for(var l=!1,c=0;c<r;c++){var d=s[c];u[c]=!1;var h=d.getDomNode();if(!h){var A=d.renderLine(c+a,i[c],this.viewportData,o);A&&(u[c]=!0,l=!0)}}l&&this._finishRenderingNewLines(t,n,o.build(),u),o.reset();var p=!1,f=[];for(c=0;c<r;c++){d=s[c];if(f[c]=!1,!u[c]){A=d.renderLine(c+a,i[c],this.viewportData,o);A&&(f[c]=!0,p=!0)}}p&&this._finishRenderingInvalidLines(t,o.build(),f)},e._sb=eh(1e5),e}(),WS=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)}}(),KS=function(e){function t(t){var n=e.call(this,t)||this;return n._visibleLines=new QS(n),n.domNode=n._visibleLines.domNode,n._dynamicOverlays=[],n._isFocused=!1,n.domNode.setClassName("view-overlays"),n}return WS(t,e),t.prototype.shouldRender=function(){if(e.prototype.shouldRender.call(this))return!0;for(var t=0,n=this._dynamicOverlays.length;t<n;t++){var i=this._dynamicOverlays[t];if(i.shouldRender())return!0}return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0,n=this._dynamicOverlays.length;t<n;t++){var i=this._dynamicOverlays[t];i.dispose()}this._dynamicOverlays=[]},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new zS(this._context.configuration,this._dynamicOverlays)},t.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++){var o=this._visibleLines.getVisibleLine(i);o.onConfigurationChanged(e)}return!0},t.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e)},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!0},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onScrollChanged=function(e){return this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},t.prototype.prepareRender=function(e){for(var t=this._dynamicOverlays.filter((function(e){return e.shouldRender()})),n=0,i=t.length;n<i;n++){var o=t[n];o.prepareRender(e),o.onDidRender()}},t.prototype.render=function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)},t.prototype._viewOverlaysRender=function(e){this._visibleLines.renderLines(e.viewportData)},t}(Jg),zS=function(){function e(e,t){this._configuration=e,this._lineHeight=this._configuration.options.get(47),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}return e.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},e.prototype.setDomNode=function(e){this._domNode=Dg(e)},e.prototype.onContentChanged=function(){},e.prototype.onTokensChanged=function(){},e.prototype.onConfigurationChanged=function(e){this._lineHeight=this._configuration.options.get(47)},e.prototype.renderLine=function(e,t,n,i){for(var o="",r=0,s=this._dynamicOverlays.length;r<s;r++){var a=this._dynamicOverlays[r];o+=a.render(n.startLineNumber,e)}return this._renderedContent!==o&&(this._renderedContent=o,i.appendASCIIString('<div style="position:absolute;top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;width:100%;height:"),i.appendASCIIString(String(this._lineHeight)),i.appendASCIIString('px;">'),i.appendASCIIString(o),i.appendASCIIString("</div>"),!0)},e.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},e}(),jS=function(e){function t(t){var n=e.call(this,t)||this,i=n._context.configuration.options,o=i.get(103);return n._contentWidth=o.contentWidth,n.domNode.setHeight(0),n}return WS(t,e),t.prototype.onConfigurationChanged=function(t){var n=this._context.configuration.options,i=n.get(103);return this._contentWidth=i.contentWidth,e.prototype.onConfigurationChanged.call(this,t)||!0},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},t}(KS),GS=function(e){function t(t){var n=e.call(this,t)||this,i=n._context.configuration.options,o=i.get(103);return n._contentLeft=o.contentLeft,n.domNode.setClassName("margin-view-overlays"),n.domNode.setWidth(1),Zf.applyFontInfo(n.domNode,i.get(32)),n}return WS(t,e),t.prototype.onConfigurationChanged=function(t){var n=this._context.configuration.options;Zf.applyFontInfo(this.domNode,n.get(32));var i=n.get(103);return this._contentLeft=i.contentLeft,e.prototype.onConfigurationChanged.call(this,t)||!0},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t);var n=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(n),this.domNode.setWidth(this._contentLeft)},t}(KS),qS=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)}}(),YS=function(){function e(e,t){this.top=e,this.left=t}return e}(),XS=function(e){function t(t,n){var i=e.call(this,t)||this;return i._viewDomNode=n,i._widgets={},i.domNode=Dg(document.createElement("div")),Zg.write(i.domNode,1),i.domNode.setClassName("contentWidgets"),i.domNode.setPosition("absolute"),i.domNode.setTop(0),i.overflowingContentWidgetsDomNode=Dg(document.createElement("div")),Zg.write(i.overflowingContentWidgetsDomNode,2),i.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),i}return qS(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.onConfigurationChanged=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var o=i[n];this._widgets[o].onConfigurationChanged(e)}return!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLineMappingChanged=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var o=i[n];this._widgets[o].onLineMappingChanged(e)}return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.addWidget=function(e){var t=new JS(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t,n,i){var o=this._widgets[e.getId()];o.setPosition(t,n,i),this.setShouldRender()},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t];delete this._widgets[t];var i=n.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},t.prototype.shouldSuppressMouseDownOnWidget=function(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown},t.prototype.onBeforeRender=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var o=i[n];this._widgets[o].onBeforeRender(e)}},t.prototype.prepareRender=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var o=i[n];this._widgets[o].prepareRender(e)}},t.prototype.render=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var o=i[n];this._widgets[o].render(e)}},t}(Jg),JS=function(){function e(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Dg(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var i=this._context.configuration.options,o=i.get(103);this._fixedOverflowWidgets=i.get(28),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this._lineHeight=i.get(47),this._position=null,this._range=null,this._viewPosition=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}return e.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;if(this._lineHeight=t.get(47),e.hasChanged(103)){var n=t.get(103);this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._maxWidth=this._getMaxWidth()}},e.prototype.onLineMappingChanged=function(e){this._setPosition(this._position,this._range)},e.prototype._setPosition=function(e,t){if(this._position=e,this._range=t,this._viewPosition=null,this._viewRange=null,this._position){var n=this._context.model.validateModelPosition(this._position);this._context.model.coordinatesConverter.modelPositionIsVisible(n)&&(this._viewPosition=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n))}if(this._range){var i=this._context.model.validateModelRange(this._range);this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(i)}},e.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},e.prototype.setPosition=function(e,t,n){this._setPosition(e,t),this._preference=n,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},e.prototype._layoutBoxInViewport=function(e,t,n,i,o){var r=e.top,s=r,a=t.top+this._lineHeight,u=o.viewportHeight-a,l=r-i,c=s>=i,d=a,h=u>=i,A=e.left,p=t.left;return A+n>o.scrollLeft+o.viewportWidth&&(A=o.scrollLeft+o.viewportWidth-n),p+n>o.scrollLeft+o.viewportWidth&&(p=o.scrollLeft+o.viewportWidth-n),A<o.scrollLeft&&(A=o.scrollLeft),p<o.scrollLeft&&(p=o.scrollLeft),{fitsAbove:c,aboveTop:l,aboveLeft:A,fitsBelow:h,belowTop:d,belowLeft:p}},e.prototype._layoutBoxInPage=function(e,t,n,i,o){var r=e.left-o.scrollLeft,s=t.left-o.scrollLeft,a=e.top-i,u=t.top+this._lineHeight,l=r+this._contentLeft,c=s+this._contentLeft,d=Ho(this._viewDomNode.domNode),h=d.top+a-Qo.scrollY,A=d.top+u-Qo.scrollY,p=d.left+l-Qo.scrollX,f=d.left+c-Qo.scrollX,g=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,m=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,v=22,_=22,y=h>=v,w=A+i<=m-_;if(p+n+20>g){var b=p-(g-n-20);p-=b,l-=b}if(f+n+20>g){b=f-(g-n-20);f-=b,c-=b}if(p<0){b=p;p-=b,l-=b}if(f<0){b=f;f-=b,c-=b}return this._fixedOverflowWidgets&&(a=h,u=A,l=p,c=f),{fitsAbove:y,aboveTop:Math.max(a,v),aboveLeft:l,fitsBelow:w,belowTop:u,belowLeft:c}},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new YS(e.top,e.left+this._contentLeft)},e.prototype._getTopAndBottomLeft=function(e){if(!this._viewPosition)return[null,null];var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return[null,null];var n=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop,i=new YS(n,t.left),o=this._viewPosition.lineNumber,r=t.left;if(this._viewRange){var s=e.linesVisibleRangesForRange(this._viewRange,!1);if(s&&s.length>0)for(var a=s.length-1;a>=0;a--){var u=s[a];if(u.lineNumber>=o){u.lineNumber>o&&(o=u.lineNumber,r=1073741824);for(var l=0,c=u.ranges.length;l<c;l++){var d=u.ranges[l];d.left<r&&(r=d.left)}}}}var h=e.getVerticalOffsetForLineNumber(o)-e.scrollTop,A=new YS(h,r);return[i,A]},e.prototype._prepareRenderWidget=function(e){var t,n=this._getTopAndBottomLeft(e),i=n[0],o=n[1];if(!i||!o)return null;if(-1===this._cachedDomNodeClientWidth||-1===this._cachedDomNodeClientHeight){var r=this.domNode.domNode;this._cachedDomNodeClientWidth=r.clientWidth,this._cachedDomNodeClientHeight=r.clientHeight}if(t=this.allowEditorOverflow?this._layoutBoxInPage(i,o,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(i,o,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e),this._preference)for(var s=1;s<=2;s++)for(var a=0,u=this._preference;a<u.length;a++){var l=u[a];if(1===l){if(!t)return null;if(2===s||t.fitsAbove)return new YS(t.aboveTop,t.aboveLeft)}else{if(2!==l)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i;if(!t)return null;if(2===s||t.fitsBelow)return new YS(t.belowTop,t.belowLeft)}}return null},e.prototype.onBeforeRender=function(e){this._viewPosition&&this._preference&&(this._viewPosition.lineNumber<e.startLineNumber||this._viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},e.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},e.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},e}(),ZS=(n("930f"),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)}}()),$S=!0,eB=function(e){function t(t){var n=e.call(this)||this;n._context=t;var i=n._context.configuration.options,o=i.get(103);return n._lineHeight=i.get(47),n._renderLineHighlight=i.get(69),n._contentLeft=o.contentLeft,n._contentWidth=o.contentWidth,n._selectionIsEmpty=!0,n._cursorLineNumbers=[],n._selections=[],n._renderData=null,n._context.addEventHandler(n),n}return ZS(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype._readFromSelections=function(){var e=!1,t=$S?this._selections.slice(0,1):this._selections,n=t.map((function(e){return e.positionLineNumber}));n.sort((function(e,t){return e-t})),Di(this._cursorLineNumbers,n)||(this._cursorLineNumbers=n,e=!0);var i=t.every((function(e){return e.isEmpty()}));return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e},t.prototype.onThemeChanged=function(e){return this._readFromSelections()},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(103);return this._lineHeight=t.get(47),this._renderLineHighlight=t.get(69),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._readFromSelections()},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollWidthChanged||e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){if(this._shouldRenderThis()){for(var t=this._renderOne(e),n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o=this._cursorLineNumbers.length,r=0,s=[],a=n;a<=i;a++){var u=a-n;while(r<o&&this._cursorLineNumbers[r]<a)r++;r<o&&this._cursorLineNumbers[r]===a?s[u]=t:s[u]=""}this._renderData=s}else this._renderData=null},t.prototype.render=function(e,t){if(!this._renderData)return"";var n=t-e;return n>=this._renderData.length?"":this._renderData[n]},t}(Hy),tB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ZS(t,e),t.prototype._renderOne=function(e){var t="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'<div class="'+t+'" style="width:'+Math.max(e.scrollWidth,this._contentWidth)+"px; height:"+this._lineHeight+'px;"></div>'},t.prototype._shouldRenderThis=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t.prototype._shouldRenderOther=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t}(eB),nB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ZS(t,e),t.prototype._renderOne=function(e){var t="current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"");return'<div class="'+t+'" style="width:'+this._contentLeft+"px; height:"+this._lineHeight+'px;"></div>'},t.prototype._shouldRenderThis=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t.prototype._shouldRenderOther=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t}(eB);gm((function(e,t){$S=!1;var n=e.getColor(eC);if(n&&(t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }")),!n||n.isTransparent()||e.defines(tC)){var i=e.getColor(tC);i&&($S=!0,t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),"hc"===e.type&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}}));n("56dc");var iB=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)}}(),oB=function(e){function t(t){var n=e.call(this)||this;n._context=t;var i=n._context.configuration.options;return n._lineHeight=i.get(47),n._typicalHalfwidthCharacterWidth=i.get(32).typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return iB(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(47),this._typicalHalfwidthCharacterWidth=t.get(32).typicalHalfwidthCharacterWidth,!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o];s.options.className&&(n[i++]=s)}n=n.sort((function(e,t){if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;var n=e.options.className,i=t.options.className;return n<i?-1:n>i?1:vn.compareRangesUsingStarts(e.range,t.range)}));for(var a=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,l=[],c=a;c<=u;c++){var d=c-a;l[d]=""}this._renderWholeLineDecorations(e,n,l),this._renderNormalDecorations(e,n,l),this._renderResult=l},t.prototype._renderWholeLineDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,s=0,a=t.length;s<a;s++){var u=t[s];if(u.options.isWholeLine)for(var l='<div class="cdr '+u.options.className+'" style="left:0;width:100%;height:'+i+'px;"></div>',c=Math.max(u.range.startLineNumber,o),d=Math.min(u.range.endLineNumber,r),h=c;h<=d;h++){var A=h-o;n[A]+=l}}},t.prototype._renderNormalDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=null,s=!1,a=null,u=0,l=t.length;u<l;u++){var c=t[u];if(!c.options.isWholeLine){var d=c.options.className,h=Boolean(c.options.showIfCollapsed),A=c.range;h&&1===A.endColumn&&A.endLineNumber!==A.startLineNumber&&(A=new vn(A.startLineNumber,A.startColumn,A.endLineNumber-1,this._context.model.getLineMaxColumn(A.endLineNumber-1))),r===d&&s===h&&vn.areIntersectingOrTouching(a,A)?a=vn.plusRange(a,A):(null!==r&&this._renderNormalDecoration(e,a,r,s,i,o,n),r=d,s=h,a=A)}}null!==r&&this._renderNormalDecoration(e,a,r,s,i,o,n)},t.prototype._renderNormalDecoration=function(e,t,n,i,o,r,s){var a=e.linesVisibleRangesForRange(t,"findMatch"===n);if(a)for(var u=0,l=a.length;u<l;u++){var c=a[u];if(!c.outsideRenderedLine){var d=c.lineNumber-r;if(i&&1===c.ranges.length){var h=c.ranges[0];0===h.width&&(c.ranges[0]=new im(h.left,this._typicalHalfwidthCharacterWidth))}for(var A=0,p=c.ranges.length;A<p;A++){var f=c.ranges[A],g='<div class="cdr '+n+'" style="left:'+String(f.left)+"px;width:"+String(f.width)+"px;height:"+o+'px;"></div>';s[d]+=g}}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(Hy),rB=(n("7aad"),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)}}()),sB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rB(t,e),t.prototype.onclick=function(e,t){this._register(vo(e,tr.CLICK,(function(e){return t(new di(e))})))},t.prototype.onmousedown=function(e,t){this._register(vo(e,tr.MOUSE_DOWN,(function(e){return t(new di(e))})))},t.prototype.onmouseover=function(e,t){this._register(vo(e,tr.MOUSE_OVER,(function(e){return t(new di(e))})))},t.prototype.onnonbubblingmouseout=function(e,t){this._register(Bo(e,(function(e){return t(new di(e))})))},t.prototype.onkeydown=function(e,t){this._register(vo(e,tr.KEY_DOWN,(function(e){return t(new oi(e))})))},t.prototype.onkeyup=function(e,t){this._register(vo(e,tr.KEY_UP,(function(e){return t(new oi(e))})))},t.prototype.oninput=function(e,t){this._register(vo(e,tr.INPUT,t))},t.prototype.onblur=function(e,t){this._register(vo(e,tr.BLUR,t))},t.prototype.onfocus=function(e,t){this._register(vo(e,tr.FOCUS,t))},t.prototype.ignoreGesture=function(e){Tg.ignoreTarget(e)},t}(Ie),aB=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)}}(),uB=11,lB=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=uB+"px",n.domNode.style.height=uB+"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 Rg),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 Ci),n._mousedownScheduleRepeatTimer=n._register(new bi),n}return aB(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(Pg,(function(e){}),(function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()})),e.preventDefault()},t}(sB),cB=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)}}(),dB=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 bi),o}return cB(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}(Ie),hB=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)}}(),AB=140,pB=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 dB(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),n._mouseMoveMonitor=n._register(new Rg),n._shouldRender=!0,n.domNode=Dg(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 hB(t,e),t.prototype._createArrow=function(e){var t=this._register(new lB(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)},t.prototype._createSlider=function(e,t,n,i){var o=this;this.slider=Dg(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.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,(function(e){e.leftButton&&(e.preventDefault(),o._sliderMouseDown(e,(function(){})))})),this.onclick(this.slider.domNode,(function(e){e.leftButton&&e.stopPropagation()}))},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 i=Ho(this.domNode.domNode);t=e.posx-i.left,n=e.posy-i.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(Pg,(function(e){var t=n._sliderOrthogonalMousePosition(e),a=Math.abs(t-o);if(s["h"]&&a>AB)n._setDesiredScrollPositionNow(r.getScrollPosition());else{var u=n._sliderMousePosition(e),l=u-i;n._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(l))}}),(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}(sB),fB=20,gB=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(fB,Math.floor(n*s/i))),l=(s-u)/(i-n),c=o*l;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(u),computedSliderRatio:l,computedSliderPosition:Math.round(c)}},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}(),mB=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)}}(),vB=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new gB(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 r=(n.arrowSize-uB)/2,s=(n.horizontalScrollbarSize-uB)/2;o._createArrow({className:"left-arrow",top:s,left:r,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new Ai(null,1,0))}}),o._createArrow({className:"right-arrow",top:s,left:void 0,bottom:void 0,right:r,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new Ai(null,-1,0))}})}return o._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize),o}return mB(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}(pB),_B=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)}}(),yB=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new gB(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var r=(n.arrowSize-uB)/2,s=(n.verticalScrollbarSize-uB)/2;o._createArrow({className:"up-arrow",top:r,left:s,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new Ai(null,0,1))}}),o._createArrow({className:"down-arrow",top:void 0,left:s,bottom:r,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new Ai(null,0,-1))}})}return o._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0),o}return _B(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}(pB),wB=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)}}(),bB=function(){function e(e,t,n,i,o,r){e|=0,t|=0,n|=0,i|=0,o|=0,r|=0,e<0&&(e=0),n+e>t&&(n=t-e),n<0&&(n=0),i<0&&(i=0),r+i>o&&(r=o-i),r<0&&(r=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=i,this.scrollHeight=o,this.scrollTop=r}return e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},e.prototype.withScrollDimensions=function(t){return new e("undefined"!==typeof t.width?t.width:this.width,"undefined"!==typeof t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,"undefined"!==typeof t.height?t.height:this.height,"undefined"!==typeof t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,"undefined"!==typeof t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,"undefined"!==typeof t.scrollTop?t.scrollTop:this.scrollTop)},e.prototype.createScrollEvent=function(e){var t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:n,scrollLeftChanged:i,heightChanged:o,scrollHeightChanged:r,scrollTopChanged:s}},e}(),CB=function(e){function t(t,n){var i=e.call(this)||this;return i._onScroll=i._register(new Ye),i.onScroll=i._onScroll.event,i._smoothScrollDuration=t,i._scheduleAtNextAnimationFrame=n,i._state=new bB(0,0,0,0,0,0),i._smoothScrolling=null,i}return wB(t,e),t.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),e.prototype.dispose.call(this)},t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},t.prototype.getScrollDimensions=function(){return this._state},t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},t.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},t.prototype.getCurrentScrollPosition=function(){return this._state},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;var i=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=i}else{n=this._state.withScrollPosition(e);this._smoothScrolling=xB.start(this._state,n,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())}))},t.prototype._performSmoothScrolling=function(){var e=this;if(this._smoothScrolling){var t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())}))}},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},t}(Ie),SB=function(){function e(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}return e}();function BB(e,t){var n=t-e;return function(t){return e+n*DB(t)}}function EB(e,t,n){return function(i){return i<n?e(i/n):t((i-n)/(1-n))}}var xB=function(){function e(e,t,n,i){this.from=e,this.to=t,this.duration=i,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}return e.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},e.prototype._initAnimation=function(e,t,n){var i=Math.abs(e-t);if(i>2.5*n){var o=void 0,r=void 0;return e<t?(o=e+.75*n,r=t-.75*n):(o=e-.75*n,r=t+.75*n),EB(BB(e,o),BB(r,t),.33)}return BB(e,t)},e.prototype.dispose=function(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},e.prototype.acceptScrollDimensions=function(e){this.to=e.withScrollPosition(this.to),this._initAnimations()},e.prototype.tick=function(){return this._tick(Date.now())},e.prototype._tick=function(e){var t=(e-this._startTime)/this.duration;if(t<1){var n=this.scrollLeft(t),i=this.scrollTop(t);return new SB(n,i,!1)}return new SB(this.to.scrollLeft,this.to.scrollTop,!0)},e.prototype.combine=function(t,n,i){return e.start(t,n,i)},e.start=function(t,n,i){i+=10;var o=Date.now()-10;return new e(t,n,o,i)},e}();function LB(e){return Math.pow(e,3)}function DB(e){return 1-LB(1-e)}var NB=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)}}(),kB=500,IB=50,FB=!0,MB=function(){function e(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}return e}(),OB=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 MB(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}(),TB=function(e){function t(t,n,i){var o=e.call(this)||this;o._onScroll=o._register(new Ye),o.onScroll=o._onScroll.event,t.style.overflow="hidden",o._options=HB(n),o._scrollable=i,o._register(o._scrollable.onScroll((function(e){o._onDidScroll(e),o._onScroll.fire(e)})));var r={onMouseWheel:function(e){return o._onMouseWheel(e)},onDragStart:function(){return o._onDragStart()},onDragEnd:function(){return o._onDragEnd()}};return o._verticalScrollbar=o._register(new yB(o._scrollable,o._options,r)),o._horizontalScrollbar=o._register(new vB(o._scrollable,o._options,r)),o._domNode=document.createElement("div"),o._domNode.className="monaco-scrollable-element "+o._options.className,o._domNode.setAttribute("role","presentation"),o._domNode.style.position="relative",o._domNode.style.overflow="hidden",o._domNode.appendChild(t),o._domNode.appendChild(o._horizontalScrollbar.domNode.domNode),o._domNode.appendChild(o._verticalScrollbar.domNode.domNode),o._options.useShadows?(o._leftShadowDomNode=Dg(document.createElement("div")),o._leftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._leftShadowDomNode.domNode),o._topShadowDomNode=Dg(document.createElement("div")),o._topShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topShadowDomNode.domNode),o._topLeftShadowDomNode=Dg(document.createElement("div")),o._topLeftShadowDomNode.setClassName("shadow top-left-corner"),o._domNode.appendChild(o._topLeftShadowDomNode.domNode)):(o._leftShadowDomNode=null,o._topShadowDomNode=null,o._topLeftShadowDomNode=null),o._listenOnDomNode=o._options.listenOnDomNode||o._domNode,o._mouseWheelToDispose=[],o._setListeningToMouseWheel(o._options.handleMouseWheel),o.onmouseover(o._listenOnDomNode,(function(e){return o._onMouseOver(e)})),o.onnonbubblingmouseout(o._listenOnDomNode,(function(e){return o._onMouseOut(e)})),o._hideTimeout=o._register(new bi),o._isDragging=!1,o._mouseIsOver=!1,o._shouldRender=!0,o._revealOnScroll=!0,o}return NB(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=xe(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,s["e"]&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=HB(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=xe(this._mouseWheelToDispose),e)){var i=function(e){t._onMouseWheel(new Ai(e))};this._mouseWheelToDispose.push(vo(this._listenOnDomNode,Hn?"mousewheel":"wheel",i,{passive:!1}))}},t.prototype._onMouseWheel=function(e){var t,n=OB.INSTANCE;if(FB&&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=!s["e"]&&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 a=this._scrollable.getFutureScrollPosition(),u={};if(i){var l=a.scrollTop-IB*i;this._verticalScrollbar.writeScrollPosition(u,l)}if(o){var c=a.scrollLeft-IB*o;this._horizontalScrollbar.writeScrollPosition(u,c)}if(u=this._scrollable.validateScrollPosition(u),a.scrollLeft!==u.scrollLeft||a.scrollTop!==u.scrollTop){var d=FB&&this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel();d?this._scrollable.setScrollPositionSmooth(u):this._scrollable.setScrollPositionNow(u),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()}),kB)},t}(sB),PB=function(e){function t(t,n){var i=this;n=n||{},n.mouseWheelSmoothScroll=!1;var o=new CB(0,(function(e){return Lo(e)}));return i=e.call(this,t,n,o)||this,i._register(o),i}return NB(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(TB),RB=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return NB(t,e),t}(TB),UB=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 NB(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}(PB);function HB(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,s["e"]&&(t.className+=" mac"),t}var QB=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)}}(),VB=function(e){function t(t,n,i,o){var r=e.call(this,t)||this,s=r._context.configuration.options,a=s.get(74),u=s.get(54),l=s.get(26),c={listenOnDomNode:i.domNode,className:"editor-scrollable "+hm(t.theme.type),useShadows:!1,lazyRender:!0,vertical:a.vertical,horizontal:a.horizontal,verticalHasArrows:a.verticalHasArrows,horizontalHasArrows:a.horizontalHasArrows,verticalScrollbarSize:a.verticalScrollbarSize,verticalSliderSize:a.verticalSliderSize,horizontalScrollbarSize:a.horizontalScrollbarSize,horizontalSliderSize:a.horizontalSliderSize,handleMouseWheel:a.handleMouseWheel,alwaysConsumeMouseWheel:a.alwaysConsumeMouseWheel,arrowSize:a.arrowSize,mouseWheelScrollSensitivity:u,fastScrollSensitivity:l};r.scrollbar=r._register(new RB(n.domNode,c,r._context.viewLayout.scrollable)),Zg.write(r.scrollbar.getDomNode(),5),r.scrollbarDomNode=Dg(r.scrollbar.getDomNode()),r.scrollbarDomNode.setPosition("absolute"),r._setLayout();var d=function(e,t,n){var i={};if(t){var o=e.scrollTop;o&&(i.scrollTop=r._context.viewLayout.getCurrentScrollTop()+o,e.scrollTop=0)}if(n){var s=e.scrollLeft;s&&(i.scrollLeft=r._context.viewLayout.getCurrentScrollLeft()+s,e.scrollLeft=0)}r._context.viewLayout.setScrollPositionNow(i)};return r._register(vo(i.domNode,"scroll",(function(e){return d(i.domNode,!0,!0)}))),r._register(vo(n.domNode,"scroll",(function(e){return d(n.domNode,!0,!1)}))),r._register(vo(o.domNode,"scroll",(function(e){return d(o.domNode,!0,!1)}))),r._register(vo(r.scrollbarDomNode.domNode,"scroll",(function(e){return d(r.scrollbarDomNode.domNode,!0,!1)}))),r}return QB(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._setLayout=function(){var e=this._context.configuration.options,t=e.get(103);this.scrollbarDomNode.setLeft(t.contentLeft);var n=e.get(52),i=n.side;"right"===i?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.contentHeight)},t.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},t.prototype.getDomNode=function(){return this.scrollbarDomNode},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.onConfigurationChanged=function(e){if(e.hasChanged(74)||e.hasChanged(54)||e.hasChanged(26)){var t=this._context.configuration.options,n=t.get(74),i=t.get(54),o=t.get(26),r={handleMouseWheel:n.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:o};this.scrollbar.updateOptions(r)}return e.hasChanged(103)&&this._setLayout(),!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+hm(this._context.theme.type)),!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this.scrollbar.renderNow()},t}(Jg),WB=(n("8478"),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)}}()),KB=function(){function e(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)}return e}(),zB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return WB(t,e),t.prototype._render=function(e,t,n){for(var i=[],o=e;o<=t;o++){var r=o-e;i[r]=[]}if(0===n.length)return i;n.sort((function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1}));for(var s=null,a=0,u=0,l=n.length;u<l;u++){var c=n[u],d=c.className,h=Math.max(c.startLineNumber,e)-e,A=Math.min(c.endLineNumber,t)-e;s===d?(h=Math.max(a+1,h),a=Math.max(a,A)):(s=d,a=A);for(var p=h;p<=a;p++)i[p].push(s)}return i},t}(Hy),jB=function(e){function t(t){var n=e.call(this)||this;n._context=t;var i=n._context.configuration.options,o=i.get(103);return n._lineHeight=i.get(47),n._glyphMargin=i.get(38),n._glyphMarginLeft=o.glyphMarginLeft,n._glyphMarginWidth=o.glyphMarginWidth,n._renderResult=null,n._context.addEventHandler(n),n}return WB(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(103);return this._lineHeight=t.get(47),this._glyphMargin=t.get(38),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.glyphMarginClassName;a&&(n[i++]=new KB(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){if(this._glyphMargin){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o=this._lineHeight.toString(),r=this._glyphMarginLeft.toString(),s=this._glyphMarginWidth.toString(),a='" style="left:'+r+"px;width:"+s+"px;height:"+o+'px;"></div>',u=[],l=t;l<=n;l++){var c=l-t,d=i[c];0===d.length?u[c]="":u[c]='<div class="cgmr codicon '+d.join(" ")+a}this._renderResult=u}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(zB),GB=(n("0baa"),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)}}()),qB=function(e){function t(t){var n=e.call(this)||this;n._context=t,n._primaryLineNumber=0;var i=n._context.configuration.options,o=i.get(104),r=i.get(32);return n._lineHeight=i.get(47),n._spaceWidth=r.spaceWidth,n._enabled=i.get(67),n._activeIndentEnabled=i.get(41),n._maxIndentLeft=-1===o.wrappingColumn?-1:o.wrappingColumn*r.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return GB(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(104),i=t.get(32);return this._lineHeight=t.get(47),this._spaceWidth=i.spaceWidth,this._enabled=t.get(67),this._activeIndentEnabled=t.get(41),this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLanguageConfigurationChanged=function(e){return!0},t.prototype.prepareRender=function(e){if(this._enabled){var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getOptions().indentSize,o=i*this._spaceWidth,r=e.scrollWidth,s=this._lineHeight,a=this._context.model.getLinesIndentGuides(t,n),u=0,l=0,c=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var d=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);u=d.startLineNumber,l=d.endLineNumber,c=d.indent}for(var h=[],A=t;A<=n;A++){for(var p=u<=A&&A<=l,f=A-t,g=a[f],m="",v=e.visibleRangeForPosition(new mn(A,1)),_=v?v.left:0,y=1;y<=g;y++){var w=p&&y===c?"cigra":"cigr";if(m+='<div class="'+w+'" style="left:'+_+"px;height:"+s+"px;width:"+o+'px"></div>',_+=o,_>r||this._maxIndentLeft>0&&_>this._maxIndentLeft)break}h[f]=m}this._renderResult=h}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(Hy);gm((function(e,t){var n=e.getColor(lC);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var i=e.getColor(cC)||n;i&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")}));n("38a2b");var YB=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)}}(),XB=function(){function e(){this._currentVisibleRange=new vn(1,1,1,1)}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},e}(),JB=function(){function e(e,t,n,i,o,r){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=o,this.scrollType=r}return e}(),ZB=function(e){function t(t,n){var i=e.call(this,t)||this;i._linesContent=n,i._textRangeRestingSpot=document.createElement("div"),i._visibleLines=new QS(i),i.domNode=i._visibleLines.domNode;var o=i._context.configuration,r=i._context.configuration.options,s=r.get(32),a=r.get(104);return i._lineHeight=r.get(47),i._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,i._isViewportWrapping=a.isViewportWrapping,i._revealHorizontalRightPadding=r.get(71),i._cursorSurroundingLines=r.get(18),i._cursorSurroundingLinesStyle=r.get(19),i._canUseLayerHinting=!r.get(21),i._viewLineOptions=new wm(o,i._context.theme.type),Zg.write(i.domNode,7),i.domNode.setClassName("view-lines"),Zf.applyFontInfo(i.domNode,s),i._maxLineWidth=0,i._asyncUpdateLineWidths=new Si((function(){i._updateLineWidthsSlow()}),200),i._lastRenderedData=new XB,i._horizontalRevealRequest=null,i}return YB(t,e),t.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new bm(this._viewLineOptions)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(104)&&(this._maxLineWidth=0);var t=this._context.configuration.options,n=t.get(32),i=t.get(104);return this._lineHeight=t.get(47),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=i.isViewportWrapping,this._revealHorizontalRightPadding=t.get(71),this._cursorSurroundingLines=t.get(18),this._cursorSurroundingLinesStyle=t.get(19),this._canUseLayerHinting=!t.get(21),Zf.applyFontInfo(this.domNode,n),this._onOptionsMaybeChanged(),e.hasChanged(103)&&(this._maxLineWidth=0),!0},t.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new wm(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;for(var n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=n;o<=i;o++){var r=this._visibleLines.getVisibleLine(o);r.onOptionsChanged(this._viewLineOptions)}return!0}return!1},t.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=!1,o=t;o<=n;o++)i=this._visibleLines.getVisibleLine(o).onSelectionChanged()||i;return i},t.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged();return!0},t.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.verticalType),n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new JB(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&i>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0},t.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>n)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},t.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new mn(i,1);var o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(i<o||i>r)return null;var s=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t),a=this._context.model.getLineMinColumn(i);return s<a&&(s=a),new mn(i,s)},t.prototype._getViewLineDomNode=function(e){while(e&&1===e.nodeType){if(e.className===bm.CLASS_NAME)return e;e=e.parentElement}return null},t.prototype._getLineNumberFor=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++){var o=this._visibleLines.getVisibleLine(i);if(e===o.getDomNode())return i}return-1},t.prototype.getLineWidth=function(e){var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||e>n?-1:this._visibleLines.getVisibleLine(e).getWidth()},t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,i=vn.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!i)return null;var o=[],r=0,s=new ym(this.domNode.domNode,this._textRangeRestingSpot),a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new mn(i.startLineNumber,1)).lineNumber);for(var u=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),c=i.startLineNumber;c<=i.endLineNumber;c++)if(!(c<u||c>l)){var d=c===i.startLineNumber?i.startColumn:1,h=c===i.endLineNumber?i.endColumn:this._context.model.getLineMaxColumn(c),A=this._visibleLines.getVisibleLine(c).getVisibleRangesForRange(d,h,s);if(A){if(t&&c<n){var p=a;a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new mn(c+1,1)).lineNumber,p!==a&&(A.ranges[A.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}o[r++]=new nm(A.outsideRenderedLine,c,A.ranges)}}return 0===r?null:o},t.prototype._visibleRangesForLineRange=function(e,t,n){return this.shouldRender()||e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(t,n,new ym(this.domNode.domNode,this._textRangeRestingSpot))},t.prototype.visibleRangeForPosition=function(e){var t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new om(t.outsideRenderedLine,t.ranges[0].left):null},t.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},t.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=1,o=!0,r=t;r<=n;r++){var s=this._visibleLines.getVisibleLine(r);!e||s.getWidthIsFast()?i=Math.max(i,s.getWidth()):o=!1}return o&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),o},t.prototype.prepareRender=function(){throw new Error("Not supported")},t.prototype.render=function(){throw new Error("Not supported")},t.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var t=this._horizontalRevealRequest.lineNumber,n=this._horizontalRevealRequest.startColumn,i=this._horizontalRevealRequest.endColumn,o=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var r=this._computeScrollLeftToRevealRange(t,n,i),s=this._isViewportWrapping;s||this._ensureMaxLineWidth(r.maxHorizontalOffset),0===o?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:r.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:r.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var a=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-a),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},t.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},t.prototype._computeScrollTopToRevealRange=function(e,t,n,i){var o,r,s=e.top,a=e.height,u=s+a;o=this._context.viewLayout.getVerticalOffsetForLineNumber(n.startLineNumber),r=this._context.viewLayout.getVerticalOffsetForLineNumber(n.endLineNumber)+this._lineHeight;var l,c="mouse"===t&&"default"===this._cursorSurroundingLinesStyle;if(!c){var d=Math.min(a/this._lineHeight/2,this._cursorSurroundingLines);o-=d*this._lineHeight,r+=Math.max(0,d-1)*this._lineHeight}if(0!==i&&4!==i||(r+=this._lineHeight),r-o>a)l=o;else if(1===i||2===i)if(2===i&&s<=o&&r<=u)l=s;else{var h=(o+r)/2;l=Math.max(0,h-a/2)}else l=this._computeMinimumScrolling(s,u,o,r,3===i,4===i);return l},t.prototype._computeScrollLeftToRevealRange=function(e,n,i){var o=0,r=this._context.viewLayout.getCurrentViewport(),s=r.left,a=s+r.width,u=this._visibleRangesForLineRange(e,n,i),l=1073741824,c=0;if(!u)return{scrollLeft:s,maxHorizontalOffset:o};for(var d=0,h=u.ranges;d<h.length;d++){var A=h[d];A.left<l&&(l=A.left),A.left+A.width>c&&(c=A.left+A.width)}o=c,l=Math.max(0,l-t.HORIZONTAL_EXTRA_PX),c+=this._revealHorizontalRightPadding;var p=this._computeMinimumScrolling(s,a,l,c);return{scrollLeft:p,maxHorizontalOffset:o}},t.prototype._computeMinimumScrolling=function(e,t,n,i,o,r){e|=0,t|=0,n|=0,i|=0,o=!!o,r=!!r;var s=t-e,a=i-n;return a<s?o?n:r?Math.max(0,i-s):n<e?n:i>t?Math.max(0,i-s):e:n},t.HORIZONTAL_EXTRA_PX=30,t}(Jg),$B=(n("27e6"),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)}}()),eE=function(e){function t(t){var n=e.call(this)||this;n._context=t;var i=n._context.configuration.options,o=i.get(103);return n._decorationsLeft=o.decorationsLeft,n._decorationsWidth=o.decorationsWidth,n._renderResult=null,n._context.addEventHandler(n),n}return $B(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(103);return this._decorationsLeft=n.decorationsLeft,this._decorationsWidth=n.decorationsWidth,!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.linesDecorationsClassName;a&&(n[i++]=new KB(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o=this._decorationsLeft.toString(),r=this._decorationsWidth.toString(),s='" style="left:'+o+"px;width:"+r+'px;"></div>',a=[],u=t;u<=n;u++){for(var l=u-t,c=i[l],d="",h=0,A=c.length;h<A;h++)d+='<div class="cldr '+c[h]+s;a[l]=d}this._renderResult=a},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(zB),tE=(n("5d70"),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)}}()),nE=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._renderResult=null,n._context.addEventHandler(n),n}return tE(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.marginClassName;a&&(n[i++]=new KB(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o=[],r=t;r<=n;r++){for(var s=r-t,a=i[s],u="",l=0,c=a.length;l<c;l++)u+='<div class="cmdr '+a[l]+'" style=""></div>';o[s]=u}this._renderResult=o},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(zB),iE=(n("f20b"),function(){function e(t,n,i,o){this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(i),this.a=e._clamp(o)}return e._clamp=function(e){return e<0?0:e>255?255:0|e},e.Empty=new e(0,0,0,0),e}()),oE=function(){function e(){var e=this;this._onDidChange=new Ye,this.onDidChange=this._onDidChange.event,this._updateColorMap(),zl.onDidChange((function(t){t.changedColorMap&&e._updateColorMap()}))}return e.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new e),this._INSTANCE},e.prototype._updateColorMap=function(){var e=zl.getColorMap();if(!e)return this._colors=[iE.Empty],void(this._backgroundIsLight=!0);this._colors=[iE.Empty];for(var t=1;t<e.length;t++){var n=e[t].rgba;this._colors[t]=new iE(n.r,n.g,n.b,Math.round(255*n.a))}var i=e[2].getRelativeLuminance();this._backgroundIsLight=i>=.5,this._onDidChange.fire(void 0)},e.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},e.prototype.backgroundIsLight=function(){return this._backgroundIsLight},e._INSTANCE=null,e}(),rE=function(){for(var e=[],t=32;t<=126;t++)e.push(t);return e.push(65533),e}(),sE=function(e,t){return e-=32,e<0||e>96?t<=2?(e+96)%96:95:e},aE=function(){function e(t,n){this.scale=n,this.charDataNormal=e.soften(t,.8),this.charDataLight=e.soften(t,50/60)}return e.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),i=0,o=e.length;i<o;i++)n[i]=e[i]*t;return n},e.prototype.renderChar=function(e,t,n,i,o,r,s,a){var u=1*this.scale,l=2*this.scale;if(t+u>e.width||n+l>e.height)console.warn("bad render request outside image data");else for(var c=a?this.charDataLight:this.charDataNormal,d=sE(i,s),h=4*e.width,A=r.r,p=r.g,f=r.b,g=o.r-A,m=o.g-p,v=o.b-f,_=e.data,y=d*u*l,w=n*h+4*t,b=0;b<l;b++){for(var C=w,S=0;S<u;S++){var B=c[y++]/255;_[C++]=A+g*B,_[C++]=p+m*B,_[C++]=f+v*B,C++}w+=h}},e.prototype.blockRenderChar=function(e,t,n,i,o,r){var s=1*this.scale,a=2*this.scale;if(t+s>e.width||n+a>e.height)console.warn("bad render request outside image data");else for(var u=4*e.width,l=.5,c=o.r,d=o.g,h=o.b,A=i.r-c,p=i.g-d,f=i.b-h,g=c+A*l,m=d+p*l,v=h+f*l,_=e.data,y=n*u+4*t,w=0;w<a;w++){for(var b=y,C=0;C<s;C++)_[b++]=g,_[b++]=m,_[b++]=v,b++;y+=u}},e}(),uE={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},lE=function(e){for(var t=new Uint8ClampedArray(e.length/2),n=0;n<e.length;n+=2)t[n>>1]=uE[e[n]]<<4|15&uE[e[n+1]];return t},cE={1:we((function(){return lE("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")})),2:we((function(){return lE("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")}))},dE=function(){function e(){}return e.create=function(t,n){return this.lastCreated&&t===this.lastCreated.scale&&n===this.lastFontFamily?this.lastCreated:(i=cE[t]?new aE(cE[t](),t):e.createFromSampleData(e.createSampleData(n).data,t),this.lastFontFamily=n,this.lastCreated=i,i);var i},e.createSampleData=function(e){var t=document.createElement("canvas"),n=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",n.fillStyle="#ffffff",n.font="bold 16px "+e,n.textBaseline="middle";for(var i=0,o=0,r=rE;o<r.length;o++){var s=r[o];n.fillText(String.fromCharCode(s),i,8),i+=10}return n.getImageData(0,0,960,16)},e.createFromSampleData=function(t,n){var i=61440;if(t.length!==i)throw new Error("Unexpected source in MinimapCharRenderer");var o=e._downsample(t,n);return new aE(o,n)},e._downsampleChar=function(e,t,n,i,o){for(var r=1*o,s=2*o,a=i,u=0,l=0;l<s;l++)for(var c=l/s*16,d=(l+1)/s*16,h=0;h<r;h++){for(var A=h/r*10,p=(h+1)/r*10,f=0,g=0,m=c;m<d;m++)for(var v=t+3840*Math.floor(m),_=1-(m-Math.floor(m)),y=A;y<p;y++){var w=1-(y-Math.floor(y)),b=v+4*Math.floor(y),C=w*_;g+=C,f+=e[b]*e[b+3]/255*C}var S=f/g;u=Math.max(u,S),n[a++]=S}return u},e._downsample=function(e,t){for(var n=2*t*1*t,i=96*n,o=new Uint8ClampedArray(i),r=0,s=0,a=0,u=0;u<96;u++)a=Math.max(a,this._downsampleChar(e,s,o,r,t)),r+=n,s+=40;if(a>0)for(var l=255/a,c=0;c<i;c++)o[c]*=l;return o},e}(),hE=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 AE(e,t){return 1===e?2*t:3*t}function pE(e,t){return 1*t}var fE=140,gE=2,mE=function(){function e(e){var t=this,n=e.options,i=n.get(101),o=n.get(103),r=n.get(32);this.renderMinimap=0|o.renderMinimap,this.scrollBeyondLastLine=n.get(76);var s=n.get(52);this.showSlider=s.showSlider,this.fontScale=Math.round(s.scale*i),this.charRenderer=we((function(){return dE.create(t.fontScale,r.fontFamily)})),this.pixelRatio=i,this.typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,this.lineHeight=n.get(47),this.minimapLeft=o.minimapLeft,this.minimapWidth=o.minimapWidth,this.minimapHeight=o.height,this.canvasInnerWidth=Math.max(1,Math.floor(i*this.minimapWidth)),this.canvasInnerHeight=Math.max(1,Math.floor(i*this.minimapHeight)),this.canvasOuterWidth=this.canvasInnerWidth/i,this.canvasOuterHeight=this.canvasInnerHeight/i}return e.prototype.equals=function(e){return this.renderMinimap===e.renderMinimap&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.fontScale===e.fontScale&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight},e}(),vE=function(){function e(e,t,n,i,o,r,s){this.scrollTop=e,this.scrollHeight=t,this._computedSliderRatio=n,this.sliderTop=i,this.sliderHeight=o,this.startLineNumber=r,this.endLineNumber=s}return e.prototype.getDesiredScrollTopFromDelta=function(e){var t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)},e.prototype.getDesiredScrollTopFromTouchLocation=function(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)},e.create=function(t,n,i,o,r,s,a,u,l){var c,d,h=t.pixelRatio,A=AE(t.renderMinimap,t.fontScale),p=Math.floor(t.canvasInnerHeight/A),f=t.lineHeight;if(r&&i!==s){var g=i-n+1;c=Math.floor(g*A/h)}else{var m=o/f;c=Math.floor(m*A/h)}d=t.scrollBeyondLastLine?(s-1)*A/h:Math.max(0,s*A/h-c),d=Math.min(t.minimapHeight-c,d);var v=d/(u-o),_=a*v,y=0;if(t.scrollBeyondLastLine){m=o/f;y=m}if(p>=s+y){var w=1,b=s;return new e(a,u,v,_,c,w,b)}w=Math.max(1,Math.floor(n-_*h/A));l&&l.scrollHeight===u&&(l.scrollTop>a&&(w=Math.min(w,l.startLineNumber)),l.scrollTop<a&&(w=Math.max(w,l.startLineNumber)));b=Math.min(s,w+p-1);return new e(a,u,v,_,c,w,b)},e}(),_E=function(){function e(e){this.dy=e}return e.prototype.onContentChanged=function(){this.dy=-1},e.prototype.onTokensChanged=function(){this.dy=-1},e.INVALID=new e(-1),e}(),yE=function(){function e(e,t,n){this.renderedLayout=e,this._imageData=t,this._renderedLines=new HS((function(){return _E.INVALID})),this._renderedLines._set(e.startLineNumber,n)}return e.prototype.linesEquals=function(e){if(!this.scrollEquals(e))return!1;for(var t=this._renderedLines._get(),n=t.lines,i=0,o=n.length;i<o;i++)if(-1===n[i].dy)return!1;return!0},e.prototype.scrollEquals=function(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber},e.prototype._get=function(){var e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}},e.prototype.onLinesChanged=function(e){return this._renderedLines.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){this._renderedLines.onLinesDeleted(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesInserted=function(e){this._renderedLines.onLinesInserted(e.fromLineNumber,e.toLineNumber)},e.prototype.onTokensChanged=function(e){return this._renderedLines.onTokensChanged(e.ranges)},e}(),wE=function(){function e(t,n,i,o){this._backgroundFillData=e._createBackgroundFillData(n,i,o),this._buffers=[t.createImageData(n,i),t.createImageData(n,i)],this._lastUsedBuffer=0}return e.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e},e._createBackgroundFillData=function(e,t,n){for(var i=n.r,o=n.g,r=n.b,s=new Uint8ClampedArray(e*t*4),a=0,u=0;u<t;u++)for(var l=0;l<e;l++)s[a]=i,s[a+1]=o,s[a+2]=r,s[a+3]=255,a+=4;return s},e}(),bE=function(e){function t(t){var n=e.call(this,t)||this;return n._selections=[],n._renderDecorations=!1,n._gestureInProgress=!1,n._options=new mE(n._context.configuration),n._lastRenderData=null,n._buffers=null,n._selectionColor=n._context.theme.getColor(Ub),n._domNode=Dg(document.createElement("div")),Zg.write(n._domNode,8),n._domNode.setClassName(n._getMinimapDomNodeClassName()),n._domNode.setPosition("absolute"),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._shadow=Dg(document.createElement("div")),n._shadow.setClassName("minimap-shadow-hidden"),n._domNode.appendChild(n._shadow),n._canvas=Dg(document.createElement("canvas")),n._canvas.setPosition("absolute"),n._canvas.setLeft(0),n._domNode.appendChild(n._canvas),n._decorationsCanvas=Dg(document.createElement("canvas")),n._decorationsCanvas.setPosition("absolute"),n._decorationsCanvas.setClassName("minimap-decorations-layer"),n._decorationsCanvas.setLeft(0),n._domNode.appendChild(n._decorationsCanvas),n._slider=Dg(document.createElement("div")),n._slider.setPosition("absolute"),n._slider.setClassName("minimap-slider"),n._slider.setLayerHinting(!0),n._slider.setContain("strict"),n._domNode.appendChild(n._slider),n._sliderHorizontal=Dg(document.createElement("div")),n._sliderHorizontal.setPosition("absolute"),n._sliderHorizontal.setClassName("minimap-slider-horizontal"),n._slider.appendChild(n._sliderHorizontal),n._tokensColorTracker=oE.getInstance(),n._applyLayout(),n._mouseDownListener=wo(n._domNode.domNode,"mousedown",(function(e){e.preventDefault();var t=n._options.renderMinimap;if(0!==t&&n._lastRenderData){var i=AE(t,n._options.fontScale),o=n._options.pixelRatio*e.browserEvent.offsetY,r=Math.floor(o/i),s=r+n._lastRenderData.renderedLayout.startLineNumber;s=Math.min(s,n._context.model.getLineCount()),n._context.privateViewEventBus.emit(new UC("mouse",new vn(s,1,s,1),1,!1,0))}})),n._sliderMouseMoveMonitor=new Rg,n._sliderMouseDownListener=wo(n._slider.domNode,"mousedown",(function(e){if(e.preventDefault(),e.stopPropagation(),e.leftButton&&n._lastRenderData){var t=e.posy,i=e.posx,o=n._lastRenderData.renderedLayout;n._slider.toggleClassName("active",!0),n._sliderMouseMoveMonitor.startMonitoring(Pg,(function(e){var r=Math.abs(e.posx-i);if(s["h"]&&r>fE)n._context.viewLayout.setScrollPositionNow({scrollTop:o.scrollTop});else{var a=e.posy-t;n._context.viewLayout.setScrollPositionNow({scrollTop:o.getDesiredScrollTopFromDelta(a)})}}),(function(){n._slider.toggleClassName("active",!1)}))}})),n._gestureDisposable=Tg.addTarget(n._domNode.domNode),n._sliderTouchStartListener=vo(n._domNode.domNode,Fg.Start,(function(e){e.preventDefault(),e.stopPropagation(),n._lastRenderData&&(n._slider.toggleClassName("active",!0),n._gestureInProgress=!0,n.scrollDueToTouchEvent(e))})),n._sliderTouchMoveListener=wo(n._domNode.domNode,Fg.Change,(function(e){e.preventDefault(),e.stopPropagation(),n._lastRenderData&&n._gestureInProgress&&n.scrollDueToTouchEvent(e)})),n._sliderTouchEndListener=wo(n._domNode.domNode,Fg.End,(function(e){e.preventDefault(),e.stopPropagation(),n._gestureInProgress=!1,n._slider.toggleClassName("active",!1)})),n}return hE(t,e),t.prototype.scrollDueToTouchEvent=function(e){var t=this._domNode.domNode.getBoundingClientRect().top,n=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._context.viewLayout.setScrollPositionNow({scrollTop:n})},t.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),e.prototype.dispose.call(this)},t.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},t.prototype.getDomNode=function(){return this._domNode},t.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},t.prototype._getBuffer=function(){return this._buffers||(this._buffers=new wE(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer()},t.prototype._onOptionsMaybeChanged=function(){var e=new mE(this._context.configuration);return!this._options.equals(e)&&(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},t.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._renderDecorations=!0,!0},t.prototype.onFlushed=function(e){return this._lastRenderData=null,!0},t.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},t.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},t.prototype.onScrollChanged=function(e){return this._renderDecorations=!0,!0},t.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)},t.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0},t.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0},t.prototype.onDecorationsChanged=function(e){return this._renderDecorations=!0,!0},t.prototype.onThemeChanged=function(e){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(Ub),this._renderDecorations=!0,!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){var t=this._options.renderMinimap;if(0===t)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var n=vE.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(n.sliderTop),this._slider.setHeight(n.sliderHeight);var i=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,o=Math.min(this._options.minimapWidth,Math.round(i*pE(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(o),this._sliderHorizontal.setWidth(this._options.minimapWidth-o),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(n.sliderHeight),this.renderDecorations(n),this._lastRenderData=this.renderLines(n)},t.prototype.renderDecorations=function(e){if(this._renderDecorations){this._renderDecorations=!1;var t=this._context.model.getDecorationsInViewport(new vn(e.startLineNumber,1,e.endLineNumber,this._context.model.getLineMaxColumn(e.endLineNumber))),n=this._options,i=n.renderMinimap,o=n.canvasInnerWidth,r=n.canvasInnerHeight,s=AE(i,this._options.fontScale),a=pE(i,this._options.fontScale),u=this._context.model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,o,r);for(var c=new Map,d=0;d<this._selections.length;d++)for(var h=this._selections[d],A=h.startLineNumber;A<=h.endLineNumber;A++)this.renderDecorationOnLine(l,c,h,this._selectionColor,e,A,s,s,u,a);for(d=0;d<t.length;d++){var p=t[d];if(p.options.minimap){var f=p.options.minimap.getColor(this._context.theme);for(A=p.range.startLineNumber;A<=p.range.endLineNumber;A++)switch(p.options.minimap.position){case Eu.Inline:this.renderDecorationOnLine(l,c,p.range,f,e,A,s,s,u,a);continue;case Eu.Gutter:var g=(A-e.startLineNumber)*s,m=2;this.renderDecoration(l,f,m,g,gE,s);continue}}}}},t.prototype.renderDecorationOnLine=function(e,t,n,i,o,r,s,a,u,l){var c=(r-o.startLineNumber)*a;if(!(c+s<0||c>this._options.canvasOuterHeight)){var d=t.get(r),h=!d;if(!d){var A=this._context.model.getLineContent(r);d=[g];for(var p=1;p<A.length+1;p++){var f=A.charCodeAt(p-1),m=9===f?u*l:As(f)?2*l:l;d[p]=d[p-1]+m}t.set(r,d)}var v=n.startColumn,_=n.endColumn,y=n.startLineNumber,w=n.endLineNumber,b=y===r?d[v-1]:g,C=w>r?d.length-1:_-1;if(C>0){var S=d[C]-b||2;this.renderDecoration(e,i,b,c,S,s)}h&&this.renderLineHighlight(e,i,c,s)}},t.prototype.renderLineHighlight=function(e,t,n,i){e.fillStyle=t&&t.transparent(.5).toString()||"",e.fillRect(g,n,e.canvas.width,i)},t.prototype.renderDecoration=function(e,t,n,i,o,r){e.fillStyle=t&&t.toString()||"",e.fillRect(n,i,o,r)},t.prototype.renderLines=function(e){var n=this._options.renderMinimap,i=this._options.charRenderer(),o=e.startLineNumber,r=e.endLineNumber,s=AE(n,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var a=this._lastRenderData._get();return new yE(e,a.imageData,a.lines)}for(var u=this._getBuffer(),l=t._renderUntouchedLines(u,o,r,s,this._lastRenderData),c=l[0],d=l[1],h=l[2],A=this._context.model.getMinimapLinesRenderingData(o,r,h),p=A.tabSize,f=this._tokensColorTracker.getColor(2),g=this._tokensColorTracker.backgroundIsLight(),m=0,v=[],_=0,y=r-o+1;_<y;_++)h[_]&&t._renderLine(u,f,g,n,this._tokensColorTracker,i,m,p,A.data[_],this._options.fontScale),v[_]=new _E(m),m+=s;var w=-1===c?0:c,b=-1===d?u.height:d,C=b-w,S=this._canvas.domNode.getContext("2d");return S.putImageData(u,0,0,0,w,u.width,C),new yE(e,u,v)},t._renderUntouchedLines=function(e,t,n,i,o){var r=[];if(!o){for(var s=0,a=n-t+1;s<a;s++)r[s]=!0;return[-1,-1,r]}for(var u=o._get(),l=u.imageData.data,c=u.rendLineNumberStart,d=u.lines,h=d.length,A=e.width,p=e.data,f=(n-t+1)*i*A*4,g=-1,m=-1,v=-1,_=-1,y=-1,w=-1,b=0,C=t;C<=n;C++){var S=C-t,B=C-c,E=B>=0&&B<h?d[B].dy:-1;if(-1!==E){var x=E*A*4,L=(E+i)*A*4,D=b*A*4,N=(b+i)*A*4;_===x&&w===D?(_=L,w=N):(-1!==v&&(p.set(l.subarray(v,_),y),-1===g&&0===v&&v===y&&(g=_),-1===m&&_===f&&v===y&&(m=v)),v=x,_=L,y=D,w=N),r[S]=!1,b+=i}else r[S]=!0,b+=i}-1!==v&&(p.set(l.subarray(v,_),y),-1===g&&0===v&&v===y&&(g=_),-1===m&&_===f&&v===y&&(m=v));var k=-1===g?-1:g/(4*A),I=-1===m?-1:m/(4*A);return[k,I,r]},t._renderLine=function(e,t,n,i,o,r,s,a,u,l){for(var c=u.content,d=u.tokens,h=pE(i,l),A=e.width-h,p=g,f=0,m=0,v=0,_=d.getCount();v<_;v++)for(var y=d.getEndOffset(v),w=d.getForeground(v),b=o.getColor(w);f<y;f++){if(p>A)return;var C=c.charCodeAt(f);if(9===C){var S=a-(f+m)%a;m+=S-1,p+=S*h}else if(32===C)p+=h;else for(var B=As(C)?2:1,E=0;E<B;E++)if(2===i?r.blockRenderChar(e,p,s,b,t,n):r.renderChar(e,p,s,C,b,t,l,n),p+=h,p>A)return}},t}(Jg);gm((function(e,t){var n=e.getColor(yw);if(n){var i=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var o=e.getColor(ww);if(o){var r=o.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+r+"; }")}var s=e.getColor(bw);if(s){var a=s.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+a+"; }")}var u=e.getColor(_w);u&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+u+" -6px 0 6px -6px inset; }")}));n("725e");var CE=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)}}(),SE=function(e){function t(t){var n=e.call(this,t)||this,i=n._context.configuration.options,o=i.get(103);return n._widgets={},n._verticalScrollbarWidth=o.verticalScrollbarWidth,n._minimapWidth=o.minimapWidth,n._horizontalScrollbarHeight=o.horizontalScrollbarHeight,n._editorHeight=o.height,n._editorWidth=o.width,n._domNode=Dg(document.createElement("div")),Zg.write(n._domNode,4),n._domNode.setClassName("overlayWidgets"),n}return CE(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(103);return this._verticalScrollbarWidth=n.verticalScrollbarWidth,this._minimapWidth=n.minimapWidth,this._horizontalScrollbarHeight=n.horizontalScrollbarHeight,this._editorHeight=n.height,this._editorWidth=n.width,!0},t.prototype.addWidget=function(e){var t=Dg(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t],i=n.domNode.domNode;delete this._widgets[t],i.parentNode.removeChild(i),this.setShouldRender()}},t.prototype._renderWidget=function(e){var t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){var n=t.domNode.clientHeight;t.setTop(this._editorHeight-n-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,i=t.length;n<i;n++){var o=t[n];this._renderWidget(this._widgets[o])}},t}(Jg),BE=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)}}(),EE=function(){function e(e,t){var n=e.options;this.lineHeight=n.get(47),this.pixelRatio=n.get(101),this.overviewRulerLanes=n.get(61),this.renderBorder=n.get(60);var i=t.getColor(vC);this.borderColor=i?i.toString():null,this.hideCursor=n.get(40);var o=t.getColor(sC);this.cursorColor=o?o.transparent(.7).toString():null,this.themeType=t.type;var r=n.get(52),s=r.enabled,a=r.side,u=s?zl.getDefaultBackground():null;this.backgroundColor=null===u||"left"===a?null:N_.Format.CSS.formatHex(u);var l=n.get(103),c=l.overviewRuler;this.top=c.top,this.right=c.right,this.domWidth=c.width,this.domHeight=c.height,this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0;var d=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),h=d[0],A=d[1];this.x=h,this.w=A}return e.prototype._initLanes=function(e,t,n){var i=t-e;if(n>=3){var o=Math.floor(i/3),r=Math.floor(i/3),s=i-o-r,a=e,u=a+o,l=a+o+s;return[[0,a,u,a,l,a,u,a],[0,o,s,o+s,r,o+s+r,s+r,o+s+r]]}if(2===n){o=Math.floor(i/2),r=i-o,a=e,l=a+o;return[[0,a,a,a,l,a,a,a],[0,o,o,o,r,o+r,o+r,o+r]]}var c=e,d=i;return[[0,c,c,c,c,c,c,c],[0,d,d,d,d,d,d,d]]},e.prototype.equals=function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight},e}(),xE=function(e){function t(t){var n=e.call(this,t)||this;return n._domNode=Dg(document.createElement("canvas")),n._domNode.setClassName("decorationsOverviewRuler"),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setContain("strict"),n._domNode.setAttribute("aria-hidden","true"),n._updateSettings(!1),n._tokensColorTrackerListener=zl.onDidChange((function(e){e.changedColorMap&&n._updateSettings(!0)})),n._cursorPositions=[],n}return BE(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},t.prototype._updateSettings=function(e){var t=new EE(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)},t.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},t.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;t<n;t++)this._cursorPositions[t]=e.selections[t].getPosition();return this._cursorPositions.sort(mn.compare),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._render()},t.prototype._render=function(){var e=this._settings.canvasWidth,t=this._settings.canvasHeight,n=this._settings.lineHeight,i=this._context.viewLayout,o=this._context.viewLayout.getScrollHeight(),r=t/o,s=this._context.model.getAllOverviewRulerDecorations(this._context.theme),a=6*this._settings.pixelRatio|0,u=a/2|0,l=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?l.clearRect(0,0,e,t):(l.fillStyle=this._settings.backgroundColor,l.fillRect(0,0,e,t));var c=this._settings.x,d=this._settings.w,h=Object.keys(s);h.sort();for(var A=0,p=h.length;A<p;A++){var f=h[A],g=s[f];l.fillStyle=f;for(var m=0,v=0,_=0,y=0,w=g.length;y<w;y++){var b=g[3*y],C=g[3*y+1],S=g[3*y+2],B=i.getVerticalOffsetForLineNumber(C)*r|0,E=(i.getVerticalOffsetForLineNumber(S)+n)*r|0,x=E-B;if(x<a){var L=(B+E)/2|0;L<u?L=u:L+u>t&&(L=t-u),B=L-u,E=L+u}B>_+1||b!==m?(0!==y&&l.fillRect(c[m],v,d[m],_-v),m=b,v=B,_=E):E>_&&(_=E)}l.fillRect(c[m],v,d[m],_-v)}if(!this._settings.hideCursor&&this._settings.cursorColor){var D=2*this._settings.pixelRatio|0,N=D/2|0,k=this._settings.x[7],I=this._settings.w[7];l.fillStyle=this._settings.cursorColor;for(v=-100,_=-100,y=0,w=this._cursorPositions.length;y<w;y++){var F=this._cursorPositions[y];L=i.getVerticalOffsetForLineNumber(F.lineNumber)*r|0;L<N?L=N:L+N>t&&(L=t-N);B=L-N,E=B+D;B>_+1?(0!==y&&l.fillRect(k,v,I,_-v),v=B,_=E):E>_&&(_=E)}l.fillRect(k,v,I,_-v)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,t),l.stroke(),l.moveTo(0,0),l.lineTo(e,0),l.stroke())},t}(Jg),LE=function(){function e(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}return e.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},e}(),DE=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}return e.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1},e.prototype.setColorZone=function(e){this._colorZone=e},e.prototype.getColorZones=function(){return this._colorZone},e}(),NE=function(){function e(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}return e.prototype.getId2Color=function(){return this._id2Color},e.prototype.setZones=function(e){this._zones=e,this._zones.sort(DE.compare)},e.prototype.setLineHeight=function(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.setPixelRatio=function(e){this._pixelRatio=e,this._colorZonesInvalid=!0},e.prototype.getDOMWidth=function(){return this._domWidth},e.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},e.prototype.setDOMWidth=function(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)},e.prototype.getDOMHeight=function(){return this._domHeight},e.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},e.prototype.setDOMHeight=function(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.getOuterHeight=function(){return this._outerHeight},e.prototype.setOuterHeight=function(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.resolveColorZones=function(){for(var e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),i=Math.floor(this._outerHeight),o=n/i,r=Math.floor(4*this._pixelRatio/2),s=[],a=0,u=this._zones.length;a<u;a++){var l=this._zones[a];if(!e){var c=l.getColorZones();if(c){s.push(c);continue}}var d=Math.floor(o*this._getVerticalOffsetForLine(l.startLineNumber)),h=Math.floor(o*(this._getVerticalOffsetForLine(l.endLineNumber)+t)),A=Math.floor((d+h)/2),p=h-A;p<r&&(p=r),A-p<0&&(A=p),A+p>n&&(A=n-p);var f=l.color,g=this._color2Id[f];g||(g=++this._lastAssignedId,this._color2Id[f]=g,this._id2Color[g]=f);var m=new LE(A-p,A+p,g);l.setColorZone(m),s.push(m)}return this._colorZonesInvalid=!1,s.sort(LE.compare),s},e}(),kE=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)}}(),IE=function(e){function t(t,n){var i=e.call(this)||this;i._context=t;var o=i._context.configuration.options;return i._domNode=Dg(document.createElement("canvas")),i._domNode.setClassName(n),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._domNode.setContain("strict"),i._zoneManager=new NE((function(e){return i._context.viewLayout.getVerticalOffsetForLineNumber(e)})),i._zoneManager.setDOMWidth(0),i._zoneManager.setDOMHeight(0),i._zoneManager.setOuterHeight(i._context.viewLayout.getScrollHeight()),i._zoneManager.setLineHeight(o.get(47)),i._zoneManager.setPixelRatio(o.get(101)),i._context.addEventHandler(i),i}return kE(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return e.hasChanged(47)&&(this._zoneManager.setLineHeight(t.get(47)),this._render()),e.hasChanged(101)&&(this._zoneManager.setPixelRatio(t.get(101)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},t.prototype.onFlushed=function(e){return this._render(),!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},t.prototype.onZonesChanged=function(e){return this._render(),!0},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},t.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},t.prototype._render=function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(o,n,i,e),!0},t.prototype._renderOneLane=function(e,t,n,i){for(var o=0,r=0,s=0,a=0,u=t;a<u.length;a++){var l=u[a],c=l.colorId,d=l.from,h=l.to;c!==o?(e.fillRect(0,r,i,s-r),o=c,e.fillStyle=n[o],r=d,s=h):s>=d?s=Math.max(s,h):(e.fillRect(0,r,i,s-r),r=d,s=h)}e.fillRect(0,r,i,s-r)},t}(Yg),FE=(n("ef37"),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)}}()),ME=function(e){function t(t){var n=e.call(this,t)||this;n.domNode=Dg(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.domNode.setClassName("view-rulers"),n._renderedRulers=[];var i=n._context.configuration.options;return n._rulers=i.get(73),n._typicalHalfwidthCharacterWidth=i.get(32).typicalHalfwidthCharacterWidth,n}return FE(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._rulers=t.get(73),this._typicalHalfwidthCharacterWidth=t.get(32).typicalHalfwidthCharacterWidth,!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.prepareRender=function(e){},t.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e<t){var n=this._context.model.getOptions().tabSize,i=n,o=t-e;while(o>0){var r=Dg(document.createElement("div"));r.setClassName("view-ruler"),r.setWidth(i),this.domNode.appendChild(r),this._renderedRulers.push(r),o--}}else{var s=e-t;while(s>0){r=this._renderedRulers.pop();this.domNode.removeChild(r),s--}}},t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t<n;t++){var i=this._renderedRulers[t];i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(this._rulers[t]*this._typicalHalfwidthCharacterWidth)}},t}(Jg);gm((function(e,t){var n=e.getColor(pC);n&&t.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+n+" inset; }")}));n("d8c3");var OE=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)}}(),TE=function(e){function t(t){var n=e.call(this,t)||this;n._scrollTop=0,n._width=0,n._updateWidth(),n._shouldShow=!1;var i=n._context.configuration.options,o=i.get(74);return n._useShadows=o.useShadows,n._domNode=Dg(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n}return OE(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._updateShouldShow=function(){var e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)},t.prototype.getDomNode=function(){return this._domNode},t.prototype._updateWidth=function(){var e=this._context.configuration.options,t=e.get(103);0===t.renderMinimap||t.minimapWidth>0&&0===t.minimapLeft?this._width=t.width:this._width=t.width-t.minimapWidth-t.verticalScrollbarWidth},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(74);return this._useShadows=n.useShadows,this._updateWidth(),this._updateShouldShow(),!0},t.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},t}(Jg);gm((function(e,t){var n=e.getColor(_w);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")}));n("782d");var PE=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)}}(),RE=function(){function e(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}return e}(),UE=function(){function e(e,t){this.lineNumber=e,this.ranges=t}return e}();function HE(e){return new RE(e)}function QE(e){return new UE(e.lineNumber,e.ranges.map(HE))}var VE=Hn,WE=function(e){function t(t){var n=e.call(this)||this;n._previousFrameVisibleRangesWithStyle=[],n._context=t;var i=n._context.configuration.options;return n._lineHeight=i.get(47),n._roundedSelection=i.get(72),n._typicalHalfwidthCharacterWidth=i.get(32).typicalHalfwidthCharacterWidth,n._selections=[],n._renderResult=null,n._context.addEventHandler(n),n}return PE(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(47),this._roundedSelection=t.get(72),this._typicalHalfwidthCharacterWidth=t.get(32).typicalHalfwidthCharacterWidth,!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];if(i.ranges.length>1)return!0}return!1},t.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var i=this._typicalHalfwidthCharacterWidth/4,o=null,r=null;if(n&&n.length>0&&t.length>0){var s=t[0].lineNumber;if(s===e.startLineNumber)for(var a=0;!o&&a<n.length;a++)n[a].lineNumber===s&&(o=n[a].ranges[0]);var u=t[t.length-1].lineNumber;if(u===e.endLineNumber)for(a=n.length-1;!r&&a>=0;a--)n[a].lineNumber===u&&(r=n[a].ranges[0]);o&&!o.startStyle&&(o=null),r&&!r.startStyle&&(r=null)}a=0;for(var l=t.length;a<l;a++){var c=t[a].ranges[0],d=c.left,h=c.left+c.width,A={top:0,bottom:0},p={top:0,bottom:0};if(a>0){var f=t[a-1].ranges[0].left,g=t[a-1].ranges[0].left+t[a-1].ranges[0].width;KE(d-f)<i?A.top=2:d>f&&(A.top=1),KE(h-g)<i?p.top=2:f<h&&h<g&&(p.top=1)}else o&&(A.top=o.startStyle.top,p.top=o.endStyle.top);if(a+1<l){var m=t[a+1].ranges[0].left,v=t[a+1].ranges[0].left+t[a+1].ranges[0].width;KE(d-m)<i?A.bottom=2:m<d&&d<v&&(A.bottom=1),KE(h-v)<i?p.bottom=2:h<v&&(p.bottom=1)}else r&&(A.bottom=r.startStyle.bottom,p.bottom=r.endStyle.bottom);c.startStyle=A,c.endStyle=p}},t.prototype._getVisibleRangesWithStyle=function(e,t,n){var i=t.linesVisibleRangesForRange(e,!0)||[],o=i.map(QE),r=this._visibleRangesHaveGaps(o);return VE||r||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,o,n),o},t.prototype._createSelectionPiece=function(e,t,n,i,o){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+i.toString()+"px;width:"+o.toString()+"px;height:"+t+'px;"></div>'},t.prototype._actualRenderOneSelection=function(e,n,i,o){if(0!==o.length)for(var r=!!o[0].ranges[0].startStyle,s=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),u=o[0].lineNumber,l=o[o.length-1].lineNumber,c=0,d=o.length;c<d;c++){for(var h=o[c],A=h.lineNumber,p=A-n,f=i&&(A===l||A===u)?a:s,g=i&&A===u?1:0,m="",v="",_=0,y=h.ranges.length;_<y;_++){var w=h.ranges[_];if(r){var b=w.startStyle,C=w.endStyle;if(1===b.top||1===b.bottom){m+=this._createSelectionPiece(g,f,t.SELECTION_CLASS_NAME,w.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH);var S=t.EDITOR_BACKGROUND_CLASS_NAME;1===b.top&&(S+=" "+t.SELECTION_TOP_RIGHT),1===b.bottom&&(S+=" "+t.SELECTION_BOTTOM_RIGHT),m+=this._createSelectionPiece(g,f,S,w.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH)}if(1===C.top||1===C.bottom){m+=this._createSelectionPiece(g,f,t.SELECTION_CLASS_NAME,w.left+w.width,t.ROUNDED_PIECE_WIDTH);var B=t.EDITOR_BACKGROUND_CLASS_NAME;1===C.top&&(B+=" "+t.SELECTION_TOP_LEFT),1===C.bottom&&(B+=" "+t.SELECTION_BOTTOM_LEFT),m+=this._createSelectionPiece(g,f,B,w.left+w.width,t.ROUNDED_PIECE_WIDTH)}}var E=t.SELECTION_CLASS_NAME;if(r){b=w.startStyle,C=w.endStyle;0===b.top&&(E+=" "+t.SELECTION_TOP_LEFT),0===b.bottom&&(E+=" "+t.SELECTION_BOTTOM_LEFT),0===C.top&&(E+=" "+t.SELECTION_TOP_RIGHT),0===C.bottom&&(E+=" "+t.SELECTION_BOTTOM_RIGHT)}v+=this._createSelectionPiece(g,f,E,w.left,w.width)}e[p][0]+=m,e[p][1]+=v}},t.prototype.prepareRender=function(e){for(var t=[],n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o=n;o<=i;o++){var r=o-n;t[r]=["",""]}for(var s=[],a=0,u=this._selections.length;a<u;a++){var l=this._selections[a];if(l.isEmpty())s[a]=null;else{var c=this._getVisibleRangesWithStyle(l,e,this._previousFrameVisibleRangesWithStyle[a]);s[a]=c,this._actualRenderOneSelection(t,n,this._selections.length>1,c)}}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t.map((function(e){var t=e[0],n=e[1];return t+n}))},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.SELECTION_CLASS_NAME="selected-text",t.SELECTION_TOP_LEFT="top-left-radius",t.SELECTION_BOTTOM_LEFT="bottom-left-radius",t.SELECTION_TOP_RIGHT="top-right-radius",t.SELECTION_BOTTOM_RIGHT="bottom-right-radius",t.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",t.ROUNDED_PIECE_WIDTH=10,t}(Hy);function KE(e){return e<0?-e:e}gm((function(e,t){var n=e.getColor(Rw);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var i=e.getColor(Hw);i&&t.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var o=e.getColor(Uw);o&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+o+"; }")}));n("d93b");var zE=function(){function e(e,t,n,i,o,r){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=o,this.textContentClassName=r}return e}(),jE=function(){function e(e){this._context=e;var t=this._context.configuration.options,n=t.get(32);this._cursorStyle=t.get(17),this._lineHeight=t.get(47),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(20),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Dg(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),Zf.applyFontInfo(this._domNode,n),this._domNode.setDisplay("none"),this._position=new mn(1,1),this._lastRenderedContent="",this._renderData=null}return e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return this._position},e.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},e.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},e.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(32);return this._cursorStyle=t.get(17),this._lineHeight=t.get(47),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(20),this._typicalHalfwidthCharacterWidth),Zf.applyFontInfo(this._domNode,n),!0},e.prototype.onCursorPositionChanged=function(e){return this._position=e,!0},e.prototype._prepareRender=function(e){var t="";if(this._cursorStyle===D.Line||this._cursorStyle===D.LineThin){var n,i=e.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;if(this._cursorStyle===D.Line){if(n=mr(this._lineCursorWidth>0?this._lineCursorWidth:2),n>2){var o=this._context.model.getLineContent(this._position.lineNumber),r=ns(o,this._position.column-1);t=o.substr(this._position.column-1,r)}}else n=mr(1);var s=i.left;n>=2&&s>=1&&(s-=1);var a=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new zE(a,s,n,this._lineHeight,t,"")}var u=this._context.model.getLineContent(this._position.lineNumber),l=ns(u,this._position.column-1),c=e.linesVisibleRangesForRange(new vn(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+l),!1);if(!c||0===c.length)return null;var d=c[0];if(d.outsideRenderedLine||0===d.ranges.length)return null;var h=d.ranges[0],A=h.width<1?this._typicalHalfwidthCharacterWidth:h.width,p="";if(this._cursorStyle===D.Block){var f=this._context.model.getViewLineData(this._position.lineNumber);t=u.substr(this._position.column-1,l);var g=f.tokens.findTokenIndexAtOffset(this._position.column-1);p=f.tokens.getClassName(g)}var m=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,v=this._lineHeight;return this._cursorStyle!==D.Underline&&this._cursorStyle!==D.UnderlineThin||(m+=this._lineHeight-2,v=2),new zE(m,h.left,A,v,t,p)},e.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},e.prototype.render=function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},e}(),GE=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)}}(),qE=function(e){function t(t){var n=e.call(this,t)||this,i=n._context.configuration.options;return n._readOnly=i.get(65),n._cursorBlinking=i.get(15),n._cursorStyle=i.get(17),n._cursorSmoothCaretAnimation=i.get(16),n._selectionIsEmpty=!0,n._isVisible=!1,n._primaryCursor=new jE(n._context),n._secondaryCursors=[],n._renderData=[],n._domNode=Dg(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._updateDomClassName(),n._domNode.appendChild(n._primaryCursor.getDomNode()),n._startCursorBlinkAnimation=new bi,n._cursorFlatBlinkInterval=new Ci,n._blinkingEnabled=!1,n._editorHasFocus=!1,n._updateBlinking(),n}return GE(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;this._readOnly=t.get(65),this._cursorBlinking=t.get(15),this._cursorStyle=t.get(17),this._cursorSmoothCaretAnimation=t.get(16),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(var n=0,i=this._secondaryCursors.length;n<i;n++)this._secondaryCursors[n].onConfigurationChanged(e);return!0},t.prototype._onCursorPositionChanged=function(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length)for(var n=t.length-this._secondaryCursors.length,i=0;i<n;i++){var o=new jE(this._context);this._domNode.domNode.insertBefore(o.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(o)}else if(this._secondaryCursors.length>t.length){var r=this._secondaryCursors.length-t.length;for(i=0;i<r;i++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(i=0;i<t.length;i++)this._secondaryCursors[i].onCursorPositionChanged(t[i])},t.prototype.onCursorStateChanged=function(e){for(var t=[],n=0,i=e.selections.length;n<i;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));var o=e.selections[0].isEmpty();return this._selectionIsEmpty!==o&&(this._selectionIsEmpty=o,this._updateDomClassName()),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onFocusChanged=function(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onTokensChanged=function(e){var t=function(t){for(var n=0,i=e.ranges.length;n<i;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(var n=0,i=this._secondaryCursors;n<i.length;n++){var o=i[n];if(t(o.getPosition()))return!0}return!1},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},t.prototype._updateBlinking=function(){var e=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var n=this._getCursorBlinking(),i=0===n,o=5===n;i?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),i||o||(1===n?this._cursorFlatBlinkInterval.cancelAndSet((function(){e._isVisible?e._hide():e._show()}),t.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet((function(){e._blinkingEnabled=!0,e._updateDomClassName()}),t.BLINK_INTERVAL))},t.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},t.prototype._getClassName=function(){var e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case D.Line:e+=" cursor-line-style";break;case D.Block:e+=" cursor-block-style";break;case D.Underline:e+=" cursor-underline-style";break;case D.LineThin:e+=" cursor-line-thin-style";break;case D.BlockOutline:e+=" cursor-block-outline-style";break;case D.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e},t.prototype._show=function(){this._primaryCursor.show();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0},t.prototype._hide=function(){this._primaryCursor.hide();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1},t.prototype.prepareRender=function(e){this._primaryCursor.prepareRender(e);for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)},t.prototype.render=function(e){var t=[],n=0,i=this._primaryCursor.render(e);i&&(t[n++]=i);for(var o=0,r=this._secondaryCursors.length;o<r;o++){var s=this._secondaryCursors[o].render(e);s&&(t[n++]=s)}this._renderData=t},t.prototype.getLastRenderData=function(){return this._renderData},t.BLINK_INTERVAL=500,t}(Jg);gm((function(e,t){var n=e.getColor(sC);if(n){var i=e.getColor(aC);i||(i=n.opposite()),t.addRule(".monaco-editor .cursor { background-color: "+n+"; border-color: "+n+"; color: "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }")}}));var YE=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)}}(),XE=function(){throw new Error("Invalid change accessor")},JE=function(e){function t(t){var n=e.call(this,t)||this,i=n._context.configuration.options,o=i.get(103);return n._lineHeight=i.get(47),n._contentWidth=o.contentWidth,n._contentLeft=o.contentLeft,n.domNode=Dg(document.createElement("div")),n.domNode.setClassName("view-zones"),n.domNode.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.marginDomNode=Dg(document.createElement("div")),n.marginDomNode.setClassName("margin-view-zones"),n.marginDomNode.setPosition("absolute"),n.marginDomNode.setAttribute("role","presentation"),n.marginDomNode.setAttribute("aria-hidden","true"),n._zones={},n}return YE(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._zones={}},t.prototype._recomputeWhitespacesProps=function(){for(var e=this,t=this._context.viewLayout.getWhitespaces(),n=new Map,i=0,o=t;i<o.length;i++){var r=o[i];n.set(r.id,r)}return this._context.viewLayout.changeWhitespace((function(t){for(var i=!1,o=Object.keys(e._zones),r=0,s=o.length;r<s;r++){var a=o[r],u=e._zones[a],l=e._computeWhitespaceProps(u.delegate),c=n.get(a);!c||c.afterLineNumber===l.afterViewLineNumber&&c.height===l.heightInPx||(t.changeOneWhitespace(a,l.afterViewLineNumber,l.heightInPx),e._safeCallOnComputedHeight(u.delegate,l.heightInPx),i=!0)}return i}))},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(103);return this._lineHeight=t.get(47),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,e.hasChanged(47)&&this._recomputeWhitespacesProps(),!0},t.prototype.onLineMappingChanged=function(e){var t=this._recomputeWhitespacesProps();return t&&this._context.viewLayout.onHeightMaybeChanged(),t},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype._getZoneOrdinal=function(e){return"undefined"!==typeof e.afterColumn?e.afterColumn:1e4},t.prototype._computeWhitespaceProps=function(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var t,n;if("undefined"!==typeof e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var i=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new mn(i,this._context.model.getModelLineMaxColumn(i))}n=t.column===this._context.model.getModelLineMaxColumn(t.lineNumber)?this._context.model.validateModelPosition({lineNumber:t.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:t.lineNumber,column:t.column+1});var o=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t),r=this._context.model.coordinatesConverter.modelPositionIsVisible(n);return{afterViewLineNumber:o.lineNumber,heightInPx:r?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}},t.prototype.changeViewZones=function(e){var t=this;return this._context.viewLayout.changeWhitespace((function(n){var i=!1,o={addZone:function(e){return i=!0,t._addZone(n,e)},removeZone:function(e){e&&(i=t._removeZone(n,e)||i)},layoutZone:function(e){e&&(i=t._layoutZone(n,e)||i)}};return ZE(e,o),o.addZone=XE,o.removeZone=XE,o.layoutZone=XE,i}))},t.prototype._addZone=function(e,t){var n=this._computeWhitespaceProps(t),i=e.insertWhitespace(n.afterViewLineNumber,this._getZoneOrdinal(t),n.heightInPx,n.minWidthInPx),o={whitespaceId:i,delegate:t,isVisible:!1,domNode:Dg(t.domNode),marginDomNode:t.marginDomNode?Dg(t.marginDomNode):null};return this._safeCallOnComputedHeight(o.delegate,n.heightInPx),o.domNode.setPosition("absolute"),o.domNode.domNode.style.width="100%",o.domNode.setDisplay("none"),o.domNode.setAttribute("monaco-view-zone",o.whitespaceId),this.domNode.appendChild(o.domNode),o.marginDomNode&&(o.marginDomNode.setPosition("absolute"),o.marginDomNode.domNode.style.width="100%",o.marginDomNode.setDisplay("none"),o.marginDomNode.setAttribute("monaco-view-zone",o.whitespaceId),this.marginDomNode.appendChild(o.marginDomNode)),this._zones[o.whitespaceId]=o,this.setShouldRender(),o.whitespaceId},t.prototype._removeZone=function(e,t){if(this._zones.hasOwnProperty(t)){var n=this._zones[t];return delete this._zones[t],e.removeWhitespace(n.whitespaceId),n.domNode.removeAttribute("monaco-visible-view-zone"),n.domNode.removeAttribute("monaco-view-zone"),n.domNode.domNode.parentNode.removeChild(n.domNode.domNode),n.marginDomNode&&(n.marginDomNode.removeAttribute("monaco-visible-view-zone"),n.marginDomNode.removeAttribute("monaco-view-zone"),n.marginDomNode.domNode.parentNode.removeChild(n.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},t.prototype._layoutZone=function(e,t){if(this._zones.hasOwnProperty(t)){var n=this._zones[t],i=this._computeWhitespaceProps(n.delegate);return e.changeOneWhitespace(n.whitespaceId,i.afterViewLineNumber,i.heightInPx),this._safeCallOnComputedHeight(n.delegate,i.heightInPx),this.setShouldRender(),!0}return!1},t.prototype.shouldSuppressMouseDownOnViewZone=function(e){if(this._zones.hasOwnProperty(e)){var t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1},t.prototype._heightInPixels=function(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight},t.prototype._minWidthInPixels=function(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0},t.prototype._safeCallOnComputedHeight=function(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(n){Ae(n)}},t.prototype._safeCallOnDomNodeTop=function(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(n){Ae(n)}},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){for(var t=e.viewportData.whitespaceViewportData,n={},i=!1,o=0,r=t.length;o<r;o++)n[t[o].id]=t[o],i=!0;var s=Object.keys(this._zones);for(o=0,r=s.length;o<r;o++){var a=s[o],u=this._zones[a],l=0,c=0,d="none";n.hasOwnProperty(a)?(l=n[a].verticalOffset-e.bigNumbersDelta,c=n[a].height,d="block",u.isVisible||(u.domNode.setAttribute("monaco-visible-view-zone","true"),u.isVisible=!0),this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(n[a].verticalOffset))):(u.isVisible&&(u.domNode.removeAttribute("monaco-visible-view-zone"),u.isVisible=!1),this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),u.domNode.setTop(l),u.domNode.setHeight(c),u.domNode.setDisplay(d),u.marginDomNode&&(u.marginDomNode.setTop(l),u.marginDomNode.setHeight(c),u.marginDomNode.setDisplay(d))}i&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},t}(Jg);function ZE(e,t){try{return e(t)}catch(n){Ae(n)}}var $E=function(){function e(e,t,n,i){this.configuration=e,this.theme=t,this.model=n,this.viewLayout=n.viewLayout,this.privateViewEventBus=i}return e.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)},e.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e)},e}(),ex=function(){function e(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return e.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)},e.prototype.removeEventHandler=function(e){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}},e.prototype.emit=function(e){this._eventQueue?this._eventQueue.push(e):this._eventQueue=[e],this._isConsumingQueue||this.consumeQueue()},e.prototype.emitMany=function(e){this._eventQueue?this._eventQueue=this._eventQueue.concat(e):this._eventQueue=e,this._isConsumingQueue||this.consumeQueue()},e.prototype.consumeQueue=function(){var e=this;this._eventHandlerGateKeeper((function(){try{e._isConsumingQueue=!0,e._doConsumeQueue()}finally{e._isConsumingQueue=!1}}))},e.prototype._doConsumeQueue=function(){while(this._eventQueue){var e=this._eventQueue;this._eventQueue=null;for(var t=this._eventHandlers.slice(0),n=0,i=t.length;n<i;n++)t[n].handleEvents(e)}},e}(),tx=function(){function e(e,t,n,i){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=n,this._model=i,this.visibleRange=new vn(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}return e.prototype.getViewLineRenderingData=function(e){return this._model.getViewLineRenderingData(this.visibleRange,e)},e.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},e}(),nx=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)}}(),ix=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;a._cursor=r,a._renderAnimationFrame=null,a.outgoingEvents=s;var u=new TS(n,o,a.outgoingEvents,t);a.eventDispatcher=new ex((function(e){return a._renderOnce(e)})),a.eventDispatcher.addEventHandler(a),a._context=new $E(n,i.getTheme(),o,a.eventDispatcher),a._register(i.onThemeChange((function(e){a._context.theme=e,a.eventDispatcher.emit(new VC),a.render(!0,!1)}))),a.viewParts=[],a._textAreaHandler=new ZC(a._context,u,a.createTextAreaHandlerHelper()),a.viewParts.push(a._textAreaHandler),a.linesContent=Dg(document.createElement("div")),a.linesContent.setClassName("lines-content monaco-editor-background"),a.linesContent.setPosition("absolute"),a.domNode=Dg(document.createElement("div")),a.domNode.setClassName(a.getEditorClassName()),a.overflowGuardContainer=Dg(document.createElement("div")),Zg.write(a.overflowGuardContainer,3),a.overflowGuardContainer.setClassName("overflow-guard"),a._scrollbar=new VB(a._context,a.linesContent,a.domNode,a.overflowGuardContainer),a.viewParts.push(a._scrollbar),a.viewLines=new ZB(a._context,a.linesContent),a.viewZones=new JE(a._context),a.viewParts.push(a.viewZones);var l=new xE(a._context);a.viewParts.push(l);var c=new TE(a._context);a.viewParts.push(c);var d=new jS(a._context);a.viewParts.push(d),d.addDynamicOverlay(new tB(a._context)),d.addDynamicOverlay(new WE(a._context)),d.addDynamicOverlay(new qB(a._context)),d.addDynamicOverlay(new oB(a._context));var h=new GS(a._context);a.viewParts.push(h),h.addDynamicOverlay(new nB(a._context)),h.addDynamicOverlay(new jB(a._context)),h.addDynamicOverlay(new nE(a._context)),h.addDynamicOverlay(new eE(a._context)),h.addDynamicOverlay(new EC(a._context));var A=new LC(a._context);A.getDomNode().appendChild(a.viewZones.marginDomNode),A.getDomNode().appendChild(h.getDomNode()),a.viewParts.push(A),a.contentWidgets=new XS(a._context,a.domNode),a.viewParts.push(a.contentWidgets),a.viewCursors=new qE(a._context),a.viewParts.push(a.viewCursors),a.overlayWidgets=new SE(a._context),a.viewParts.push(a.overlayWidgets);var p=new ME(a._context);a.viewParts.push(p);var f=new bE(a._context);if(a.viewParts.push(f),l){var g=a._scrollbar.getOverviewRulerLayoutInfo();g.parent.insertBefore(l.getDomNode(),g.insertBefore)}return a.linesContent.appendChild(d.getDomNode()),a.linesContent.appendChild(p.domNode),a.linesContent.appendChild(a.viewZones.domNode),a.linesContent.appendChild(a.viewLines.getDomNode()),a.linesContent.appendChild(a.contentWidgets.domNode),a.linesContent.appendChild(a.viewCursors.getDomNode()),a.overflowGuardContainer.appendChild(A.getDomNode()),a.overflowGuardContainer.appendChild(a._scrollbar.getDomNode()),a.overflowGuardContainer.appendChild(c.getDomNode()),a.overflowGuardContainer.appendChild(a._textAreaHandler.textArea),a.overflowGuardContainer.appendChild(a._textAreaHandler.textAreaCover),a.overflowGuardContainer.appendChild(a.overlayWidgets.getDomNode()),a.overflowGuardContainer.appendChild(f.getDomNode()),a.domNode.appendChild(a.overflowGuardContainer),a.domNode.appendChild(a.contentWidgets.overflowingContentWidgetsDomNode),a._applyLayout(),a.pointerHandler=a._register(new Ny(a._context,u,a.createPointerHandlerHelper())),a._register(o.addEventListener((function(e){a.eventDispatcher.emitMany(e)}))),a._register(a._cursor.addEventListener((function(e){a.eventDispatcher.emitMany(e)}))),a}return nx(t,e),t.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},t.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus()},getLastRenderData:function(){var t=e.viewCursors.getLastRenderData()||[],n=e._textAreaHandler.getLastRenderData();return new cy(t,n)},shouldSuppressMouseDownOnViewZone:function(t){return e.viewZones.shouldSuppressMouseDownOnViewZone(t)},shouldSuppressMouseDownOnWidget:function(t){return e.contentWidgets.shouldSuppressMouseDownOnWidget(t)},getPositionFromDOMInfo:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(t,n)},visibleRangeForPosition:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new mn(t,n))},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t)}}},t.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new mn(t,n))}}},t.prototype._applyLayout=function(){var e=this._context.configuration.options,t=e.get(103);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this.overflowGuardContainer.setWidth(t.width),this.overflowGuardContainer.setHeight(t.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},t.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(100)+" "+hm(this._context.theme.type)+e},t.prototype.onConfigurationChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._applyLayout(),!1},t.prototype.onFocusChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(e.isFocused),e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},t.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},t.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1},t.prototype.dispose=function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var t=0,n=this.viewParts.length;t<n;t++)this.viewParts[t].dispose();this.viewParts=[],e.prototype.dispose.call(this)},t.prototype._renderOnce=function(e){var t=ox(e);return this._scheduleRender(),t},t.prototype._scheduleRender=function(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=xo(this._onRenderScheduled.bind(this),100))},t.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},t.prototype._renderNow=function(){var e=this;ox((function(){return e._actualRender()}))},t.prototype._getViewPartsToRender=function(){for(var e=[],t=0,n=0,i=this.viewParts.length;n<i;n++){var o=this.viewParts[n];o.shouldRender()&&(e[t++]=o)}return e},t.prototype._actualRender=function(){if(so(this.domNode.domNode)){var e=this._getViewPartsToRender();if(this.viewLines.shouldRender()||0!==e.length){var t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);var n=new tx(this._cursor.getViewSelections(),t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(n),this.viewLines.shouldRender()&&(this.viewLines.renderText(n),this.viewLines.onDidRender(),e=this._getViewPartsToRender());for(var i=new tm(this._context.viewLayout,n,this.viewLines),o=0,r=e.length;o<r;o++){var s=e[o];s.prepareRender(i)}for(o=0,r=e.length;o<r;o++){s=e[o];s.render(i),s.onDidRender()}}}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.restoreState=function(e){this._context.viewLayout.setScrollPositionNow({scrollTop:e.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:e.scrollLeft})},t.prototype.getOffsetForColumn=function(e,t){var n=this._context.model.validateModelPosition({lineNumber:e,column:t}),i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();var o=this.viewLines.visibleRangeForPosition(new mn(i.lineNumber,i.column));return o?o.left:-1},t.prototype.getTargetAtClientPoint=function(e,t){var n=this.pointerHandler.getTargetAtClientPoint(e,t);return n?RS.convertViewToModelMouseTarget(n,this._context.model.coordinatesConverter):null},t.prototype.createOverviewRuler=function(e){return new IE(this._context,e)},t.prototype.change=function(e){var t=this;return this._renderOnce((function(){var n=t.viewZones.changeViewZones(e);return n&&(t._context.viewLayout.onHeightMaybeChanged(),t._context.privateViewEventBus.emit(new KC)),n}))},t.prototype.render=function(e,t){if(t){this.viewLines.forceShouldRender();for(var n=0,i=this.viewParts.length;n<i;n++){var o=this.viewParts[n];o.forceShouldRender()}}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()},t.prototype.focus=function(){this._textAreaHandler.focusTextArea()},t.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},t.prototype.addContentWidget=function(e){this.contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()},t.prototype.layoutContentWidget=function(e){var t=e.position?e.position.position:null,n=e.position&&e.position.range||null,i=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,t,n,i),this._scheduleRender()},t.prototype.removeContentWidget=function(e){this.contentWidgets.removeWidget(e.widget),this._scheduleRender()},t.prototype.addOverlayWidget=function(e){this.overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()},t.prototype.layoutOverlayWidget=function(e){var t=e.position?e.position.preference:null,n=this.overlayWidgets.setWidgetPosition(e.widget,t);n&&this._scheduleRender()},t.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender()},t}(Yg);function ox(e){try{return e()}catch(t){Ae(t)}}var rx=function(){function e(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new ty(new vn(1,1,1,1),0,new mn(1,1),0),new ty(new vn(1,1,1,1),0,new mn(1,1),0))}return e.prototype.dispose=function(e){this._removeTrackedRange(e)},e.prototype.startTrackingSelection=function(e){this._trackSelection=!0,this._updateTrackedRange(e)},e.prototype.stopTrackingSelection=function(e){this._trackSelection=!1,this._removeTrackedRange(e)},e.prototype._updateTrackedRange=function(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))},e.prototype._removeTrackedRange=function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)},e.prototype.asCursorState=function(){return new ry(this.modelState,this.viewState)},e.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new yn(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new yn(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},e.prototype.ensureValidState=function(e){this._setState(e,this.modelState,this.viewState)},e.prototype.setState=function(e,t,n){this._setState(e,t,n)},e.prototype._setState=function(e,t,n){if(t){r=e.model.validateRange(t.selectionStart);var i=t.selectionStart.equalsRange(r)?t.selectionStartLeftoverVisibleColumns:0,o=(s=e.model.validatePosition(t.position),t.position.equals(s)?t.leftoverVisibleColumns:0);t=new ty(r,i,s,o)}else{if(!n)return;var r=e.model.validateRange(e.convertViewRangeToModelRange(n.selectionStart)),s=e.model.validatePosition(e.convertViewPositionToModelPosition(n.position.lineNumber,n.position.column));t=new ty(r,n.selectionStartLeftoverVisibleColumns,s,n.leftoverVisibleColumns)}if(n){l=e.validateViewRange(n.selectionStart,t.selectionStart),c=e.validateViewPosition(n.position,t.position);n=new ty(l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}else{var a=e.convertModelPositionToViewPosition(new mn(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),u=e.convertModelPositionToViewPosition(new mn(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),l=new vn(a.lineNumber,a.column,u.lineNumber,u.column),c=e.convertModelPositionToViewPosition(t.position);n=new ty(l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=n,this._updateTrackedRange(e)},e}(),sx=function(){function e(e){this.context=e,this.primaryCursor=new rx(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return e.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},e.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].startTrackingSelection(this.context)},e.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].stopTrackingSelection(this.context)},e.prototype.updateContext=function(e){this.context=e},e.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].ensureValidState(this.context)},e.prototype.readSelectionFromMarkers=function(){var e=[];e[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return e},e.prototype.getAll=function(){var e=[];e[0]=this.primaryCursor.asCursorState();for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].asCursorState();return e},e.prototype.getViewPositions=function(){var e=[];e[0]=this.primaryCursor.viewState.position;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.position;return e},e.prototype.getSelections=function(){var e=[];e[0]=this.primaryCursor.modelState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].modelState.selection;return e},e.prototype.getViewSelections=function(){var e=[];e[0]=this.primaryCursor.viewState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.selection;return e},e.prototype.setSelections=function(e){this.setStates(ry.fromModelSelections(e))},e.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},e.prototype.setStates=function(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))},e.prototype._setSecondaryStates=function(e){var t=this.secondaryCursors.length,n=e.length;if(t<n)for(var i=n-t,o=0;o<i;o++)this._addSecondaryCursor();else if(t>n){var r=t-n;for(o=0;o<r;o++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(o=0;o<n;o++)this.secondaryCursors[o].setState(this.context,e[o].modelState,e[o].viewState)},e.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},e.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new rx(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},e.prototype.getLastAddedCursorIndex=function(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex},e.prototype._removeSecondaryCursor=function(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},e.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t];return e},e.prototype.normalize=function(){if(0!==this.secondaryCursors.length){for(var e=this._getAll(),t=[],n=0,i=e.length;n<i;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort((function(e,t){return e.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber}));for(var o=0;o<t.length-1;o++){var r=t[o],s=t[o+1],a=r.selection,u=s.selection;if(this.context.config.multiCursorMergeOverlapping){var l=void 0;if(l=u.isEmpty()||a.isEmpty()?u.getStartPosition().isBeforeOrEqual(a.getEndPosition()):u.getStartPosition().isBefore(a.getEndPosition()),l){var c=r.index<s.index?o:o+1,d=r.index<s.index?o+1:o,h=t[d].index,A=t[c].index,p=t[d].selection,f=t[c].selection;if(!p.equalsSelection(f)){var g=p.plusRange(f),m=p.selectionStartLineNumber===p.startLineNumber&&p.selectionStartColumn===p.startColumn,v=f.selectionStartLineNumber===f.startLineNumber&&f.selectionStartColumn===f.startColumn,_=void 0;h===this.lastAddedCursorIndex?(_=m,this.lastAddedCursorIndex=A):_=v;var y=void 0;y=_?new yn(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new yn(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn),t[c].selection=y;var w=ry.fromModelSelection(y);e[A].setState(this.context,w.modelState,w.viewState)}for(var b=0,C=t;b<C.length;b++){var S=C[b];S.index>h&&S.index--}e.splice(h,1),t.splice(d,1),this._removeSecondaryCursor(h-1),o--}}}}},e}(),ax=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 ux(e){for(var t=0,n=e.length;t<n;t++)if(6===e[t].type)return!0;return!1}var lx=function(){function e(e,t,n,i,o,r){this.selections=e,this.modelVersionId=t,this.oldSelections=n,this.oldModelVersionId=i,this.source=o,this.reason=r}return e}(),cx=function(){function e(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getAll()}return e.prototype.equals=function(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(var t=0,n=this.cursorState.length;t<n;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0},e}(),dx=function(){function e(e,t,n){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=n}return e.getAllAutoClosedCharacters=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];t=t.concat(o.getAutoClosedCharactersRanges())}return t},e.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},e.prototype.getAutoClosedCharactersRanges=function(){for(var e=[],t=0;t<this._autoClosedCharactersDecorations.length;t++){var n=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);n&&e.push(n)}return e},e.prototype.isValid=function(e){for(var t=[],n=0;n<this._autoClosedEnclosingDecorations.length;n++){var i=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(i&&(t.push(i),i.startLineNumber!==i.endLineNumber))return!1}t.sort(vn.compareRangesUsingStarts),e.sort(vn.compareRangesUsingStarts);for(n=0;n<e.length;n++){if(n>=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0},e}(),hx=function(e){function t(t,n,i){var o=e.call(this)||this;o._onDidReachMaxCursorCount=o._register(new Ye),o.onDidReachMaxCursorCount=o._onDidReachMaxCursorCount.event,o._onDidAttemptReadOnlyEdit=o._register(new Ye),o.onDidAttemptReadOnlyEdit=o._onDidAttemptReadOnlyEdit.event,o._onDidChange=o._register(new Ye),o.onDidChange=o._onDidChange.event,o._configuration=t,o._model=n,o._knownModelVersionId=o._model.getVersionId(),o._viewModel=i,o.context=new ny(o._configuration,o._model,o._viewModel),o._cursors=new sx(o.context),o._isHandling=!1,o._isDoingComposition=!1,o._selectionsWhenCompositionStarted=null,o._columnSelectData=null,o._autoClosedActions=[],o._prevEditOperationType=0,o._register(o._model.onDidChangeRawContent((function(e){if(o._knownModelVersionId=e.versionId,!o._isHandling){var t=e.containsEvent(1);o._onModelContentChanged(t)}}))),o._register(i.addEventListener((function(e){ux(e)&&o._knownModelVersionId===o._model.getVersionId()&&o.setStates("viewModel",0,o.getAll())})));var r=function(){o.context=new ny(o._configuration,o._model,o._viewModel),o._cursors.updateContext(o.context)};return o._register(o._model.onDidChangeLanguage((function(e){r()}))),o._register(o._model.onDidChangeLanguageConfiguration((function(){r()}))),o._register(o._model.onDidChangeOptions((function(){r()}))),o._register(o._configuration.onDidChange((function(e){ey.shouldRecreate(e)&&r()}))),o}return ax(t,e),t.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=xe(this._autoClosedActions),e.prototype.dispose.call(this)},t.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var e=this._cursors.getSelections(),t=0;t<this._autoClosedActions.length;t++){var n=this._autoClosedActions[t];n.isValid(e)||(n.dispose(),this._autoClosedActions.splice(t,1),t--)}},t.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},t.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},t.prototype.getAll=function(){return this._cursors.getAll()},t.prototype.setStates=function(e,n,i){null!==i&&i.length>t.MAX_CURSOR_COUNT&&(i=i.slice(0,t.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var o=new cx(this._model,this);this._cursors.setStates(i),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,n,o)},t.prototype.setColumnSelectData=function(e){this._columnSelectData=e},t.prototype.reveal=function(e,t,n,i){this._revealRange(e,n,0,t,i)},t.prototype.revealRange=function(e,t,n,i,o){this.emitCursorRevealRange(e,n,i,t,o)},t.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},t.prototype.saveState=function(){for(var e=[],t=this._cursors.getSelections(),n=0,i=t.length;n<i;n++){var o=t[n];e.push({inSelectionMode:!o.isEmpty(),selectionStart:{lineNumber:o.selectionStartLineNumber,column:o.selectionStartColumn},position:{lineNumber:o.positionLineNumber,column:o.positionColumn}})}return e},t.prototype.restoreState=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n],r=1,s=1;o.position&&o.position.lineNumber&&(r=o.position.lineNumber),o.position&&o.position.column&&(s=o.position.column);var a=r,u=s;o.selectionStart&&o.selectionStart.lineNumber&&(a=o.selectionStart.lineNumber),o.selectionStart&&o.selectionStart.column&&(u=o.selectionStart.column),t.push({selectionStartLineNumber:a,selectionStartColumn:u,positionLineNumber:r,positionColumn:s})}this.setStates("restoreState",0,ry.fromModelSelections(t)),this.reveal("restoreState",!0,0,1)},t.prototype._onModelContentChanged=function(e){if(this._prevEditOperationType=0,e)this._cursors.dispose(),this._cursors=new sx(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var t=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,ry.fromModelSelections(t))}},t.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},t.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),n=t.lineNumber,i=ay.visibleColumnFromColumn2(this.context.config,this.context.viewModel,t);return{isReal:!1,fromViewLineNumber:n,fromViewVisualColumn:i,toViewLineNumber:n,toViewVisualColumn:i}},t.prototype.getSelections=function(){return this._cursors.getSelections()},t.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},t.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},t.prototype.setSelections=function(e,t){this.setStates(e,0,ry.fromModelSelections(t))},t.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},t.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e},t.prototype._pushAutoClosedAction=function(e,t){for(var n=[],i=[],o=0,r=e.length;o<r;o++)n.push({range:e[o],options:{inlineClassName:"auto-closed-character",stickiness:1}}),i.push({range:t[o],options:{stickiness:1}});var s=this._model.deltaDecorations([],n),a=this._model.deltaDecorations([],i);this._autoClosedActions.push(new dx(this._model,s,a))},t.prototype._executeEditOperation=function(e){if(e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=Ax.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);for(var n=[],i=[],o=0;o<e.commands.length;o++){var r=e.commands[o];r instanceof SS&&r.enclosingRange&&r.closeCharacterRange&&(n.push(r.closeCharacterRange),i.push(r.enclosingRange))}n.length>0&&this._pushAutoClosedAction(n,i),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}},t.prototype._interpretCommandResult=function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},t.prototype._emitStateChangedIfNecessary=function(e,t,n){var i=new cx(this._model,this);if(i.equals(n))return!1;var o=this._cursors.getSelections(),r=this._cursors.getViewSelections();try{var s=this._beginEmit();s.emit(new kC(r))}finally{this._endEmit()}if(!n||n.cursorState.length!==i.cursorState.length||i.cursorState.some((function(e,t){return!e.modelState.equals(n.cursorState[t].modelState)}))){var a=n?n.cursorState.map((function(e){return e.modelState.selection})):null,u=n?n.modelVersionId:0;this._onDidChange.fire(new lx(o,i.modelVersionId,a,u,e||"keyboard",t))}return!0},t.prototype._revealRange=function(e,t,n,i,o){var r=this._cursors.getViewPositions(),s=r[0];if(1===t)for(var a=1;a<r.length;a++)r[a].isBefore(s)&&(s=r[a]);else if(2===t)for(a=1;a<r.length;a++)s.isBeforeOrEqual(r[a])&&(s=r[a]);else if(r.length>1)return;var u=new vn(s.lineNumber,s.column,s.lineNumber,s.column);this.emitCursorRevealRange(e,u,n,i,o)},t.prototype.emitCursorRevealRange=function(e,t,n,i,o){try{var r=this._beginEmit();r.emit(new UC(e,t,n,i,o))}finally{this._endEmit()}},t.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];if(!o.text||o.text.indexOf("\n")>=0)return null;var r=o.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;var s=r[1],a=this.context.config.autoClosingPairsClose2.get(s);if(!a||1!==a.length)return null;var u=a[0].open,l=o.text.length-r[2].length-1,c=o.text.lastIndexOf(u,l-1);if(-1===c)return null;t.push([c,l])}return t},t.prototype.executeEdits=function(e,t,n){var i=this,o=null;"snippet"===e&&(o=this._findAutoClosingPairs(t)),o&&(t[0]._isTracked=!0);var r=[],s=[],a=this._model.pushEditOperations(this.getSelections(),t,(function(e){if(o)for(var t=0,a=o.length;t<a;t++){var u=o[t],l=u[0],c=u[1],d=e[t],h=d.range.startLineNumber,A=d.range.startColumn-1+l,p=d.range.startColumn-1+c;r.push(new vn(h,p+1,h,p+2)),s.push(new vn(h,A+1,h,p+2))}var f=n(e);return f&&(i._isHandling=!0),f}));a&&(this._isHandling=!1,this.setSelections(e,a)),r.length>0&&this._pushAutoClosedAction(r,s)},t.prototype.trigger=function(e,t,n){var i=Lu;if(t===i.CompositionStart)return this._isDoingComposition=!0,void(this._selectionsWhenCompositionStarted=this.getSelections().slice(0));if(t===i.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(65))this._onDidAttemptReadOnlyEdit.fire(void 0);else{var o=new cx(this._model,this),r=0;t!==i.Undo&&t!==i.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case i.Type:this._type(e,n.text);break;case i.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case i.Paste:r=4,this._paste(n.text,n.pasteOnNewLine,n.multicursorText);break;case i.Cut:this._cut();break;case i.Undo:r=5,this._interpretCommandResult(this._model.undo());break;case i.Redo:r=6,this._interpretCommandResult(this._model.redo());break;case i.ExecuteCommand:this._externalExecuteCommand(n);break;case i.ExecuteCommands:this._externalExecuteCommands(n);break;case i.CompositionEnd:this._interpretCompositionEnd(e);break}}catch(s){Ae(s)}this._isHandling=!1,t!==i.Undo&&t!==i.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,r,o)&&this._revealRange(e,0,0,!0,0)}},t.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&"keyboard"===e){var t=dx.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(CS.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),t)),this._selectionsWhenCompositionStarted=null}},t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(CS.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else{var n=t.length,i=0;while(i<n){var o=ns(t,i),r=t.substr(i,o),s=dx.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(CS.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),s,r)),i+=o}}},t.prototype._replacePreviousChar=function(e,t){this._executeEditOperation(CS.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,t))},t.prototype._paste=function(e,t,n){this._executeEditOperation(CS.paste(this.context.config,this.context.model,this.getSelections(),e,t,n))},t.prototype._cut=function(){this._executeEditOperation(cS.cut(this.context.config,this.context.model,this.getSelections()))},t.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new sy(0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new sy(0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t.MAX_CURSOR_COUNT=1e4,t}(jC),Ax=function(){function e(){}return e.executeCommands=function(e,t,n){for(var i={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},o=this._innerExecuteCommands(i,n),r=0,s=i.trackedRanges.length;r<s;r++)i.model._setTrackedRange(i.trackedRanges[r],null,0);return o},e._innerExecuteCommands=function(e,t){if(this._arrayIsEmpty(t))return null;var n=this._getEditOperations(e,t);if(0===n.operations.length)return null;var i=n.operations,o=this._getLoserCursorMap(i);if(o.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var r=[],s=0,a=i.length;s<a;s++)o.hasOwnProperty(i[s].identifier.major.toString())||r.push(i[s]);n.hadTrackedEditOperation&&r.length>0&&(r[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,r,(function(n){for(var i=[],o=0;o<e.selectionsBefore.length;o++)i[o]=[];for(var r=0,s=n;r<s.length;r++){var a=s[r];a.identifier&&i[a.identifier.major].push(a)}var u=function(e,t){return e.identifier.minor-t.identifier.minor},l=[],c=function(n){i[n].length>0?(i[n].sort(u),l[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return i[n]},getTrackedSelection:function(t){var n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new yn(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new yn(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):l[n]=e.selectionsBefore[n]};for(o=0;o<e.selectionsBefore.length;o++)c(o);return l}));u||(u=e.selectionsBefore);var l=[];for(var c in o)o.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort((function(e,t){return t-e}));for(var d=0,h=l;d<h.length;d++){var A=h[d];u.splice(A,1)}return u},e._arrayIsEmpty=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0},e._getEditOperations=function(e,t){for(var n=[],i=!1,o=0,r=t.length;o<r;o++){var s=t[o];if(s){var a=this._getEditOperationsFromCommand(e,o,s);n=n.concat(a.operations),i=i||a.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:i}},e._getEditOperationsFromCommand=function(e,t,n){var i=[],o=0,r=function(e,r){e.isEmpty()&&""===r||i.push({identifier:{major:t,minor:o++},range:e,text:r,forceMoveMarkers:!1,isAutoWhitespaceEdit:n.insertsAutoWhitespace})},s=!1,a=function(e,t){s=!0,r(e,t)},u=function(t,n){var i;if(t.isEmpty())if("boolean"===typeof n)i=n?2:3;else{var o=e.model.getLineMaxColumn(t.startLineNumber);i=t.startColumn===o?2:3}else i=1;var r=e.trackedRanges.length,s=e.model._setTrackedRange(null,t,i);return e.trackedRanges[r]=s,e.trackedRangesDirection[r]=t.getDirection(),r.toString()},l={addEditOperation:r,addTrackedEditOperation:a,trackSelection:u};try{n.getEditOperations(e.model,l)}catch(c){return Ae(c),{operations:[],hadTrackedEditOperation:!1}}return{operations:i,hadTrackedEditOperation:s}},e._getLoserCursorMap=function(e){e=e.slice(0),e.sort((function(e,t){return-vn.compareRangesUsingEnds(e.range,t.range)}));for(var t={},n=1;n<e.length;n++){var i=e[n-1],o=e[n];if(i.range.getStartPosition().isBefore(o.range.getEndPosition())){var r=void 0;r=i.identifier.major>o.identifier.major?i.identifier.major:o.identifier.major,t[r.toString()]=!0;for(var s=0;s<e.length;s++)e[s].identifier.major===r&&(e.splice(s,1),s<n&&n--,s--);n>0&&n--}}return t},e}(),px=function(){function e(e,t,n,i,o,r){this.id=e,this.label=t,this.alias=n,this._precondition=i,this._run=o,this._contextKeyService=r}return e.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},e.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var e=this._run();return e||Promise.resolve(void 0)},e}(),fx={getInitialState:function(){return Gl},tokenize2:function(e,t,n){return Jl(0,e,t,n)}};function gx(e,t){return void 0===t&&(t=fx),vx(e,t||fx)}function mx(e,t,n,i,o,r,s){for(var a="<div>",u=i,l=0,c=0,d=t.getCount();c<d;c++){var h=t.getEndOffset(c);if(!(h<=i)){for(var A="";u<h&&u<o;u++){var p=e.charCodeAt(u);switch(p){case 9:var f=r-(u+l)%r;l+=f-1;while(f>0)A+=s?"&#160;":" ",f--;break;case 60:A+="&lt;";break;case 62:A+="&gt;";break;case 38:A+="&amp;";break;case 0:A+="&#00;";break;case 65279:case 8232:A+="<22>";break;case 13:A+="&#8203";break;case 32:A+=s?"&#160;":" ";break;default:A+=String.fromCharCode(p)}}if(a+='<span style="'+t.getInlineStyle(c,n)+'">'+A+"</span>",h>o||u>=o)break}}return a+="</div>",a}function vx(e,t){for(var n='<div class="monaco-tokenized-source">',i=e.split(/\r\n|\r|\n/),o=t.getInitialState(),r=0,s=i.length;r<s;r++){var a=i[r];r>0&&(n+="<br/>");var u=t.tokenize2(a,o,0);nh.convertToEndOffset(u.tokens,a.length);for(var l=new nh(u.tokens,a),c=l.inflate(),d=0,h=0,A=c.getCount();h<A;h++){var p=c.getClassName(h),f=c.getEndOffset(h);n+='<span class="'+p+'">'+Lr(a.substring(d,f))+"</span>",d=f}o=u.endState}return n+="</div>",n}var _x=function(){function e(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return e.prototype.insert=function(e){this._hasPending=!0,this._inserts.push(e)},e.prototype.change=function(e){this._hasPending=!0,this._changes.push(e)},e.prototype.remove=function(e){this._hasPending=!0,this._removes.push(e)},e.prototype.mustCommit=function(){return this._hasPending},e.prototype.commit=function(e){if(this._hasPending){var t=this._inserts,n=this._changes,i=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,n,i)}},e}(),yx=function(){function e(e,t,n,i,o){this.id=e,this.afterLineNumber=t,this.ordinal=n,this.height=i,this.minWidth=o,this.prefixSum=0}return e}(),wx=function(){function e(t,n){this._instanceId=ys(++e.INSTANCE_COUNT),this._pendingChanges=new _x,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=t,this._lineHeight=n}return e.findInsertionIndex=function(e,t,n){var i=0,o=e.length;while(i<o){var r=i+o>>>1;t===e[r].afterLineNumber?n<e[r].ordinal?o=r:i=r+1:t<e[r].afterLineNumber?o=r:i=r+1}return i},e.prototype.setLineHeight=function(e){this._checkPendingChanges(),this._lineHeight=e},e.prototype.onFlushed=function(e){this._checkPendingChanges(),this._lineCount=e},e.prototype.changeWhitespace=function(e){var t=this;try{var n={insertWhitespace:function(e,n,i,o){e|=0,n|=0,i|=0,o|=0;var r=t._instanceId+ ++t._lastWhitespaceId;return t._pendingChanges.insert(new yx(r,e,n,i,o)),r},changeOneWhitespace:function(e,n,i){n|=0,i|=0,t._pendingChanges.change({id:e,newAfterLineNumber:n,newHeight:i})},removeWhitespace:function(e){t._pendingChanges.remove({id:e})}};return e(n)}finally{this._pendingChanges.commit(this)}},e.prototype._commitPendingChanges=function(e,t,n){if((e.length>0||n.length>0)&&(this._minWidth=-1),e.length+t.length+n.length<=1){for(var i=0,o=e;i<o.length;i++){var r=o[i];this._insertWhitespace(r)}for(var s=0,a=t;s<a.length;s++){var u=a[s];this._changeOneWhitespace(u.id,u.newAfterLineNumber,u.newHeight)}for(var l=0,c=n;l<c.length;l++){var d=c[l],h=this._findWhitespaceIndex(d.id);-1!==h&&this._removeWhitespace(h)}}else{for(var A=new Set,p=0,f=n;p<f.length;p++){d=f[p];A.add(d.id)}for(var g=new Map,m=0,v=t;m<v.length;m++){u=v[m];g.set(u.id,u)}var _=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];if(!A.has(o.id)){if(g.has(o.id)){var r=g.get(o.id);o.afterLineNumber=r.newAfterLineNumber,o.height=r.newHeight}t.push(o)}}return t},y=_(this._arr).concat(_(e));y.sort((function(e,t){return e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber})),this._arr=y,this._prefixSumValidIndex=-1}},e.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&(console.warn("Commiting pending changes before change accessor leaves due to read access."),this._pendingChanges.commit(this))},e.prototype._insertWhitespace=function(t){var n=e.findInsertionIndex(this._arr,t.afterLineNumber,t.ordinal);this._arr.splice(n,0,t),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)},e.prototype._findWhitespaceIndex=function(e){for(var t=this._arr,n=0,i=t.length;n<i;n++)if(t[n].id===e)return n;return-1},e.prototype._changeOneWhitespace=function(e,t,n){var i=this._findWhitespaceIndex(e);if(-1!==i&&(this._arr[i].height!==n&&(this._arr[i].height=n,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)),this._arr[i].afterLineNumber!==t)){var o=this._arr[i];this._removeWhitespace(i),o.afterLineNumber=t,this._insertWhitespace(o)}},e.prototype._removeWhitespace=function(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)},e.prototype.onLinesDeleted=function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(var n=0,i=this._arr.length;n<i;n++){var o=this._arr[n].afterLineNumber;e<=o&&o<=t?this._arr[n].afterLineNumber=e-1:o>t&&(this._arr[n].afterLineNumber-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(var n=0,i=this._arr.length;n<i;n++){var o=this._arr[n].afterLineNumber;e<=o&&(this._arr[n].afterLineNumber+=t-e+1)}},e.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},e.prototype.getWhitespacesAccumulatedHeight=function(e){this._checkPendingChanges(),e|=0;var t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(var n=t;n<=e;n++)this._arr[n].prefixSum=this._arr[n-1].prefixSum+this._arr[n].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum},e.prototype.getLinesTotalHeight=function(){this._checkPendingChanges();var e=this._lineHeight*this._lineCount,t=this.getWhitespacesTotalHeight();return e+t},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){this._checkPendingChanges(),e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)},e.prototype._findLastWhitespaceBeforeLineNumber=function(e){e|=0;var t=this._arr,n=0,i=t.length-1;while(n<=i){var o=i-n|0,r=o/2|0,s=n+r|0;if(t[s].afterLineNumber<e){if(s+1>=t.length||t[s+1].afterLineNumber>=e)return s;n=s+1|0}else i=s-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e),n=t+1;return n<this._arr.length?n:-1},e.prototype.getFirstWhitespaceIndexAfterLineNumber=function(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)},e.prototype.getVerticalOffsetForLineNumber=function(e){var t;this._checkPendingChanges(),e|=0,t=e>1?this._lineHeight*(e-1):0;var n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e);return t+n},e.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),-1===this._minWidth){for(var e=0,t=0,n=this._arr.length;t<n;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth},e.prototype.isAfterLines=function(e){this._checkPendingChanges();var t=this.getLinesTotalHeight();return e>t},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if(this._checkPendingChanges(),e|=0,e<0)return 1;var t=0|this._lineCount,n=this._lineHeight,i=1,o=t;while(i<o){var r=(i+o)/2|0,s=0|this.getVerticalOffsetForLineNumber(r);if(e>=s+n)i=r+1;else{if(e>=s)return r;o=r}}return i>t?t:i},e.prototype.getLinesViewportData=function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n,i,o=this._lineHeight,r=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(r),a=0|this._lineCount,u=0|this.getFirstWhitespaceIndexAfterLineNumber(r),l=0|this.getWhitespacesCount();-1===u?(u=l,i=a+1,n=0):(i=0|this.getAfterLineNumberForWhitespaceIndex(u),n=0|this.getHeightForWhitespaceIndex(u));var c=s,d=c,h=5e5,A=0;s>=h&&(A=Math.floor(s/h)*h,A=Math.floor(A/o)*o,d-=A);for(var p=[],f=e+(t-e)/2,g=-1,m=r;m<=a;m++){if(-1===g){var v=c,_=c+o;(v<=f&&f<_||v>f)&&(g=m)}c+=o,p[m-r]=d,d+=o;while(i===m)d+=n,c+=n,u++,u>=l?i=a+1:(i=0|this.getAfterLineNumberForWhitespaceIndex(u),n=0|this.getHeightForWhitespaceIndex(u));if(c>=t){a=m;break}}-1===g&&(g=a);var y=0|this.getVerticalOffsetForLineNumber(a),w=r,b=a;return w<b&&s<e&&w++,w<b&&y+o>t&&b--,{bigNumbersDelta:A,startLineNumber:r,endLineNumber:a,relativeVerticalOffset:p,centeredLineNumber:g,completelyVisibleStartLineNumber:w,completelyVisibleEndLineNumber:b}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){this._checkPendingChanges(),e|=0;var t,n,i=this.getAfterLineNumberForWhitespaceIndex(e);return t=i>=1?this._lineHeight*i:0,n=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,t+n},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){this._checkPendingChanges(),e|=0;var t=0,n=this.getWhitespacesCount()-1;if(n<0)return-1;var i=this.getVerticalOffsetForWhitespaceIndex(n),o=this.getHeightForWhitespaceIndex(n);if(e>=i+o)return-1;while(t<n){var r=Math.floor((t+n)/2),s=this.getVerticalOffsetForWhitespaceIndex(r),a=this.getHeightForWhitespaceIndex(r);if(e>=s+a)t=r+1;else{if(e>=s)return r;n=r}}return t},e.prototype.getWhitespaceAtVerticalOffset=function(e){this._checkPendingChanges(),e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var i=this.getHeightForWhitespaceIndex(t),o=this.getIdForWhitespaceIndex(t),r=this.getAfterLineNumberForWhitespaceIndex(t);return{id:o,afterLineNumber:r,verticalOffset:n,height:i}},e.prototype.getWhitespaceViewportData=function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this.getWhitespacesCount()-1;if(n<0)return[];for(var o=[],r=n;r<=i;r++){var s=this.getVerticalOffsetForWhitespaceIndex(r),a=this.getHeightForWhitespaceIndex(r);if(s>=t)break;o.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:s,height:a})}return o},e.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},e.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},e.prototype.getIdForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].id},e.prototype.getAfterLineNumberForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber},e.prototype.getHeightForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].height},e.INSTANCE_COUNT=0,e}(),bx=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)}}(),Cx=125,Sx=function(e){function t(t,n,i){var o=e.call(this)||this;o._configuration=t;var r=o._configuration.options,s=r.get(103);return o._linesLayout=new wx(n,r.get(47)),o.scrollable=o._register(new CB(0,i)),o._configureSmoothScrollDuration(),o.scrollable.setScrollDimensions({width:s.contentWidth,height:s.contentHeight}),o.onDidScroll=o.scrollable.onScroll,o._updateHeight(),o}return bx(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onHeightMaybeChanged=function(){this._updateHeight()},t.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.options.get(83)?Cx:0)},t.prototype.onConfigurationChanged=function(e){var t=this._configuration.options;if(e.hasChanged(47)&&this._linesLayout.setLineHeight(t.get(47)),e.hasChanged(103)){var n=t.get(103),i=n.contentWidth,o=n.contentHeight,r=this.scrollable.getScrollDimensions(),s=r.scrollWidth,a=this._getTotalHeight(i,o,s);this.scrollable.setScrollDimensions({width:i,height:o,scrollHeight:a})}else this._updateHeight();e.hasChanged(83)&&this._configureSmoothScrollDuration()},t.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)},t.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t)},t.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t)},t.prototype._getHorizontalScrollbarHeight=function(e,t){var n=this._configuration.options,i=n.get(74);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize},t.prototype._getTotalHeight=function(e,t,n){var i=this._configuration.options,o=this._linesLayout.getLinesTotalHeight();return i.get(76)?o+=t-i.get(47):o+=this._getHorizontalScrollbarHeight(e,n),Math.max(t,o)},t.prototype._updateHeight=function(){var e=this.scrollable.getScrollDimensions(),t=e.width,n=e.height,i=e.scrollWidth,o=this._getTotalHeight(t,n,i);this.scrollable.setScrollDimensions({scrollHeight:o})},t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new Bh(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new Bh(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype._computeScrollWidth=function(e,t){var n=this._configuration.options,i=n.get(104),o=i.isViewportWrapping;if(!o){var r=n.get(75)*n.get(32).typicalHalfwidthCharacterWidth,s=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+r,t,s)}return Math.max(e,t)},t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight()},t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),i=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n);return{scrollTop:t,scrollTopWithoutViewZones:t-i,scrollLeft:e.scrollLeft}},t.prototype.changeWhitespace=function(e){return this._linesLayout.changeWhitespace(e)},t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},t.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)},t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},t.prototype.getScrollWidth=function(){var e=this.scrollable.getScrollDimensions();return e.scrollWidth},t.prototype.getScrollHeight=function(){var e=this.scrollable.getScrollDimensions();return e.scrollHeight},t.prototype.getCurrentScrollLeft=function(){var e=this.scrollable.getCurrentScrollPosition();return e.scrollLeft},t.prototype.getCurrentScrollTop=function(){var e=this.scrollable.getCurrentScrollPosition();return e.scrollTop},t.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e)},t.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e)},t.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e)},t.prototype.deltaScrollNow=function(e,t){var n=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},t}(Ie),Bx=function(){function e(e,t){this.outputLineIndex=e,this.outputOffset=t}return e}(),Ex=function(){function e(e){this._lines=e}return e.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},e.prototype.convertViewRangeToModelRange=function(e){var t=this._lines.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this._lines.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new vn(t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},e.prototype.validateViewRange=function(e,t){var n=this._lines.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this._lines.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new vn(n.lineNumber,n.column,i.lineNumber,i.column)},e.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},e.prototype.convertModelRangeToViewRange=function(e){return this._lines.convertModelRangeToViewRange(e)},e.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},e}(),xx=function(){function e(e,t,n,i,o,r){this.model=e,this._validModelVersionId=-1,this.tabSize=n,this.wrappingColumn=i,this.columnsForFullWidthChar=o,this.wrappingIndent=r,this.linePositionMapperFactory=t,this._constructLines(!0)}return e.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},e.prototype.createCoordinatesConverter=function(){return new Ex(this)},e.prototype._ensureValidState=function(){var e=this.model.getVersionId();if(e!==this._validModelVersionId)throw new Error("ViewModel is out of sync with Model!");this.lines.length!==this.model.getLineCount()&&this._constructLines(!1)},e.prototype._constructLines=function(e){var t=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var n=this.model.getLinesContent(),i=n.length,o=new Uint32Array(i),r=this.hiddenAreasIds.map((function(e){return t.model.getDecorationRange(e)})).sort(vn.compareRangesUsingStarts),s=1,a=0,u=-1,l=u+1<r.length?a+1:i+2,c=0;c<i;c++){var d=c+1;d===l&&(u++,s=r[u].startLineNumber,a=r[u].endLineNumber,l=u+1<r.length?a+1:i+2);var h=d>=s&&d<=a,A=kx(this.linePositionMapperFactory,n[c],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!h);o[c]=A.getViewLineCount(),this.lines[c]=A}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Ad(o)},e.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map((function(t){return e.model.getDecorationRange(t)}))},e.prototype._reduceRanges=function(e){var t=this;if(0===e.length)return[];for(var n=e.map((function(e){return t.model.validateRange(e)})).sort(vn.compareRangesUsingStarts),i=[],o=n[0].startLineNumber,r=n[0].endLineNumber,s=1,a=n.length;s<a;s++){var u=n[s];u.startLineNumber>r+1?(i.push(new vn(o,1,r,1)),o=u.startLineNumber,r=u.endLineNumber):u.endLineNumber>r&&(r=u.endLineNumber)}return i.push(new vn(o,1,r,1)),i},e.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),i=this.hiddenAreasIds.map((function(e){return t.model.getDecorationRange(e)})).sort(vn.compareRangesUsingStarts);if(n.length===i.length){for(var o=!1,r=0;r<n.length;r++)if(!n[r].equalsRange(i[r])){o=!0;break}if(!o)return!1}for(var s=[],a=0,u=n;a<u.length;a++){var l=u[a];s.push({range:l,options:z_.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,s);var c=n,d=1,h=0,A=-1,p=A+1<c.length?h+1:this.lines.length+2,f=!1;for(r=0;r<this.lines.length;r++){var g=r+1;g===p&&(A++,d=c[A].startLineNumber,h=c[A].endLineNumber,p=A+1<c.length?h+1:this.lines.length+2);var m=!1;if(g>=d&&g<=h?this.lines[r].isVisible()&&(this.lines[r]=this.lines[r].setVisible(!1),m=!0):(f=!0,this.lines[r].isVisible()||(this.lines[r]=this.lines[r].setVisible(!0),m=!0)),m){var v=this.lines[r].getViewLineCount();this.prefixSumComputer.changeValue(r,v)}}return f||this.setHiddenAreas([]),!0},e.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},e.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1),!0)},e.prototype.setWrappingSettings=function(e,t,n){return(this.wrappingIndent!==e||this.wrappingColumn!==t||this.columnsForFullWidthChar!==n)&&(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=n,this._constructLines(!1),!0)},e.prototype.onModelFlushed=function(){this._constructLines(!0)},e.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,o=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new PC(i,o)},e.prototype.onModelLinesInserted=function(e,t,n,i){if(e<=this._validModelVersionId)return null;for(var o=this.getHiddenAreas(),r=!1,s=new mn(t,1),a=0,u=o;a<u.length;a++){var l=u[a];if(l.containsPosition(s)){r=!0;break}}for(var c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,d=0,h=[],A=new Uint32Array(i.length),p=0,f=i.length;p<f;p++){var g=kx(this.linePositionMapperFactory,i[p],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!r);h.push(g);var m=g.getViewLineCount();d+=m,A[p]=m}return this.lines=this.lines.slice(0,t-1).concat(h).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,A),new RC(c,c+d-1)},e.prototype.onModelLineChanged=function(e,t,n){if(e<=this._validModelVersionId)return[!1,null,null,null];var i=t-1,o=this.lines[i].getViewLineCount(),r=this.lines[i].isVisible(),s=kx(this.linePositionMapperFactory,n,this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,r);this.lines[i]=s;var a=this.lines[i].getViewLineCount(),u=!1,l=0,c=-1,d=0,h=-1,A=0,p=-1;o>a?(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=l+a-1,A=c+1,p=A+(o-a)-1,u=!0):o<a?(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=l+o-1,d=c+1,h=d+(a-o)-1,u=!0):(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=l+a-1),this.prefixSumComputer.changeValue(i,a);var f=l<=c?new TC(l,c):null,g=d<=h?new RC(d,h):null,m=A<=p?new PC(A,p):null;return[u,f,g,m]},e.prototype.acceptVersionId=function(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])},e.prototype.getViewLineCount=function(){return this._ensureValidState(),this.prefixSumComputer.getTotalValue()},e.prototype._toValidViewLineNumber=function(e){if(e<1)return 1;var t=this.getViewLineCount();return e>t?t:e},e.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)},e.prototype.getActiveIndentGuide=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),s=this.model.getActiveIndentGuide(i.lineNumber,o.lineNumber,r.lineNumber),a=this.convertModelPositionToViewPosition(s.startLineNumber,1),u=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:u.lineNumber,indent:s.indent}},e.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),o=[],r=[],s=[],a=n.lineNumber-1,u=i.lineNumber-1,l=null,c=a;c<=u;c++){var d=this.lines[c];if(d.isVisible()){var h=d.getViewLineNumberOfModelPosition(0,c===a?n.column:1),A=d.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(c+1)),p=A-h+1,f=0;p>1&&1===d.getViewLineMinColumn(this.model,c+1,A)&&(f=0===h?1:2),r.push(p),s.push(f),null===l&&(l=new mn(c+1,0))}else null!==l&&(o=o.concat(this.model.getLinesIndentGuides(l.lineNumber,c)),l=null)}null!==l&&(o=o.concat(this.model.getLinesIndentGuides(l.lineNumber,i.lineNumber)),l=null);for(var g=t-e+1,m=new Array(g),v=0,_=0,y=o.length;_<y;_++){var w=o[_],b=(p=Math.min(g-v,r[_]),f=s[_],void 0);b=2===f?0:1===f?1:p;for(var C=0;C<p;C++)C===b&&(w=0),m[v++]=w}return m},e.prototype.getViewLineContent=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineContent(this.model,n+1,i)},e.prototype.getViewLineLength=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineLength(this.model,n+1,i)},e.prototype.getViewLineMinColumn=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMinColumn(this.model,n+1,i)},e.prototype.getViewLineMaxColumn=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMaxColumn(this.model,n+1,i)},e.prototype.getViewLineData=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineData(this.model,n+1,i)},e.prototype.getViewLinesData=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var i=this.prefixSumComputer.getIndexOf(e-1),o=e,r=i.index,s=i.remainder,a=[],u=r,l=this.model.getLineCount();u<l;u++){var c=this.lines[u];if(c.isVisible()){var d=u===r?s:0,h=c.getViewLineCount()-d,A=!1;o+h>t&&(A=!0,h=t-o+1);var p=d+h;if(c.getViewLinesData(this.model,u+1,d,p,o-e,n,a),o+=h,A)break}}return a},e.prototype.validateViewPosition=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),o=i.index,r=i.remainder,s=this.lines[o],a=s.getViewLineMinColumn(this.model,o+1,r),u=s.getViewLineMaxColumn(this.model,o+1,r);t<a&&(t=a),t>u&&(t=u);var l=s.getModelColumnOfViewPosition(r,t),c=this.model.validatePosition(new mn(o+1,l));return c.equals(n)?new mn(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},e.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),i=n.index,o=n.remainder,r=this.lines[i].getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new mn(i+1,r))},e.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();var n=this.model.validatePosition(new mn(e,t)),i=n.lineNumber,o=n.column,r=i-1,s=!1;while(r>0&&!this.lines[r].isVisible())r--,s=!0;if(0===r&&!this.lines[r].isVisible())return new mn(1,1);var a,u=1+(0===r?0:this.prefixSumComputer.getAccumulatedValue(r-1));return a=s?this.lines[r].getViewPositionOfModelPosition(u,this.model.getLineMaxColumn(r+1)):this.lines[i-1].getViewPositionOfModelPosition(u,o),a},e.prototype.convertModelRangeToViewRange=function(e){var t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return e.startLineNumber===e.endLineNumber&&t.lineNumber!==n.lineNumber&&n.column===this.getViewLineMinColumn(n.lineNumber)?new vn(t.lineNumber,t.column,n.lineNumber-1,this.getViewLineMaxColumn(n.lineNumber-1)):new vn(t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,t)}while(n>0&&!this.lines[n].isVisible())n--;if(0===n&&!this.lines[n].isVisible())return 1;var o=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(o,this.model.getLineMaxColumn(n+1))},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new Mx,r=0,s=i;r<s.length;r++){var a=s[r],u=a.options.overviewRuler,l=u?u.position:0;if(0!==l){var c=u.getColor(n),d=this._getViewLineNumberForModelPosition(a.range.startLineNumber,a.range.startColumn),h=this._getViewLineNumberForModelPosition(a.range.endLineNumber,a.range.endColumn);o.accept(c,d,h,l)}}return o.result},e.prototype.getDecorationsInRange=function(e,t,n){var i=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-i.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new vn(i.lineNumber,1,o.lineNumber,o.column),t,n);for(var r=[],s=i.lineNumber-1,a=o.lineNumber-1,u=null,l=s;l<=a;l++){var c=this.lines[l];if(c.isVisible())null===u&&(u=new mn(l+1,l===s?i.column:1));else if(null!==u){var d=this.model.getLineMaxColumn(l);r=r.concat(this.model.getDecorationsInRange(new vn(u.lineNumber,u.column,l,d),t,n)),u=null}}null!==u&&(r=r.concat(this.model.getDecorationsInRange(new vn(u.lineNumber,u.column,o.lineNumber,o.column),t,n)),u=null),r.sort((function(e,t){var n=vn.compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n}));for(var h=[],A=0,p=null,f=0,g=r;f<g.length;f++){var m=g[f],v=m.id;p!==v&&(p=v,h[A++]=m)}return h},e}(),Lx=function(){function e(){}return e.prototype.isVisible=function(){return!0},e.prototype.setVisible=function(e){return e?this:Dx.INSTANCE},e.prototype.getViewLineCount=function(){return 1},e.prototype.getViewLineContent=function(e,t,n){return e.getLineContent(t)},e.prototype.getViewLineLength=function(e,t,n){return e.getLineLength(t)},e.prototype.getViewLineMinColumn=function(e,t,n){return e.getLineMinColumn(t)},e.prototype.getViewLineMaxColumn=function(e,t,n){return e.getLineMaxColumn(t)},e.prototype.getViewLineData=function(e,t,n){var i=e.getLineTokens(t),o=i.getLineContent();return new xh(o,!1,1,o.length+1,i.inflate())},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){r[o]?s[o]=this.getViewLineData(e,t,0):s[o]=null},e.prototype.getModelColumnOfViewPosition=function(e,t){return t},e.prototype.getViewPositionOfModelPosition=function(e,t){return new mn(e,t)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){return e},e.INSTANCE=new e,e}(),Dx=function(){function e(){}return e.prototype.isVisible=function(){return!1},e.prototype.setVisible=function(e){return e?Lx.INSTANCE:this},e.prototype.getViewLineCount=function(){return 0},e.prototype.getViewLineContent=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineLength=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineMinColumn=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineMaxColumn=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineData=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){throw new Error("Not supported")},e.prototype.getModelColumnOfViewPosition=function(e,t){throw new Error("Not supported")},e.prototype.getViewPositionOfModelPosition=function(e,t){throw new Error("Not supported")},e.prototype.getViewLineNumberOfModelPosition=function(e,t){throw new Error("Not supported")},e.INSTANCE=new e,e}(),Nx=function(){function e(e,t){this.positionMapper=e,this.wrappedIndent=this.positionMapper.getWrappedLinesIndent(),this.wrappedIndentLength=this.wrappedIndent.length,this.outputLineCount=this.positionMapper.getOutputLineCount(),this._isVisible=t}return e.prototype.isVisible=function(){return this._isVisible},e.prototype.setVisible=function(e){return this._isVisible=e,this},e.prototype.getViewLineCount=function(){return this._isVisible?this.outputLineCount:0},e.prototype.getInputStartOffsetOfOutputLineIndex=function(e){return this.positionMapper.getInputOffsetOfOutputPosition(e,0)},e.prototype.getInputEndOffsetOfOutputLineIndex=function(e,t,n){return n+1===this.outputLineCount?e.getLineMaxColumn(t)-1:this.positionMapper.getInputOffsetOfOutputPosition(n+1,0)},e.prototype.getViewLineContent=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});return n>0&&(r=this.wrappedIndent+r),r},e.prototype.getViewLineLength=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=o-i;return n>0&&(r=this.wrappedIndent.length+r),r},e.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this.wrappedIndentLength+1:1},e.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1},e.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});n>0&&(r=this.wrappedIndent+r);var s=n>0?this.wrappedIndentLength+1:1,a=r.length+1,u=n+1<this.getViewLineCount(),l=0;n>0&&(l=this.wrappedIndentLength);var c=e.getLineTokens(t);return new xh(r,u,s,a,c.sliceAndInflate(i,o,l))},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){if(!this._isVisible)throw new Error("Not supported");for(var a=n;a<i;a++){var u=o+a-n;r[u]?s[u]=this.getViewLineData(e,t,a):s[u]=null}},e.prototype.getModelColumnOfViewPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=t-1;return e>0&&(n<this.wrappedIndentLength?n=0:n-=this.wrappedIndentLength),this.positionMapper.getInputOffsetOfOutputPosition(e,n)+1},e.prototype.getViewPositionOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=this.positionMapper.getOutputPositionOfInputOffset(t-1),i=n.outputLineIndex,o=n.outputOffset+1;return i>0&&(o+=this.wrappedIndentLength),new mn(e+i,o)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=this.positionMapper.getOutputPositionOfInputOffset(t-1);return e+n.outputLineIndex},e}();function kx(e,t,n,i,o,r,s){var a=e.createLineMapping(t,n,i,o,r);return null===a?s?Lx.INSTANCE:Dx.INSTANCE:new Nx(a,s)}var Ix=function(){function e(e){this._lines=e}return e.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},e.prototype._validRange=function(e){return this._lines.model.validateRange(e)},e.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},e.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},e.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},e.prototype.validateViewRange=function(e,t){return this._validRange(t)},e.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},e.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},e}(),Fx=function(){function e(e){this.model=e}return e.prototype.dispose=function(){},e.prototype.createCoordinatesConverter=function(){return new Ix(this)},e.prototype.getHiddenAreas=function(){return[]},e.prototype.setHiddenAreas=function(e){return!1},e.prototype.setTabSize=function(e){return!1},e.prototype.setWrappingSettings=function(e,t,n){return!1},e.prototype.onModelFlushed=function(){},e.prototype.onModelLinesDeleted=function(e,t,n){return new PC(t,n)},e.prototype.onModelLinesInserted=function(e,t,n,i){return new RC(t,n)},e.prototype.onModelLineChanged=function(e,t,n){return[!1,new TC(t,t),null,null]},e.prototype.acceptVersionId=function(e){},e.prototype.getViewLineCount=function(){return this.model.getLineCount()},e.prototype.warmUpLookupCache=function(e,t){},e.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}},e.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,i=new Array(n),o=0;o<n;o++)i[o]=0;return i},e.prototype.getViewLineContent=function(e){return this.model.getLineContent(e)},e.prototype.getViewLineLength=function(e){return this.model.getLineLength(e)},e.prototype.getViewLineMinColumn=function(e){return this.model.getLineMinColumn(e)},e.prototype.getViewLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},e.prototype.getViewLineData=function(e){var t=this.model.getLineTokens(e),n=t.getLineContent();return new xh(n,!1,1,n.length+1,t.inflate())},e.prototype.getViewLinesData=function(e,t,n){var i=this.model.getLineCount();e=Math.min(Math.max(1,e),i),t=Math.min(Math.max(1,t),i);for(var o=[],r=e;r<=t;r++){var s=r-e;n[s]||(o[s]=null),o[s]=this.getViewLineData(r)}return o},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new Mx,r=0,s=i;r<s.length;r++){var a=s[r],u=a.options.overviewRuler,l=u?u.position:0;if(0!==l){var c=u.getColor(n),d=a.range.startLineNumber,h=a.range.endLineNumber;o.accept(c,d,h,l)}}return o.result},e.prototype.getDecorationsInRange=function(e,t,n){return this.model.getDecorationsInRange(e,t,n)},e}(),Mx=function(){function e(){this.result=Object.create(null)}return e.prototype.accept=function(e,t,n,i){var o=this.result[e];if(o){var r=o[o.length-3],s=o[o.length-1];if(r===i&&s+1>=t)return void(n>s&&(o[o.length-1]=n));o.push(i,t,n)}else this.result[e]=[i,t,n]},e}(),Ox=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)}}(),Tx=function(e){function t(t,n,i){for(var o=e.call(this,0)||this,r=0;r<t.length;r++)o.set(t.charCodeAt(r),1);for(r=0;r<n.length;r++)o.set(n.charCodeAt(r),2);for(r=0;r<i.length;r++)o.set(i.charCodeAt(r),3);return o}return Ox(t,e),t.prototype.get=function(t){return t>=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?4:e.prototype.get.call(this,t)},t}(fd),Px=function(){function e(e,t,n){this.classifier=new Tx(e,t,n)}return e.nextVisibleColumn=function(e,t,n,i){return e=+e,t=+t,i=+i,n?e+(t-e%t):e+i},e.prototype.createLineMapping=function(t,n,i,o,r){if(-1===i)return null;n=+n,i=+i,o=+o,r=+r;var s=0,a="",u=-1;if(0!==r&&(u=Ur(t),-1!==u)){a=t.substring(0,u);for(var l=0;l<u;l++)s=e.nextVisibleColumn(s,n,9===t.charCodeAt(l),1);var c=0;2===r?c=1:3===r&&(c=2);for(l=0;l<c;l++)a+="\t",s=e.nextVisibleColumn(s,n,!0,1);s+o>i&&(a="",s=0)}var d=this.classifier,h=0,A=[],p=0,f=0,g=-1,m=0,v=-1,_=0,y=t.length;for(l=0;l<y;l++){var w=t.charCodeAt(l),b=9===w,C=d.get(w);if($r(w))f+=1;else{if(1===C&&(g=l,m=s),4===C&&l>0){var S=t.charCodeAt(l-1),B=d.get(S);1!==B&&(g=l,m=s)}var E=1;if(As(w)&&(E=o),f=e.nextVisibleColumn(f,n,b,E),f>i&&0!==l){var x=void 0,L=void 0;-1!==g&&m<=i?(x=g,L=m):-1!==v&&_<=i?(x=v,L=_):(x=l,L=s),A[p++]=x-h,h=x,f=e.nextVisibleColumn(L,n,b,E),g=-1,m=0,v=-1,_=0}if(-1!==g&&(m=e.nextVisibleColumn(m,n,b,E)),-1!==v&&(_=e.nextVisibleColumn(_,n,b,E)),2===C&&(0===r||l>=u)&&(g=l+1,m=s),4===C&&l<y-1){var D=t.charCodeAt(l+1),N=d.get(D);2!==N&&(g=l+1,m=s)}3===C&&(v=l+1,_=s)}}return 0===p?null:(A[p++]=y-h,new Rx(new hd(cd(A)),a))},e}(),Rx=function(){function e(e,t){this._prefixSums=e,this._wrappedLinesIndent=t}return e.prototype.getOutputLineCount=function(){return this._prefixSums.getCount()},e.prototype.getWrappedLinesIndent=function(){return this._wrappedLinesIndent},e.prototype.getInputOffsetOfOutputPosition=function(e,t){return 0===e?t:this._prefixSums.getAccumulatedValue(e-1)+t},e.prototype.getOutputPositionOfInputOffset=function(e){var t=this._prefixSums.getIndexOf(e);return new Bx(t.index,t.remainder)},e}(),Ux=function(){function e(e,t,n,i,o){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return e.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},e.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,n=this._decorationsCache[t];if(!n){var i=e.range,o=e.options,r=void 0;if(o.isWholeLine){var s=this._coordinatesConverter.convertModelPositionToViewPosition(new mn(i.startLineNumber,1)),a=this._coordinatesConverter.convertModelPositionToViewPosition(new mn(i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)));r=new vn(s.lineNumber,s.column,a.lineNumber,a.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(i);n=new Nh(r,o),this._decorationsCache[t]=n}return n},e.prototype.getDecorationsViewportData=function(e){var t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},e.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.options.get(65)),n=e.startLineNumber,i=e.endLineNumber,o=[],r=0,s=[],a=n;a<=i;a++)s[a-n]=[];for(var u=0,l=t.length;u<l;u++){var c=t[u],d=c.options,h=this._getOrCreateViewModelDecoration(c),A=h.range;if(o[r++]=h,d.inlineClassName){var p=new Dh(A,d.inlineClassName,d.inlineClassNameAffectsLetterSpacing?3:0),f=Math.max(n,A.startLineNumber),g=Math.min(i,A.endLineNumber);for(a=f;a<=g;a++)s[a-n].push(p)}if(d.beforeContentClassName&&n<=A.startLineNumber&&A.startLineNumber<=i){p=new Dh(new vn(A.startLineNumber,A.startColumn,A.startLineNumber,A.startColumn),d.beforeContentClassName,1);s[A.startLineNumber-n].push(p)}if(d.afterContentClassName&&n<=A.endLineNumber&&A.endLineNumber<=i){p=new Dh(new vn(A.endLineNumber,A.endColumn,A.endLineNumber,A.endColumn),d.afterContentClassName,2);s[A.endLineNumber-n].push(p)}}return{decorations:o,inlineDecorations:s}},e}(),Hx=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)}}(),Qx=!0,Vx=function(e){function t(t,n,i,o){var r=e.call(this)||this;if(r.editorId=t,r.configuration=n,r.model=i,r._tokenizeViewportSoon=r._register(new Si((function(){return r.tokenizeViewport()}),50)),r.hasFocus=!1,r.viewportStartLine=-1,r.viewportStartLineTrackedRange=null,r.viewportStartLineDelta=0,Qx&&r.model.isTooLargeForTokenization())r.lines=new Fx(r.model);else{var s=r.configuration.options,a=s.get(104),u=s.get(32),l=s.get(94),c=s.get(95),d=s.get(96),h=s.get(99),A=new Px(c,l,d);r.lines=new xx(r.model,A,r.model.getOptions().tabSize,a.wrappingColumn,u.typicalFullwidthCharacterWidth/u.typicalHalfwidthCharacterWidth,h)}return r.coordinatesConverter=r.lines.createCoordinatesConverter(),r.viewLayout=r._register(new Sx(r.configuration,r.getLineCount(),o)),r._register(r.viewLayout.onDidScroll((function(e){e.scrollTopChanged&&r._tokenizeViewportSoon.schedule();try{var t=r._beginEmit();t.emit(new HC(e))}finally{r._endEmit()}}))),r.decorations=new Ux(r.editorId,r.model,r.configuration,r.lines,r.coordinatesConverter),r._registerModelEvents(),r._register(r.configuration.onDidChange((function(e){try{var t=r._beginEmit();r._onConfigurationChanged(t,e)}finally{r._endEmit()}}))),r._register(oE.getInstance().onDidChange((function(){try{var e=r._beginEmit();e.emit(new WC)}finally{r._endEmit()}}))),r}return Hx(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.invalidateMinimapColorCache(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},t.prototype.tokenizeViewport=function(){var e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new mn(e.startLineNumber,1)),n=this.coordinatesConverter.convertViewPositionToModelPosition(new mn(e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,n.lineNumber)},t.prototype.setHasFocus=function(e){this.hasFocus=e},t.prototype._onConfigurationChanged=function(e,t){var n=null;if(-1!==this.viewportStartLine){var i=new mn(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(i)}var o=!1,r=this.configuration.options,s=r.get(104),a=r.get(32),u=r.get(99);if(this.lines.setWrappingSettings(u,s.wrappingColumn,a.typicalFullwidthCharacterWidth/a.typicalHalfwidthCharacterWidth)&&(e.emit(new FC),e.emit(new OC),e.emit(new IC),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(o=!0)),t.hasChanged(65)&&(this.decorations.reset(),e.emit(new IC)),e.emit(new NC(t)),this.viewLayout.onConfigurationChanged(t),o&&n){var l=this.coordinatesConverter.convertModelPositionToViewPosition(n),c=this.viewLayout.getVerticalOffsetForLineNumber(l.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:c+this.viewportStartLineDelta})}},t.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast((function(t){try{for(var n=e._beginEmit(),i=!1,o=!1,r=t.changes,s=t.versionId,a=0,u=r.length;a<u;a++){var l=r[a];switch(l.changeType){case 1:e.lines.onModelFlushed(),n.emit(new FC),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),i=!0;break;case 3:var c=e.lines.onModelLinesDeleted(s,l.fromLineNumber,l.toLineNumber);null!==c&&(n.emit(c),e.viewLayout.onLinesDeleted(c.fromLineNumber,c.toLineNumber)),i=!0;break;case 4:var d=e.lines.onModelLinesInserted(s,l.fromLineNumber,l.toLineNumber,l.detail);null!==d&&(n.emit(d),e.viewLayout.onLinesInserted(d.fromLineNumber,d.toLineNumber)),i=!0;break;case 2:var h=e.lines.onModelLineChanged(s,l.lineNumber,l.detail),A=h[0],p=h[1];d=h[2],c=h[3];o=A,p&&n.emit(p),d&&(n.emit(d),e.viewLayout.onLinesInserted(d.fromLineNumber,d.toLineNumber)),c&&(n.emit(c),e.viewLayout.onLinesDeleted(c.fromLineNumber,c.toLineNumber));break;case 5:break}}e.lines.acceptVersionId(s),e.viewLayout.onHeightMaybeChanged(),!i&&o&&(n.emit(new OC),n.emit(new IC),e.decorations.onLineMappingChanged())}finally{e._endEmit()}if(e.viewportStartLine=-1,e.configuration.setMaxLineNumber(e.model.getLineCount()),!e.hasFocus&&e.model.getAttachedEditorCount()>=2&&e.viewportStartLineTrackedRange){var f=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(f){var g=e.coordinatesConverter.convertModelPositionToViewPosition(f.getStartPosition()),m=e.viewLayout.getVerticalOffsetForLineNumber(g.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:m+e.viewportStartLineDelta})}}}))),this._register(this.model.onDidChangeTokens((function(t){for(var n=[],i=0,o=t.ranges.length;i<o;i++){var r=t.ranges[i],s=e.coordinatesConverter.convertModelPositionToViewPosition(new mn(r.fromLineNumber,1)).lineNumber,a=e.coordinatesConverter.convertModelPositionToViewPosition(new mn(r.toLineNumber,e.model.getLineMaxColumn(r.toLineNumber))).lineNumber;n[i]={fromLineNumber:s,toLineNumber:a}}try{var u=e._beginEmit();u.emit(new QC(n))}finally{e._endEmit()}t.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule()}))),this._register(this.model.onDidChangeLanguageConfiguration((function(t){try{var n=e._beginEmit();n.emit(new zC)}finally{e._endEmit()}}))),this._register(this.model.onDidChangeOptions((function(t){if(e.lines.setTabSize(e.model.getOptions().tabSize)){e.decorations.onLineMappingChanged(),e.viewLayout.onFlushed(e.getLineCount());try{var n=e._beginEmit();n.emit(new FC),n.emit(new OC),n.emit(new IC)}finally{e._endEmit()}}}))),this._register(this.model.onDidChangeDecorations((function(t){e.decorations.onModelDecorationsChanged();try{var n=e._beginEmit();n.emit(new IC)}finally{e._endEmit()}})))},t.prototype.setHiddenAreas=function(e){try{var t=this._beginEmit(),n=this.lines.setHiddenAreas(e);n&&(t.emit(new FC),t.emit(new OC),t.emit(new IC),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},t.prototype.getVisibleRanges=function(){var e=this.getCompletelyVisibleViewRange(),t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this.lines.getHiddenAreas();if(0===n.length)return[t];for(var i=[],o=0,r=t.startLineNumber,s=t.startColumn,a=t.endLineNumber,u=t.endColumn,l=0,c=n.length;l<c;l++){var d=n[l].startLineNumber,h=n[l].endLineNumber;h<r||(d>a||(r<d&&(i[o++]=new vn(r,s,d-1,this.model.getLineMaxColumn(d-1))),r=h+1,s=1))}return(r<a||r===a&&s<u)&&(i[o++]=new vn(r,s,a,u)),i},t.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new vn(t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))},t.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new vn(n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i))},t.prototype.saveState=function(){var e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new mn(n,this.getLineMinColumn(n))),o=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:o}},t.prototype.reduceRestoreState=function(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);var t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),i=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:i}},t.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}},t.prototype.getTabSize=function(){return this.model.getOptions().tabSize},t.prototype.getOptions=function(){return this.model.getOptions()},t.prototype.getLineCount=function(){return this.lines.getViewLineCount()},t.prototype.setViewport=function(e,t,n){this.lines.warmUpLookupCache(e,t),this.viewportStartLine=e;var i=this.coordinatesConverter.convertViewPositionToModelPosition(new mn(e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new vn(i.lineNumber,i.column,i.lineNumber,i.column),1);var o=this.viewLayout.getVerticalOffsetForLineNumber(e),r=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=r-o},t.prototype.getActiveIndentGuide=function(e,t,n){return this.lines.getActiveIndentGuide(e,t,n)},t.prototype.getLinesIndentGuides=function(e,t){return this.lines.getViewLinesIndentGuides(e,t)},t.prototype.getLineContent=function(e){return this.lines.getViewLineContent(e)},t.prototype.getLineLength=function(e){return this.lines.getViewLineLength(e)},t.prototype.getLineMinColumn=function(e){return this.lines.getViewLineMinColumn(e)},t.prototype.getLineMaxColumn=function(e){return this.lines.getViewLineMaxColumn(e)},t.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=Ur(this.getLineContent(e));return-1===t?0:t+1},t.prototype.getLineLastNonWhitespaceColumn=function(e){var t=Qr(this.getLineContent(e));return-1===t?0:t+2},t.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations},t.prototype.getViewLineRenderingData=function(e,t){var n=this.model.mightContainRTL(),i=this.model.mightContainNonBasicASCII(),o=this.getTabSize(),r=this.lines.getViewLineData(t),s=this.decorations.getDecorationsViewportData(e).inlineDecorations,a=s[t-e.startLineNumber];return new Lh(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,n,i,r.tokens,a,o)},t.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)},t.prototype.getMinimapLinesRenderingData=function(e,t,n){var i=this.lines.getViewLinesData(e,t,n);return new Eh(this.getTabSize(),i)},t.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,this.configuration.options.get(65),e)},t.prototype.invalidateOverviewRulerColorCache=function(){for(var e=this.model.getOverviewRulerDecorations(),t=0,n=e;t<n.length;t++){var i=n[t],o=i.options.overviewRuler;o&&o.invalidateCachedColor()}},t.prototype.invalidateMinimapColorCache=function(){for(var e=this.model.getAllDecorations(),t=0,n=e;t<n.length;t++){var i=n[t],o=i.options.minimap;o&&o.invalidateCachedColor()}},t.prototype.getValueInRange=function(e,t){var n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)},t.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},t.prototype.validateModelPosition=function(e){return this.model.validatePosition(e)},t.prototype.validateModelRange=function(e){return this.model.validateRange(e)},t.prototype.deduceModelPositionRelativeToViewPosition=function(e,t,n){var i=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);var o=this.model.getOffsetAt(i),r=o+t;return this.model.getPositionAt(r)},t.prototype.getEOL=function(){return this.model.getEOL()},t.prototype.getPlainTextToCopy=function(e,t,n){var i=this,o=n?"\r\n":this.model.getEOL();e=e.slice(0),e.sort(vn.compareRangesUsingStarts);for(var r=!1,s=!1,a=0,u=e;a<u.length;a++){var l=u[a];l.isEmpty()?r=!0:s=!0}if(!s){if(!t)return"";for(var c=e.map((function(e){var t=new mn(e.startLineNumber,1);return i.coordinatesConverter.convertViewPositionToModelPosition(t).lineNumber})),d="",h=0;h<c.length;h++)h>0&&c[h-1]===c[h]||(d+=this.model.getLineContent(c[h])+o);return d}if(r&&t){for(var A=[],p=0,f=0,g=e;f<g.length;f++){l=g[f];var m=this.coordinatesConverter.convertViewPositionToModelPosition(new mn(l.startLineNumber,1)).lineNumber;l.isEmpty()?m!==p&&A.push(this.model.getLineContent(m)):A.push(this.getValueInRange(l,n?2:0)),p=m}return 1===A.length?A[0]:A}for(var v=[],_=0,y=e;_<y.length;_++){l=y[_];l.isEmpty()||v.push(this.getValueInRange(l,n?2:0))}return 1===v.length?v[0]:v},t.prototype.getHTMLToCopy=function(e,t){if(1===this.model.getLanguageIdentifier().id)return null;if(1!==e.length)return null;var n=this.coordinatesConverter.convertViewRangeToModelRange(e[0]);if(n.isEmpty()){if(!t)return null;var i=n.startLineNumber;n=new vn(i,this.model.getLineMinColumn(i),i,this.model.getLineMaxColumn(i))}var o=this.configuration.options.get(32),r=this._getColorMap(),s=o.fontFamily===se.fontFamily?o.fontFamily:"'"+o.fontFamily+"', "+se.fontFamily;return'<div style="color: '+r[1]+";background-color: "+r[2]+";font-family: "+s+";font-weight: "+o.fontWeight+";font-size: "+o.fontSize+"px;line-height: "+o.lineHeight+'px;white-space: pre;">'+this._getHTMLToCopy(n,r)+"</div>"},t.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn,a=this.getTabSize(),u="",l=n;l<=o;l++){var c=this.model.getLineTokens(l),d=c.getLineContent(),h=l===n?i-1:0,A=l===o?r-1:d.length;u+=""===d?"<br>":mx(d,c.inflate(),t,h,A,a,s["h"])}return u},t.prototype._getColorMap=function(){var e=zl.getColorMap(),t=["#000000"];if(e)for(var n=1,i=e.length;n<i;n++)t[n]=N_.Format.CSS.formatHex(e[n]);return t},t}(jC),Wx=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var n=0,i=e;n<i.length;n++){var o=i[n],r=o[0],s=o[1];this.set(r,s)}}return e.prototype.set=function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n},e.prototype.has=function(e){return this._entries.has(e)},e.prototype.get=function(e){return this._entries.get(e)},e}(),Kx=Dn("accessibilityService"),zx=new Fp("accessibilityModeEnabled",!1),jx=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)}}(),Gx=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},qx=function(e,t){return function(n,i){t(n,i,e)}},Yx=0,Xx=function(){function e(e,t,n,i,o,r){this.model=e,this.viewModel=t,this.cursor=n,this.view=i,this.hasRealView=o,this.listenersToRemove=r}return e.prototype.dispose=function(){xe(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},e}(),Jx=function(e){function t(t,n,i,o,r,s,a,u,l,c){var d,h=e.call(this)||this;h._onDidDispose=h._register(new Ye),h.onDidDispose=h._onDidDispose.event,h._onDidChangeModelContent=h._register(new Ye),h.onDidChangeModelContent=h._onDidChangeModelContent.event,h._onDidChangeModelLanguage=h._register(new Ye),h.onDidChangeModelLanguage=h._onDidChangeModelLanguage.event,h._onDidChangeModelLanguageConfiguration=h._register(new Ye),h.onDidChangeModelLanguageConfiguration=h._onDidChangeModelLanguageConfiguration.event,h._onDidChangeModelOptions=h._register(new Ye),h.onDidChangeModelOptions=h._onDidChangeModelOptions.event,h._onDidChangeModelDecorations=h._register(new Ye),h.onDidChangeModelDecorations=h._onDidChangeModelDecorations.event,h._onDidChangeConfiguration=h._register(new Ye),h.onDidChangeConfiguration=h._onDidChangeConfiguration.event,h._onDidChangeModel=h._register(new Ye),h.onDidChangeModel=h._onDidChangeModel.event,h._onDidChangeCursorPosition=h._register(new Ye),h.onDidChangeCursorPosition=h._onDidChangeCursorPosition.event,h._onDidChangeCursorSelection=h._register(new Ye),h.onDidChangeCursorSelection=h._onDidChangeCursorSelection.event,h._onDidAttemptReadOnlyEdit=h._register(new Ye),h.onDidAttemptReadOnlyEdit=h._onDidAttemptReadOnlyEdit.event,h._onDidLayoutChange=h._register(new Ye),h.onDidLayoutChange=h._onDidLayoutChange.event,h._editorTextFocus=h._register(new Zx),h.onDidFocusEditorText=h._editorTextFocus.onDidChangeToTrue,h.onDidBlurEditorText=h._editorTextFocus.onDidChangeToFalse,h._editorWidgetFocus=h._register(new Zx),h.onDidFocusEditorWidget=h._editorWidgetFocus.onDidChangeToTrue,h.onDidBlurEditorWidget=h._editorWidgetFocus.onDidChangeToFalse,h._onWillType=h._register(new Ye),h.onWillType=h._onWillType.event,h._onDidType=h._register(new Ye),h.onDidType=h._onDidType.event,h._onCompositionStart=h._register(new Ye),h.onCompositionStart=h._onCompositionStart.event,h._onCompositionEnd=h._register(new Ye),h.onCompositionEnd=h._onCompositionEnd.event,h._onDidPaste=h._register(new Ye),h.onDidPaste=h._onDidPaste.event,h._onMouseUp=h._register(new Ye),h.onMouseUp=h._onMouseUp.event,h._onMouseDown=h._register(new Ye),h.onMouseDown=h._onMouseDown.event,h._onMouseDrag=h._register(new Ye),h.onMouseDrag=h._onMouseDrag.event,h._onMouseDrop=h._register(new Ye),h.onMouseDrop=h._onMouseDrop.event,h._onContextMenu=h._register(new Ye),h.onContextMenu=h._onContextMenu.event,h._onMouseMove=h._register(new Ye),h.onMouseMove=h._onMouseMove.event,h._onMouseLeave=h._register(new Ye),h.onMouseLeave=h._onMouseLeave.event,h._onMouseWheel=h._register(new Ye),h.onMouseWheel=h._onMouseWheel.event,h._onKeyUp=h._register(new Ye),h.onKeyUp=h._onKeyUp.event,h._onKeyDown=h._register(new Ye),h.onKeyDown=h._onKeyDown.event,h._onDidScrollChange=h._register(new Ye),h.onDidScrollChange=h._onDidScrollChange.event,h._onDidChangeViewZones=h._register(new Ye),h.onDidChangeViewZones=h._onDidChangeViewZones.event,h._domElement=t,h._id=++Yx,h._decorationTypeKeysToIds={},h._decorationTypeSubtypes={},h.isSimpleWidget=i.isSimpleWidget||!1,h._telemetryData=i.telemetryData,n=n||{},h._configuration=h._register(h._createConfiguration(n,c)),h._register(h._configuration.onDidChange((function(e){h._onDidChangeConfiguration.fire(e);var t=h._configuration.options;if(e.hasChanged(103)){var n=t.get(103);h._onDidLayoutChange.fire(n)}}))),h._contextKeyService=h._register(a.createScoped(h._domElement)),h._notificationService=l,h._codeEditorService=r,h._commandService=s,h._themeService=u,h._register(new $x(h,h._contextKeyService)),h._register(new eL(h,h._contextKeyService)),h._instantiationService=o.createChild(new Wx([Mp,h._contextKeyService])),h._modelData=null,h._contributions={},h._actions={},h._focusTracker=new tL(t),h._focusTracker.onChange((function(){h._editorWidgetFocus.setValue(h._focusTracker.hasFocus())})),h._contentWidgets={},h._overlayWidgets={},d=Array.isArray(i.contributions)?i.contributions:lg.getEditorContributions();for(var A=0,p=d;A<p.length;A++){var f=p[A];try{var g=h._instantiationService.createInstance(f.ctor,h);h._contributions[f.id]=g}catch(m){Ae(m)}}return lg.getEditorActions().forEach((function(e){var t=new px(e.id,e.label,e.alias,Na(e.precondition),(function(){return h._instantiationService.invokeFunction((function(t){return Promise.resolve(e.runEditorCommand(t,h,null))}))}),h._contextKeyService);h._actions[t.id]=t})),h._codeEditorService.addCodeEditor(h),h}return jx(t,e),t.prototype._createConfiguration=function(e,t){return new Zf(this.isSimpleWidget,e,this._domElement,t)},t.prototype.getId=function(){return this.getEditorType()+":"+this._id},t.prototype.getEditorType=function(){return xu.ICodeEditor},t.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var t=Object.keys(this._contributions),n=0,i=t.length;n<i;n++){var o=t[n];this._contributions[o].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),e.prototype.dispose.call(this)},t.prototype.invokeWithinContext=function(e){return this._instantiationService.invokeFunction(e)},t.prototype.updateOptions=function(e){this._configuration.updateOptions(e)},t.prototype.getOptions=function(){return this._configuration.options},t.prototype.getOption=function(e){return this._configuration.options.get(e)},t.prototype.getRawOptions=function(){return this._configuration.getRawOptions()},t.prototype.getValue=function(e){if(void 0===e&&(e=null),!this._modelData)return"";var t=!(!e||!e.preserveBOM),n=0;return e&&e.lineEnding&&"\n"===e.lineEnding?n=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(n=2),this._modelData.model.getValue(n,t)},t.prototype.setValue=function(e){this._modelData&&this._modelData.model.setValue(e)},t.prototype.getModel=function(){return this._modelData?this._modelData.model:null},t.prototype.setModel=function(e){void 0===e&&(e=null);var t=e;if((null!==this._modelData||null!==t)&&(!this._modelData||this._modelData.model!==t)){var n=this.hasTextFocus(),i=this._detachModel();this._attachModel(t),n&&this.hasModel()&&this.focus();var o={oldModelUrl:i?i.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(o),this._postDetachModelCleanup(i)}},t.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes){var t=this._decorationTypeSubtypes[e];for(var n in t)this._removeDecorationType(e+"-"+n)}this._decorationTypeSubtypes={}}},t.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},t.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},t._getVerticalOffsetForPosition=function(e,t,n){var i=e.model.validatePosition({lineNumber:t,column:n}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)},t.prototype.getTopForLineNumber=function(e){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,1):-1},t.prototype.getTopForPosition=function(e,n){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,n):-1},t.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map((function(e){return vn.lift(e)})))},t.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return ay.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1},t.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},t.prototype.setPosition=function(e){if(this._modelData){if(!mn.isIPosition(e))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}},t.prototype._sendRevealRange=function(e,t,n,i){if(this._modelData){if(!vn.isIRange(e))throw new Error("Invalid arguments");var o=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.cursor.emitCursorRevealRange("api",r,t,n,i)}},t.prototype.revealLine=function(e,t){void 0===t&&(t=0),this._revealLine(e,0,t)},t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this._revealLine(e,1,t)},t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealLine(e,2,t)},t.prototype._revealLine=function(e,t,n){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new vn(e,1,e,1),t,!1,n)},t.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this._revealPosition(e,0,!0,t)},t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this._revealPosition(e,1,!0,t)},t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealPosition(e,2,!0,t)},t.prototype._revealPosition=function(e,t,n,i){if(!mn.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new vn(e.lineNumber,e.column,e.lineNumber,e.column),t,n,i)},t.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},t.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},t.prototype.setSelection=function(e){var t=yn.isISelection(e),n=vn.isIRange(e);if(!t&&!n)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(n){var i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i)}},t.prototype._setSelectionImpl=function(e){if(this._modelData){var t=new yn(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[t])}},t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,0,n)},t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,1,n)},t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,2,n)},t.prototype._revealLines=function(e,t,n,i){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new vn(e,1,t,1),n,!1,i)},t.prototype.revealRange=function(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===i&&(i=!0),this._revealRange(e,n?1:0,i,t)},t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this._revealRange(e,1,!0,t)},t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealRange(e,2,!0,t)},t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this._revealRange(e,3,!0,t)},t.prototype._revealRange=function(e,t,n,i){if(!vn.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(vn.lift(e),t,n,i)},t.prototype.setSelections=function(e,t){if(void 0===t&&(t="api"),this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(var n=0,i=e.length;n<i;n++)if(!yn.isISelection(e[n]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(t,e)}},t.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},t.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},t.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},t.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},t.prototype.setScrollLeft=function(e){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})}},t.prototype.setScrollTop=function(e){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})}},t.prototype.setScrollPosition=function(e){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPositionNow(e)},t.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},t=Object.keys(this._contributions),n=0,i=t;n<i.length;n++){var o=i[n],r=this._contributions[o];"function"===typeof r.saveViewState&&(e[o]=r.saveViewState())}var s=this._modelData.cursor.saveState(),a=this._modelData.viewModel.saveState();return{cursorState:s,viewState:a,contributionsState:e}},t.prototype.restoreViewState=function(e){if(this._modelData&&this._modelData.hasRealView){var t=e;if(t&&t.cursorState&&t.viewState){var n=t.cursorState;Array.isArray(n)?this._modelData.cursor.restoreState(n):this._modelData.cursor.restoreState([n]);for(var i=t.contributionsState||{},o=Object.keys(this._contributions),r=0,s=o.length;r<s;r++){var a=o[r],u=this._contributions[a];"function"===typeof u.restoreViewState&&u.restoreViewState(i[a])}var l=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(l)}}},t.prototype.getContribution=function(e){return this._contributions[e]||null},t.prototype.getActions=function(){for(var e=[],t=Object.keys(this._actions),n=0,i=t.length;n<i;n++){var o=t[n];e.push(this._actions[o])}return e},t.prototype.getSupportedActions=function(){var e=this.getActions();return e=e.filter((function(e){return e.isSupported()})),e},t.prototype.getAction=function(e){return this._actions[e]||null},t.prototype.trigger=function(e,t,n){if(n=n||{},t===Lu.Type){if(!this._modelData||"string"!==typeof n.text||0===n.text.length)return;return"keyboard"===e&&this._onWillType.fire(n.text),this._modelData.cursor.trigger(e,t,n),void("keyboard"===e&&this._onDidType.fire(n.text))}if(t!==Lu.Paste){t===Lu.CompositionStart&&this._onCompositionStart.fire(),t===Lu.CompositionEnd&&this._onCompositionEnd.fire();var i=this.getAction(t);i?Promise.resolve(i.run()).then(void 0,Ae):this._modelData&&(this._triggerEditorCommand(e,t,n)||this._modelData.cursor.trigger(e,t,n))}else{if(!this._modelData||"string"!==typeof n.text||0===n.text.length)return;var o=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,t,n);var r=this._modelData.cursor.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire(new vn(o.lineNumber,o.column,r.lineNumber,r.column))}},t.prototype._triggerEditorCommand=function(e,t,n){var i=this,o=lg.getEditorCommand(t);return!!o&&(n=n||{},n.source=e,this._instantiationService.invokeFunction((function(e){Promise.resolve(o.runEditorCommand(e,i,n)).then(void 0,Ae)})),!0)},t.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},t.prototype.pushUndoStop=function(){return!!this._modelData&&(!this._configuration.options.get(65)&&(this._modelData.model.pushStackElement(),!0))},t.prototype.executeEdits=function(e,t,n){return!!this._modelData&&(!this._configuration.options.get(65)&&(i=n?Array.isArray(n)?function(){return n}:n:function(){return null},this._modelData.cursor.executeEdits(e,t,i),!0));var i},t.prototype.executeCommand=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,Lu.ExecuteCommand,t)},t.prototype.executeCommands=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,Lu.ExecuteCommands,t)},t.prototype.changeDecorations=function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null},t.prototype.getLineDecorations=function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,this._configuration.options.get(65)):null},t.prototype.deltaDecorations=function(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]},t.prototype.removeDecorations=function(e){var t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]},t.prototype.getLayoutInfo=function(){var e=this._configuration.options,t=e.get(103);return t},t.prototype.createOverviewRuler=function(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null},t.prototype.getDomNode=function(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)},t.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render()},t.prototype.focus=function(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()},t.prototype.hasTextFocus=function(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()},t.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},t.prototype.addContentWidget=function(e){var t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)},t.prototype.layoutContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(n)}},t.prototype.removeContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(n)}},t.prototype.addOverlayWidget=function(e){var t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)},t.prototype.layoutOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(n)}},t.prototype.removeOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(n)}},t.prototype.changeViewZones=function(e){if(this._modelData&&this._modelData.hasRealView){var t=this._modelData.view.change(e);t&&this._onDidChangeViewZones.fire()}},t.prototype.getTargetAtClientPoint=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null},t.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var n=this._modelData.model.validatePosition(e),i=this._configuration.options,o=i.get(103),r=t._getVerticalOffsetForPosition(this._modelData,n.lineNumber,n.column)-this.getScrollTop(),s=this._modelData.view.getOffsetForColumn(n.lineNumber,n.column)+o.glyphMarginWidth+o.lineNumbersWidth+o.decorationsWidth-this.getScrollLeft();return{top:r,left:s,height:i.get(47)}},t.prototype.getOffsetForColumn=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1},t.prototype.render=function(e){void 0===e&&(e=!1),this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)},t.prototype.applyFontInfo=function(e){Zf.applyFontInfoSlow(e,this._configuration.options.get(32))},t.prototype._attachModel=function(e){var t=this;if(e){var n=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();var i=new Vx(this._id,this._configuration,e,(function(e){return Lo(e)}));n.push(e.onDidChangeDecorations((function(e){return t._onDidChangeModelDecorations.fire(e)}))),n.push(e.onDidChangeLanguage((function(n){t._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),t._onDidChangeModelLanguage.fire(n)}))),n.push(e.onDidChangeLanguageConfiguration((function(e){return t._onDidChangeModelLanguageConfiguration.fire(e)}))),n.push(e.onDidChangeContent((function(e){return t._onDidChangeModelContent.fire(e)}))),n.push(e.onDidChangeOptions((function(e){return t._onDidChangeModelOptions.fire(e)}))),n.push(e.onWillDispose((function(){return t.setModel(null)})));var o=new hx(this._configuration,e,i);n.push(o.onDidReachMaxCursorCount((function(){t._notificationService.warn(r("cursors.maximum","The number of cursors has been limited to {0}.",hx.MAX_CURSOR_COUNT))}))),n.push(o.onDidAttemptReadOnlyEdit((function(){t._onDidAttemptReadOnlyEdit.fire(void 0)}))),n.push(o.onDidChange((function(e){for(var n=[],i=0,o=e.selections.length;i<o;i++)n[i]=e.selections[i].getPosition();var r={position:n[0],secondaryPositions:n.slice(1),reason:e.reason,source:e.source};t._onDidChangeCursorPosition.fire(r);var s={selection:e.selections[0],secondarySelections:e.selections.slice(1),modelVersionId:e.modelVersionId,oldSelections:e.oldSelections,oldModelVersionId:e.oldModelVersionId,source:e.source,reason:e.reason};t._onDidChangeCursorSelection.fire(s)})));var s=this._createView(i,o),a=s[0],u=s[1];if(u){this._domElement.appendChild(a.domNode.domNode);for(var l=Object.keys(this._contentWidgets),c=0,d=l.length;c<d;c++){var h=l[c];a.addContentWidget(this._contentWidgets[h])}l=Object.keys(this._overlayWidgets);for(c=0,d=l.length;c<d;c++){h=l[c];a.addOverlayWidget(this._overlayWidgets[h])}a.render(!1,!0),a.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Xx(e,i,o,a,u,n)}else this._modelData=null},t.prototype._createView=function(e,t){var n,i=this;n=this.isSimpleWidget?{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,o){i.trigger(e,Lu.Paste,{text:t,pasteOnNewLine:n,multicursorText:o})},type:function(e,t){i.trigger(e,Lu.Type,{text:t})},replacePreviousChar:function(e,t,n){i.trigger(e,Lu.ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(e){i.trigger(e,Lu.CompositionStart,void 0)},compositionEnd:function(e){i.trigger(e,Lu.CompositionEnd,void 0)},cut:function(e){i.trigger(e,Lu.Cut,void 0)}}:{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,o){i._commandService.executeCommand(Lu.Paste,{text:t,pasteOnNewLine:n,multicursorText:o})},type:function(e,t){i._commandService.executeCommand(Lu.Type,{text:t})},replacePreviousChar:function(e,t,n){i._commandService.executeCommand(Lu.ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(e){i._commandService.executeCommand(Lu.CompositionStart,{})},compositionEnd:function(e){i._commandService.executeCommand(Lu.CompositionEnd,{})},cut:function(e){i._commandService.executeCommand(Lu.Cut,{})}};var o=new RS(e);o.onDidScroll=function(e){return i._onDidScrollChange.fire(e)},o.onDidGainFocus=function(){return i._editorTextFocus.setValue(!0)},o.onDidLoseFocus=function(){return i._editorTextFocus.setValue(!1)},o.onContextMenu=function(e){return i._onContextMenu.fire(e)},o.onMouseDown=function(e){return i._onMouseDown.fire(e)},o.onMouseUp=function(e){return i._onMouseUp.fire(e)},o.onMouseDrag=function(e){return i._onMouseDrag.fire(e)},o.onMouseDrop=function(e){return i._onMouseDrop.fire(e)},o.onKeyUp=function(e){return i._onKeyUp.fire(e)},o.onMouseMove=function(e){return i._onMouseMove.fire(e)},o.onMouseLeave=function(e){return i._onMouseLeave.fire(e)},o.onMouseWheel=function(e){return i._onMouseWheel.fire(e)},o.onKeyDown=function(e){return i._onKeyDown.fire(e)};var r=new ix(n,this._configuration,this._themeService,e,t,o);return[r,!0]},t.prototype._postDetachModelCleanup=function(e){e&&e.removeAllDecorationsWithOwnerId(this._id)},t.prototype._detachModel=function(){if(!this._modelData)return null;var e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.removeChild(t),e},t.prototype._removeDecorationType=function(e){this._codeEditorService.removeDecorationType(e)},t.prototype.hasModel=function(){return null!==this._modelData},t=Gx([qx(3,xn),qx(4,kn),qx(5,Ka),qx(6,Mp),qx(7,um),qx(8,$p),qx(9,Kx)],t),t}(Ie),Zx=function(e){function t(){var t=e.call(this)||this;return t._onDidChangeToTrue=t._register(new Ye),t.onDidChangeToTrue=t._onDidChangeToTrue.event,t._onDidChangeToFalse=t._register(new Ye),t.onDidChangeToFalse=t._onDidChangeToFalse.event,t._value=0,t}return jx(t,e),t.prototype.setValue=function(e){var t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())},t}(Ie),$x=function(e){function t(t,n){var i=e.call(this)||this;return i._editor=t,n.createKey("editorId",t.getId()),i._editorFocus=_S.focus.bindTo(n),i._textInputFocus=_S.textInputFocus.bindTo(n),i._editorTextFocus=_S.editorTextFocus.bindTo(n),i._editorTabMovesFocus=_S.tabMovesFocus.bindTo(n),i._editorReadonly=_S.readOnly.bindTo(n),i._hasMultipleSelections=_S.hasMultipleSelections.bindTo(n),i._hasNonEmptySelection=_S.hasNonEmptySelection.bindTo(n),i._canUndo=_S.canUndo.bindTo(n),i._canRedo=_S.canRedo.bindTo(n),i._register(i._editor.onDidChangeConfiguration((function(){return i._updateFromConfig()}))),i._register(i._editor.onDidChangeCursorSelection((function(){return i._updateFromSelection()}))),i._register(i._editor.onDidFocusEditorWidget((function(){return i._updateFromFocus()}))),i._register(i._editor.onDidBlurEditorWidget((function(){return i._updateFromFocus()}))),i._register(i._editor.onDidFocusEditorText((function(){return i._updateFromFocus()}))),i._register(i._editor.onDidBlurEditorText((function(){return i._updateFromFocus()}))),i._register(i._editor.onDidChangeModel((function(){return i._updateFromModel()}))),i._register(i._editor.onDidChangeConfiguration((function(){return i._updateFromModel()}))),i._updateFromConfig(),i._updateFromSelection(),i._updateFromFocus(),i._updateFromModel(),i}return jx(t,e),t.prototype._updateFromConfig=function(){var e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(102)),this._editorReadonly.set(e.get(65))},t.prototype._updateFromSelection=function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((function(e){return!e.isEmpty()})))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},t.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},t.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},t}(Ie),eL=function(e){function t(t,n){var i=e.call(this)||this;i._editor=t,i._contextKeyService=n,i._langId=_S.languageId.bindTo(n),i._hasCompletionItemProvider=_S.hasCompletionItemProvider.bindTo(n),i._hasCodeActionsProvider=_S.hasCodeActionsProvider.bindTo(n),i._hasCodeLensProvider=_S.hasCodeLensProvider.bindTo(n),i._hasDefinitionProvider=_S.hasDefinitionProvider.bindTo(n),i._hasDeclarationProvider=_S.hasDeclarationProvider.bindTo(n),i._hasImplementationProvider=_S.hasImplementationProvider.bindTo(n),i._hasTypeDefinitionProvider=_S.hasTypeDefinitionProvider.bindTo(n),i._hasHoverProvider=_S.hasHoverProvider.bindTo(n),i._hasDocumentHighlightProvider=_S.hasDocumentHighlightProvider.bindTo(n),i._hasDocumentSymbolProvider=_S.hasDocumentSymbolProvider.bindTo(n),i._hasReferenceProvider=_S.hasReferenceProvider.bindTo(n),i._hasRenameProvider=_S.hasRenameProvider.bindTo(n),i._hasSignatureHelpProvider=_S.hasSignatureHelpProvider.bindTo(n),i._hasDocumentFormattingProvider=_S.hasDocumentFormattingProvider.bindTo(n),i._hasDocumentSelectionFormattingProvider=_S.hasDocumentSelectionFormattingProvider.bindTo(n),i._hasMultipleDocumentFormattingProvider=_S.hasMultipleDocumentFormattingProvider.bindTo(n),i._hasMultipleDocumentSelectionFormattingProvider=_S.hasMultipleDocumentSelectionFormattingProvider.bindTo(n),i._isInWalkThrough=_S.isInEmbeddedEditor.bindTo(n);var o=function(){return i._update()};return i._register(t.onDidChangeModel(o)),i._register(t.onDidChangeModelLanguage(o)),i._register(El.onDidChange(o)),i._register(Tl.onDidChange(o)),i._register(Ol.onDidChange(o)),i._register(kl.onDidChange(o)),i._register(Il.onDidChange(o)),i._register(Fl.onDidChange(o)),i._register(Ml.onDidChange(o)),i._register(Ll.onDidChange(o)),i._register(Nl.onDidChange(o)),i._register(Dl.onDidChange(o)),i._register(Sl.onDidChange(o)),i._register(Bl.onDidChange(o)),i._register(Pl.onDidChange(o)),i._register(Rl.onDidChange(o)),i._register(xl.onDidChange(o)),o(),i}return jx(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.reset=function(){var e=this;this._contextKeyService.bufferChangeEvents((function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()}))},t.prototype._update=function(){var e=this,t=this._editor.getModel();t?this._contextKeyService.bufferChangeEvents((function(){e._langId.set(t.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(El.has(t)),e._hasCodeActionsProvider.set(Tl.has(t)),e._hasCodeLensProvider.set(Ol.has(t)),e._hasDefinitionProvider.set(kl.has(t)),e._hasDeclarationProvider.set(Il.has(t)),e._hasImplementationProvider.set(Fl.has(t)),e._hasTypeDefinitionProvider.set(Ml.has(t)),e._hasHoverProvider.set(Ll.has(t)),e._hasDocumentHighlightProvider.set(Nl.has(t)),e._hasDocumentSymbolProvider.set(Dl.has(t)),e._hasReferenceProvider.set(Sl.has(t)),e._hasRenameProvider.set(Bl.has(t)),e._hasSignatureHelpProvider.set(xl.has(t)),e._hasDocumentFormattingProvider.set(Pl.has(t)||Rl.has(t)),e._hasDocumentSelectionFormattingProvider.set(Rl.has(t)),e._hasMultipleDocumentFormattingProvider.set(Pl.all(t).length+Rl.all(t).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(Rl.all(t).length>1),e._isInWalkThrough.set(t.uri.scheme===Bi.walkThroughSnippet)})):this.reset()},t}(Ie),tL=function(e){function t(t){var n=e.call(this)||this;return n._onChange=n._register(new Ye),n.onChange=n._onChange.event,n._hasFocus=!1,n._domFocusTracker=n._register(sr(t)),n._register(n._domFocusTracker.onDidFocus((function(){n._hasFocus=!0,n._onChange.fire(void 0)}))),n._register(n._domFocusTracker.onDidBlur((function(){n._hasFocus=!1,n._onChange.fire(void 0)}))),n}return jx(t,e),t.prototype.hasFocus=function(){return this._hasFocus},t}(Ie),nL=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),iL=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function oL(e){return nL+encodeURIComponent(e.toString())+iL}var rL=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),sL=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');function aL(e){return rL+encodeURIComponent(e.toString())+sL}gm((function(e,t){var n=e.getColor(Bw);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var i=e.getColor(Sw);i&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+oL(i)+'") repeat-x bottom left; }');var o=e.getColor(xw);o&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+o+"; }");var r=e.getColor(Ew);r&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+oL(r)+'") repeat-x bottom left; }');var s=e.getColor(Dw);s&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(Lw);a&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+oL(a)+'") repeat-x bottom left; }');var u=e.getColor(kw);u&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+u+"; }");var l=e.getColor(Nw);l&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+aL(l)+'") no-repeat bottom left; }');var c=e.getColor(wC);c&&t.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; }");var d=e.getColor(yC);d&&t.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }");var h=e.getColor(Fw)||"inherit";t.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+h+"}")}));n("94a7"),n("ba77");var uL=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)}}(),lL=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},cL=!1,dL=function(e){function t(t,n,i){void 0===i&&(i={});var o=e.call(this)||this;return o._state=3,o._onDidEnablementChange=o._register(new Ye),o.onDidEnablementChange=o._onDidEnablementChange.event,o._onDidStart=o._register(new Ye),o.onDidStart=o._onDidStart.event,o._onDidChange=o._register(new Ye),o.onDidChange=o._onDidChange.event,o._onDidReset=o._register(new Ye),o.onDidReset=o._onDidReset.event,o._onDidEnd=o._register(new Ye),o.onDidEnd=o._onDidEnd.event,o.linkedSash=void 0,o.orthogonalStartSashDisposables=o._register(new ke),o.orthogonalEndSashDisposables=o._register(new ke),o.el=ar(t,dr(".monaco-sash")),s["e"]&&ho(o.el,"mac"),o._register(Yn(o.el,"mousedown")(o.onMouseDown,o)),o._register(Yn(o.el,"dblclick")(o.onMouseDoubleClick,o)),o._register(Tg.addTarget(o.el)),o._register(Yn(o.el,Fg.Start)(o.onTouchStart,o)),jn&&ho(o.el,"touch"),o.setOrientation(i.orientation||0),o.hidden=!1,o.layoutProvider=n,o.orthogonalStartSash=i.orthogonalStartSash,o.orthogonalEndSash=i.orthogonalEndSash,go(o.el,"debug",cL),o}return uL(t,e),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(go(this.el,"disabled",0===e),go(this.el,"minimum",1===e),go(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){this.orthogonalStartSashDisposables.clear(),e?(this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){this.orthogonalEndSashDisposables.clear(),e?(this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),t.prototype.setOrientation=function(e){this.orientation=e,1===this.orientation?(ho(this.el,"horizontal"),po(this.el,"vertical")):(po(this.el,"horizontal"),ho(this.el,"vertical")),this.layoutProvider&&this.layout()},t.prototype.onMouseDown=function(e){var t=this;nr.stop(e,!1);var n=!1;if(!e.__orthogonalSashEvent){var i=this.getOrthogonalSash(e);i&&(n=!0,e.__orthogonalSashEvent=!0,i.onMouseDown(e))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),this.state){for(var o=lL(gr("iframe"),gr("webview")),r=0,a=o;r<a.length;r++){var u=a[r];u.style.pointerEvents="none"}var l=new di(e),c=l.posx,d=l.posy,h=l.altKey,A={startX:c,currentX:c,startY:d,currentY:d,altKey:h};ho(this.el,"active"),this._onDidStart.fire(A);var p=qo(this.el),f=function(){var e="";e=n?"all-scroll":1===t.orientation?1===t.state?"s-resize":2===t.state?"n-resize":s["e"]?"row-resize":"ns-resize":1===t.state?"e-resize":2===t.state?"w-resize":s["e"]?"col-resize":"ew-resize",p.innerHTML="* { cursor: "+e+" !important; }"},g=new ke;f(),n||this.onDidEnablementChange(f,null,g);var m=function(e){nr.stop(e,!1);var n=new di(e),i={startX:c,currentX:n.posx,startY:d,currentY:n.posy,altKey:h};t._onDidChange.fire(i)},v=function(e){nr.stop(e,!1),t.el.removeChild(p),po(t.el,"active"),t._onDidEnd.fire(),g.dispose();for(var n=0,i=o;n<i.length;n++){var r=i[n];r.style.pointerEvents="auto"}};Yn(window,"mousemove")(m,null,g),Yn(window,"mouseup")(v,null,g)}},t.prototype.onMouseDoubleClick=function(e){var t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},t.prototype.onTouchStart=function(e){var t=this;nr.stop(e);var n=[],i=e.pageX,o=e.pageY,r=e.altKey;this._onDidStart.fire({startX:i,currentX:i,startY:o,currentY:o,altKey:r}),n.push(vo(this.el,Fg.Change,(function(e){ma(e.pageX)&&ma(e.pageY)&&t._onDidChange.fire({startX:i,currentX:e.pageX,startY:o,currentY:e.pageY,altKey:r})}))),n.push(vo(this.el,Fg.End,(function(e){t._onDidEnd.fire(),xe(n)})))},t.prototype.layout=function(){var e=jn?20:4;if(0===this.orientation){var t=this.layoutProvider;this.el.style.left=t.getVerticalSashLeft(this)-e/2+"px",t.getVerticalSashTop&&(this.el.style.top=t.getVerticalSashTop(this)+"px"),t.getVerticalSashHeight&&(this.el.style.height=t.getVerticalSashHeight(this)+"px")}else{var n=this.layoutProvider;this.el.style.top=n.getHorizontalSashTop(this)-e/2+"px",n.getHorizontalSashLeft&&(this.el.style.left=n.getHorizontalSashLeft(this)+"px"),n.getHorizontalSashWidth&&(this.el.style.width=n.getHorizontalSashWidth(this)+"px")}},t.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},t.prototype.onOrthogonalStartSashEnablementChange=function(e){go(this.el,"orthogonal-start",0!==e)},t.prototype.onOrthogonalEndSashEnablementChange=function(e){go(this.el,"orthogonal-end",0!==e)},t.prototype.getOrthogonalSash=function(e){if(0===this.orientation){if(e.offsetY<=4)return this.orthogonalStartSash;if(e.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(e.offsetX<=4)return this.orthogonalStartSash;if(e.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.el.remove()},t}(Ie),hL=function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1),this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}return e}(),AL=[];function pL(e,t,n){AL.push([e,new hL(t,[],n)])}function fL(){return AL}var gL=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)}}(),mL=Dn("IEditorCancelService"),vL=new Fp("cancellableOperation",!1);pL(mL,function(){function e(){this._tokens=new WeakMap}return e.prototype.add=function(e,t){var n,i=this._tokens.get(e);return i||(i=e.invokeWithinContext((function(e){var t=vL.bindTo(e.get(Mp)),n=new Ke;return{key:t,tokens:n}})),this._tokens.set(e,i)),i.key.set(!0),n=i.tokens.push(t),function(){n&&(n(),i.key.set(!i.tokens.isEmpty()),n=void 0)}},e.prototype.cancel=function(e){var t=this._tokens.get(e);if(t){var n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},e}(),!0);var _L=function(e){function t(t,n){var i=e.call(this,n)||this;return i.editor=t,i._unregister=t.invokeWithinContext((function(e){return e.get(mL).add(t,i)})),i}return gL(t,e),t.prototype.dispose=function(){this._unregister(),e.prototype.dispose.call(this)},t}(it);bg(new(function(e){function t(){return e.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:vL})||this}return gL(t,e),t.prototype.runEditorCommand=function(e,t){e.get(mL).cancel(t)},t}(vg)));var yL=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)}}(),wL=function(){function e(e,t){if(this.flags=t,0!==(1&this.flags)){var n=e.getModel();this.modelVersionId=n?xr("{0}#{1}",n.uri.toString(),n.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=e.getPosition():this.position=null,0!==(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return e.prototype._equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.modelVersionId===n.modelVersionId&&(this.scrollLeft===n.scrollLeft&&this.scrollTop===n.scrollTop&&(!(!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position))&&!(!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))))},e.prototype.validate=function(t){return this._equals(new e(t,this.flags))},e}(),bL=function(e){function t(t,n,i){var o=e.call(this,t,i)||this;return o.editor=t,o._listener=new ke,4&n&&o._listener.add(t.onDidChangeCursorPosition((function(e){return o.cancel()}))),2&n&&o._listener.add(t.onDidChangeCursorSelection((function(e){return o.cancel()}))),8&n&&o._listener.add(t.onDidScrollChange((function(e){return o.cancel()}))),1&n&&(o._listener.add(t.onDidChangeModel((function(e){return o.cancel()}))),o._listener.add(t.onDidChangeModelContent((function(e){return o.cancel()})))),o}return yL(t,e),t.prototype.dispose=function(){this._listener.dispose(),e.prototype.dispose.call(this)},t}(_L),CL=function(e){function t(t,n){var i=e.call(this,n)||this;return i._listener=t.onDidChangeContent((function(){return i.cancel()})),i}return yL(t,e),t.prototype.dispose=function(){this._listener.dispose(),e.prototype.dispose.call(this)},t}(it),SL=function(){function e(e,t){this._visiblePosition=e,this._visiblePositionScrollDelta=t}return e.capture=function(t){var n=null,i=0;if(0!==t.getScrollTop()){var o=t.getVisibleRanges();if(o.length>0){n=o[0].getStartPosition();var r=t.getTopForPosition(n.lineNumber,n.column);i=t.getScrollTop()-r}}return new e(n,i)},e.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},e}(),BL=(n("0d30"),n("c84a"),{RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"}),EL=function(){function e(e){this.data=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.data},e}(),xL={CurrentDragAndDropData:void 0},LL=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)}}(),DL=function(e){function t(t,n,i){var o=e.call(this)||this;return o.options=i,o._context=t||o,o._action=n,n instanceof ng&&o._register(n.onDidChange((function(e){o.element&&o.handleActionChangeEvent(e)}))),o}return LL(t,e),t.prototype.handleActionChangeEvent=function(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()},Object.defineProperty(t.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new ig)),this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),t.prototype.getAction=function(){return this._action},t.prototype.isEnabled=function(){return this._action.enabled},t.prototype.setActionContext=function(e){this._context=e},t.prototype.render=function(e){var t=this,n=this.element=e;this._register(Tg.addTarget(e));var i=this.options&&this.options.draggable;i&&(e.draggable=!0,Qn&&this._register(vo(e,tr.DRAG_START,(function(e){var n;return null===(n=e.dataTransfer)||void 0===n?void 0:n.setData(BL.TEXT,t._action.label)})))),this._register(vo(n,Fg.Tap,(function(e){return t.onClick(e)}))),this._register(vo(n,tr.MOUSE_DOWN,(function(e){i||nr.stop(e,!0),t._action.enabled&&0===e.button&&ho(n,"active")}))),this._register(vo(n,tr.CLICK,(function(e){nr.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):s["i"]((function(){return t.onClick(e)}))}))),this._register(vo(n,tr.DBLCLICK,(function(e){nr.stop(e,!0)}))),[tr.MOUSE_UP,tr.MOUSE_OUT].forEach((function(e){t._register(vo(n,e,(function(e){nr.stop(e),po(n,"active")})))}))},t.prototype.onClick=function(e){var t;nr.stop(e,!0),ya(this._context)?t=e:(t=this._context,ga(t)&&(t.event=e)),this.actionRunner.run(this._action,t)},t.prototype.focus=function(){this.element&&(this.element.focus(),ho(this.element,"focused"))},t.prototype.blur=function(){this.element&&(this.element.blur(),po(this.element,"focused"))},t.prototype.updateEnabled=function(){},t.prototype.updateLabel=function(){},t.prototype.updateTooltip=function(){},t.prototype.updateClass=function(){},t.prototype.updateChecked=function(){},t.prototype.dispose=function(){this.element&&(ro(this.element),this.element=void 0),e.prototype.dispose.call(this)},t}(Ie),NL=function(e){function t(n){var i=e.call(this,t.ID,n,n?"separator text":"separator")||this;return i.checked=!1,i.enabled=!1,i}return LL(t,e),t.ID="vs.actions.separator",t}(ng),kL=function(e){function t(t,n,i){void 0===i&&(i={});var o=e.call(this,t,n,i)||this;return o.options=i,o.options.icon=void 0!==i.icon&&i.icon,o.options.label=void 0===i.label||i.label,o.cssClass="",o}return LL(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.element&&(this.label=ar(this.element,dr("a.action-label"))),this.label&&(this._action.id===NL.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(ar(this.element,dr("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},t.prototype.focus=function(){e.prototype.focus.call(this),this.label&&this.label.focus()},t.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},t.prototype.updateTooltip=function(){var e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=r({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)},t.prototype.updateClass=function(){this.cssClass&&this.label&&fo(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(ho(this.label,"codicon"),this.cssClass&&Ao(this.label,this.cssClass)),this.updateEnabled()):this.label&&po(this.label,"codicon")},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),po(this.label,"disabled"),this.label.tabIndex=0),this.element&&po(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),ho(this.label,"disabled"),fr(this.label)),this.element&&ho(this.element,"disabled"))},t.prototype.updateChecked=function(){this.label&&(this.getAction().checked?ho(this.label,"checked"):po(this.label,"checked"))},t}(DL),IL={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},FL=function(e){function t(t,n){void 0===n&&(n=IL);var i,o,r=e.call(this)||this;switch(r._onDidBlur=r._register(new Ye),r.onDidBlur=r._onDidBlur.event,r._onDidCancel=r._register(new Ye),r.onDidCancel=r._onDidCancel.event,r._onDidRun=r._register(new Ye),r.onDidRun=r._onDidRun.event,r._onDidBeforeRun=r._register(new Ye),r.onDidBeforeRun=r._onDidBeforeRun.event,r.options=n,r._context=n.context,r.options.triggerKeys||(r.options.triggerKeys=IL.triggerKeys),r.options.actionRunner?r._actionRunner=r.options.actionRunner:(r._actionRunner=new ig,r._register(r._actionRunner)),r._register(r._actionRunner.onDidRun((function(e){return r._onDidRun.fire(e)}))),r._register(r._actionRunner.onDidBeforeRun((function(e){return r._onDidBeforeRun.fire(e)}))),r.viewItems=[],r.focusedItem=void 0,r.domNode=document.createElement("div"),r.domNode.className="monaco-action-bar",!1!==n.animated&&ho(r.domNode,"animated"),r.options.orientation){case 0:i=15,o=17;break;case 1:i=17,o=15,r.domNode.className+=" reverse";break;case 2:i=16,o=18,r.domNode.className+=" vertical";break;case 3:i=18,o=16,r.domNode.className+=" vertical reverse";break}return r._register(vo(r.domNode,tr.KEY_DOWN,(function(e){var t=new oi(e),n=!0;t.equals(i)?r.focusPrevious():t.equals(o)?r.focusNext():t.equals(9)?r.cancel():r.isTriggerKeyEvent(t)?r.options.triggerKeys&&r.options.triggerKeys.keyDown&&r.doTrigger(t):n=!1,n&&(t.preventDefault(),t.stopPropagation())}))),r._register(vo(r.domNode,tr.KEY_UP,(function(e){var t=new oi(e);r.isTriggerKeyEvent(t)?(r.options.triggerKeys&&!r.options.triggerKeys.keyDown&&r.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&r.updateFocusedItem()}))),r.focusTracker=r._register(sr(r.domNode)),r._register(r.focusTracker.onDidBlur((function(){document.activeElement!==r.domNode&&jo(document.activeElement,r.domNode)||(r._onDidBlur.fire(),r.focusedItem=void 0)}))),r._register(r.focusTracker.onDidFocus((function(){return r.updateFocusedItem()}))),r.actionsList=document.createElement("ul"),r.actionsList.className="actions-container",r.actionsList.setAttribute("role","toolbar"),r.options.ariaLabel&&r.actionsList.setAttribute("aria-label",r.options.ariaLabel),r.domNode.appendChild(r.actionsList),t.appendChild(r.domNode),r}return LL(t,e),t.prototype.isTriggerKeyEvent=function(e){var t=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach((function(n){t=t||e.equals(n)})),t},t.prototype.updateFocusedItem=function(){for(var e=0;e<this.actionsList.children.length;e++){var t=this.actionsList.children[e];if(jo(document.activeElement,t)){this.focusedItem=e;break}}},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},set:function(e){this._context=e,this.viewItems.forEach((function(t){return t.setActionContext(e)}))},enumerable:!0,configurable:!0}),t.prototype.getContainer=function(){return this.domNode},t.prototype.push=function(e,t){var n=this;void 0===t&&(t={});var i=Array.isArray(e)?e:[e],o=ma(t.index)?t.index:null;i.forEach((function(e){var i,r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation"),n._register(vo(r,tr.CONTEXT_MENU,(function(e){e.preventDefault(),e.stopPropagation()}))),n.options.actionViewItemProvider&&(i=n.options.actionViewItemProvider(e)),i||(i=new kL(n.context,e,t)),i.actionRunner=n._actionRunner,i.setActionContext(n.context),i.render(r),null===o||o<0||o>=n.actionsList.children.length?(n.actionsList.appendChild(r),n.viewItems.push(i)):(n.actionsList.insertBefore(r,n.actionsList.children[o]),n.viewItems.splice(o,0,i),o++)}))},t.prototype.clear=function(){this.viewItems=xe(this.viewItems),oo(this.actionsList)},t.prototype.isEmpty=function(){return 0===this.viewItems.length},t.prototype.focus=function(e){var t=!1,n=void 0;void 0===e?t=!0:"number"===typeof e?n=e:"boolean"===typeof e&&(t=e),t&&"undefined"===typeof this.focusedItem?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())},t.prototype.focusNext=function(){"undefined"===typeof this.focusedItem&&(this.focusedItem=this.viewItems.length-1);var e,t=this.focusedItem;do{this.focusedItem=(this.focusedItem+1)%this.viewItems.length,e=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},t.prototype.focusPrevious=function(){"undefined"===typeof this.focusedItem&&(this.focusedItem=0);var e,t=this.focusedItem;do{this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),e=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0)},t.prototype.updateFocus=function(e,t){"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t});for(var n=0;n<this.viewItems.length;n++){var i=this.viewItems[n],o=i;n===this.focusedItem?Sa(o.isEnabled)&&(o.isEnabled()&&Sa(o.focus)?o.focus(e):this.actionsList.focus({preventScroll:t})):Sa(o.blur)&&o.blur()}},t.prototype.doTrigger=function(e){if("undefined"!==typeof this.focusedItem){var t=this.viewItems[this.focusedItem];if(t instanceof DL){var n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}},t.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},t.prototype.run=function(e,t){return this._actionRunner.run(e,t)},t.prototype.dispose=function(){xe(this.viewItems),this.viewItems=[],ro(this.getContainer()),e.prototype.dispose.call(this)},t}(Ie),ML=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)}}(),OL=3,TL=function(){function e(e,t,n,i){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=i}return e.prototype.getType=function(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0},e}(),PL=function(){function e(e){this.entries=e}return e}(),RL=function(e){function t(t){var n=e.call(this)||this;return n._width=0,n._diffEditor=t,n._isVisible=!1,n.shadow=Dg(document.createElement("div")),n.shadow.setClassName("diff-review-shadow"),n.actionBarContainer=Dg(document.createElement("div")),n.actionBarContainer.setClassName("diff-review-actions"),n._actionBar=n._register(new FL(n.actionBarContainer.domNode)),n._actionBar.push(new ng("diffreview.close",r("label.close","Close"),"close-diff-review",!0,(function(){return n.hide(),Promise.resolve(null)})),{label:!1,icon:!0}),n.domNode=Dg(document.createElement("div")),n.domNode.setClassName("diff-review monaco-editor-background"),n._content=Dg(document.createElement("div")),n._content.setClassName("diff-review-content"),n.scrollbar=n._register(new UB(n._content.domNode,{})),n.domNode.domNode.appendChild(n.scrollbar.getDomNode()),n._register(t.onDidUpdateDiff((function(){n._isVisible&&(n._diffs=n._compute(),n._render())}))),n._register(t.getModifiedEditor().onDidChangeCursorPosition((function(){n._isVisible&&n._render()}))),n._register(t.getOriginalEditor().onDidFocusEditorWidget((function(){n._isVisible&&n.hide()}))),n._register(t.getModifiedEditor().onDidFocusEditorWidget((function(){n._isVisible&&n.hide()}))),n._register(wo(n.domNode.domNode,"click",(function(e){e.preventDefault();var t=Go(e.target,"diff-review-row");t&&n._goToRow(t)}))),n._register(wo(n.domNode.domNode,"keydown",(function(e){(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),n._goToRow(n._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),n._goToRow(n._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),n.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),n.accept())}))),n._diffs=[],n._currentDiff=null,n}return ML(t,e),t.prototype.prev=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=this._diffs.length+t-1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new mn(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},t.prototype.next=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=t+1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new mn(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},t.prototype.accept=function(){var e=-1,t=this._getCurrentFocusedRow();if(t){var n=parseInt(t.getAttribute("data-line"),10);isNaN(n)||(e=n)}this.hide(),-1!==e&&(this._diffEditor.setPosition(new mn(e,1)),this._diffEditor.revealPosition(new mn(e,1),1))},t.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},t.prototype._getPrevRow=function(){var e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()},t.prototype._getNextRow=function(){var e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()},t.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},t.prototype._getCurrentFocusedRow=function(){var e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null},t.prototype._goToRow=function(e){var t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()},t.prototype.isVisible=function(){return this._isVisible},t.prototype.layout=function(e,t,n){this._width=t,this.shadow.setTop(e-6),this.shadow.setWidth(t),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(e),this.domNode.setWidth(t),this.domNode.setHeight(n),this._content.setHeight(n),this._content.setWidth(t),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))},t.prototype._compute=function(){var e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];var n=this._diffEditor.getOriginalEditor().getModel(),i=this._diffEditor.getModifiedEditor().getModel();return n&&i?t._mergeAdjacent(e,n.getLineCount(),i.getLineCount()):[]},t._mergeAdjacent=function(e,t,n){if(!e||0===e.length)return[];for(var i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r],u=a.originalStartLineNumber,l=a.originalEndLineNumber,c=a.modifiedStartLineNumber,d=a.modifiedEndLineNumber,h=[],A=0,p=0===l?u:u-1,f=0===d?c:c-1,g=1,m=1;if(r>0){var v=e[r-1];g=0===v.originalEndLineNumber?v.originalStartLineNumber+1:v.originalEndLineNumber+1,m=0===v.modifiedEndLineNumber?v.modifiedStartLineNumber+1:v.modifiedEndLineNumber+1}var _=p-OL+1,y=f-OL+1;if(_<g){var w=g-_;_+=w,y+=w}if(y<m){w=m-y;_+=w,y+=w}h[A++]=new TL(_,p,y,f),0!==l&&(h[A++]=new TL(u,l,0,0)),0!==d&&(h[A++]=new TL(0,0,c,d));var b=0===l?u+1:l+1,C=0===d?c+1:d+1,S=t,B=n;if(r+1<s){var E=e[r+1];S=0===E.originalEndLineNumber?E.originalStartLineNumber:E.originalStartLineNumber-1,B=0===E.modifiedEndLineNumber?E.modifiedStartLineNumber:E.modifiedStartLineNumber-1}var x=b+OL-1,L=C+OL-1;if(x>S){w=S-x;x+=w,L+=w}if(L>B){w=B-L;x+=w,L+=w}h[A++]=new TL(b,x,C,L),i[o++]=new PL(h)}var D=i[0].entries,N=[],k=0;for(r=1,s=i.length;r<s;r++){var I=i[r].entries,F=D[D.length-1],M=I[0];0===F.getType()&&0===M.getType()&&M.originalLineStart<=F.originalLineEnd?(D[D.length-1]=new TL(F.originalLineStart,M.originalLineEnd,F.modifiedLineStart,M.modifiedLineEnd),D=D.concat(I.slice(1))):(N[k++]=new PL(D),D=I)}return N[k++]=new PL(D),N},t.prototype._findDiffIndex=function(e){for(var t=e.lineNumber,n=0,i=this._diffs.length;n<i;n++){var o=this._diffs[n].entries,r=o[o.length-1].modifiedLineEnd;if(t<=r)return n}return 0},t.prototype._render=function(){var e=this._diffEditor.getOriginalEditor().getOptions(),n=this._diffEditor.getModifiedEditor().getOptions(),i=this._diffEditor.getOriginalEditor().getModel(),o=this._diffEditor.getModifiedEditor().getModel(),s=i.getOptions(),a=o.getOptions();if(!this._isVisible||!i||!o)return oo(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();var u=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[u]!==this._currentDiff){this._currentDiff=this._diffs[u];var l=this._diffs[u].entries,c=document.createElement("div");c.className="diff-review-table",c.setAttribute("role","list"),Zf.applyFontInfoSlow(c,n.get(32));for(var d=0,h=0,A=0,p=0,f=0,g=l.length;f<g;f++){var m=l[f],v=m.originalLineStart,_=m.originalLineEnd,y=m.modifiedLineStart,w=m.modifiedLineEnd;0!==v&&(0===d||v<d)&&(d=v),0!==_&&(0===h||_>h)&&(h=_),0!==y&&(0===A||y<A)&&(A=y),0!==w&&(0===p||w>p)&&(p=w)}var b=document.createElement("div");b.className="diff-review-row";var C=document.createElement("div");C.className="diff-review-cell diff-review-summary";var S=h-d+1,B=p-A+1;C.appendChild(document.createTextNode(u+1+"/"+this._diffs.length+": @@ -"+d+","+S+" +"+A+","+B+" @@")),b.setAttribute("data-line",String(A));var E=function(e){return 0===e?r("no_lines","no lines"):1===e?r("one_line","1 line"):r("more_lines","{0} lines",e)},x=E(S),L=E(B);b.setAttribute("aria-label",r({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",u+1,this._diffs.length,d,x,A,L)),b.appendChild(C),b.setAttribute("role","listitem"),c.appendChild(b);var D=A;for(f=0,g=l.length;f<g;f++){m=l[f];t._renderSection(c,m,D,this._width,e,i,s,n,o,a),0!==m.modifiedLineStart&&(D=m.modifiedLineEnd)}oo(this._content.domNode),this._content.domNode.appendChild(c),this.scrollbar.scanDomNode()}},t._renderSection=function(e,t,n,i,o,s,a,u,l,c){var d=t.getType(),h="diff-review-row",A="",p="diff-review-spacer";switch(d){case 1:h="diff-review-row line-insert",A=" char-insert",p="diff-review-spacer insert-sign";break;case 2:h="diff-review-row line-delete",A=" char-delete",p="diff-review-spacer delete-sign";break}for(var f=t.originalLineStart,g=t.originalLineEnd,m=t.modifiedLineStart,v=t.modifiedLineEnd,_=Math.max(v-m,g-f),y=o.get(103),w=y.glyphMarginWidth+y.lineNumbersWidth,b=u.get(103),C=10+b.glyphMarginWidth+b.lineNumbersWidth,S=0;S<=_;S++){var B=0===f?0:f+S,E=0===m?0:m+S,x=document.createElement("div");x.style.minWidth=i+"px",x.className=h,x.setAttribute("role","listitem"),0!==E&&(n=E),x.setAttribute("data-line",String(n));var L=document.createElement("div");L.className="diff-review-cell",x.appendChild(L);var D=document.createElement("span");D.style.width=w+"px",D.style.minWidth=w+"px",D.className="diff-review-line-number"+A,0!==B?D.appendChild(document.createTextNode(String(B))):D.innerHTML="&#160;",L.appendChild(D);var N=document.createElement("span");N.style.width=C+"px",N.style.minWidth=C+"px",N.style.paddingRight="10px",N.className="diff-review-line-number"+A,0!==E?N.appendChild(document.createTextNode(String(E))):N.innerHTML="&#160;",L.appendChild(N);var k=document.createElement("span");k.className=p,k.innerHTML="&#160;&#160;",L.appendChild(k);var I=void 0;0!==E?(L.insertAdjacentHTML("beforeend",this._renderLine(l,u,c.tabSize,E)),I=l.getLineContent(E)):(L.insertAdjacentHTML("beforeend",this._renderLine(s,o,a.tabSize,B)),I=s.getLineContent(B)),0===I.length&&(I=r("blankLine","blank"));var F="";switch(d){case 0:F=r("equalLine","original {0}, modified {1}: {2}",B,E,I);break;case 1:F=r("insertLine","+ modified {0}: {1}",E,I);break;case 2:F=r("deleteLine","- original {0}: {1}",B,I);break}x.setAttribute("aria-label",F),e.appendChild(x)}},t._renderLine=function(e,t,n,i){var o=e.getLineContent(i),r=t.get(32),s=16793600,a=new Uint32Array(2);a[0]=o.length,a[1]=s;var u=new nh(a,o),l=Lh.isBasicASCII(o,e.mightContainNonBasicASCII()),c=Lh.containsRTL(o,l,e.mightContainRTL()),d=mh(new hh(r.isMonospace&&!t.get(22),r.canUseHalfwidthRightwardsArrow,o,!1,l,c,0,u,[],n,r.spaceWidth,t.get(84),t.get(70),t.get(66),t.get(33)!==T.OFF,null));return d.html},t}(Ie);gm((function(e,t){var n=e.getColor(dC);n&&t.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var i=e.getColor(_w);i&&t.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+i+" 0 -6px 6px -6px inset; }")}));var UL=function(e){function t(){return e.call(this,{id:"editor.action.diffReview.next",label:r("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:Cp.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return ML(t,e),t.prototype.run=function(e,t){var n=QL(e);n&&n.diffReviewNext()},t}(_g),HL=function(e){function t(){return e.call(this,{id:"editor.action.diffReview.prev",label:r("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:Cp.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this}return ML(t,e),t.prototype.run=function(e,t){var n=QL(e);n&&n.diffReviewPrev()},t}(_g);function QL(e){for(var t=e.get(kn),n=t.listDiffEditors(),i=0,o=n.length;i<o;i++){var r=n[i];if(r.hasWidgetFocus())return r}return null}Cg(UL),Cg(HL);var VL=Dn("contextViewService"),WL=Dn("contextMenuService"),KL=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)}}(),zL=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},jL=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},GL=function(e){function t(t,n,i,o,s,a){var u=e.call(this)||this;u._viewZoneId=t,u._marginDomNode=n,u.editor=i,u.diff=o,u._contextMenuService=s,u._clipboardService=a,u._visibility=!1,u._marginDomNode.style.zIndex="10",u._diffActions=document.createElement("div"),u._diffActions.className="lightbulb-glyph",u._diffActions.style.position="absolute";var l=i.getOption(47),c=i.getModel().getEOL();u._diffActions.style.right="0px",u._diffActions.style.visibility="hidden",u._diffActions.style.height=l+"px",u._diffActions.style.lineHeight=l+"px",u._marginDomNode.appendChild(u._diffActions);var d=[];d.push(new ng("diff.clipboard.copyDeletedContent",o.originalEndLineNumber>o.modifiedStartLineNumber?r("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):r("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,(function(){return zL(u,void 0,void 0,(function(){return jL(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(o.originalContent.join(c)+c)];case 1:return e.sent(),[2]}}))}))})));var h=0,A=void 0;o.originalEndLineNumber>o.modifiedStartLineNumber&&(A=new ng("diff.clipboard.copyDeletedLineContent",r("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",o.originalStartLineNumber),void 0,!0,(function(){return zL(u,void 0,void 0,(function(){return jL(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(o.originalContent[h])];case 1:return e.sent(),[2]}}))}))})),d.push(A));var p=i.getOption(65);p||d.push(new ng("diff.inline.revertChange",r("diff.inline.revertChange.label","Revert this change"),void 0,!0,(function(){return zL(u,void 0,void 0,(function(){var e;return jL(this,(function(t){return 0===o.modifiedEndLineNumber?(e=i.getModel().getLineMaxColumn(o.modifiedStartLineNumber),i.executeEdits("diffEditor",[{range:new vn(o.modifiedStartLineNumber,e,o.modifiedStartLineNumber,e),text:c+o.originalContent.join(c)}])):(e=i.getModel().getLineMaxColumn(o.modifiedEndLineNumber),i.executeEdits("diffEditor",[{range:new vn(o.modifiedStartLineNumber,1,o.modifiedEndLineNumber,e),text:o.originalContent.join(c)}])),[2]}))}))})));var f=function(e,t){u._contextMenuService.showContextMenu({getAnchor:function(){return{x:e,y:t}},getActions:function(){return A&&(A.label=r("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",o.originalStartLineNumber+h)),d},autoSelectFirstItem:!0})};return u._register(wo(u._diffActions,"mousedown",(function(e){var t=Ho(u._diffActions),n=t.top,i=t.height,o=Math.floor(l/3);e.preventDefault(),f(e.posx,n+i+o)}))),u._register(i.onMouseMove((function(e){if(8===e.target.type||5===e.target.type){var t=e.target.detail.viewZoneId;t===u._viewZoneId?(u.visibility=!0,h=u._updateLightBulbPosition(u._marginDomNode,e.event.browserEvent.y,l)):u.visibility=!1}else u.visibility=!1}))),u._register(i.onMouseDown((function(e){if(e.event.rightButton&&(8===e.target.type||5===e.target.type)){var t=e.target.detail.viewZoneId;t===u._viewZoneId&&(e.event.preventDefault(),h=u._updateLightBulbPosition(u._marginDomNode,e.event.browserEvent.y,l),f(e.event.posx,e.event.posy+l))}}))),u}return KL(t,e),Object.defineProperty(t.prototype,"visibility",{get:function(){return this._visibility},set:function(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")},enumerable:!0,configurable:!0}),t.prototype._updateLightBulbPosition=function(e,t,n){var i=Ho(e).top,o=t-i,r=Math.floor(o/n),s=r*n;return this._diffActions.style.top=s+"px",r},t}(Ie),qL=Dn("editorProgressService"),YL=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)}}(),XL=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},JL=function(e,t){return function(n,i){t(n,i,e)}},ZL=function(){function e(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return e.prototype.getForeignViewZones=function(e){var t=this;return e.filter((function(e){return!t._zonesMap[String(e.id)]}))},e.prototype.clean=function(e){var t=this;this._zones.length>0&&e.changeViewZones((function(e){for(var n=0,i=t._zones.length;n<i;n++)e.removeZone(t._zones[n])})),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])},e.prototype.apply=function(e,t,n,i){var o=this,r=i?SL.capture(e):null;e.changeViewZones((function(t){for(var i=0,r=o._zones.length;i<r;i++)t.removeZone(o._zones[i]);i=0;for(var s=o.inlineDiffMargins.length;i<s;i++)o.inlineDiffMargins[i].dispose();o._zones=[],o._zonesMap={},o.inlineDiffMargins=[];i=0;for(var a=n.zones.length;i<a;i++){var u=n.zones[i];u.suppressMouseDown=!0;var l=t.addZone(u);o._zones.push(l),o._zonesMap[String(l)]=!0,n.zones[i].diff&&u.marginDomNode&&o._clipboardService&&(u.suppressMouseDown=!1,o.inlineDiffMargins.push(new GL(l,u.marginDomNode,e,n.zones[i].diff,o._contextMenuService,o._clipboardService)))}})),r&&r.restore(e),this._decorations=e.deltaDecorations(this._decorations,n.decorations),t&&t.setZones(n.overviewZones)},e}(),$L=0,eD=function(e){function t(n,i,o,r,s,a,u,l,c,d,h){var A=e.call(this)||this;A._editorProgressService=h,A._onDidDispose=A._register(new Ye),A.onDidDispose=A._onDidDispose.event,A._onDidUpdateDiff=A._register(new Ye),A.onDidUpdateDiff=A._onDidUpdateDiff.event,A._lastOriginalWarning=null,A._lastModifiedWarning=null,A._editorWorkerService=r,A._codeEditorService=u,A._contextKeyService=A._register(s.createScoped(n)),A._contextKeyService.createKey("isInDiffEditor",!0),A._themeService=l,A._notificationService=c,A.id=++$L,A._state=0,A._updatingDiffProgress=null,A._domElement=n,i=i||{},A._renderSideBySide=!0,"undefined"!==typeof i.renderSideBySide&&(A._renderSideBySide=i.renderSideBySide),A._maxComputationTime=5e3,"undefined"!==typeof i.maxComputationTime&&(A._maxComputationTime=i.maxComputationTime),A._ignoreTrimWhitespace=!0,"undefined"!==typeof i.ignoreTrimWhitespace&&(A._ignoreTrimWhitespace=i.ignoreTrimWhitespace),A._renderIndicators=!0,"undefined"!==typeof i.renderIndicators&&(A._renderIndicators=i.renderIndicators),A._originalIsEditable=!1,"undefined"!==typeof i.originalEditable&&(A._originalIsEditable=Boolean(i.originalEditable)),A._updateDecorationsRunner=A._register(new Si((function(){return A._updateDecorations()}),0)),A._containerDomElement=document.createElement("div"),A._containerDomElement.className=t._getClassName(A._themeService.getTheme(),A._renderSideBySide),A._containerDomElement.style.position="relative",A._containerDomElement.style.height="100%",A._domElement.appendChild(A._containerDomElement),A._overviewViewportDomElement=Dg(document.createElement("div")),A._overviewViewportDomElement.setClassName("diffViewport"),A._overviewViewportDomElement.setPosition("absolute"),A._overviewDomElement=document.createElement("div"),A._overviewDomElement.className="diffOverview",A._overviewDomElement.style.position="absolute",A._overviewDomElement.appendChild(A._overviewViewportDomElement.domNode),A._register(wo(A._overviewDomElement,"mousedown",(function(e){A.modifiedEditor.delegateVerticalScrollbarMouseDown(e)}))),A._containerDomElement.appendChild(A._overviewDomElement),A._originalDomNode=document.createElement("div"),A._originalDomNode.className="editor original",A._originalDomNode.style.position="absolute",A._originalDomNode.style.height="100%",A._containerDomElement.appendChild(A._originalDomNode),A._modifiedDomNode=document.createElement("div"),A._modifiedDomNode.className="editor modified",A._modifiedDomNode.style.position="absolute",A._modifiedDomNode.style.height="100%",A._containerDomElement.appendChild(A._modifiedDomNode),A._beginUpdateDecorationsTimeout=-1,A._currentlyChangingViewZones=!1,A._diffComputationToken=0,A._originalEditorState=new ZL(d,o),A._modifiedEditorState=new ZL(d,o),A._isVisible=!0,A._isHandlingScrollEvent=!1,A._width=0,A._height=0,A._reviewHeight=0,A._diffComputationResult=null;var p=A._contextKeyService.createScoped();p.createKey("isInDiffLeftEditor",!0);var f=new Wx;f.set(Mp,p);var g=a.createChild(f),m=A._contextKeyService.createScoped();m.createKey("isInDiffRightEditor",!0);var v=new Wx;v.set(Mp,m);var _=a.createChild(v);A.originalEditor=A._createLeftHandSideEditor(i,g),A.modifiedEditor=A._createRightHandSideEditor(i,_),A._originalOverviewRuler=null,A._modifiedOverviewRuler=null,A._reviewPane=new RL(A),A._containerDomElement.appendChild(A._reviewPane.domNode.domNode),A._containerDomElement.appendChild(A._reviewPane.shadow.domNode),A._containerDomElement.appendChild(A._reviewPane.actionBarContainer.domNode),i.automaticLayout?(A._measureDomElementToken=new Ci,A._measureDomElementToken.cancelAndSet((function(){return A._measureDomElement(!1)}),100)):A._measureDomElementToken=null,A._enableSplitViewResizing=!0,"undefined"!==typeof i.enableSplitViewResizing&&(A._enableSplitViewResizing=i.enableSplitViewResizing),A._renderSideBySide?A._setStrategy(new sD(A._createDataSource(),A._enableSplitViewResizing)):A._setStrategy(new uD(A._createDataSource(),A._enableSplitViewResizing)),A._register(l.onThemeChange((function(e){A._strategy&&A._strategy.applyColors(e)&&A._updateDecorationsRunner.schedule(),A._containerDomElement.className=t._getClassName(A._themeService.getTheme(),A._renderSideBySide)})));for(var y=lg.getDiffEditorContributions(),w=0,b=y;w<b.length;w++){var C=b[w];try{A._register(a.createInstance(C.ctor,A))}catch(S){Ae(S)}}return A._codeEditorService.addDiffEditor(A),A}return YL(t,e),t.prototype._setState=function(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),1===this._state&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))},t.prototype.hasWidgetFocus=function(){return jo(document.activeElement,this._domElement)},t.prototype.diffReviewNext=function(){this._reviewPane.next()},t.prototype.diffReviewPrev=function(){this._reviewPane.prev()},t._getClassName=function(e,t){var n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+=hm(e.type),n},t.prototype._recreateOverviewRulers=function(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()},t.prototype._createLeftHandSideEditor=function(e,t){var n=this,i=this._createInnerEditor(t,this._originalDomNode,this._adjustOptionsForLeftHandSide(e,this._originalIsEditable));return this._register(i.onDidScrollChange((function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport())}))),this._register(i.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(i.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),i},t.prototype._createRightHandSideEditor=function(e,t){var n=this,i=this._createInnerEditor(t,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e));return this._register(i.onDidScrollChange((function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport())}))),this._register(i.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(i.onDidChangeConfiguration((function(e){e.hasChanged(32)&&i.getModel()&&n._onViewZonesChanged()}))),this._register(i.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),this._register(i.onDidChangeModelOptions((function(e){e.tabSize&&n._updateDecorationsRunner.schedule()}))),i},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(Jx,t,n,{})},t.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._measureDomElementToken&&this._measureDomElementToken.dispose(),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),e.prototype.dispose.call(this)},t.prototype.getId=function(){return this.getEditorType()+":"+this.id},t.prototype.getEditorType=function(){return xu.IDiffEditor},t.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},t.prototype.getOriginalEditor=function(){return this.originalEditor},t.prototype.getModifiedEditor=function(){return this.modifiedEditor},t.prototype.updateOptions=function(e){var n=!1;"undefined"!==typeof e.renderSideBySide&&this._renderSideBySide!==e.renderSideBySide&&(this._renderSideBySide=e.renderSideBySide,n=!0),"undefined"!==typeof e.maxComputationTime&&(this._maxComputationTime=e.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());var i=!1;"undefined"!==typeof e.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==e.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=e.ignoreTrimWhitespace,i=!0),"undefined"!==typeof e.renderIndicators&&this._renderIndicators!==e.renderIndicators&&(this._renderIndicators=e.renderIndicators,i=!0),i&&this._beginUpdateDecorations(),"undefined"!==typeof e.originalEditable&&(this._originalIsEditable=Boolean(e.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e,this._originalIsEditable)),"undefined"!==typeof e.enableSplitViewResizing&&(this._enableSplitViewResizing=e.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),n&&(this._renderSideBySide?this._setStrategy(new sD(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new uD(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=t._getClassName(this._themeService.getTheme(),this._renderSideBySide))},t.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},t.prototype.setModel=function(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(e?e.original:null),this.modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),e&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()},t.prototype.getDomNode=function(){return this._domElement},t.prototype.getVisibleColumnFromPosition=function(e){return this.modifiedEditor.getVisibleColumnFromPosition(e)},t.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},t.prototype.setPosition=function(e){this.modifiedEditor.setPosition(e)},t.prototype.revealLine=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLine(e,t)},t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenter(e,t)},t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)},t.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPosition(e,t)},t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenter(e,t)},t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)},t.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},t.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},t.prototype.setSelection=function(e){this.modifiedEditor.setSelection(e)},t.prototype.setSelections=function(e){this.modifiedEditor.setSelections(e)},t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLines(e,t,n)},t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenter(e,t,n)},t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)},t.prototype.revealRange=function(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===i&&(i=!0),this.modifiedEditor.revealRange(e,t,n,i)},t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenter(e,t)},t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)},t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeAtTop(e,t)},t.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},t.prototype.saveViewState=function(){var e=this.originalEditor.saveViewState(),t=this.modifiedEditor.saveViewState();return{original:e,modified:t}},t.prototype.restoreViewState=function(e){if(e.original&&e.modified){var t=e;this.originalEditor.restoreViewState(t.original),this.modifiedEditor.restoreViewState(t.modified)}},t.prototype.layout=function(e){this._measureDomElement(!1,e)},t.prototype.focus=function(){this.modifiedEditor.focus()},t.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},t.prototype.trigger=function(e,t,n){this.modifiedEditor.trigger(e,t,n)},t.prototype.changeDecorations=function(e){return this.modifiedEditor.changeDecorations(e)},t.prototype._measureDomElement=function(e,t){if(t=t||{width:this._containerDomElement.clientWidth,height:this._containerDomElement.clientHeight},t.width<=0)return this._width=0,this._height=0,void(this._reviewHeight=0);(e||t.width!==this._width||t.height!==this._height)&&(this._width=t.width,this._height=t.height,this._reviewHeight=this._reviewPane.isVisible()?this._height:0,this._doLayout())},t.prototype._layoutOverviewRulers=function(){if(this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=t.ENTIRE_DIFF_OVERVIEW_WIDTH-2*t.ONE_OVERVIEW_WIDTH,n=this.modifiedEditor.getLayoutInfo();n&&(this._originalOverviewRuler.setLayout({top:0,width:t.ONE_OVERVIEW_WIDTH,right:e+t.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:t.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}))}},t.prototype._onViewZonesChanged=function(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()},t.prototype._beginUpdateDecorationsSoon=function(){var e=this;-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout((function(){return e._beginUpdateDecorations()}),t.UPDATE_DIFF_DECORATIONS_DELAY)},t._equals=function(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()},t.prototype._beginUpdateDecorations=function(){var e=this;this._beginUpdateDecorationsTimeout=-1;var n=this.originalEditor.getModel(),i=this.modifiedEditor.getModel();if(n&&i){this._diffComputationToken++;var o=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(n.uri,i.uri)?this._editorWorkerService.computeDiff(n.uri,i.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then((function(t){o===e._diffComputationToken&&n===e.originalEditor.getModel()&&i===e.modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=t,e._updateDecorationsRunner.schedule(),e._onDidUpdateDiff.fire())}),(function(t){o===e._diffComputationToken&&n===e.originalEditor.getModel()&&i===e.modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=null,e._updateDecorationsRunner.schedule())})):t._equals(n.uri,this._lastOriginalWarning)&&t._equals(i.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=n.uri,this._lastModifiedWarning=i.uri,this._notificationService.warn(r("diff.tooLarge","Cannot compare files because one file is too large.")))}},t.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},t.prototype._updateDecorations=function(){if(this.originalEditor.getModel()&&this.modifiedEditor.getModel()&&this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),n=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),i=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,t,n,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,i.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,i.modified,!0)}finally{this._currentlyChangingViewZones=!1}}},t.prototype._adjustOptionsForSubEditor=function(e){var t=su(e||{});return t.inDiffEditor=!0,t.wordWrap="off",t.wordWrapMinified=!1,t.automaticLayout=!1,t.scrollbar=t.scrollbar||{},t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=!1,t.fixedOverflowWidgets=!0,t.minimap||(t.minimap={}),t.minimap.enabled=!1,t},t.prototype._adjustOptionsForLeftHandSide=function(e,t){var n=this._adjustOptionsForSubEditor(e);return n.readOnly=!t,n.extraEditorClassName="original-in-monaco-diff-editor",n},t.prototype._adjustOptionsForRightHandSide=function(e){var n=this._adjustOptionsForSubEditor(e);return n.revealHorizontalRightPadding=ce.revealHorizontalRightPadding.defaultValue+t.ENTIRE_DIFF_OVERVIEW_WIDTH,n.scrollbar.verticalHasArrows=!1,n.extraEditorClassName="modified-in-monaco-diff-editor",n},t.prototype.doLayout=function(){this._measureDomElement(!0)},t.prototype._doLayout=function(){var e=this._strategy.layout();this._originalDomNode.style.width=e+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=this._width-e+"px",this._modifiedDomNode.style.left=e+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=this._height-this._reviewHeight+"px",this._overviewDomElement.style.width=t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=this._width-t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(t.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:e,height:this._height-this._reviewHeight}),this.modifiedEditor.layout({width:this._width-e-t.ENTIRE_DIFF_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(this._height-this._reviewHeight,this._width,this._reviewHeight),this._layoutOverviewViewport()},t.prototype._layoutOverviewViewport=function(){var e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},t.prototype._computeOverviewViewport=function(){var e=this.modifiedEditor.getLayoutInfo();if(!e)return null;var t=this.modifiedEditor.getScrollTop(),n=this.modifiedEditor.getScrollHeight(),i=Math.max(0,e.contentHeight),o=Math.max(0,i-0),r=n>0?o/n:0,s=Math.max(0,Math.floor(e.contentHeight*r)),a=Math.floor(t*r);return{height:s,top:a}},t.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._width},getHeight:function(){return e._height-e._reviewHeight},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},t.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._measureDomElement(!0)},t.prototype._getLineChangeAtOrBeforeLineNumber=function(e,t){var n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;var i=0,o=n.length-1;while(i<o){var r=Math.floor((i+o)/2),s=t(n[r]),a=r+1<=o?t(n[r+1]):1073741824;e<s?o=r-1:e>=a?i=r+1:(i=r,o=r)}return n[i]},t.prototype._getEquivalentLineForOriginalLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.originalStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=o?i+Math.min(s,r):i+r-o+s},t.prototype._getEquivalentLineForModifiedLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.modifiedStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-i;return s<=r?n+Math.min(s,o):n+o-r+s},t.prototype.getDiffLineInformationForOriginal=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null},t.prototype.getDiffLineInformationForModified=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null},t.ONE_OVERVIEW_WIDTH=15,t.ENTIRE_DIFF_OVERVIEW_WIDTH=30,t.UPDATE_DIFF_DECORATIONS_DELAY=200,t=XL([JL(3,$l),JL(4,Mp),JL(5,xn),JL(6,kn),JL(7,um),JL(8,$p),JL(9,WL),JL(10,qL)],t),t}(Ie),tD=function(e){function t(t){var n=e.call(this)||this;return n._dataSource=t,n._insertColor=null,n._removeColor=null,n}return YL(t,e),t.prototype.applyColors=function(e){var t=(e.getColor(rb)||ib).transparent(2),n=(e.getColor(sb)||ob).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i},t.prototype.getEditorsDiffDecorations=function(e,t,n,i,o,r,s){o=o.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber})),i=i.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber}));var a=this._getViewZones(e,i,o,r,s,n),u=this._getOriginalEditorDecorations(e,t,n,r,s),l=this._getModifiedEditorDecorations(e,t,n,r,s);return{original:{decorations:u.decorations,overviewZones:u.overviewZones,zones:a.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.modified}}},t}(Ie),nD=function(){function e(e){this._source=e,this._index=-1,this.current=null,this.advance()}return e.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},e}(),iD=function(){function e(e,t,n,i,o){this.lineChanges=e,this.originalForeignVZ=t,this.originalLineHeight=n,this.modifiedForeignVZ=i,this.modifiedLineHeight=o}return e.prototype.getViewZones=function(){for(var t={original:[],modified:[]},n=0,i=0,o=0,r=0,s=0,a=0,u=function(e,t){return e.afterLineNumber-t.afterLineNumber},l=function(e,t){if(null===t.domNode&&e.length>0){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},c=new nD(this.modifiedForeignVZ),d=new nD(this.originalForeignVZ),h=0,A=this.lineChanges.length;h<=A;h++){var p=h<A?this.lineChanges[h]:null;null!==p?(o=p.originalStartLineNumber+(p.originalEndLineNumber>0?-1:0),r=p.modifiedStartLineNumber+(p.modifiedEndLineNumber>0?-1:0),i=p.originalEndLineNumber>0?p.originalEndLineNumber-p.originalStartLineNumber+1:0,n=p.modifiedEndLineNumber>0?p.modifiedEndLineNumber-p.modifiedStartLineNumber+1:0,s=Math.max(p.originalStartLineNumber,p.originalEndLineNumber),a=Math.max(p.modifiedStartLineNumber,p.modifiedEndLineNumber)):(o+=1e7+i,r+=1e7+n,s=o,a=r);var f=[],g=[];while(c.current&&c.current.afterLineNumber<=a){var m=void 0;m=c.current.afterLineNumber<=r?o-r+c.current.afterLineNumber:s;var v=null;p&&p.modifiedStartLineNumber<=c.current.afterLineNumber&&c.current.afterLineNumber<=p.modifiedEndLineNumber&&(v=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),f.push({afterLineNumber:m,heightInLines:c.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:v}),c.advance()}while(d.current&&d.current.afterLineNumber<=s){m=void 0;m=d.current.afterLineNumber<=o?r-o+d.current.afterLineNumber:a,g.push({afterLineNumber:m,heightInLines:d.current.height/this.originalLineHeight,domNode:null}),d.advance()}if(null!==p&&cD(p)){var _=this._produceOriginalFromDiff(p,i,n);_&&f.push(_)}if(null!==p&&dD(p)){_=this._produceModifiedFromDiff(p,i,n);_&&g.push(_)}var y=0,w=0;f=f.sort(u),g=g.sort(u);while(y<f.length&&w<g.length){var b=f[y],C=g[w],S=b.afterLineNumber-o,B=C.afterLineNumber-r;S<B?(l(t.original,b),y++):B<S?(l(t.modified,C),w++):b.shouldNotShrink?(l(t.original,b),y++):C.shouldNotShrink?(l(t.modified,C),w++):b.heightInLines>=C.heightInLines?(b.heightInLines-=C.heightInLines,w++):(C.heightInLines-=b.heightInLines,y++)}while(y<f.length)l(t.original,f[y]),y++;while(w<g.length)l(t.modified,g[w]),w++}return{original:e._ensureDomNodes(t.original),modified:e._ensureDomNodes(t.modified)}},e._ensureDomNodes=function(e){return e.map((function(e){return e.domNode||(e.domNode=hD()),e}))},e}();function oD(e,t,n,i,o){return{range:new vn(e,t,n,i),options:o}}var rD={charDelete:z_.register({className:"char-delete"}),charDeleteWholeLine:z_.register({className:"char-delete",isWholeLine:!0}),charInsert:z_.register({className:"char-insert"}),charInsertWholeLine:z_.register({className:"char-insert",isWholeLine:!0}),lineInsert:z_.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:z_.register({className:"line-insert",linesDecorationsClassName:"insert-sign",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:z_.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:z_.register({className:"line-delete",linesDecorationsClassName:"delete-sign",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:z_.register({marginClassName:"line-delete"})},sD=function(e){function t(t,n){var i=e.call(this,t)||this;return i._disableSash=!1===n,i._sashRatio=null,i._sashPosition=null,i._startSashPosition=null,i._sash=i._register(new dL(i._dataSource.getContainerDomNode(),i)),i._disableSash&&(i._sash.state=0),i._sash.onDidStart((function(){return i.onSashDragStart()})),i._sash.onDidChange((function(e){return i.onSashDrag(e)})),i._sash.onDidEnd((function(){return i.onSashDragEnd()})),i._sash.onDidReset((function(){return i.onSashReset()})),i}return YL(t,e),t.prototype.setEnableSplitViewResizing=function(e){var t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)},t.prototype.layout=function(e){void 0===e&&(e=this._sashRatio);var n=this._dataSource.getWidth(),i=n-eD.ENTIRE_DIFF_OVERVIEW_WIDTH,o=Math.floor((e||.5)*i),r=Math.floor(.5*i);return o=this._disableSash?r:o||r,i>2*t.MINIMUM_EDITOR_WIDTH?(o<t.MINIMUM_EDITOR_WIDTH&&(o=t.MINIMUM_EDITOR_WIDTH),o>i-t.MINIMUM_EDITOR_WIDTH&&(o=i-t.MINIMUM_EDITOR_WIDTH)):o=r,this._sashPosition!==o&&(this._sashPosition=o,this._sash.layout()),this._sashPosition},t.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},t.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth(),n=t-eD.ENTIRE_DIFF_OVERVIEW_WIDTH,i=this.layout((this._startSashPosition+(e.currentX-e.startX))/n);this._sashRatio=i/n,this._dataSource.relayoutEditors()},t.prototype.onSashDragEnd=function(){this._sash.layout()},t.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},t.prototype.getVerticalSashTop=function(e){return 0},t.prototype.getVerticalSashLeft=function(e){return this._sashPosition},t.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()},t.prototype._getViewZones=function(e,t,n,i,o){var r=new aD(e,t,i.getOption(47),n,o.getOption(47));return r.getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=String(this._removeColor),s={decorations:[],overviewZones:[]},a=i.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(dD(c)&&(s.decorations.push({range:new vn(c.originalStartLineNumber,1,c.originalEndLineNumber,1073741824),options:n?rD.lineDeleteWithSign:rD.lineDelete}),cD(c)&&c.charChanges||s.decorations.push(oD(c.originalStartLineNumber,1,c.originalEndLineNumber,1073741824,rD.charDeleteWholeLine)),s.overviewZones.push(new DE(c.originalStartLineNumber,c.originalEndLineNumber,r)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var A=c.charChanges[d];if(dD(A))if(t)for(var p=A.originalStartLineNumber;p<=A.originalEndLineNumber;p++){var f=void 0,g=void 0;f=p===A.originalStartLineNumber?A.originalStartColumn:a.getLineFirstNonWhitespaceColumn(p),g=p===A.originalEndLineNumber?A.originalEndColumn:a.getLineLastNonWhitespaceColumn(p),s.decorations.push(oD(p,f,p,g,rD.charDelete))}else s.decorations.push(oD(A.originalStartLineNumber,A.originalStartColumn,A.originalEndLineNumber,A.originalEndColumn,rD.charDelete))}}return s},t.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){for(var r=String(this._insertColor),s={decorations:[],overviewZones:[]},a=o.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(cD(c)&&(s.decorations.push({range:new vn(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824),options:n?rD.lineInsertWithSign:rD.lineInsert}),dD(c)&&c.charChanges||s.decorations.push(oD(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824,rD.charInsertWholeLine)),s.overviewZones.push(new DE(c.modifiedStartLineNumber,c.modifiedEndLineNumber,r)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var A=c.charChanges[d];if(cD(A))if(t)for(var p=A.modifiedStartLineNumber;p<=A.modifiedEndLineNumber;p++){var f=void 0,g=void 0;f=p===A.modifiedStartLineNumber?A.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(p),g=p===A.modifiedEndLineNumber?A.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(p),s.decorations.push(oD(p,f,p,g,rD.charInsert))}else s.decorations.push(oD(A.modifiedStartLineNumber,A.modifiedStartColumn,A.modifiedEndLineNumber,A.modifiedEndColumn,rD.charInsert))}}return s},t.MINIMUM_EDITOR_WIDTH=100,t}(tD),aD=function(e){function t(t,n,i,o,r){return e.call(this,t,n,i,o,r)||this}return YL(t,e),t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},t.prototype._produceOriginalFromDiff=function(e,t,n){return n>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null},t.prototype._produceModifiedFromDiff=function(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null},t}(iD),uD=function(e){function t(t,n){var i=e.call(this,t)||this;return i.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,i._register(t.getOriginalEditor().onDidLayoutChange((function(e){i.decorationsLeft!==e.decorationsLeft&&(i.decorationsLeft=e.decorationsLeft,t.relayoutEditors())}))),i}return YL(t,e),t.prototype.setEnableSplitViewResizing=function(e){},t.prototype._getViewZones=function(e,t,n,i,o,r){var s=new lD(e,t,n,i,o,r);return s.getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=String(this._removeColor),s={decorations:[],overviewZones:[]},a=0,u=e.length;a<u;a++){var l=e[a];dD(l)&&(s.decorations.push({range:new vn(l.originalStartLineNumber,1,l.originalEndLineNumber,1073741824),options:rD.lineDeleteMargin}),s.overviewZones.push(new DE(l.originalStartLineNumber,l.originalEndLineNumber,r)))}return s},t.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){for(var r=String(this._insertColor),s={decorations:[],overviewZones:[]},a=o.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(cD(c))if(s.decorations.push({range:new vn(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824),options:n?rD.lineInsertWithSign:rD.lineInsert}),s.overviewZones.push(new DE(c.modifiedStartLineNumber,c.modifiedEndLineNumber,r)),c.charChanges)for(var d=0,h=c.charChanges.length;d<h;d++){var A=c.charChanges[d];if(cD(A))if(t)for(var p=A.modifiedStartLineNumber;p<=A.modifiedEndLineNumber;p++){var f=void 0,g=void 0;f=p===A.modifiedStartLineNumber?A.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(p),g=p===A.modifiedEndLineNumber?A.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(p),s.decorations.push(oD(p,f,p,g,rD.charInsert))}else s.decorations.push(oD(A.modifiedStartLineNumber,A.modifiedStartColumn,A.modifiedEndLineNumber,A.modifiedEndColumn,rD.charInsert))}else s.decorations.push(oD(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824,rD.charInsertWholeLine))}return s},t.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},t}(tD),lD=function(e){function t(t,n,i,o,r,s){var a=e.call(this,t,n,o.getOption(47),i,r.getOption(47))||this;return a.originalModel=o.getModel(),a.modifiedEditorOptions=r.getOptions(),a.modifiedEditorTabSize=r.getModel().getOptions().tabSize,a.renderIndicators=s,a}return YL(t,e),t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var e=document.createElement("div");return e.className="inline-added-margin-view-zone",e},t.prototype._produceOriginalFromDiff=function(e,t,n){var i=document.createElement("div");return i.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:i}},t.prototype._produceModifiedFromDiff=function(e,t,n){var i=[];if(e.charChanges)for(var o=0,r=e.charChanges.length;o<r;o++){var s=e.charChanges[o];dD(s)&&i.push(new Dh(new vn(s.originalStartLineNumber,s.originalStartColumn,s.originalEndLineNumber,s.originalEndColumn),"char-delete",0))}for(var a=eh(1e4),u=[],l=this.modifiedEditorOptions.get(103),c=this.modifiedEditorOptions.get(32),d=l.decorationsWidth,h=this.modifiedEditorOptions.get(47),A=c.typicalHalfwidthCharacterWidth,p=0,f=[],g=e.originalStartLineNumber;g<=e.originalEndLineNumber;g++)if(p=Math.max(p,this._renderOriginalLine(g-e.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,g,i,a)),f.push(this.originalModel.getLineContent(g)),this.renderIndicators){var m=g-e.originalStartLineNumber;u=u.concat(['<div class="delete-sign" style="position:absolute;top:'+m*h+"px;width:"+d+"px;height:"+h+'px;right:0;"></div>'])}p+=this.modifiedEditorOptions.get(75);var v=document.createElement("div");v.className="view-lines line-delete",v.innerHTML=a.build(),Zf.applyFontInfoSlow(v,c);var _=document.createElement("div");return _.className="inline-deleted-margin-view-zone",_.innerHTML=u.join(""),Zf.applyFontInfoSlow(_,c),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:p*A,domNode:v,marginDomNode:_,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalContent:f}}},t.prototype._renderOriginalLine=function(e,t,n,i,o,r,s){var a=t.getLineTokens(o),u=a.getLineContent(),l=n.get(32),c=sh.filter(r,o,1,u.length+1);s.appendASCIIString('<div class="view-line'),0===r.length&&s.appendASCIIString(" char-delete"),s.appendASCIIString('" style="top:'),s.appendASCIIString(String(e*n.get(47))),s.appendASCIIString('px;width:1000000px;">');var d=Lh.isBasicASCII(u,t.mightContainNonBasicASCII()),h=Lh.containsRTL(u,d,t.mightContainRTL()),A=fh(new hh(l.isMonospace&&!n.get(22),l.canUseHalfwidthRightwardsArrow,u,!1,d,h,0,a,c,i,l.spaceWidth,n.get(84),n.get(70),n.get(66),n.get(33)!==T.OFF,null),s);s.appendASCIIString("</div>");var p=A.characterMapping.getAbsoluteOffsets();return p.length>0?p[p.length-1]:0},t}(iD);function cD(e){return e.modifiedEndLineNumber>0}function dD(e){return e.originalEndLineNumber>0}function hD(){var e=document.createElement("div");return e.className="diagonal-fill",e}gm((function(e,t){var n=e.getColor(rb);n&&(t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var i=e.getColor(sb);i&&(t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+i+"; }"));var o=e.getColor(ab);o&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+o+"; }");var r=e.getColor(ub);r&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+r+"; }");var s=e.getColor(_w);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+s+"; }");var a=e.getColor(lb);a&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+a+"; }")}));var AD=Dn("themeService"),pD=Dn("keybindingService"),fD=Dn("clipboardService"),gD=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)}}(),mD=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},vD=function(e,t){return function(n,i){t(n,i,e)}},_D=0,yD=!1;function wD(){yD||(yD=!0,Pf(document.body))}var bD=function(e){function t(t,n,i,o,r,s,a,u,l,c){var d=this;return n=n||{},n.ariaLabel=n.ariaLabel||uf.editorViewAccessibleLabel,n.ariaLabel=n.ariaLabel+";"+(Rn?uf.accessibilityHelpMessageIE:uf.accessibilityHelpMessage),d=e.call(this,t,n,{},i,o,r,s,u,l,c)||this,d._standaloneKeybindingService=a instanceof Cf?a:null,wD(),d}return gD(t,e),t.prototype.addCommand=function(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var i="DYNAMIC_"+ ++_D,o=Cp.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,o),i},t.prototype.createContextKey=function(e,t){return this._contextKeyService.createKey(e,t)},t.prototype.addAction=function(e){var t=this;if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Ie.None;var n=e.id,i=e.label,o=Cp.and(Cp.equals("editorId",this.getId()),Cp.deserialize(e.precondition)),r=e.keybindings,s=Cp.and(o,Cp.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,u=e.contextMenuOrder||0,l=function(){return Promise.resolve(e.run(t))},c=new ke,d=this.getId()+":"+n;if(c.add(za.registerCommand(d,l)),a){var h={command:{id:d,title:i},when:o,group:a,order:u};c.add(dg.appendMenuItem(7,h))}if(Array.isArray(r))for(var A=0,p=r;A<p.length;A++){var f=p[A];c.add(this._standaloneKeybindingService.addDynamicKeybinding(d,f,l,s))}var g=new px(d,i,i,o,l,this._contextKeyService);return this._actions[n]=g,c.add(De((function(){delete t._actions[n]}))),c},t=mD([vD(2,xn),vD(3,kn),vD(4,Ka),vD(5,Mp),vD(6,pD),vD(7,um),vD(8,$p),vD(9,Kx)],t),t}(Jx),CD=function(e){function t(t,n,i,o,r,s,a,u,l,c,d,h,A){var p=this;Nf(h,n,!1),n=n||{},"string"===typeof n.theme&&c.setTheme(n.theme);var f,g=n.model;if(delete n.model,p=e.call(this,t,n,o,r,s,a,u,c,d,A)||this,p._contextViewService=l,p._configurationService=h,p._register(i),"undefined"===typeof g?(f=self.monaco.editor.createModel(n.value||"",n.language||"text/plain"),p._ownsModel=!0):(f=g,p._ownsModel=!1),p._attachModel(f),f){var m={oldModelUrl:null,newModelUrl:f.uri};p._onDidChangeModel.fire(m)}return p}return gD(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.updateOptions=function(t){Nf(this._configurationService,t,!1),e.prototype.updateOptions.call(this,t)},t.prototype._attachModel=function(t){e.prototype._attachModel.call(this,t),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},t.prototype._postDetachModelCleanup=function(t){e.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},t=mD([vD(3,xn),vD(4,kn),vD(5,Ka),vD(6,Mp),vD(7,pD),vD(8,VL),vD(9,AD),vD(10,$p),vD(11,rp),vD(12,Kx)],t),t}(bD),SD=function(e){function t(t,n,i,o,r,s,a,u,l,c,d,h,A,p,f){var g=this;return Nf(h,n,!0),n=n||{},"string"===typeof n.theme&&(n.theme=c.setTheme(n.theme)),g=e.call(this,t,n,f,u,r,o,l,c,d,A,p)||this,g._contextViewService=a,g._configurationService=h,g._register(i),g._contextViewService.setContainer(g._containerDomElement),g}return gD(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.updateOptions=function(t){Nf(this._configurationService,t,!0),e.prototype.updateOptions.call(this,t)},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(bD,t,n)},t.prototype.getOriginalEditor=function(){return e.prototype.getOriginalEditor.call(this)},t.prototype.getModifiedEditor=function(){return e.prototype.getModifiedEditor.call(this)},t.prototype.addCommand=function(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)},t.prototype.createContextKey=function(e,t){return this.getModifiedEditor().createContextKey(e,t)},t.prototype.addAction=function(e){return this.getModifiedEditor().addAction(e)},t=mD([vD(3,xn),vD(4,Mp),vD(5,pD),vD(6,VL),vD(7,$l),vD(8,kn),vD(9,AD),vD(10,$p),vD(11,rp),vD(12,WL),vD(13,qL),vD(14,Nn(fD))],t),t}(eD),BD=Dn("IWorkspaceEditService"),ED=Dn("modeService"),xD=function(){function e(e){this._languageIdentifier=e}return e.prototype.getId=function(){return this._languageIdentifier.language},e}(),LD="text/plain",DD="application/unknown",ND=[],kD=[],ID=[];function FD(e,t){void 0===t&&(t=!1);var n=MD(e);ND.push(n),n.userConfigured?ID.push(n):kD.push(n),t&&!n.userConfigured&&ND.forEach((function(e){e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"))}))}function MD(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(Ks.sep)>=0}}function OD(e,t){var n;if(e)switch(e.scheme){case Bi.file:n=e.fsPath;break;case Bi.data:var i=ta.parseMetaData(e);n=i.get(ta.META_DATA_LABEL);break;default:n=e.path}if(!n)return[DD];n=n.toLowerCase();var o=Ys(n),r=TD(n,o,ID);if(r)return[r,LD];var s=TD(n,o,kD);if(s)return[s,LD];if(t){var a=PD(t);if(a)return[a,LD]}return[DD]}function TD(e,t,n){for(var i=null,o=null,r=null,s=n.length-1;s>=0;s--){var a=n[s];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!o||a.filepattern.length>o.filepattern.length)){var u=a.filepatternOnPath?e:t;nl(a.filepatternLowercase,u)&&(o=a)}a.extension&&(!r||a.extension.length>r.extension.length)&&Or(t,a.extensionLowercase)&&(r=a)}return i?i.mime:o?o.mime:r?r.mime:null}function PD(e){if(gs(e)&&(e=e.substr(1)),e.length>0)for(var t=ND.length-1;t>=0;t--){var n=ND[t];if(n.firstline){var i=e.match(n.firstline);if(i&&i.length>0)return n.mime}}return null}var RD={ModesRegistry:"editor.modesRegistry"},UD=function(){function e(){this._onDidChangeLanguages=new Ye,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return e.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidChangeLanguages.fire(void 0)},e.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},e}(),HD=new UD;uA.add(RD.ModesRegistry,HD);var QD="plaintext",VD=new ml(QD,1);HD.registerLanguage({id:QD,extensions:[".txt",".gitignore"],aliases:[r("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),Pc.register(VD,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}});var WD=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)}}(),KD=Object.prototype.hasOwnProperty,zD=function(e){function t(t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=e.call(this)||this;return i._onDidChange=i._register(new Ye),i.onDidChange=i._onDidChange.event,i._warnOnOverwrite=n,i._nextLanguageId2=1,i._languageIdToLanguage=[],i._languageToLanguageId=Object.create(null),i._languages={},i._mimeTypesMap={},i._nameMap={},i._lowercaseNameMap={},t&&(i._initializeFromRegistry(),i._register(HD.onDidChangeLanguages((function(e){return i._initializeFromRegistry()})))),i}return WD(t,e),t.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=HD.getLanguages();this._registerLanguages(e)},t.prototype._registerLanguages=function(e){for(var t=this,n=0,i=e;n<i.length;n++){var o=i[n];this._registerLanguage(o)}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((function(e){var n=t._languages[e];n.name&&(t._nameMap[n.name]=n.identifier),n.aliases.forEach((function(e){t._lowercaseNameMap[e.toLowerCase()]=n.identifier})),n.mimetypes.forEach((function(e){t._mimeTypesMap[e]=n.identifier}))})),uA.as(AA.Configuration).registerOverrideIdentifiers(HD.getLanguages().map((function(e){return e.id}))),this._onDidChange.fire()},t.prototype._getLanguageId=function(e){if(this._languageToLanguageId[e])return this._languageToLanguageId[e];var t=this._nextLanguageId2++;return this._languageIdToLanguage[t]=e,this._languageToLanguageId[e]=t,t},t.prototype._registerLanguage=function(e){var t,n=e.id;if(KD.call(this._languages,n))t=this._languages[n];else{var i=this._getLanguageId(n);t={identifier:new ml(n,i),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[n]=t}this._mergeLanguage(t,e)},t.prototype._mergeLanguage=function(e,t){var n,i=t.id,o=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&((n=e.mimetypes).push.apply(n,t.mimetypes),o=t.mimetypes[0]),o||(o="text/x-"+i,e.mimetypes.push(o)),Array.isArray(t.extensions))for(var r=0,s=t.extensions;r<s.length;r++){var a=s[r];FD({id:i,mime:o,extension:a},this._warnOnOverwrite),e.extensions.push(a)}if(Array.isArray(t.filenames))for(var u=0,l=t.filenames;u<l.length;u++){var c=l[u];FD({id:i,mime:o,filename:c},this._warnOnOverwrite),e.filenames.push(c)}if(Array.isArray(t.filenamePatterns))for(var d=0,h=t.filenamePatterns;d<h.length;d++){var A=h[d];FD({id:i,mime:o,filepattern:A},this._warnOnOverwrite)}if("string"===typeof t.firstLine&&t.firstLine.length>0){var p=t.firstLine;"^"!==p.charAt(0)&&(p="^"+p);try{var f=new RegExp(p);Pr(f)||FD({id:i,mime:o,firstline:f},this._warnOnOverwrite)}catch(b){Ae(b)}}e.aliases.push(i);var g=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(g=0===t.aliases.length?[null]:t.aliases),null!==g)for(var m=0,v=g;m<v.length;m++){var _=v[m];_&&0!==_.length&&e.aliases.push(_)}var y=null!==g&&g.length>0;if(y&&null===g[0]);else{var w=(y?g[0]:null)||i;!y&&e.name||(e.name=w)}t.configuration&&e.configurationFiles.push(t.configuration)},t.prototype.isRegisteredMode=function(e){return!!KD.call(this._mimeTypesMap,e)||KD.call(this._languages,e)},t.prototype.getModeIdForLanguageNameLowercase=function(e){return KD.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},t.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map((function(e){return e.trim()})).map((function(e){return KD.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e})).filter((function(e){return KD.call(t._languages,e)})):[]},t.prototype.getLanguageIdentifier=function(e){if(e===ql||0===e)return Yl;var t;if("string"===typeof e)t=e;else if(t=this._languageIdToLanguage[e],!t)return null;return KD.call(this._languages,t)?this._languages[t].identifier:null},t.prototype.getModeIdsFromFilepathOrFirstLine=function(e,t){if(!e&&!t)return[];var n=OD(e,t);return this.extractModeIds(n.join(","))},t}(Ie),jD=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)}}(),GD=function(e){function t(t,n){var i=e.call(this)||this;return i._onDidChange=i._register(new Ye),i.onDidChange=i._onDidChange.event,i._selector=n,i.languageIdentifier=i._selector(),i._register(t((function(){return i._evaluate()}))),i}return jD(t,e),t.prototype._evaluate=function(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))},t}(Ie),qD=function(){function e(e){var t=this;void 0===e&&(e=!1),this._onDidCreateMode=new Ye,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new Ye,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new zD(!0,e),this._registry.onDidChange((function(){return t._onLanguagesMaybeChanged.fire()}))}return e.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},e.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},e.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return Ki(n,null)},e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return Ki(t,null)},e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},e.prototype.create=function(e){var t=this;return new GD(this.onLanguagesMaybeChanged,(function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n)}))},e.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new GD(this.onLanguagesMaybeChanged,(function(){var i=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(i)}))},e.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||Yl;return this._getOrCreateMode(t.language),t},e.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},e.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||Yl;this._instantiatedModes[e]=new xD(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},e}(),YD=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)}}(),XD=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},JD=function(e,t){return function(n,i){t(n,i,e)}};function ZD(e){return e.toString()}var $D=function(){function e(e,t,n){this._modelEventListeners=new ke,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose((function(){return t(e)}))),this._modelEventListeners.add(e.onDidChangeLanguage((function(t){return n(e,t)})))}return e.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},e.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},e.prototype.setLanguage=function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange((function(){return t.model.setMode(e.languageIdentifier)})),this.model.setMode(e.languageIdentifier)},e}(),eN=s["d"]||s["e"]?1:2,tN=function(e){function t(t,n,i){var o=e.call(this)||this;return o._onModelAdded=o._register(new Ye),o.onModelAdded=o._onModelAdded.event,o._onModelRemoved=o._register(new Ye),o.onModelRemoved=o._onModelRemoved.event,o._onModelModeChanged=o._register(new Ye),o.onModelModeChanged=o._onModelModeChanged.event,o._configurationService=t,o._resourcePropertiesService=n,o._models={},o._modelCreationOptionsByLanguageAndResource=Object.create(null),o._configurationServiceSubscription=o._configurationService.onDidChangeConfiguration((function(e){return o._updateModelOptions()})),o._updateModelOptions(),o._register(new nN(o,i)),o}return YD(t,e),t._readModelOptions=function(e,t){var n=ae.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){var i=parseInt(e.editor.tabSize,10);isNaN(i)||(n=i),n<1&&(n=1)}var o=n;if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){var r=parseInt(e.editor.indentSize,10);isNaN(r)||(o=r),o<1&&(o=1)}var s=ae.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var a=eN,u=e.eol;"\r\n"===u?a=2:"\n"===u&&(a=1);var l=ae.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var c=ae.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var d=ae.largeFileOptimizations;return e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(d="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:o,insertSpaces:s,detectIndentation:c,defaultEOL:a,trimAutoWhitespace:l,largeFileOptimizations:d}},t.prototype.getCreationOptions=function(e,n,i){var o=this._modelCreationOptionsByLanguageAndResource[e+n];if(!o){var r=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:n}),s=this._resourcePropertiesService.getEOL(n,e);o=t._readModelOptions({editor:r,eol:s},i),this._modelCreationOptionsByLanguageAndResource[e+n]=o}return o},t.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var n=Object.keys(this._models),i=0,o=n.length;i<o;i++){var r=n[i],s=this._models[r],a=s.model.getLanguageIdentifier().language,u=s.model.uri,l=e[a+u],c=this.getCreationOptions(a,u,s.model.isForSimpleWidget);t._setModelOptionsForModel(s.model,c,l)}},t._setModelOptionsForModel=function(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace}))},t.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),e.prototype.dispose.call(this)},t.prototype._createModelData=function(e,t,n,i){var o=this,r=this.getCreationOptions(t.language,n,i),s=new U_(e,r,t,n),a=ZD(s.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");var u=new $D(s,(function(e){return o._onWillDispose(e)}),(function(e,t){return o._onDidChangeLanguage(e,t)}));return this._models[a]=u,u},t.prototype.createModel=function(e,t,n,i){var o;return void 0===i&&(i=!1),t?(o=this._createModelData(e,t.languageIdentifier,n,i),this.setMode(o.model,t)):o=this._createModelData(e,VD,n,i),this._onModelAdded.fire(o.model),o.model},t.prototype.setMode=function(e,t){if(t){var n=this._models[ZD(e.uri)];n&&n.setLanguage(t)}},t.prototype.getModels=function(){for(var e=[],t=Object.keys(this._models),n=0,i=t.length;n<i;n++){var o=t[n];e.push(this._models[o].model)}return e},t.prototype.getModel=function(e){var t=ZD(e),n=this._models[t];return n?n.model:null},t.prototype._onWillDispose=function(e){var t=ZD(e.uri),n=this._models[t];delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri],this._onModelRemoved.fire(e)},t.prototype._onDidChangeLanguage=function(e,n){var i=n.oldLanguage,o=e.getLanguageIdentifier().language,r=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(o,e.uri,e.isForSimpleWidget);t._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldModeId:i})},t=XD([JD(0,rp),JD(1,Id),JD(2,um)],t),t}(Ie),nN=function(e){function t(t,n){var i=e.call(this)||this;return i._watchers=Object.create(null),i._semanticStyling=i._register(new iN(n)),i._register(t.onModelAdded((function(e){i._watchers[e.uri.toString()]=new uN(e,n,i._semanticStyling)}))),i._register(t.onModelRemoved((function(e){i._watchers[e.uri.toString()].dispose(),delete i._watchers[e.uri.toString()]}))),i}return YD(t,e),t}(Ie),iN=function(e){function t(t){var n=e.call(this)||this;return n._themeService=t,n._caches=new WeakMap,n._themeService&&n._register(n._themeService.onThemeChange((function(){n._caches=new WeakMap}))),n}return YD(t,e),t.prototype.get=function(e){return this._caches.has(e)||this._caches.set(e,new sN(e.getLegend(),this._themeService)),this._caches.get(e)},t}(Ie),oN=function(){function e(e,t,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.metadata=n,this.next=null}return e}(),rN=function(){function e(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=e._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<e._SIZES.length?2/3*this._currentLength:0),this._elements=[],e._nullOutEntries(this._elements,this._currentLength)}return e._nullOutEntries=function(e,t){for(var n=0;n<t;n++)e[n]=null},e.prototype._hashFunc=function(e,t){return((e<<5)-e+t|0)%this._currentLength},e.prototype.get=function(e,t){var n=this._hashFunc(e,t),i=this._elements[n];while(i){if(i.tokenTypeIndex===e&&i.tokenModifierSet===t)return i;i=i.next}return null},e.prototype.add=function(t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){var o=this._elements;this._currentLengthIndex++,this._currentLength=e._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<e._SIZES.length?2/3*this._currentLength:0),this._elements=[],e._nullOutEntries(this._elements,this._currentLength);for(var r=0,s=o;r<s.length;r++){var a=s[r],u=a;while(u){var l=u.next;u.next=null,this._add(u),u=l}}}this._add(new oN(t,n,i))},e.prototype._add=function(e){var t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet);e.next=this._elements[t],this._elements[t]=e},e._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],e}(),sN=function(){function e(e,t){this._legend=e,this._themeService=t,this._hashTable=new rN}return e.prototype.getMetadata=function(e,t){var n=this._hashTable.get(e,t);if(n)return n.metadata;for(var i=this._legend.tokenTypes[e],o=[],r=0;0!==t&&r<this._legend.tokenModifiers.length;r++)1&t&&o.push(this._legend.tokenModifiers[r]),t>>=1;var s=this._themeService.getTheme().getTokenStyleMetadata(i,o);return"undefined"===typeof s&&(s=2147483647),this._hashTable.add(e,t,s),s},e}(),aN=function(){function e(e,t,n){this._provider=e,this.resultId=t,this.data=n}return e.prototype.dispose=function(){this._provider.releaseSemanticTokens(this.resultId)},e}(),uN=function(e){function t(t,n,i){var o=e.call(this)||this;return o._isDisposed=!1,o._model=t,o._semanticStyling=i,o._fetchSemanticTokens=o._register(new Si((function(){return o._fetchSemanticTokensNow()}),300)),o._currentResponse=null,o._currentRequestCancellationTokenSource=null,o._register(o._model.onDidChangeContent((function(e){o._fetchSemanticTokens.isScheduled()||o._fetchSemanticTokens.schedule()}))),o._register(Kl.onDidChange((function(e){return o._fetchSemanticTokens.schedule()}))),n&&o._register(n.onThemeChange((function(e){o._setSemanticTokens(null,null,null,[]),o._fetchSemanticTokens.schedule()}))),o._fetchSemanticTokens.schedule(0),o}return YD(t,e),t.prototype.dispose=function(){this._isDisposed=!0,this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._currentRequestCancellationTokenSource&&(this._currentRequestCancellationTokenSource.cancel(),this._currentRequestCancellationTokenSource=null),e.prototype.dispose.call(this)},t.prototype._fetchSemanticTokensNow=function(){var e=this;if(!this._currentRequestCancellationTokenSource){var t=this._getSemanticColoringProvider();if(t){this._currentRequestCancellationTokenSource=new it;var n=[],i=this._model.onDidChangeContent((function(e){n.push(e)})),o=this._semanticStyling.get(t),r=this._currentResponse&&this._currentResponse.resultId||null,s=Promise.resolve(t.provideSemanticTokens(this._model,r,null,this._currentRequestCancellationTokenSource.token));s.then((function(r){e._currentRequestCancellationTokenSource=null,i.dispose(),e._setSemanticTokens(t,r||null,o,n)}),(function(r){Ae(r),e._currentRequestCancellationTokenSource=null,i.dispose(),e._setSemanticTokens(t,null,o,n)}))}}},t._isSemanticTokens=function(e){return e&&!!e.data},t._isSemanticTokensEdits=function(e){return e&&Array.isArray(e.edits)},t._copy=function(e,t,n,i,o){for(var r=0;r<o;r++)n[i+r]=e[t+r]},t.prototype._setSemanticTokens=function(e,n,i,o){var r=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed)e&&n&&e.releaseSemanticTokens(n.resultId);else if(e&&n&&i){if(t._isSemanticTokensEdits(n)){if(!r)return void this._model.setSemanticTokens(null);if(0===n.edits.length)n={resultId:n.resultId,data:r.data};else{for(var s=0,a=0,u=n.edits;a<u.length;a++){var l=u[a];s+=(l.data?l.data.length:0)-l.deleteCount}for(var c=r.data,d=new Uint32Array(c.length+s),h=c.length,A=d.length,p=n.edits.length-1;p>=0;p--){l=n.edits[p];var f=h-(l.start+l.deleteCount);f>0&&(t._copy(c,h-f,d,A-f,f),A-=f),l.data&&(t._copy(l.data,0,d,A-l.data.length,l.data.length),A-=l.data.length),h=l.start}h>0&&t._copy(c,0,d,0,h),n={resultId:n.resultId,data:d}}}if(t._isSemanticTokens(n)){this._currentResponse=new aN(e,n.resultId,n.data);c=n.data;var g=n.data.length/5|0,m=Math.max(Math.ceil(g/1024),400),v=[],_=0,y=1,w=0;while(_<g){var b=_,C=Math.min(b+m,g);if(C<g){var S=C;while(S-1>b&&0===c[5*S])S--;if(S-1===b){var B=C;while(B+1<g&&0===c[5*B])B++;C=B}else C=S}d=new Uint32Array(4*(C-b));var E=0,x=0;while(_<C){var L=5*_,D=c[L],N=c[L+1],k=y+D,I=0===D?w+N:N,F=c[L+2],M=c[L+3],O=c[L+4],T=i.getMetadata(M,O);2147483647!==T&&(0===x&&(x=k),d[E]=k-x,d[E+1]=I,d[E+2]=I+F,d[E+3]=T,E+=4),y=k,w=I,_++}E!==d.length&&(d=d.subarray(0,E));var P=new g_(x,new p_(d));v.push(P)}if(o.length>0){for(var R=0,U=o;R<U.length;R++)for(var H=U[R],Q=0,V=v;Q<V.length;Q++)for(var W=V[Q],K=0,z=H.changes;K<z.length;K++){var j=z[K];W.applyEdit(j.range,j.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(v)}else this._model.setSemanticTokens(null)}else this._model.setSemanticTokens(null)},t.prototype._getSemanticColoringProvider=function(){var e=Kl.ordered(this._model);return e.length>0?e[0]:null},t}(Ie),lN=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)}}(),cN=function(e){function t(){var t=e.call(this)||this;return t._onCodeEditorAdd=t._register(new Ye),t.onCodeEditorAdd=t._onCodeEditorAdd.event,t._onCodeEditorRemove=t._register(new Ye),t.onCodeEditorRemove=t._onCodeEditorRemove.event,t._onDiffEditorAdd=t._register(new Ye),t._onDiffEditorRemove=t._register(new Ye),t._codeEditors=Object.create(null),t._diffEditors=Object.create(null),t}return lN(t,e),t.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)},t.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)},t.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map((function(t){return e._codeEditors[t]}))},t.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)},t.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)},t.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map((function(t){return e._diffEditors[t]}))},t.prototype.getFocusedCodeEditor=function(){for(var e=null,t=this.listCodeEditors(),n=0,i=t;n<i.length;n++){var o=i[n];if(o.hasTextFocus())return o;o.hasWidgetFocus()&&(e=o)}return e},t}(Ie),dN=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)}}(),hN=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},AN=function(e,t){return function(n,i){t(n,i,e)}},pN=function(e){function t(t,n){void 0===n&&(n=qo());var i=e.call(this)||this;return i._decorationOptionProviders=new Map,i._styleSheet=n,i._themeService=t,i}return dN(t,e),t.prototype.registerDecorationType=function(e,t,n){var i=this._decorationOptionProviders.get(e);if(!i){var o={styleSheet:this._styleSheet,key:e,parentTypeKey:n,options:t||Object.create(null)};i=n?new fN(this._themeService,o):new gN(this._themeService,o),this._decorationOptionProviders.set(e,i)}i.refCount++},t.prototype.removeDecorationType=function(e){var t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((function(t){return t.removeDecorations(e)}))))},t.prototype.resolveDecorationOptions=function(e,t){var n=this._decorationOptionProviders.get(e);if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)},t=hN([AN(0,um)],t),t}(cN),fN=function(){function e(e,t){this._parentTypeKey=t.parentTypeKey,this.refCount=0,this._beforeContentRules=new vN(3,t,e),this._afterContentRules=new vN(4,t,e)}return e.prototype.getOptions=function(e,t){var n=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className),n},e.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null)},e}(),gN=function(){function e(e,t){var n=this;this._disposables=new ke,this.refCount=0;var i=function(i){var o=new vN(i,t,e);if(n._disposables.add(o),o.hasContent)return o.className},o=function(i){var o=new vN(i,t,e);return n._disposables.add(o),o.hasContent?{className:o.className,hasLetterSpacing:o.hasLetterSpacing}:null};this.className=i(0);var r=o(1);r&&(this.inlineClassName=r.className,this.inlineClassNameAffectsLetterSpacing=r.hasLetterSpacing),this.beforeContentClassName=i(3),this.afterContentClassName=i(4),this.glyphMarginClassName=i(2);var s=t.options;this.isWholeLine=Boolean(s.isWholeLine),this.stickiness=s.rangeBehavior;var a=s.light&&s.light.overviewRulerColor||s.overviewRulerColor,u=s.dark&&s.dark.overviewRulerColor||s.overviewRulerColor;"undefined"===typeof a&&"undefined"===typeof u||(this.overviewRuler={color:a||u,darkColor:u||a,position:s.overviewRulerLane||Bu.Center})}return e.prototype.getOptions=function(e,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},e.prototype.dispose=function(){this._disposables.dispose()},e}(),mN={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},vN=function(){function e(e,t,n){var i=this;this._theme=n.getTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var o=_N.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(o=o+" "+_N.getClassName(this._providerArgs.parentTypeKey,e)),this._className=o,this._unThemedSelector=_N.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onThemeChange((function(e){i._theme=n.getTheme(),i._removeCSS(),i._buildCSS()})):this._themeListener=null}return e.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(e.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),e.prototype._buildCSS=function(){var e,t,n,i=this._providerArgs.options;switch(this._ruleType){case 0:e=this.getCSSTextForModelDecorationClassName(i),t=this.getCSSTextForModelDecorationClassName(i.light),n=this.getCSSTextForModelDecorationClassName(i.dark);break;case 1:e=this.getCSSTextForModelDecorationInlineClassName(i),t=this.getCSSTextForModelDecorationInlineClassName(i.light),n=this.getCSSTextForModelDecorationInlineClassName(i.dark);break;case 2:e=this.getCSSTextForModelDecorationGlyphMarginClassName(i),t=this.getCSSTextForModelDecorationGlyphMarginClassName(i.light),n=this.getCSSTextForModelDecorationGlyphMarginClassName(i.dark);break;case 3:e=this.getCSSTextForModelDecorationContentClassName(i.before),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.before),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.before);break;case 4:e=this.getCSSTextForModelDecorationContentClassName(i.after),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.after),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var o=this._providerArgs.styleSheet.sheet,r=!1;e.length>0&&(o.insertRule(this._unThemedSelector+" {"+e+"}",0),r=!0),t.length>0&&(o.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),r=!0),n.length>0&&(o.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),r=!0),this._hasContent=r},e.prototype._removeCSS=function(){$o(this._unThemedSelector,this._providerArgs.styleSheet)},e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if("undefined"!==typeof e){if(this.collectBorderSettingsCSSText(e,t),"undefined"!==typeof e.contentIconPath&&t.push(xr(mN.contentIconPath,wr(Et.revive(e.contentIconPath)))),"string"===typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0],i=n.replace(/['\\]/g,"\\$&");t.push(xr(mN.contentText,i))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},e.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return"undefined"!==typeof e.gutterIconPath&&(t.push(xr(mN.gutterIconPath,wr(Et.revive(e.gutterIconPath)))),"undefined"!==typeof e.gutterIconSize&&t.push(xr(mN.gutterIconSize,e.gutterIconSize))),t.join("")},e.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(xr("box-sizing: border-box;")),!0)},e.prototype.collectCSSText=function(e,t,n){for(var i=n.length,o=0,r=t;o<r.length;o++){var s=r[o],a=this.resolveValue(e[s]);"string"===typeof a&&n.push(xr(mN[s],a))}return n.length!==i},e.prototype.resolveValue=function(e){if(Su(e)){this._usesThemeColors=!0;var t=this._theme.getColor(e.id);return t?t.toString():"transparent"}return e},e}(),_N=function(){function e(){}return e.getClassName=function(e,t){return"ced-"+e+"-"+t},e.getSelector=function(e,t,n){var i=".monaco-editor ."+this.getClassName(e,n);return t&&(i=i+"."+this.getClassName(t,n)),3===n?i+="::before":4===n&&(i+="::after"),i},e}(),yN=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)}}(),wN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yN(t,e),t.prototype.getActiveCodeEditor=function(){return null},t.prototype.openCodeEditor=function(e,t,n){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)},t.prototype.doOpenEditor=function(e,t){var n=this.findModel(e,t.resource);if(!n){if(t.resource){var i=t.resource.scheme;if(i===Bi.http||i===Bi.https)return vr(t.resource.toString()),e}return null}var o=t.options?t.options.selection:null;if(o)if("number"===typeof o.endLineNumber&&"number"===typeof o.endColumn)e.setSelection(o),e.revealRangeInCenter(o,1);else{var r={lineNumber:o.startLineNumber,column:o.startColumn};e.setPosition(r),e.revealPositionInCenter(r,1)}return e},t.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},t}(pN),bN=function(){function e(e,t,n,i,o){this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=o}return e}();function CN(e){if(!e||!Array.isArray(e))return[];for(var t=[],n=0,i=0,o=e.length;i<o;i++){var r=e[i],s=-1;if("string"===typeof r.fontStyle){s=0;for(var a=r.fontStyle.split(" "),u=0,l=a.length;u<l;u++){var c=a[u];switch(c){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break}}}var d=null;"string"===typeof r.foreground&&(d=r.foreground);var h=null;"string"===typeof r.background&&(h=r.background),t[n++]=new bN(r.token||"",i,s,d,h)}return t}function SN(e,t){e.sort((function(e,t){var n=NN(e.token,t.token);return 0!==n?n:e.index-t.index}));var n=0,i="000000",o="ffffff";while(e.length>=1&&""===e[0].token){var r=e.shift();-1!==r.fontStyle&&(n=r.fontStyle),null!==r.foreground&&(i=r.foreground),null!==r.background&&(o=r.background)}for(var s=new EN,a=0,u=t;a<u.length;a++){var l=u[a];s.getId(l)}for(var c=s.getId(i),d=s.getId(o),h=new MN(n,c,d),A=new ON(h),p=0,f=e.length;p<f;p++){var g=e[p];A.insert(g.token,g.fontStyle,s.getId(g.foreground),s.getId(g.background))}return new xN(s,A)}var BN=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,EN=function(){function e(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return e.prototype.getId=function(e){if(null===e)return 0;var t=e.match(BN);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();var n=this._color2id.get(e);return n||(n=++this._lastColorId,this._color2id.set(e,n),this._id2color[n]=N_.fromHex("#"+e),n)},e.prototype.getColorMap=function(){return this._id2color.slice(0)},e}(),xN=function(){function e(e,t){this._colorMap=e,this._root=t,this._cache=new Map}return e.createFromRawTokenTheme=function(e,t){return this.createFromParsedTokenTheme(CN(e),t)},e.createFromParsedTokenTheme=function(e,t){return SN(e,t)},e.prototype.getColorMap=function(){return this._colorMap.getColorMap()},e.prototype._match=function(e){return this._root.match(e)},e.prototype.match=function(e,t){var n=this._cache.get(t);if("undefined"===typeof n){var i=this._match(t),o=DN(t);n=(i.metadata|o<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0},e}(),LN=/\b(comment|string|regex|regexp)\b/;function DN(e){var t=e.match(LN);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function NN(e,t){return e<t?-1:e>t?1:0}var kN,IN,FN,MN=function(){function e(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)},e.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},e}(),ON=function(){function e(e){this._mainRule=e,this._children=new Map}return e.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");-1===i?(t=e,n=""):(t=e.substring(0,i),n=e.substring(i+1));var o=this._children.get(t);return"undefined"!==typeof o?o.match(n):this._mainRule},e.prototype.insert=function(t,n,i,o){if(""!==t){var r,s,a=t.indexOf(".");-1===a?(r=t,s=""):(r=t.substring(0,a),s=t.substring(a+1));var u=this._children.get(r);"undefined"===typeof u&&(u=new e(this._mainRule.clone()),this._children.set(r,u)),u.insert(s,n,i,o)}else this._mainRule.acceptOverwrite(n,i,o)},e}();function TN(e){for(var t=[],n=1,i=e.length;n<i;n++){var o=e[n];t[n]=".mtk"+n+" { color: "+o+"; }"}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.join("\n")}var PN={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"09885A"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"09885A"},{token:"attribute.value.unit",foreground:"09885A"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(kN={},kN[Iw]="#FFFFFE",kN[Fw]="#000000",kN[Hw]="#E5EBF1",kN[lC]="#D3D3D3",kN[cC]="#939393",kN[Qw]="#ADD6FF4D",kN)},RN={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(IN={},IN[Iw]="#1E1E1E",IN[Fw]="#D4D4D4",IN[Hw]="#3A3D41",IN[lC]="#404040",IN[cC]="#707070",IN[Qw]="#ADD6FF26",IN)},UN={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(FN={},FN[Iw]="#000000",FN[Fw]="#FFFFFF",FN[lC]="#FFFFFF",FN[cC]="#FFFFFF",FN)},HN="vs",QN="vs-dark",VN="hc-black",WN=uA.as(Qy.ColorContribution),KN=uA.as(Am.ThemingContribution),zN=function(){function e(e,t){this.themeData=t;var n=t.base;e.length>0?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(e.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),e.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},e.prototype.getColors=function(){if(!this.colors){var e=new Map;for(var t in this.themeData.colors)e.set(t,N_.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var n=GN(this.themeData.base);for(var t in n.colors)e.has(t)||e.set(t,N_.fromHex(n.colors[t]))}this.colors=e}return this.colors},e.prototype.getColor=function(e,t){var n=this.getColors().get(e);return n||(!1!==t?this.getDefault(e):void 0)},e.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=WN.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)},e.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(e.prototype,"type",{get:function(){switch(this.base){case HN:return"light";case VN:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=GN(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=xN.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),e.prototype.getTokenStyleMetadata=function(e,t){},e}();function jN(e){return e===HN||e===QN||e===VN}function GN(e){switch(e){case HN:return PN;case QN:return RN;case VN:return UN}}function qN(e){var t=GN(e);return new zN(e,t)}var YN=function(){function e(){this.environment=Object.create(null),this._onThemeChange=new Ye,this._onIconThemeChange=new Ye,this._knownThemes=new Map,this._knownThemes.set(HN,qN(HN)),this._knownThemes.set(QN,qN(QN)),this._knownThemes.set(VN,qN(VN)),this._styleElement=qo(),this._styleElement.className="monaco-colors",this.setTheme(HN)}return Object.defineProperty(e.prototype,"onThemeChange",{get:function(){return this._onThemeChange.event},enumerable:!0,configurable:!0}),e.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!jN(t.base)&&!jN(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new zN(e,t)),jN(e)&&this._knownThemes.forEach((function(t){t.base===e&&t.notifyBaseUpdated()})),this._theme&&this._theme.themeName===e&&this.setTheme(e)},e.prototype.getTheme=function(){return this._theme},e.prototype.setTheme=function(e){var t,n=this;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(HN),this._theme===t)return t.id;this._theme=t;var i=[],o={},r={addRule:function(e){o[e]||(i.push(e),o[e]=!0)}};KN.getThemingParticipants().forEach((function(e){return e(t,r,n.environment)}));var s=t.tokenTheme,a=s.getColorMap();return r.addRule(TN(a)),this._styleElement.innerHTML=i.join("\n"),zl.setColorMap(a),this._onThemeChange.fire(t),t.id},e.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},e}(),XN=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)}}(),JN=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},ZN=function(e,t){return function(n,i){t(n,i,e)}},$N="data-keybinding-context",ek=function(){function e(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value["_contextId"]=e}return e.prototype.setValue=function(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)},e.prototype.removeValue=function(e){return e in this._value&&(delete this._value[e],!0)},e.prototype.getValue=function(e){var t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t},e}(),tk=function(e){function t(){return e.call(this,-1,null)||this}return XN(t,e),t.prototype.setValue=function(e,t){return!1},t.prototype.removeValue=function(e){return!1},t.prototype.getValue=function(e){},t.INSTANCE=new t,t}(ek),nk=function(e){function t(t,n,i){var o=e.call(this,t,null)||this;return o._configurationService=n,o._values=new Map,o._listener=o._configurationService.onDidChangeConfiguration((function(e){if(6===e.source){var t=Ma(o._values);o._values.clear(),i.fire(new rk(t))}else{for(var n=[],r=0,s=e.affectedKeys;r<s.length;r++){var a=s[r],u="config."+a;o._values.has(u)&&(o._values.delete(u),n.push(u))}i.fire(new rk(n))}})),o}return XN(t,e),t.prototype.dispose=function(){this._listener.dispose()},t.prototype.getValue=function(n){if(0!==n.indexOf(t._keyPrefix))return e.prototype.getValue.call(this,n);if(this._values.has(n))return this._values.get(n);var i=n.substr(t._keyPrefix.length),o=this._configurationService.getValue(i),r=void 0;switch(typeof o){case"number":case"boolean":case"string":r=o;break}return this._values.set(n,r),r},t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n)},t.prototype.removeValue=function(t){return e.prototype.removeValue.call(this,t)},t._keyPrefix="config.",t}(ek),ik=function(){function e(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}return e.prototype.set=function(e){this._service.setContext(this._key,e)},e.prototype.reset=function(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},e.prototype.get=function(){return this._service.getContextKeyValue(this._key)},e}(),ok=function(){function e(e){this.key=e}return e.prototype.affectsSome=function(e){return e.has(this.key)},e}(),rk=function(){function e(e){this.keys=e}return e.prototype.affectsSome=function(e){for(var t=0,n=this.keys;t<n.length;t++){var i=n[t];if(e.has(i))return!0}return!1},e}(),sk=function(){function e(e){this.events=e}return e.prototype.affectsSome=function(e){for(var t=0,n=this.events;t<n.length;t++){var i=n[t];if(i.affectsSome(e))return!0}return!1},e}(),ak=function(){function e(e){this._onDidChangeContext=new Xe({merge:function(e){return new sk(e)}}),this._isDisposed=!1,this._myContextId=e}return e.prototype.createKey=function(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new ik(this,e,t)},Object.defineProperty(e.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),e.prototype.bufferChangeEvents=function(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}},e.prototype.createScoped=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new lk(this,e)},e.prototype.contextMatchesRules=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId),n=Tp.contextMatchesRules(t,e);return n},e.prototype.getContextKeyValue=function(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)},e.prototype.setContext=function(e,t){if(!this._isDisposed){var n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new ok(e))}},e.prototype.removeContext=function(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new ok(e))},e.prototype.getContext=function(e){return this._isDisposed?tk.INSTANCE:this.getContextValuesContainer(ck(e))},e}(),uk=function(e){function t(t){var n=e.call(this,0)||this;n._contexts=new Map,n._toDispose=new ke,n._lastContextId=0;var i=new nk(n._myContextId,t,n._onDidChangeContext);return n._contexts.set(n._myContextId,i),n._toDispose.add(i),n}return XN(t,e),t.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},t.prototype.getContextValuesContainer=function(e){return this._isDisposed?tk.INSTANCE:this._contexts.get(e)||tk.INSTANCE},t.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ContextKeyService has been disposed");var t=++this._lastContextId;return this._contexts.set(t,new ek(t,this.getContextValuesContainer(e))),t},t.prototype.disposeContext=function(e){this._isDisposed||this._contexts.delete(e)},t=JN([ZN(0,rp)],t),t}(ak),lk=function(e){function t(t,n){var i=e.call(this,t.createChildContext())||this;return i._parent=t,n&&(i._domNode=n,i._domNode.setAttribute($N,String(i._myContextId))),i}return XN(t,e),t.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute($N),this._domNode=void 0)},Object.defineProperty(t.prototype,"onDidChangeContext",{get:function(){return Ue.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),t.prototype.getContextValuesContainer=function(e){return this._isDisposed?tk.INSTANCE:this._parent.getContextValuesContainer(e)},t.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)},t.prototype.disposeContext=function(e){this._isDisposed||this._parent.disposeContext(e)},t}(ak);function ck(e){while(e){if(e.hasAttribute($N)){var t=e.getAttribute($N);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}za.registerCommand(Op,(function(e,t,n){e.get(Mp).createKey(String(t),n)}));n("7a2c"),n("0876");var dk,hk=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)}}(),Ak=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},pk=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,fk=/(&amp;)?(&amp;)([^\s&])/g;(function(e){e[e["Right"]=0]="Right",e[e["Left"]=1]="Left"})(dk||(dk={}));var gk=function(e){function t(t,n,i){var o=e.call(this,i||"submenu",t,"",!0)||this;return o.entries=n,o}return hk(t,e),t}(ng),mk=function(e){function t(t,n,i){void 0===i&&(i={});var o=this;ho(t,"monaco-menu-container"),t.setAttribute("role","presentation");var r=document.createElement("div");ho(r,"monaco-menu"),r.setAttribute("role","presentation"),o=e.call(this,r,{orientation:2,actionViewItemProvider:function(e){return o.doGetActionViewItem(e,i,a)},context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,triggerKeys:{keys:Ak([3],s["e"]?[10]:[]),keyDown:!0}})||this,o.menuElement=r,o.actionsList.setAttribute("role","menu"),o.actionsList.tabIndex=0,o.menuDisposables=o._register(new ke),vo(r,tr.KEY_DOWN,(function(e){var t=new oi(e);t.equals(2)&&e.preventDefault()})),i.enableMnemonics&&o.menuDisposables.add(vo(r,tr.KEY_DOWN,(function(e){var t=e.key.toLocaleLowerCase();if(o.mnemonics.has(t)){nr.stop(e,!0);var n=o.mnemonics.get(t);if(1===n.length&&(n[0]instanceof _k&&n[0].container&&o.focusItemByElement(n[0].container),n[0].onClick(e)),n.length>1){var i=n.shift();i&&i.container&&(o.focusItemByElement(i.container),n.push(i)),o.mnemonics.set(t,n)}}}))),s["d"]&&o._register(vo(r,tr.KEY_DOWN,(function(e){var t=new oi(e);t.equals(14)||t.equals(11)?(o.focusedItem=o.viewItems.length-1,o.focusNext(),nr.stop(e,!0)):(t.equals(13)||t.equals(12))&&(o.focusedItem=0,o.focusPrevious(),nr.stop(e,!0))}))),o._register(vo(o.domNode,tr.MOUSE_OUT,(function(e){var t=e.relatedTarget;jo(t,o.domNode)||(o.focusedItem=void 0,o.updateFocus(),e.stopPropagation())}))),o._register(vo(o.actionsList,tr.MOUSE_OVER,(function(e){var t=e.target;if(t&&jo(t,o.actionsList)&&t!==o.actionsList){while(t.parentElement!==o.actionsList&&null!==t.parentElement)t=t.parentElement;if(co(t,"action-item")){var n=o.focusedItem;o.setFocusedItem(t),n!==o.focusedItem&&o.updateFocus()}}})));var a={parent:o};o.mnemonics=new Map,o.scrollableElement=o._register(new UB(r,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var u=o.scrollableElement.getDomNode();return u.style.position="",o._register(vo(u,tr.MOUSE_UP,(function(e){e.preventDefault()}))),r.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",o.push(n,{icon:!0,label:!0,isMenu:!0}),t.appendChild(o.scrollableElement.getDomNode()),o.scrollableElement.scanDomNode(),o.viewItems.filter((function(e){return!(e instanceof yk)})).forEach((function(e,t,n){e.updatePositionInSet(t+1,n.length)})),o}return hk(t,e),t.prototype.style=function(e){var t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:"",i=e.backgroundColor?""+e.backgroundColor:"",o=e.borderColor?"1px solid "+e.borderColor:"",r=e.shadowColor?"0 2px 4px "+e.shadowColor:"";t.style.border=o,this.domNode.style.color=n,this.domNode.style.backgroundColor=i,t.style.boxShadow=r,this.viewItems&&this.viewItems.forEach((function(t){(t instanceof vk||t instanceof yk)&&t.style(e)}))},t.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(t.prototype,"onScroll",{get:function(){return this.scrollableElement.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),t.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},t.prototype.setFocusedItem=function(e){for(var t=0;t<this.actionsList.children.length;t++){var n=this.actionsList.children[t];if(e===n){this.focusedItem=t;break}}},t.prototype.updateFocus=function(t){e.prototype.updateFocus.call(this,t,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})},t.prototype.doGetActionViewItem=function(e,t,n){if(e instanceof NL)return new yk(t.context,e,{icon:!0});if(e instanceof gk){var i=new _k(e,e.entries,n,t);if(t.enableMnemonics){var o=i.getMnemonic();if(o&&i.isEnabled()){var r=[];this.mnemonics.has(o)&&(r=this.mnemonics.get(o)),r.push(i),this.mnemonics.set(o,r)}}return i}var s={enableMnemonics:t.enableMnemonics};if(t.getKeyBinding){var a=t.getKeyBinding(e);if(a){var u=a.getLabel();u&&(s.keybinding=u)}}i=new vk(t.context,e,s);if(t.enableMnemonics){o=i.getMnemonic();if(o&&i.isEnabled()){r=[];this.mnemonics.has(o)&&(r=this.mnemonics.get(o)),r.push(i),this.mnemonics.set(o,r)}}return i},t}(FL),vk=function(e){function t(t,n,i){void 0===i&&(i={});var o=this;if(i.isMenu=!0,o=e.call(this,n,n,i)||this,o.options=i,o.options.icon=void 0!==i.icon&&i.icon,o.options.label=void 0===i.label||i.label,o.cssClass="",o.options.label&&i.enableMnemonics){var r=o.getAction().label;if(r){var s=pk.exec(r);s&&(o.mnemonic=(s[1]?s[1]:s[3]).toLocaleLowerCase())}}return o.runOnceToEnableMouseUp=new Si((function(){o.element&&o._register(vo(o.element,tr.MOUSE_UP,(function(e){e.defaultPrevented||(nr.stop(e,!0),o.onClick(e))})))}),100),o._register(o.runOnceToEnableMouseUp),o}return hk(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.element&&(this.container=t,this.item=ar(this.element,dr("a.action-menu-item")),this._action.id===NL.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=ar(this.item,dr("span.menu-item-check")),this.check.setAttribute("role","none"),this.label=ar(this.item,dr("span.action-label")),this.options.label&&this.options.keybinding&&(ar(this.item,dr("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())},t.prototype.blur=function(){e.prototype.blur.call(this),this.applyStyle()},t.prototype.focus=function(){e.prototype.focus.call(this),this.item&&this.item.focus(),this.applyStyle()},t.prototype.updatePositionInSet=function(e,t){this.item&&(this.item.setAttribute("aria-posinset",""+e),this.item.setAttribute("aria-setsize",""+t))},t.prototype.updateLabel=function(){if(this.options.label){var e=this.getAction().label;if(e){var t=wk(e);this.options.enableMnemonics||(e=t),this.label&&this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));var n=pk.exec(e);if(n){e=Lr(e),fk.lastIndex=0;var i=fk.exec(e);while(i&&i[1])i=fk.exec(e);i&&(e=e.substr(0,i.index)+'<u aria-hidden="true">'+i[3]+"</u>"+e.substr(i.index+i[0].length)),e=e.replace(/&amp;&amp;/g,"&amp;"),this.item&&this.item.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else e=e.replace(/&&/g,"&")}this.label&&(this.label.innerHTML=e.trim())}},t.prototype.updateTooltip=function(){var e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=r({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.item&&(this.item.title=e)},t.prototype.updateClass=function(){this.cssClass&&this.item&&fo(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",ho(this.label,"icon"),this.cssClass&&Ao(this.label,this.cssClass),this.updateEnabled()):this.label&&po(this.label,"icon")},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&po(this.element,"disabled"),this.item&&(po(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&ho(this.element,"disabled"),this.item&&(ho(this.item,"disabled"),fr(this.item)))},t.prototype.updateChecked=function(){this.item&&(this.getAction().checked?(ho(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(po(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))},t.prototype.getMnemonic=function(){return this.mnemonic},t.prototype.applyStyle=function(){if(this.menuStyle){var e=this.element&&co(this.element,"focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:this.menuStyle.backgroundColor,i=e&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=t?""+t:null,this.item.style.backgroundColor=n?""+n:""),this.check&&(this.check.style.backgroundColor=t?""+t:""),this.container&&(this.container.style.border=i)}},t.prototype.style=function(e){this.menuStyle=e,this.applyStyle()},t}(DL),_k=function(e){function t(t,n,i,o){var r=e.call(this,t,t,o)||this;return r.submenuActions=n,r.parentData=i,r.submenuOptions=o,r.mysubmenu=null,r.submenuDisposables=r._register(new ke),r.mouseOver=!1,r.expandDirection=o&&void 0!==o.expandDirection?o.expandDirection:dk.Right,r.showScheduler=new Si((function(){r.mouseOver&&(r.cleanupExistingSubmenu(!1),r.createSubmenu(!1))}),250),r.hideScheduler=new Si((function(){r.element&&!jo(document.activeElement,r.element)&&r.parentData.submenu===r.mysubmenu&&(r.parentData.parent.focus(!1),r.cleanupExistingSubmenu(!0))}),750),r}return hk(t,e),t.prototype.render=function(t){var n=this;e.prototype.render.call(this,t),this.element&&(this.item&&(ho(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=ar(this.item,dr("span.submenu-indicator")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(vo(this.element,tr.KEY_UP,(function(e){var t=new oi(e);(t.equals(17)||t.equals(3))&&(nr.stop(e,!0),n.createSubmenu(!0))}))),this._register(vo(this.element,tr.KEY_DOWN,(function(e){var t=new oi(e);document.activeElement===n.item&&(t.equals(17)||t.equals(3))&&nr.stop(e,!0)}))),this._register(vo(this.element,tr.MOUSE_OVER,(function(e){n.mouseOver||(n.mouseOver=!0,n.showScheduler.schedule())}))),this._register(vo(this.element,tr.MOUSE_LEAVE,(function(e){n.mouseOver=!1}))),this._register(vo(this.element,tr.FOCUS_OUT,(function(e){n.element&&!jo(document.activeElement,n.element)&&n.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((function(){n.parentData.parent.focus(!1),n.cleanupExistingSubmenu(!1)}))))},t.prototype.onClick=function(e){nr.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)},t.prototype.cleanupExistingSubmenu=function(e){this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)&&(this.parentData.submenu.dispose(),this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0))},t.prototype.createSubmenu=function(e){var t=this;if(void 0===e&&(e=!0),this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=ar(this.element,dr("div.monaco-submenu")),Ao(this.submenuContainer,"menubar-menu-items-holder","context-view");var n=getComputedStyle(this.parentData.parent.domNode),i=parseFloat(n.paddingTop||"0")||0;this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px",this.parentData.submenu=new mk(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var o=this.element.getBoundingClientRect(),r=this.submenuContainer.getBoundingClientRect();this.expandDirection===dk.Right?window.innerWidth<=o.right+r.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+o.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px"):this.expandDirection===dk.Left&&(this.submenuContainer.style.right=this.element.offsetWidth+"px",this.submenuContainer.style.left="auto",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px"),this.submenuDisposables.add(vo(this.submenuContainer,tr.KEY_UP,(function(e){var n=new oi(e);n.equals(15)&&(nr.stop(e,!0),t.parentData.parent.focus(),t.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add(vo(this.submenuContainer,tr.KEY_DOWN,(function(e){var t=new oi(e);t.equals(15)&&nr.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((function(){t.parentData.parent.focus(),t.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}},t.prototype.updateAriaExpanded=function(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))},t.prototype.applyStyle=function(){if(e.prototype.applyStyle.call(this),this.menuStyle){var t=this.element&&co(this.element,"focused"),n=t&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.backgroundColor=n?""+n:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},t}(vk),yk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hk(t,e),t.prototype.style=function(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:"")},t}(kL);function wk(e){var t=pk,n=t.exec(e);if(!n)return e;var i=!n[1];return e.replace(t,i?"$2$3":"").trim()}var bk=function(){return bk=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bk.apply(this,arguments)};function Ck(e,t){var n=Object.create(null);for(var i in t){var o=t[i];o&&(n[i]=Xb(o,e))}return n}function Sk(e,t,n){function i(i){var o=Ck(e.getTheme(),t);"function"===typeof n?n(o):n.style(o)}return i(e.getTheme()),e.onThemeChange(i)}function Bk(e,t,n){return Sk(t,{badgeBackground:n&&n.badgeBackground||mw,badgeForeground:n&&n.badgeForeground||vw,badgeBorder:qy},e)}function Ek(e,t,n){return Sk(t,{foreground:n&&n.foreground||zy,background:n&&n.background||Iw,borderColor:n&&n.borderColor||qy,widgetShadow:n&&n.widgetShadow||Zy,progressBarBackground:n&&n.progressBarBackground||Cw,pickerGroupForeground:n&&n.pickerGroupForeground||fw,pickerGroupBorder:n&&n.pickerGroupBorder||gw,inputBackground:n&&n.inputBackground||$y,inputForeground:n&&n.inputForeground||ew,inputBorder:n&&n.inputBorder||tw,inputValidationInfoBorder:n&&n.inputValidationInfoBorder||sw,inputValidationInfoBackground:n&&n.inputValidationInfoBackground||ow,inputValidationInfoForeground:n&&n.inputValidationInfoForeground||rw,inputValidationWarningBorder:n&&n.inputValidationWarningBorder||lw,inputValidationWarningBackground:n&&n.inputValidationWarningBackground||aw,inputValidationWarningForeground:n&&n.inputValidationWarningForeground||uw,inputValidationErrorBorder:n&&n.inputValidationErrorBorder||hw,inputValidationErrorBackground:n&&n.inputValidationErrorBackground||cw,inputValidationErrorForeground:n&&n.inputValidationErrorForeground||dw,listFocusBackground:n&&n.listFocusBackground||cb,listFocusForeground:n&&n.listFocusForeground||db,listActiveSelectionBackground:n&&n.listActiveSelectionBackground||zb(hb,.1),listActiveSelectionForeground:n&&n.listActiveSelectionForeground||Ab,listFocusAndSelectionBackground:n&&n.listFocusAndSelectionBackground||hb,listFocusAndSelectionForeground:n&&n.listFocusAndSelectionForeground||Ab,listInactiveSelectionBackground:n&&n.listInactiveSelectionBackground||pb,listInactiveSelectionForeground:n&&n.listInactiveSelectionForeground||fb,listInactiveFocusBackground:n&&n.listInactiveFocusBackground||gb,listHoverBackground:n&&n.listHoverBackground||mb,listHoverForeground:n&&n.listHoverForeground||vb,listDropBackground:n&&n.listDropBackground||_b,listFocusOutline:n&&n.listFocusOutline||Yy,listSelectionOutline:n&&n.listSelectionOutline||Yy,listHoverOutline:n&&n.listHoverOutline||Yy},e)}function xk(e,t,n){return Sk(t,bk(bk({},Lk),n||{}),e)}var Lk={listFocusBackground:cb,listFocusForeground:db,listActiveSelectionBackground:zb(hb,.1),listActiveSelectionForeground:Ab,listFocusAndSelectionBackground:hb,listFocusAndSelectionForeground:Ab,listInactiveSelectionBackground:pb,listInactiveSelectionForeground:fb,listInactiveFocusBackground:gb,listHoverBackground:mb,listHoverForeground:vb,listDropBackground:_b,listFocusOutline:Yy,listSelectionOutline:Yy,listHoverOutline:Yy,listFilterWidgetBackground:wb,listFilterWidgetOutline:bb,listFilterWidgetNoMatchesOutline:Cb,listMatchesShadow:Zy,treeIndentGuidesStroke:Sb},Dk={shadowColor:Zy,borderColor:Bb,foregroundColor:Eb,backgroundColor:xb,selectionForegroundColor:Lb,selectionBackgroundColor:Db,selectionBorderColor:Nb,separatorColor:kb};function Nk(e,t,n){return Sk(t,bk(bk({},Dk),n),e)}var kk,Ik=function(){function e(e,t,n,i,o){this.contextViewService=e,this.telemetryService=t,this.notificationService=n,this.keybindingService=i,this.themeService=o,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}return e.prototype.configure=function(e){this.options=e},e.prototype.showContextMenu=function(e){var t,n=this,i=e.getActions();i.length&&(this.focusToReturn=document.activeElement,this.contextViewService.showContextView({getAnchor:function(){return e.getAnchor()},canRelayout:!1,anchorAlignment:e.anchorAlignment,render:function(o){var r=e.getMenuClassName?e.getMenuClassName():"";r&&(o.className+=" "+r),n.options.blockMouse&&(n.block=o.appendChild(dr(".context-view-block")));var s=new ke,a=e.actionRunner||new ig;return a.onDidBeforeRun(n.onActionRun,n,s),a.onDidRun(n.onDidActionRun,n,s),t=new mk(o,i,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:a,getKeyBinding:e.getKeyBinding?e.getKeyBinding:function(e){return n.keybindingService.lookupKeybinding(e.id)}}),s.add(Nk(t,n.themeService)),t.onDidCancel((function(){return n.contextViewService.hideContextView(!0)}),null,s),t.onDidBlur((function(){return n.contextViewService.hideContextView(!0)}),null,s),Yn(window,tr.BLUR)((function(){n.contextViewService.hideContextView(!0)}),null,s),Yn(window,tr.MOUSE_DOWN)((function(e){if(!e.defaultPrevented){var t=new di(e),i=t.target;if(!t.rightButton){while(i){if(i===o)return;i=i.parentElement}n.contextViewService.hideContextView(!0)}}}),null,s),Le(s,t)},focus:function(){t&&t.focus(!!e.autoSelectFirstItem)},onHide:function(t){e.onHide&&e.onHide(!!t),n.block&&(ro(n.block),n.block=null),n.focusToReturn&&n.focusToReturn.focus()}}))},e.prototype.onActionRun=function(e){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()},e.prototype.onDidActionRun=function(e){e.error&&this.notificationService&&this.notificationService.error(e.error)},e}(),Fk=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)}}(),Mk=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},Ok=function(e,t){return function(n,i){t(n,i,e)}},Tk=function(e){function t(t,n,i,o,r){var s=e.call(this)||this;return s._onDidContextMenu=s._register(new Ye),s.contextMenuHandler=new Ik(i,t,n,o,r),s}return Fk(t,e),t.prototype.configure=function(e){this.contextMenuHandler.configure(e)},t.prototype.showContextMenu=function(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire()},t=Mk([Ok(0,fg),Ok(1,$p),Ok(2,VL),Ok(3,pD),Ok(4,um)],t),t}(Ie);n("4d3d");(function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function n(e){return e.end-e.start<=0}function i(e,i){return!n(t(e,i))}function o(e,t){var i=[],o={start:e.start,end:Math.min(t.start,e.end)},r={start:Math.max(t.end,e.start),end:e.end};return n(o)||i.push(o),n(r)||i.push(r),i}e.intersect=t,e.isEmpty=n,e.intersects=i,e.relativeComplement=o})(kk||(kk={}));var Pk=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 Rk(e,t,n){var i=n.offset+n.size;return 0===n.position?t<=e-i?i:t<=n.offset?n.offset-t:Math.max(e-t,0):t<=n.offset?n.offset-t:t<=e-i?i:0}var Uk=function(e){function t(t){var n=e.call(this)||this;return n.container=null,n.delegate=null,n.toDisposeOnClean=Ie.None,n.toDisposeOnSetContainer=Ie.None,n.view=dr(".context-view"),Ar(n.view),n.setContainer(t),n._register(De((function(){return n.setContainer(null)}))),n}return Pk(t,e),t.prototype.setContainer=function(e){var n=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),e){this.container=e,this.container.appendChild(this.view);var i=new ke;t.BUBBLE_UP_EVENTS.forEach((function(e){i.add(wo(n.container,e,(function(e){n.onDOMEvent(e,!1)})))})),t.BUBBLE_DOWN_EVENTS.forEach((function(e){i.add(wo(n.container,e,(function(e){n.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=i}},t.prototype.show=function(e){this.isVisible()&&this.hide(),oo(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",hr(this.view),this.toDisposeOnClean=e.render(this.view)||Ie.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()},t.prototype.layout=function(){this.isVisible()&&(!1!==this.delegate.canRelayout||s["c"]&&eo.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())},t.prototype.doLayout=function(){if(this.isVisible()){var e,t=this.delegate.getAnchor();if(er(t)){var n=Ho(t);e={top:n.top,left:n.left,width:n.width,height:n.height}}else e={top:t.y,left:t.x,width:t.width||1,height:t.height||2};var i,o=Vo(this.view),r=zo(this.view),s=this.delegate.anchorPosition||0,a=this.delegate.anchorAlignment||0,u={offset:e.top-window.pageYOffset,size:e.height,position:0===s?0:1};i=0===a?{offset:e.left,size:0,position:0}:{offset:e.left+e.width,size:0,position:1};var l=Rk(window.innerHeight,r,u)+window.pageYOffset;kk.intersects({start:l,end:l+r},{start:u.offset,end:u.offset+u.size})&&(i.size=e.width,1===a&&(i.offset=e.left));var c=Rk(window.innerWidth,o,i);fo(this.view,"top","bottom","left","right"),ho(this.view,0===s?"bottom":"top"),ho(this.view,0===a?"left":"right");var d=Ho(this.container);this.view.style.top=l-d.top+"px",this.view.style.left=c-d.left+"px",this.view.style.width="initial"}},t.prototype.hide=function(e){var t,n=this.delegate;this.delegate=null,(null===(t=n)||void 0===t?void 0:t.onHide)&&n.onHide(e),this.toDisposeOnClean.dispose(),Ar(this.view)},t.prototype.isVisible=function(){return!!this.delegate},t.prototype.onDOMEvent=function(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!jo(e.target,this.container)&&this.hide())},t.prototype.dispose=function(){this.hide(),e.prototype.dispose.call(this)},t.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],t.BUBBLE_DOWN_EVENTS=["click"],t}(Ie),Hk=Dn("layoutService"),Qk=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)}}(),Vk=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},Wk=function(e,t){return function(n,i){t(n,i,e)}},Kk=function(e){function t(t){var n=e.call(this)||this;return n.layoutService=t,n.contextView=n._register(new Uk(t.container)),n.layout(),n._register(t.onLayout((function(){return n.layout()}))),n}return Qk(t,e),t.prototype.setContainer=function(e){this.contextView.setContainer(e)},t.prototype.showContextView=function(e){this.contextView.show(e)},t.prototype.layout=function(){this.contextView.layout()},t.prototype.hideContextView=function(e){this.contextView.hide(e)},t=Vk([Wk(0,Hk)],t),t}(Ie),zk=Dn("dialogService");function jk(e){return{data:e,incoming:Object.create(null),outgoing:Object.create(null)}}var Gk,qk=function(){function e(e){this._hashFn=e,this._nodes=Object.create(null)}return e.prototype.roots=function(){var e=[];return FA(this._nodes,(function(t){Ca(t.value.outgoing)&&e.push(t.value)})),e},e.prototype.insertEdge=function(e,t){var n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);n.outgoing[this._hashFn(t)]=i,i.incoming[this._hashFn(e)]=n},e.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t],FA(this._nodes,(function(e){delete e.value.outgoing[t],delete e.value.incoming[t]}))},e.prototype.lookupOrInsertNode=function(e){var t=this._hashFn(e),n=this._nodes[t];return n||(n=jk(e),this._nodes[t]=n),n},e.prototype.isEmpty=function(){for(var e in this._nodes)return!1;return!0},e.prototype.toString=function(){var e=[];return FA(this._nodes,(function(t){e.push(t.key+", (incoming)["+Object.keys(t.value.incoming).join(", ")+"], (outgoing)["+Object.keys(t.value.outgoing).join(",")+"]")})),e.join("\n")},e}(),Yk=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)}}(),Xk=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},Jk=!1,Zk="function"===typeof Proxy,$k=function(e){function t(t){var n=e.call(this,"cyclic dependency between services")||this;return n.message=t.toString(),n}return Yk(t,e),t}(Error),eI=function(){function e(e,t,n){void 0===e&&(e=new Wx),void 0===t&&(t=!1),this._services=e,this._strict=t,this._parent=n,this._services.set(xn,this)}return e.prototype.createChild=function(t){return new e(t,this._strict,this)},e.prototype.invokeFunction=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=tI.traceInvocation(e),r=!1;try{var s={get:function(e,n){if(r)throw ye("service accessor is only valid during the invocation of its target method");var i=t._getOrCreateServiceInstance(e,o);if(!i&&n!==Nn)throw new Error("[invokeFunction] unknown service '"+e+"'");return i}};return e.apply(void 0,Xk([s],n))}finally{r=!0,o.stop()}},e.prototype.createInstance=function(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return e instanceof hL?(t=tI.traceCreation(e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(i),t)):(t=tI.traceCreation(e),n=this._createInstance(e,i,t)),t.stop(),n},e.prototype._createInstance=function(e,t,n){void 0===t&&(t=[]);for(var i=En.getServiceDependencies(e).sort((function(e,t){return e.index-t.index})),o=[],r=0,s=i;r<s.length;r++){var a=s[r],u=this._getOrCreateServiceInstance(a.id,n);if(!u&&this._strict&&!a.optional)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+a.id+".");o.push(u)}var l=i.length>0?i[0].index:t.length;if(t.length!==l){console.warn("[createInstance] First service dependency of "+e.name+" at position "+(l+1)+" conflicts with "+t.length+" static arguments");var c=l-t.length;t=c>0?t.concat(new Array(c)):t.slice(0,l)}return new(e.bind.apply(e,Xk([void 0],Xk(t,o))))},e.prototype._setServiceInstance=function(e,t){if(this._services.get(e)instanceof hL)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}},e.prototype._getServiceInstanceOrDescriptor=function(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t},e.prototype._getOrCreateServiceInstance=function(e,t){var n=this._getServiceInstanceOrDescriptor(e);return n instanceof hL?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)},e.prototype._createAndCacheServiceInstance=function(e,t,n){var i=new qk((function(e){return e.id.toString()})),o=0,r=[{id:e,desc:t,_trace:n}];while(r.length){var s=r.pop();if(i.lookupOrInsertNode(s),o++>150)throw new $k(i);for(var a=0,u=En.getServiceDependencies(s.desc.ctor);a<u.length;a++){var l=u[a],c=this._getServiceInstanceOrDescriptor(l.id);if(c||l.optional||console.warn("[createInstance] "+e+" depends on "+l.id+" which is NOT registered."),c instanceof hL){var d={id:l.id,desc:c,_trace:s._trace.branch(l.id,!0)};i.insertEdge(s,d),r.push(d)}}}while(1){var h=i.roots();if(0===h.length){if(!i.isEmpty())throw new $k(i);break}for(var A=0,p=h;A<p.length;A++){var f=p[A].data,g=this._createServiceInstanceWithOwner(f.id,f.desc.ctor,f.desc.staticArguments,f.desc.supportsDelayedInstantiation,f._trace);this._setServiceInstance(f.id,g),i.removeNode(f)}}return this._getServiceInstanceOrDescriptor(e)},e.prototype._createServiceInstanceWithOwner=function(e,t,n,i,o){if(void 0===n&&(n=[]),this._services.get(e)instanceof hL)return this._createServiceInstance(t,n,i,o);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,i,o);throw new Error("illegalState - creating UNKNOWN service instance "+t.name)},e.prototype._createServiceInstance=function(e,t,n,i){var o=this;if(void 0===t&&(t=[]),n&&Zk){var r=new Ei((function(){return o._createInstance(e,t,i)}));return new Proxy(Object.create(null),{get:function(e,t){if(t in e)return e[t];var n=r.getValue(),i=n[t];return"function"!==typeof i||(i=i.bind(n),e[t]=i),i},set:function(e,t,n){return r.getValue()[t]=n,!0}})}return this._createInstance(e,t,i)},e}(),tI=function(){function e(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}return e.traceInvocation=function(t){return Jk?new e(1,t.name||t.toString().substring(0,42).replace(/\n/g,"")):e._None},e.traceCreation=function(t){return Jk?new e(0,t.name):e._None},e.prototype.branch=function(t,n){var i=new e(2,t.toString());return this._dep.push([t,n,i]),i},e.prototype.stop=function(){var t=Date.now()-this._start;e._totals+=t;var n=!1;function i(e,t){for(var o=[],r=new Array(e+1).join("\t"),s=0,a=t._dep;s<a.length;s++){var u=a[s],l=u[0],c=u[1],d=u[2];if(c&&d){n=!0,o.push(r+"CREATES -> "+l);var h=i(e+1,d);h&&o.push(h)}else o.push(r+"uses -> "+l)}return o.join("\n")}var o=[(0===this.type?"CREATE":"CALL")+" "+this.name,""+i(1,this),"DONE, took "+t.toFixed(2)+"ms (grand total "+e._totals.toFixed(2)+"ms)"];(t>2||n)&&console.log(o.join("\n"))},e._None=new(function(e){function t(){return e.call(this,-1,null)||this}return Yk(t,e),t.prototype.stop=function(){},t.prototype.branch=function(){return this},t}(e)),e._totals=0,e}(),nI="label",iI=Dn(nI),oI=(n("e2b8"),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(e){e["TREE"]="tree",e["FORM"]="form"})(Gk||(Gk={}));var rI=function(e){function t(t,n){return e.call(this,"ListError ["+t+"] "+n)||this}return oI(t,e),t}(Error);function sI(e,t){for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i];if(!(e.start>=r.range.end)){if(e.end<r.range.start)break;var s=kk.intersect(e,r.range);kk.isEmpty(s)||n.push({range:s,size:r.size})}}return n}function aI(e,t){var n=e.start,i=e.end;return{start:n+t,end:i+t}}function uI(e){for(var t=[],n=null,i=0,o=e;i<o.length;i++){var r=o[i],s=r.range.start,a=r.range.end,u=r.size;n&&u===n.size?n.range.end=a:(n={range:{start:s,end:a},size:u},t.push(n))}return t}function lI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return uI(e.reduce((function(e,t){return e.concat(t)}),[]))}var cI=function(){function e(){this.groups=[],this._size=0}return e.prototype.splice=function(e,t,n){void 0===n&&(n=[]);var i=n.length-t,o=sI({start:0,end:e},this.groups),r=sI({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((function(e){return{range:aI(e.range,i),size:e.size}})),s=n.map((function(t,n){return{range:{start:e+n,end:e+n+1},size:t.size}}));this.groups=lI(o,s,r),this._size=this.groups.reduce((function(e,t){return e+t.size*(t.range.end-t.range.start)}),0)},Object.defineProperty(e.prototype,"count",{get:function(){var e=this.groups.length;return e?this.groups[e-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.indexAt=function(e){if(e<0)return-1;for(var t=0,n=0,i=0,o=this.groups;i<o.length;i++){var r=o[i],s=r.range.end-r.range.start,a=n+s*r.size;if(e<a)return t+Math.floor((e-n)/r.size);t+=s,n=a}return t},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.count)},e.prototype.positionAt=function(e){if(e<0)return-1;for(var t=0,n=0,i=0,o=this.groups;i<o.length;i++){var r=o[i],s=r.range.end-r.range.start,a=n+s;if(e<a)return t+(e-n)*r.size;t+=s*r.size,n=a}return-1},e}();function dI(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(t){}}var hI=function(){function e(e){this.renderers=e,this.cache=new Map}return e.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var n=dr(".monaco-list-row"),i=this.getRenderer(e),o=i.renderTemplate(n);t={domNode:n,templateId:e,templateData:o}}return t},e.prototype.release=function(e){e&&this.releaseRow(e)},e.prototype.releaseRow=function(e){var t=e.domNode,n=e.templateId;t&&(po(t,"scrolling"),dI(t));var i=this.getTemplateCache(n);i.push(e)},e.prototype.getTemplateCache=function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t},e.prototype.dispose=function(){var e=this;this.cache.forEach((function(t,n){for(var i=0,o=t;i<o.length;i++){var r=o[i],s=e.getRenderer(n);s.disposeTemplate(r.templateData),r.domNode=null,r.templateData=null}})),this.cache.clear()},e.prototype.getRenderer=function(e){var t=this.renderers.get(e);if(!t)throw new Error("No renderer found for "+e);return t},e}(),AI=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},pI=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},fI={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(e){return[e]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},gI=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}(),mI=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}(),vI=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){var t;if(e.types&&(t=this.types).splice.apply(t,pI([0,this.types.length],e.types)),e.files){this.files.splice(0,this.files.length);for(var n=0;n<e.files.length;n++){var i=e.files.item(n);i&&(i.size||i.type)&&this.files.push(i)}}},e.prototype.getData=function(){return{types:this.types,files:this.files}},e}();function _I(e,t){return Array.isArray(e)&&Array.isArray(t)?Di(e,t):e===t}var yI=function(){function e(t,n,i,o){var r=this;if(void 0===o&&(o=fI),this.virtualDelegate=n,this.domId="list_id_"+ ++e.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new mi(50),this.splicing=!1,this.dragOverAnimationStopDisposable=Ie.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=Ie.None,this.onDragLeaveTimeout=Ie.None,this.disposables=new ke,this._onDidChangeContentHeight=new Ye,o.horizontalScrolling&&o.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new cI;for(var s=0,a=i;s<a.length;s++){var u=a[s];this.renderers.set(u.templateId,u)}this.cache=this.disposables.add(new hI(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",ho(this.domNode,this.domId),this.domNode.tabIndex=0,go(this.domNode,"mouse-support","boolean"!==typeof o.mouseSupport||o.mouseSupport),this.horizontalScrolling=pu(o,(function(e){return e.horizontalScrolling}),fI.horizontalScrolling),go(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight="undefined"===typeof o.additionalScrollHeight?0:o.additionalScrollHeight,this.ariaProvider=o.ariaProvider||{getSetSize:function(e,t,n){return n},getPosInSet:function(e,t){return t+1}},this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.disposables.add(Tg.addTarget(this.rowsContainer)),this.scrollableElement=this.disposables.add(new PB(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:pu(o,(function(e){return e.verticalScrollMode}),fI.verticalScrollMode),useShadows:pu(o,(function(e){return e.useShadows}),fI.useShadows)})),this.domNode.appendChild(this.scrollableElement.getDomNode()),t.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Yn(this.rowsContainer,Fg.Change)(this.onTouchChange,this,this.disposables),Yn(this.scrollableElement.getDomNode(),"scroll")((function(e){return e.target.scrollTop=0}),null,this.disposables),Ue.map(Yn(this.domNode,"dragover"),(function(e){return r.toDragEvent(e)}))(this.onDragOver,this,this.disposables),Ue.map(Yn(this.domNode,"drop"),(function(e){return r.toDragEvent(e)}))(this.onDrop,this,this.disposables),Yn(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Yn(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=pu(o,(function(e){return e.setRowLineHeight}),fI.setRowLineHeight),this.supportDynamicHeights=pu(o,(function(e){return e.supportDynamicHeights}),fI.supportDynamicHeights),this.dnd=pu(o,(function(e){return e.dnd}),fI.dnd),this.layout()}return Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){if(void 0===n&&(n=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,n)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},e.prototype._splice=function(e,t,n){var i,o=this;void 0===n&&(n=[]);for(var r=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:e,end:e+t},a=kk.intersect(r,s),u=a.start;u<a.end;u++)this.removeItemFromDOM(u);var l,c={start:e+t,end:this.items.length},d=kk.intersect(c,r),h=kk.relativeComplement(c,r),A=n.map((function(e){return{id:String(o.itemId++),element:e,templateId:o.virtualDelegate.getTemplateId(e),size:o.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!o.virtualDelegate.hasDynamicHeight&&o.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:Ie.None}}));0===e&&t>=this.items.length?(this.rangeMap=new cI,this.rangeMap.splice(0,0,A),this.items=A,l=[]):(this.rangeMap.splice(e,t,A),l=(i=this.items).splice.apply(i,pI([e,t],A)));var p=n.length-t,f=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),g=aI(d,p),m=kk.intersect(f,g);for(u=m.start;u<m.end;u++)this.updateItemInDOM(this.items[u],u);for(var v=kk.relativeComplement(g,f),_=0,y=v;_<y.length;_++){var w=y[_];for(u=w.start;u<w.end;u++)this.removeItemFromDOM(u)}for(var b=h.map((function(e){return aI(e,p)})),C={start:e,end:e+n.length},S=pI([C],b).map((function(e){return kk.intersect(f,e)})),B=this.getNextToLastElement(S),E=0,x=S;E<x.length;E++)for(w=x[E],u=w.start;u<w.end;u++)this.insertItemInDOM(u,B);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),l.map((function(e){return e.element}))},e.prototype.eventuallyUpdateScrollDimensions=function(){var e=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=Lo((function(){e.scrollableElement.setScrollDimensions({scrollHeight:e.scrollHeight}),e.updateScrollWidth(),e.scrollableElementUpdateDisposable=null})))},e.prototype.eventuallyUpdateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.scrollableElementWidthDelayer.trigger((function(){return e.updateScrollWidth()}))},e.prototype.updateScrollWidth=function(){if(this.horizontalScrolling){0===this.items.length&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var e=0,t=0,n=this.items;t<n.length;t++){var i=n[t];"undefined"!==typeof i.width&&(e=Math.max(e,i.width))}this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e+10})}},e.prototype.rerender=function(){if(this.supportDynamicHeights){for(var e=0,t=this.items;e<t.length;e++){var n=t[e];n.lastDynamicHeightWidth=void 0}this._rerender(this.lastRenderTop,this.lastRenderHeight)}},Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderHeight",{get:function(){var e=this.scrollableElement.getScrollDimensions();return e.height},enumerable:!0,configurable:!0}),e.prototype.element=function(e){return this.items[e].element},e.prototype.domElement=function(e){var t=this.items[e].row;return t&&t.domNode},e.prototype.elementHeight=function(e){return this.items[e].size},e.prototype.elementTop=function(e){return this.rangeMap.positionAt(e)},e.prototype.indexAt=function(e){return this.rangeMap.indexAt(e)},e.prototype.indexAfter=function(e){return this.rangeMap.indexAfter(e)},e.prototype.layout=function(e,t){var n={height:"number"===typeof e?e:Ko(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,n.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(n),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:Wo(this.domNode)}))},e.prototype.render=function(e,t,n,i){for(var o=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),r=this.getRenderRange(e,t),s=kk.relativeComplement(r,o),a=kk.relativeComplement(o,r),u=this.getNextToLastElement(s),l=0,c=s;l<c.length;l++)for(var d=c[l],h=d.start;h<d.end;h++)this.insertItemInDOM(h,u);for(var A=0,p=a;A<p.length;A++)for(d=p[A],h=d.start;h<d.end;h++)this.removeItemFromDOM(h);this.rowsContainer.style.left="-"+n+"px",this.rowsContainer.style.top="-"+e+"px",this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(i,this.renderWidth)+"px"),this.lastRenderTop=e,this.lastRenderHeight=t},e.prototype.insertItemInDOM=function(e,t){var n=this,i=this.items[e];if(!i.row){i.row=this.cache.alloc(i.templateId);var o=this.ariaProvider.getRole?this.ariaProvider.getRole(i.element):"treeitem";i.row.domNode.setAttribute("role",o);var r=this.ariaProvider.isChecked?this.ariaProvider.isChecked(i.element):void 0;"undefined"!==typeof r&&i.row.domNode.setAttribute("aria-checked",String(r))}i.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(i.row.domNode,t):this.rowsContainer.appendChild(i.row.domNode)),this.updateItemInDOM(i,e);var s=this.renderers.get(i.templateId);if(!s)throw new Error("No renderer found for template id "+i.templateId);s&&s.renderElement(i.element,e,i.row.templateData,i.size);var a=this.dnd.getDragURI(i.element);if(i.dragStartDisposable.dispose(),i.row.domNode.draggable=!!a,a){var u=Yn(i.row.domNode,"dragstart");i.dragStartDisposable=u((function(e){return n.onDragStart(i.element,a,e)}))}this.horizontalScrolling&&(this.measureItemWidth(i),this.eventuallyUpdateScrollWidth())},e.prototype.measureItemWidth=function(e){if(e.row&&e.row.domNode){e.row.domNode.style.width=Qn?"-moz-fit-content":"fit-content",e.width=Wo(e.row.domNode);var t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}},e.prototype.updateItemInDOM=function(e,t){e.row.domNode.style.top=this.elementTop(t)+"px",e.row.domNode.style.height=e.size+"px",this.setRowLineHeight&&(e.row.domNode.style.lineHeight=e.size+"px"),e.row.domNode.setAttribute("data-index",""+t),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("aria-setsize",String(this.ariaProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),go(e.row.domNode,"drop-target",e.dropTarget)},e.prototype.removeItemFromDOM=function(e){var t=this.items[e];t.dragStartDisposable.dispose();var n=this.renderers.get(t.templateId);n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},e.prototype.getScrollTop=function(){var e=this.scrollableElement.getScrollPosition();return e.scrollTop},e.prototype.setScrollTop=function(e){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e})},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(e){this.setScrollTop(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){var e=this;return Ue.map(Yn(this.domNode,"click"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){var e=this;return Ue.map(Yn(this.domNode,"dblclick"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMiddleClick",{get:function(){var e=this;return Ue.filter(Ue.map(Yn(this.domNode,"auxclick"),(function(t){return e.toMouseEvent(t)})),(function(e){return 1===e.browserEvent.button}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){var e=this;return Ue.map(Yn(this.domNode,"mousedown"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return Ue.map(Yn(this.domNode,"contextmenu"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){var e=this;return Ue.map(Yn(this.domNode,"touchstart"),(function(t){return e.toTouchEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){var e=this;return Ue.map(Yn(this.rowsContainer,Fg.Tap),(function(t){return e.toGestureEvent(t)}))},enumerable:!0,configurable:!0}),e.prototype.toMouseEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.toTouchEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.toGestureEvent=function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.toDragEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.onScroll=function(e){try{this.render(e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height)}catch(t){throw console.error("Got bad scroll event:",e),t}},e.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},e.prototype.onDragStart=function(e,t,n){if(n.dataTransfer){var i=this.dnd.getDragElements(e);if(n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(BL.RESOURCES,JSON.stringify([t])),n.dataTransfer.setDragImage){var o=void 0;this.dnd.getDragLabel&&(o=this.dnd.getDragLabel(i,n)),"undefined"===typeof o&&(o=String(i.length));var r=dr(".monaco-drag-image");r.textContent=o,document.body.appendChild(r),n.dataTransfer.setDragImage(r,-10,-10),setTimeout((function(){return document.body.removeChild(r)}),0)}this.currentDragData=new gI(i),xL.CurrentDragAndDropData=new mI(i),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,n)}},e.prototype.onDragOver=function(e){var t=this;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),xL.CurrentDragAndDropData&&"vscode-ui"===xL.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(xL.CurrentDragAndDropData)this.currentDragData=xL.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new vI}var n,i=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"===typeof i?i:i.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;if(e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof i&&0===i.effect?"copy":"move",n="boolean"!==typeof i&&i.feedback?i.feedback:"undefined"===typeof e.index?[-1]:[e.index],n=Ui(n).filter((function(e){return e>=-1&&e<t.length})).sort(),n=-1===n[0]?[-1]:n,_I(this.currentDragFeedback,n))return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),-1===n[0])ho(this.domNode,"drop-target"),ho(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=De((function(){po(t.domNode,"drop-target"),po(t.rowsContainer,"drop-target")}));else{for(var o=0,r=n;o<r.length;o++){var s=r[o],a=this.items[s];a.dropTarget=!0,a.row&&a.row.domNode&&ho(a.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=De((function(){for(var e=0,i=n;e<i.length;e++){var o=i[e],r=t.items[o];r.dropTarget=!1,r.row&&r.row.domNode&&po(r.row.domNode,"drop-target")}}))}return!0},e.prototype.onDragLeave=function(){var e=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=_i((function(){return e.clearDragOverFeedback()}),100)},e.prototype.onDrop=function(e){if(this.canDrop){var t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,xL.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}},e.prototype.onDragEnd=function(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,xL.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},e.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=Ie.None},e.prototype.setupDragAndDropScrollTopAnimation=function(e){var t=this;if(!this.dragOverAnimationDisposable){var n=Uo(this.domNode).top;this.dragOverAnimationDisposable=_r(this.animateDragAndDropScrollTop.bind(this,n))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=_i((function(){t.dragOverAnimationDisposable&&(t.dragOverAnimationDisposable.dispose(),t.dragOverAnimationDisposable=void 0)}),1e3),this.dragOverMouseY=e.pageY},e.prototype.animateDragAndDropScrollTop=function(e){if(void 0!==this.dragOverMouseY){var t=this.dragOverMouseY-e,n=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>n&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-n))))}},e.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},e.prototype.getItemIndexFromEventTarget=function(e){var t=e;while(t instanceof HTMLElement&&t!==this.rowsContainer){var n=t.getAttribute("data-index");if(n){var i=Number(n);if(!isNaN(i))return i}t=t.parentElement}},e.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}},e.prototype._rerender=function(e,t){var n,i,o=this.getRenderRange(e,t);e===this.elementTop(o.start)?(n=o.start,i=0):o.end-o.start>1&&(n=o.start+1,i=this.elementTop(n)-e);var r=0;while(1){for(var s=this.getRenderRange(e,t),a=!1,u=s.start;u<s.end;u++){var l=this.probeDynamicHeight(u);0!==l&&this.rangeMap.splice(u,1,[this.items[u]]),r+=l,a=a||0!==l}if(!a){0!==r&&this.eventuallyUpdateScrollDimensions();for(var c=kk.relativeComplement(o,s),d=0,h=c;d<h.length;d++){var A=h[d];for(u=A.start;u<A.end;u++)this.items[u].row&&this.removeItemFromDOM(u)}for(var p=kk.relativeComplement(s,o),f=0,g=p;f<g.length;f++)for(A=g[f],u=A.start;u<A.end;u++){var m=u+1,v=m<this.items.length?this.items[m].row:null,_=v?v.domNode:null;this.insertItemInDOM(u,_)}for(u=s.start;u<s.end;u++)this.items[u].row&&this.updateItemInDOM(this.items[u],u);return"number"===typeof n&&(this.scrollTop=this.elementTop(n)-i),void this._onDidChangeContentHeight.fire(this.contentHeight)}}},e.prototype.probeDynamicHeight=function(e){var t=this.items[e];if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;var n=t.size,i=this.cache.alloc(t.templateId);i.domNode.style.height="",this.rowsContainer.appendChild(i.domNode);var o=this.renderers.get(t.templateId);return o&&(o.renderElement(t.element,e,i.templateData,void 0),o.disposeElement&&o.disposeElement(t.element,e,i.templateData,void 0)),t.size=i.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(i.domNode),this.cache.release(i),t.size-n},e.prototype.getNextToLastElement=function(e){var t=e[e.length-1];if(!t)return null;var n=this.items[t.end];return n&&n.row?n.row.domNode:null},e.prototype.getElementDomId=function(e){return this.domId+"_"+e},e.prototype.dispose=function(){if(this.items){for(var e=0,t=this.items;e<t.length;e++){var n=t[e];if(n.row){var i=this.renderers.get(n.row.templateId);i&&i.disposeTemplate(n.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),xe(this.disposables)},e.InstanceCount=0,AI([Ig],e.prototype,"onMouseClick",null),AI([Ig],e.prototype,"onMouseDblClick",null),AI([Ig],e.prototype,"onMouseMiddleClick",null),AI([Ig],e.prototype,"onMouseDown",null),AI([Ig],e.prototype,"onContextMenu",null),AI([Ig],e.prototype,"onTouchStart",null),AI([Ig],e.prototype,"onTap",null),e}(),wI=function(){function e(e){this.spliceables=e}return e.prototype.splice=function(e,t,n){this.spliceables.forEach((function(i){return i.splice(e,t,n)}))},e}();function bI(e,t,n){return Math.min(Math.max(e,t),n)}function CI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){for(var i=0,o=e.length;i<o;i++){var r=e[i](t,n);if(r)return r}return null}}var SI=BI.bind(void 0,!0);function BI(e,t,n){return!n||n.length<t.length?null:(i=e?Yr(n,t):0===n.indexOf(t),i?t.length>0?[{start:0,end:t.length}]:[]:null);var i}function EI(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}function xI(e,t){return LI(e.toLowerCase(),t.toLowerCase(),0,0)}function LI(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]===t[i]){var o=null;return(o=LI(e,t,n+1,i+1))?OI({start:i,end:i+1},o):null}return LI(e,t,n,i+1)}function DI(e){return 97<=e&&e<=122}function NI(e){return 65<=e&&e<=90}function kI(e){return 48<=e&&e<=57}function II(e){return 32===e||9===e||10===e||13===e}var FI=new Set;function MI(e){return DI(e)||NI(e)||kI(e)}function OI(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function TI(e,t){for(var n=t;n<e.length;n++){var i=e.charCodeAt(n);if(NI(i)||kI(i)||n>0&&!MI(e.charCodeAt(n-1)))return n}return e.length}function PI(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;var o=null,r=i+1;o=PI(e,t,n+1,i+1);while(!o&&(r=TI(t,r))<t.length)o=PI(e,t,n+1,r),r++;return null===o?null:OI({start:i,end:i+1},o)}function RI(e){for(var t=0,n=0,i=0,o=0,r=0,s=0;s<e.length;s++)r=e.charCodeAt(s),NI(r)&&t++,DI(r)&&n++,MI(r)&&i++,kI(r)&&o++;var a=t/e.length,u=n/e.length,l=i/e.length,c=o/e.length;return{upperPercent:a,lowerPercent:u,alphaPercent:l,numericPercent:c}}function UI(e){var t=e.upperPercent,n=e.lowerPercent;return 0===n&&t>.6}function HI(e){var t=e.upperPercent,n=e.lowerPercent,i=e.alphaPercent,o=e.numericPercent;return n>.2&&t<.8&&i>.6&&o<.2}function QI(e){for(var t=0,n=0,i=0,o=0,r=0;r<e.length;r++)i=e.charCodeAt(r),NI(i)&&t++,DI(i)&&n++,II(i)&&o++;return 0!==t&&0!==n||0!==o?t<=5:e.length<=30}function VI(e,t){if(!t)return null;if(t=t.trim(),0===t.length)return null;if(!QI(e))return null;if(t.length>60)return null;var n=RI(t);if(!HI(n)){if(!UI(n))return null;t=t.toLowerCase()}var i=null,o=0;e=e.toLowerCase();while(o<t.length&&null===(i=PI(e,t,0,o)))o=TI(t,o+1);return i}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach((function(e){return FI.add(e.charCodeAt(0))}));var WI=CI(SI,VI,EI),KI=CI(SI,VI,xI),zI=new Va(1e4);function jI(e,t,n){if(void 0===n&&(n=!1),"string"!==typeof e||"string"!==typeof t)return null;var i=zI.get(e);i||(i=new RegExp(Fr(e),"i"),zI.set(e,i));var o=i.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:n?KI(e,t):WI(e,t)}function GI(e,t,n,i,o,r){var s=uF(e,t,0,i,o,0,!0);if(s)return s;for(var a=0,u=0,l=r,c=0;c<t.length&&c<YI;++c){var d=o.indexOf(t.charAt(c),l);if(d>=0)u+=1,a+=Math.pow(2,d),l=d+1;else if(0!==a)break}return[u,a,r]}function qI(e){if("undefined"===typeof e)return[];for(var t=e[1].toString(2),n=e[2],i=[],o=n;o<YI;o++)if("1"===t[t.length-(o+1)]){var r=i[i.length-1];r&&r.end===o?r.end=o+1:i.push({start:o,end:o+1})}return i}var YI=128;function XI(){for(var e=[],t=[0],n=1;n<=YI;n++)t.push(-n);for(n=0;n<=YI;n++){var i=t.slice(0);i[0]=-n,e.push(i)}return e}var JI,ZI=XI(),$I=XI(),eF=XI(),tF=!1;function nF(e,t,n,i,o){function r(e,t,n){void 0===n&&(n=" ");while(e.length<t)e=n+e;return e}for(var s=" | |"+i.split("").map((function(e){return r(e,3)})).join("|")+"\n",a=0;a<=n;a++)s+=0===a?" |":t[a-1]+"|",s+=e[a].slice(0,o+1).map((function(e){return r(e.toString(),3)})).join("|")+"\n";return s}function iF(e,t,n,i){e=e.substr(t),n=n.substr(i),console.log(nF(ZI,e,e.length,n,n.length)),console.log(nF(eF,e,e.length,n,n.length)),console.log(nF($I,e,e.length,n,n.length))}function oF(e,t){if(t<0||t>=e.length)return!1;var n=e.charCodeAt(t);switch(n){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function rF(e,t){if(t<0||t>=e.length)return!1;var n=e.charCodeAt(t);switch(n){case 32:case 9:return!0;default:return!1}}function sF(e,t,n){return t[e]!==n[e]}function aF(e,t,n,i,o,r){while(t<n&&o<r)e[t]===i[o]&&(t+=1),o+=1;return t===n}function uF(e,t,n,i,o,r,s){var a=e.length>YI?YI:e.length,u=i.length>YI?YI:i.length;if(!(n>=a||r>=u||a-n>u-r)&&aF(t,n,a,o,r,u)){var l=1,c=1,d=n,h=r;for(l=1,d=n;d<a;l++,d++)for(c=1,h=r;h<u;c++,h++){var A=lF(e,t,d,n,i,o,h);$I[l][c]=A;var p=ZI[l-1][c-1]+(A>1?1:A),f=ZI[l-1][c]+-1,g=ZI[l][c-1]+-1;g>=f?g>p?(ZI[l][c]=g,eF[l][c]=4):g===p?(ZI[l][c]=g,eF[l][c]=6):(ZI[l][c]=p,eF[l][c]=2):f>p?(ZI[l][c]=f,eF[l][c]=1):f===p?(ZI[l][c]=f,eF[l][c]=3):(ZI[l][c]=p,eF[l][c]=2)}if(tF&&iF(e,n,i,r),cF=0,hF=-100,AF=r,pF=s,fF(l-1,c-1,a===u?1:0,0,!1),0!==cF)return[hF,dF,r]}}function lF(e,t,n,i,o,r,s){return t[n]!==r[s]?-1:s===n-i?e[n]===o[s]?7:5:!sF(s,o,r)||0!==s&&sF(s-1,o,r)?!oF(r,s)||0!==s&&oF(r,s-1)?oF(r,s-1)||rF(r,s-1)?5:1:5:e[n]===o[s]?7:5}(function(e){function t(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]}e.Default=Object.freeze([-100,0,0]),e.isDefault=t})(JI||(JI={}));var cF=0,dF=0,hF=0,AF=0,pF=!1;function fF(e,t,n,i,o){if(!(cF>=10||n<-25)){var r=0;while(e>0&&t>0){var s=$I[e][t],a=eF[e][t];if(4===a)t-=1,o?n-=5:0!==i&&(n-=1),o=!1,r=0;else{if(!(2&a))return;if(4&a&&fF(e,t-1,0!==i?n-1:n,i,o),n+=s,e-=1,t-=1,o=!0,i+=Math.pow(2,t+AF),1===s){if(r+=1,0===e&&!pF)return}else n+=1+r*(s-1),r=0}}n-=t>=3?9:3*t,cF+=1,n>hF&&(hF=n,dF=i)}}function gF(e,t,n,i,o,r,s){return mF(e,t,n,i,o,r,!0,s)}function mF(e,t,n,i,o,r,s,a){var u=uF(e,t,n,i,o,r,a);if(u&&!s)return u;if(e.length>=3)for(var l=Math.min(7,e.length-1),c=n+1;c<l;c++){var d=vF(e,c);if(d){var h=uF(d,d.toLowerCase(),n,i,o,r,a);h&&(h[0]-=3,(!u||h[0]>u[0])&&(u=h))}}return u}function vF(e,t){if(!(t+1>=e.length)){var n=e[t],i=e[t+1];if(n!==i)return e.slice(0,t)+i+n+e.slice(t+2)}}var _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)}}(),yF=function(){return yF=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yF.apply(this,arguments)},wF=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},bF=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},CF=function(){function e(e){this.trait=e,this.renderedElements=[]}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return e},e.prototype.renderElement=function(e,t,n){var i=Vi(this.renderedElements,(function(e){return e.templateData===n}));if(i>=0){var o=this.renderedElements[i];this.trait.unrender(n),o.index=t}else{o={index:t,templateData:n};this.renderedElements.push(o)}this.trait.renderIndex(t,n)},e.prototype.splice=function(e,t,n){for(var i=[],o=0,r=this.renderedElements;o<r.length;o++){var s=r[o];s.index<e?i.push(s):s.index>=e+t&&i.push({index:s.index+n-t,templateData:s.templateData})}this.renderedElements=i},e.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t<n.length;t++){var i=n[t],o=i.index,r=i.templateData;e.indexOf(o)>-1&&this.trait.renderIndex(o,r)}},e.prototype.disposeTemplate=function(e){var t=Vi(this.renderedElements,(function(t){return t.templateData===e}));t<0||this.renderedElements.splice(t,1)},e}(),SF=function(){function e(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new Ye,this.onChange=this._onChange.event}return Object.defineProperty(e.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return new CF(this)},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=n.length-t,o=e+t,r=bF(this.sortedIndexes.filter((function(t){return t<e})),n.map((function(t,n){return t?n+e:-1})).filter((function(e){return-1!==e})),this.sortedIndexes.filter((function(e){return e>=o})).map((function(e){return e+i})));this.renderer.splice(e,t,n.length),this._set(r,r)},e.prototype.renderIndex=function(e,t){go(t,this._trait,this.contains(e))},e.prototype.unrender=function(e){po(e,this._trait)},e.prototype.set=function(e,t){return this._set(e,bF(e).sort(zF),t)},e.prototype._set=function(e,t,n){var i=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;var r=WF(o,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:n}),i},e.prototype.get=function(){return this.indexes},e.prototype.contains=function(e){return Ni(this.sortedIndexes,e,zF)>=0},e.prototype.dispose=function(){xe(this._onChange)},wF([Ig],e.prototype,"renderer",null),e}(),BF=function(e){function t(){return e.call(this,"focused")||this}return _F(t,e),t.prototype.renderIndex=function(t,n){e.prototype.renderIndex.call(this,t,n),this.contains(t)?n.setAttribute("aria-selected","true"):n.removeAttribute("aria-selected")},t}(SF),EF=function(){function e(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}return e.prototype.splice=function(e,t,n){var i=this;if(!this.identityProvider)return this.trait.splice(e,t,n.map((function(){return!1})));var o=this.trait.get().map((function(e){return i.identityProvider.getId(i.view.element(e)).toString()})),r=n.map((function(e){return o.indexOf(i.identityProvider.getId(e).toString())>-1}));this.trait.splice(e,t,r)},e}();function xF(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var LF,DF=function(){function e(e,t,n){this.list=e,this.view=t,this.disposables=new ke;var i=!1!==n.multipleSelectionSupport;this.openController=n.openController||PF;var o=Ue.chain(Yn(t.domNode,"keydown")).filter((function(e){return!xF(e.target)})).map((function(e){return new oi(e)}));o.filter((function(e){return 3===e.keyCode})).on(this.onEnter,this,this.disposables),o.filter((function(e){return 16===e.keyCode})).on(this.onUpArrow,this,this.disposables),o.filter((function(e){return 18===e.keyCode})).on(this.onDownArrow,this,this.disposables),o.filter((function(e){return 11===e.keyCode})).on(this.onPageUpArrow,this,this.disposables),o.filter((function(e){return 12===e.keyCode})).on(this.onPageDownArrow,this,this.disposables),o.filter((function(e){return 9===e.keyCode})).on(this.onEscape,this,this.disposables),i&&o.filter((function(e){return(s["e"]?e.metaKey:e.ctrlKey)&&31===e.keyCode})).on(this.onCtrlA,this,this.disposables)}return e.prototype.onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open(this.list.getFocus(),e.browserEvent)},e.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(ji(this.list.length),e.browserEvent),this.view.domNode.focus()},e.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus()},e.prototype.dispose=function(){this.disposables.dispose()},e}();(function(e){e[e["Idle"]=0]="Idle",e[e["Typing"]=1]="Typing"})(LF||(LF={}));var NF=new(function(){function e(){}return e.prototype.mightProducePrintableCharacter=function(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=93&&e.keyCode<=102||e.keyCode>=80&&e.keyCode<=90)},e}()),kF=function(){function e(e,t,n,i){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.delegate=i,this.enabled=!1,this.state=LF.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new ke,this.disposables=new ke,this.updateOptions(e.options)}return e.prototype.updateOptions=function(e){var t="undefined"===typeof e.enableKeyboardNavigation||!!e.enableKeyboardNavigation;t?this.enable():this.disable(),"undefined"!==typeof e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)},e.prototype.enable=function(){var e=this;if(!this.enabled){var t=Ue.chain(Yn(this.view.domNode,"keydown")).filter((function(e){return!xF(e.target)})).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).map((function(e){return new oi(e)})).filter((function(t){return e.delegate.mightProducePrintableCharacter(t)})).forEach((function(e){e.stopPropagation(),e.preventDefault()})).map((function(e){return e.browserEvent.key})).event,n=Ue.debounce(t,(function(){return null}),800),i=Ue.reduce(Ue.any(t,n),(function(e,t){return null===t?null:(e||"")+t}));i(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}},e.prototype.disable=function(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)},e.prototype.onInput=function(e){if(!e)return this.state=LF.Idle,void(this.triggered=!1);var t=this.list.getFocus(),n=t.length>0?t[0]:0,i=this.state===LF.Idle?1:0;this.state=LF.Typing;for(var o=0;o<this.list.length;o++){var r=(n+o+i)%this.list.length,s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(r)),a=s&&s.toString();if("undefined"===typeof a||SI(e,a))return this.list.setFocus([r]),void this.list.reveal(r)}},e.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},e}(),IF=function(){function e(e,t){this.list=e,this.view=t,this.disposables=new ke;var n=Ue.chain(Yn(t.domNode,"keydown")).filter((function(e){return!xF(e.target)})).map((function(e){return new oi(e)}));n.filter((function(e){return 2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey})).on(this.onTab,this,this.disposables)}return e.prototype.onTab=function(e){if(e.target===this.view.domNode){var t=this.list.getFocus();if(0!==t.length){var n=this.view.domElement(t[0]);if(n){var i=n.querySelector("[tabIndex]");if(i&&i instanceof HTMLElement&&-1!==i.tabIndex){var o=window.getComputedStyle(i);"hidden"!==o.visibility&&"none"!==o.display&&(e.preventDefault(),e.stopPropagation(),i.focus())}}}}},e.prototype.dispose=function(){this.disposables.dispose()},e}();function FF(e){return s["e"]?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function MF(e){return e.browserEvent.shiftKey}function OF(e){return e instanceof MouseEvent&&2===e.button}var TF={isSelectionSingleChangeEvent:FF,isSelectionRangeChangeEvent:MF},PF={shouldOpen:function(e){return!(e instanceof MouseEvent)||!OF(e)}},RF=function(){function e(e){this.list=e,this.disposables=new ke,this.multipleSelectionSupport=!(!1===e.options.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=e.options.multipleSelectionController||TF),this.openController=e.options.openController||PF,this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(Tg.addTarget(e.getHTMLElement()))),e.onMouseClick(this.onPointer,this,this.disposables),e.onMouseMiddleClick(this.onPointer,this,this.disposables),e.onTap(this.onPointer,this,this.disposables)}return e.prototype.isSelectionSingleChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):s["e"]?e.browserEvent.metaKey:e.browserEvent.ctrlKey},e.prototype.isSelectionRangeChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey},e.prototype.isSelectionChangeEvent=function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)},e.prototype.onMouseDown=function(e){document.activeElement!==e.browserEvent.target&&this.list.domFocus()},e.prototype.onContextMenu=function(e){var t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)},e.prototype.onPointer=function(e){if(this.mouseSupport&&!xF(e.browserEvent.target)){var t=this.list.getFocus()[0],n=this.list.getSelection();t=void 0===t?n[0]:t;var i=e.index;if("undefined"===typeof i)return this.list.setFocus([],e.browserEvent),void this.list.setSelection([],e.browserEvent);if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e))return this.changeSelection(e,t);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return this.changeSelection(e,t);this.list.setFocus([i],e.browserEvent),OF(e.browserEvent)||(this.list.setSelection([i],e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open([i],e.browserEvent))}},e.prototype.onDoubleClick=function(e){if(!xF(e.browserEvent.target)&&(!this.multipleSelectionSupport||!this.isSelectionChangeEvent(e))){var t=this.list.getFocus();this.list.setSelection(t,e.browserEvent),this.list.pin(t)}},e.prototype.changeSelection=function(e,t){var n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){var i=Math.min(t,n),o=Math.max(t,n),r=ji(i,o+1),s=this.list.getSelection(),a=VF(WF(s,[t]),t);if(0===a.length)return;var u=WF(r,KF(s,a));this.list.setSelection(u,e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){s=this.list.getSelection(),u=s.filter((function(e){return e!==n}));this.list.setFocus([n]),s.length===u.length?this.list.setSelection(bF(u,[n]),e.browserEvent):this.list.setSelection(u,e.browserEvent)}},e.prototype.dispose=function(){this.disposables.dispose()},e}(),UF=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t}return e.prototype.style=function(e){var t=this.selectorSuffix&&"."+this.selectorSuffix,n=[];e.listBackground&&(e.listBackground.isOpaque()?n.push(".monaco-list"+t+" .monaco-list-rows { background: "+e.listBackground+"; }"):s["e"]||console.warn("List with id '"+this.selectorSuffix+"' was styled with a non-opaque background color. This will break sub-pixel antialiasing.")),e.listFocusBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.focused { background-color: "+e.listFocusBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.focused:hover { background-color: "+e.listFocusBackground+"; }")),e.listFocusForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.focused { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.selected { background-color: "+e.listActiveSelectionBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.selected:hover { background-color: "+e.listActiveSelectionBackground+"; }")),e.listActiveSelectionForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.selected { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.selected.focused { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.selected.focused { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveFocusBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.focused { background-color: "+e.listInactiveFocusBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.focused:hover { background-color: "+e.listInactiveFocusBackground+"; }")),e.listInactiveSelectionBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.selected { background-color: "+e.listInactiveSelectionBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.selected:hover { background-color: "+e.listInactiveSelectionBackground+"; }")),e.listInactiveSelectionForeground&&n.push(".monaco-list"+t+" .monaco-list-row.selected { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-list"+t+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-list"+t+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listSelectionOutline&&n.push(".monaco-list"+t+" .monaco-list-row.selected { outline: 1px dotted "+e.listSelectionOutline+"; outline-offset: -1px; }"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.focused { outline: 1px solid "+e.listFocusOutline+"; outline-offset: -1px; }\n\t\t\t"),e.listInactiveFocusOutline&&n.push(".monaco-list"+t+" .monaco-list-row.focused { outline: 1px dotted "+e.listInactiveFocusOutline+"; outline-offset: -1px; }"),e.listHoverOutline&&n.push(".monaco-list"+t+" .monaco-list-row:hover { outline: 1px dashed "+e.listHoverOutline+"; outline-offset: -1px; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-list"+t+".drop-target,\n\t\t\t\t.monaco-list"+t+" .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list"+t+" .monaco-list-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFilterWidgetBackground&&n.push(".monaco-list-type-filter { background-color: "+e.listFilterWidgetBackground+" }"),e.listFilterWidgetOutline&&n.push(".monaco-list-type-filter { border: 1px solid "+e.listFilterWidgetOutline+"; }"),e.listFilterWidgetNoMatchesOutline&&n.push(".monaco-list-type-filter.no-matches { border: 1px solid "+e.listFilterWidgetNoMatchesOutline+"; }"),e.listMatchesShadow&&n.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+e.listMatchesShadow+"; }");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},e}(),HF={listFocusBackground:N_.fromHex("#7FB0D0"),listActiveSelectionBackground:N_.fromHex("#0E639C"),listActiveSelectionForeground:N_.fromHex("#FFFFFF"),listFocusAndSelectionBackground:N_.fromHex("#094771"),listFocusAndSelectionForeground:N_.fromHex("#FFFFFF"),listInactiveSelectionBackground:N_.fromHex("#3F3F46"),listHoverBackground:N_.fromHex("#2A2D2E"),listDropBackground:N_.fromHex("#383B3D"),treeIndentGuidesStroke:N_.fromHex("#a9a9a9")},QF={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:Gk.TREE};function VF(e,t){var n=e.indexOf(t);if(-1===n)return[];var i=[],o=n-1;while(o>=0&&e[o]===t-(n-o))i.push(e[o--]);i.reverse(),o=n;while(o<e.length&&e[o]===t+(o-n))i.push(e[o++]);return i}function WF(e,t){var n=[],i=0,o=0;while(i<e.length||o<t.length)if(i>=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){n.push(e[i]),i++,o++;continue}e[i]<t[o]?n.push(e[i++]):n.push(t[o++])}return n}function KF(e,t){var n=[],i=0,o=0;while(i<e.length||o<t.length)if(i>=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){i++,o++;continue}e[i]<t[o]?n.push(e[i++]):o++}return n}var zF=function(e,t){return e-t},jF=function(){function e(e,t){this._templateId=e,this.renderers=t}return Object.defineProperty(e.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return this.renderers.map((function(t){return t.renderTemplate(e)}))},e.prototype.renderElement=function(e,t,n,i){for(var o=0,r=0,s=this.renderers;r<s.length;r++){var a=s[r];a.renderElement(e,t,n[o++],i)}},e.prototype.disposeElement=function(e,t,n,i){for(var o=0,r=0,s=this.renderers;r<s.length;r++){var a=s[r];a.disposeElement&&a.disposeElement(e,t,n[o],i),o+=1}},e.prototype.disposeTemplate=function(e){for(var t=0,n=0,i=this.renderers;n<i.length;n++){var o=i[n];o.disposeTemplate(e[t++])}},e}(),GF=function(){function e(e){this.accessibilityProvider=e,this.templateId="a18n"}return e.prototype.renderTemplate=function(e){return e},e.prototype.renderElement=function(e,t,n){var i=this.accessibilityProvider.getAriaLabel(e);i?n.setAttribute("aria-label",i):n.removeAttribute("aria-label");var o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof o?n.setAttribute("aria-level",""+o):n.removeAttribute("aria-level")},e.prototype.disposeTemplate=function(e){},e}(),qF=function(){function e(e,t){this.list=e,this.dnd=t}return e.prototype.getDragElements=function(e){var t=this.list.getSelectedElements(),n=t.indexOf(e)>-1?t:[e];return n},e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e)},e.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)},e.prototype.onDragOver=function(e,t,n,i){return this.dnd.onDragOver(e,t,n,i)},e.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},e.prototype.drop=function(e,t,n,i){this.dnd.drop(e,t,n,i)},e}(),YF=function(){function e(e,t,n,i,o){void 0===o&&(o=QF),this.user=e,this._options=o,this.eventBufferer=new Ze,this.disposables=new ke,this._onDidOpen=new Ye,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new Ye,this.didJustPressContextMenuKey=!1,this._onDidDispose=new Ye,this.onDidDispose=this._onDidDispose.event,this.focus=new BF,this.selection=new SF("selected"),du(o,HF,!1);var s=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=o.accessibilityProvider,this.accessibilityProvider&&(s.push(new GF(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),i=i.map((function(e){return new jF(e.templateId,bF(s,[e]))}));var a=yF(yF({},o),{dnd:o.dnd&&new qF(this,o.dnd)});if(this.view=new yI(t,n,i,a),"string"!==typeof o.ariaRole?this.view.domNode.setAttribute("role",Gk.TREE):this.view.domNode.setAttribute("role",o.ariaRole),o.styleController)this.styleController=o.styleController(this.view.domId);else{var u=qo(this.view.domNode);this.styleController=new UF(u,this.view.domId)}if(this.spliceable=new wI([new EF(this.focus,this.view,o.identityProvider),new EF(this.selection,this.view,o.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=Ue.map(Yn(this.view.domNode,"focus",!0),(function(){return null})),this.onDidBlur=Ue.map(Yn(this.view.domNode,"blur",!0),(function(){return null})),this.disposables.add(new IF(this,this.view)),"boolean"!==typeof o.keyboardSupport||o.keyboardSupport){var l=new DF(this,this.view,o);this.disposables.add(l)}if(o.keyboardNavigationLabelProvider){var c=o.keyboardNavigationDelegate||NF;this.typeLabelController=new kF(this,this.view,o.keyboardNavigationLabelProvider,c),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(o)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),o.ariaLabel&&this.view.domNode.setAttribute("aria-label",r("aria list","{0}. Use the navigation keys to navigate.",o.ariaLabel))}return Object.defineProperty(e.prototype,"onFocusChange",{get:function(){var e=this;return Ue.map(this.eventBufferer.wrapEvent(this.focus.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){var e=this;return Ue.map(this.eventBufferer.wrapEvent(this.selection.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this,t=Ue.chain(Yn(this.view.domNode,"keydown")).map((function(e){return new oi(e)})).filter((function(t){return e.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode})).filter((function(e){return e.preventDefault(),e.stopPropagation(),!1})).event,n=Ue.chain(Yn(this.view.domNode,"keyup")).filter((function(){var t=e.didJustPressContextMenuKey;return e.didJustPressContextMenuKey=!1,t})).filter((function(){return e.getFocus().length>0&&!!e.view.domElement(e.getFocus()[0])})).map((function(t){var n=e.getFocus()[0],i=e.view.element(n),o=e.view.domElement(n);return{index:n,element:i,anchor:o,browserEvent:t}})).event,i=Ue.chain(this.view.onContextMenu).filter((function(){return!e.didJustPressContextMenuKey})).map((function(e){var t=e.element,n=e.index,i=e.browserEvent;return{element:t,index:n,anchor:{x:i.clientX+1,y:i.clientY},browserEvent:i}})).event;return Ue.any(t,n,i)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyDown",{get:function(){return Yn(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),e.prototype.createMouseController=function(e){return new RF(this)},e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=yF(yF({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=this;if(void 0===n&&(n=[]),e<0||e>this.view.length)throw new rI(this.user,"Invalid start index: "+e);if(t<0)throw new rI(this.user,"Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents((function(){return i.spliceable.splice(e,t,n)}))},e.prototype.rerender=function(){this.view.rerender()},e.prototype.element=function(e){return this.view.element(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(e){this.view.setScrollTop(e)},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.view.domNode.focus()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.setSelection=function(e,t){for(var n=0,i=e;n<i.length;n++){var o=i[n];if(o<0||o>=this.length)throw new rI(this.user,"Invalid index "+o)}this.selection.set(e,t)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.getSelectedElements=function(){var e=this;return this.getSelection().map((function(t){return e.view.element(t)}))},e.prototype.setFocus=function(e,t){for(var n=0,i=e;n<i.length;n++){var o=i[n];if(o<0||o>=this.length)throw new rI(this.user,"Invalid index "+o)}this.focus.set(e,t)},e.prototype.focusNext=function(e,t,n,i){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var o=this.focus.get(),r=this.findNextIndex(o.length>0?o[0]+e:0,t,i);r>-1&&this.setFocus([r],n)}},e.prototype.focusPrevious=function(e,t,n,i){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var o=this.focus.get(),r=this.findPreviousIndex(o.length>0?o[0]-e:0,t,i);r>-1&&this.setFocus([r],n)}},e.prototype.focusNextPage=function(e,t){var n=this,i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;var o=this.view.element(i),r=this.getFocusedElements()[0];if(r!==o){var s=this.findPreviousIndex(i,!1,t);s>-1&&r!==this.view.element(s)?this.setFocus([s],e):this.setFocus([i],e)}else{var a=this.view.getScrollTop();this.view.setScrollTop(a+this.view.renderHeight-this.view.elementHeight(i)),this.view.getScrollTop()!==a&&setTimeout((function(){return n.focusNextPage(e,t)}),0)}},e.prototype.focusPreviousPage=function(e,t){var n,i=this,o=this.view.getScrollTop();n=0===o?this.view.indexAt(o):this.view.indexAfter(o-1);var r=this.view.element(n),s=this.getFocusedElements()[0];if(s!==r){var a=this.findNextIndex(n,!1,t);a>-1&&s!==this.view.element(a)?this.setFocus([a],e):this.setFocus([n],e)}else{var u=o;this.view.setScrollTop(o-this.view.renderHeight),this.view.getScrollTop()!==u&&setTimeout((function(){return i.focusPreviousPage(e,t)}),0)}},e.prototype.focusLast=function(e,t){if(0!==this.length){var n=this.findPreviousIndex(this.length-1,!1,t);n>-1&&this.setFocus([n],e)}},e.prototype.focusFirst=function(e,t){if(0!==this.length){var n=this.findNextIndex(0,!1,t);n>-1&&this.setFocus([n],e)}},e.prototype.findNextIndex=function(e,t,n){void 0===t&&(t=!1);for(var i=0;i<this.length;i++){if(e>=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1},e.prototype.findPreviousIndex=function(e,t,n){void 0===t&&(t=!1);for(var i=0;i<this.length;i++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!n||n(this.element(e)))return e;e--}return-1},e.prototype.getFocus=function(){return this.focus.get()},e.prototype.getFocusedElements=function(){var e=this;return this.getFocus().map((function(t){return e.view.element(t)}))},e.prototype.reveal=function(e,t){if(e<0||e>=this.length)throw new rI(this.user,"Invalid index "+e);var n=this.view.getScrollTop(),i=this.view.elementTop(e),o=this.view.elementHeight(e);if(ma(t)){var r=o-this.view.renderHeight;this.view.setScrollTop(r*bI(t,0,1)+i)}else{var s=i+o,a=n+this.view.renderHeight;i<n&&s>=a||(i<n?this.view.setScrollTop(i):s>=a&&this.view.setScrollTop(s-this.view.renderHeight))}},e.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new rI(this.user,"Invalid index "+e);var t=this.view.getScrollTop(),n=this.view.elementTop(e),i=this.view.elementHeight(e);if(n<t||n+i>t+this.view.renderHeight)return null;var o=i-this.view.renderHeight;return Math.abs((t-n)/o)},e.prototype.getHTMLElement=function(){return this.view.domNode},e.prototype.open=function(e,t){for(var n=this,i=0,o=e;i<o.length;i++){var r=o[i];if(r<0||r>=this.length)throw new rI(this.user,"Invalid index "+r)}this._onDidOpen.fire({indexes:e,elements:e.map((function(e){return n.view.element(e)})),browserEvent:t})},e.prototype.pin=function(e,t){for(var n=this,i=0,o=e;i<o.length;i++){var r=o[i];if(r<0||r>=this.length)throw new rI(this.user,"Invalid index "+r)}this._onDidPin.fire({indexes:e,elements:e.map((function(e){return n.view.element(e)})),browserEvent:t})},e.prototype.style=function(e){this.styleController.style(e)},e.prototype.toListEvent=function(e){var t=this,n=e.indexes,i=e.browserEvent;return{indexes:n,elements:n.map((function(e){return t.view.element(e)})),browserEvent:i}},e.prototype._onFocusChange=function(){var e=this.focus.get();go(this.view.domNode,"element-focused",e.length>0),this.onDidChangeActiveDescendant()},e.prototype.onDidChangeActiveDescendant=function(){var e,t=this.focus.get();if(t.length>0){var n=void 0;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(n=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",n||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},e.prototype._onSelectionChange=function(){var e=this.selection.get();go(this.view.domNode,"selection-none",0===e.length),go(this.view.domNode,"selection-single",1===e.length),go(this.view.domNode,"selection-multiple",e.length>1)},e.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},wF([Ig],e.prototype,"onFocusChange",null),wF([Ig],e.prototype,"onSelectionChange",null),wF([Ig],e.prototype,"onContextMenu",null),e}(),XF="inputFocus",JF=(n("d95f"),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)}}()),ZF=function(e){function t(t,n){return e.call(this,"TreeError ["+t+"] "+n)||this}return JF(t,e),t}(Error),$F=function(){function e(e){this.fn=e,this._map=new WeakMap}return e.prototype.map=function(e){var t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t},e}(),eM=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function tM(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function nM(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function iM(e){return"boolean"===typeof e.collapsible}var oM=function(){function e(e,t,n,i){void 0===i&&(i={}),this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new Ze,this._onDidChangeCollapseState=new Ye,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new Ye,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new Ye,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault="undefined"!==typeof i.collapseByDefault&&i.collapseByDefault,this.filter=i.filter,this.autoExpandSingleChildren="undefined"!==typeof i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.root={parent:void 0,element:n,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return e.prototype.splice=function(e,t,n,i,o){var r,s=this;if(0===e.length)throw new ZF(this.user,"Invalid tree location");for(var a=this.getParentNodeWithListIndex(e),u=a.parentNode,l=a.listIndex,c=a.revealed,d=a.visible,h=[],A=Ne.map(Ne.from(n),(function(e){return s.createTreeNode(e,u,u.visible?1:0,c,h,i)})),p=e[e.length-1],f=0,g=p;g>=0&&g<u.children.length;g--){var m=u.children[g];if(m.visible){f=m.visibleChildIndex;break}}var v=[],_=0,y=0;Ne.forEach(A,(function(e){v.push(e),y+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=f+_++)}));for(var w=(r=u.children).splice.apply(r,eM([p,t],v)),b=0,C=0,S=w;C<S.length;C++){m=S[C];m.visible&&b++}if(0!==b)for(g=p+v.length;g<u.children.length;g++){m=u.children[g];m.visible&&(m.visibleChildIndex-=b)}if(u.visibleChildrenCount+=_-b,c&&d){var B=w.reduce((function(e,t){return e+(t.visible?t.renderNodeCount:0)}),0);this._updateAncestorsRenderNodeCount(u,y-B),this.list.splice(l,B,h)}if(w.length>0&&o){var E=function(e){o(e),e.children.forEach(E)};w.forEach(E)}this._onDidSplice.fire({insertedNodes:v,deletedNodes:w})},e.prototype.rerender=function(e){if(0===e.length)throw new ZF(this.user,"Invalid tree location");var t=this.getTreeNodeWithListIndex(e),n=t.node,i=t.listIndex,o=t.revealed;o&&this.list.splice(i,1,[n])},e.prototype.getListIndex=function(e){var t=this.getTreeNodeWithListIndex(e),n=t.listIndex,i=t.visible,o=t.revealed;return i&&o?n:-1},e.prototype.getListRenderCount=function(e){return this.getTreeNode(e).renderNodeCount},e.prototype.setCollapsible=function(e,t){var n=this,i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);var o={collapsible:t};return this.eventBufferer.bufferEvents((function(){return n._setCollapseState(e,o)}))},e.prototype.isCollapsed=function(e){return this.getTreeNode(e).collapsed},e.prototype.setCollapsed=function(e,t,n){var i=this,o=this.getTreeNode(e);"undefined"===typeof t&&(t=!o.collapsed);var r={collapsed:t,recursive:n||!1};return this.eventBufferer.bufferEvents((function(){return i._setCollapseState(e,r)}))},e.prototype._setCollapseState=function(e,t){var n=this.getTreeNodeWithListIndex(e),i=n.node,o=n.listIndex,r=n.revealed,s=this._setListNodeCollapseState(i,o,r,t);if(i!==this.root&&this.autoExpandSingleChildren&&s&&!iM(t)&&i.collapsible&&!i.collapsed&&!t.recursive){for(var a=-1,u=0;u<i.children.length;u++){var l=i.children[u];if(l.visible){if(a>-1){a=-1;break}a=u}}a>-1&&this._setCollapseState(eM(e,[a]),t)}return s},e.prototype._setListNodeCollapseState=function(e,t,n,i){var o=this._setNodeCollapseState(e,i,!1);if(!n||!e.visible||!o)return o;var r=e.renderNodeCount,s=this.updateNodeAfterCollapseChange(e),a=r-(-1===t?0:1);return this.list.splice(t+1,a,s.slice(1)),o},e.prototype._setNodeCollapseState=function(e,t,n){var i;if(e===this.root?i=!1:(iM(t)?(i=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):(i=e.collapsed!==t.collapsed,e.collapsed=t.collapsed),i&&this._onDidChangeCollapseState.fire({node:e,deep:n})),!iM(t)&&t.recursive)for(var o=0,r=e.children;o<r.length;o++){var s=r[o];i=this._setNodeCollapseState(s,t,!0)||i}return i},e.prototype.expandTo=function(e){var t=this;this.eventBufferer.bufferEvents((function(){var n=t.getTreeNode(e);while(n.parent)n=n.parent,e=e.slice(0,e.length-1),n.collapsed&&t._setCollapseState(e,{collapsed:!1,recursive:!1})}))},e.prototype.refilter=function(){var e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)},e.prototype.createTreeNode=function(e,t,n,i,o,r){var s=this,a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},u=this._filterNode(a,n);i&&o.push(a);var l=Ne.from(e.children),c=i&&0!==u&&!a.collapsed,d=Ne.map(l,(function(e){return s.createTreeNode(e,a,u,c,o,r)})),h=0,A=1;return Ne.forEach(d,(function(e){a.children.push(e),A+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=h++)})),a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=h,a.visible=2===u?h>0:1===u,a.visible?a.collapsed||(a.renderNodeCount=A):(a.renderNodeCount=0,i&&o.pop()),r&&r(a),a},e.prototype.updateNodeAfterCollapseChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},e.prototype._updateNodeAfterCollapseChange=function(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(var n=0,i=e.children;n<i.length;n++){var o=i[n];e.renderNodeCount+=this._updateNodeAfterCollapseChange(o,t)}return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount},e.prototype.updateNodeAfterFilterChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},e.prototype._updateNodeAfterFilterChange=function(e,t,n,i){var o;if(void 0===i&&(i=!0),e!==this.root){if(o=this._filterNode(e,t),0===o)return e.visible=!1,e.renderNodeCount=0,!1;i&&n.push(e)}var r=n.length;e.renderNodeCount=e===this.root?0:1;var s=!1;if(e.collapsed&&0===o)e.visibleChildrenCount=0;else{for(var a=0,u=0,l=e.children;u<l.length;u++){var c=l[u];s=this._updateNodeAfterFilterChange(c,o,n,i&&!e.collapsed)||s,c.visible&&(c.visibleChildIndex=a++)}e.visibleChildrenCount=a}return e!==this.root&&(e.visible=2===o?s:1===o),e.visible?e.collapsed||(e.renderNodeCount+=n.length-r):(e.renderNodeCount=0,i&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible},e.prototype._updateAncestorsRenderNodeCount=function(e,t){if(0!==t)while(e)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent},e.prototype._filterNode=function(e,t){var n=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof n?(e.filterData=void 0,n?1:0):tM(n)?(e.filterData=n.data,nM(n.visibility)):(e.filterData=void 0,nM(n))},e.prototype.getTreeNode=function(e,t){if(void 0===t&&(t=this.root),!e||0===e.length)return t;var n=e[0],i=e.slice(1);if(n<0||n>t.children.length)throw new ZF(this.user,"Invalid tree location");return this.getTreeNode(i,t.children[n])},e.prototype.getTreeNodeWithListIndex=function(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var t=this.getParentNodeWithListIndex(e),n=t.parentNode,i=t.listIndex,o=t.revealed,r=t.visible,s=e[e.length-1];if(s<0||s>n.children.length)throw new ZF(this.user,"Invalid tree location");var a=n.children[s];return{node:a,listIndex:i,revealed:o,visible:r&&a.visible}},e.prototype.getParentNodeWithListIndex=function(e,t,n,i,o){void 0===t&&(t=this.root),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===o&&(o=!0);var r=e[0],s=e.slice(1);if(r<0||r>t.children.length)throw new ZF(this.user,"Invalid tree location");for(var a=0;a<r;a++)n+=t.children[a].renderNodeCount;return i=i&&!t.collapsed,o=o&&t.visible,0===s.length?{parentNode:t,listIndex:n,revealed:i,visible:o}:this.getParentNodeWithListIndex(s,t.children[r],n+1,i,o)},e.prototype.getNode=function(e){return void 0===e&&(e=[]),this.getTreeNode(e)},e.prototype.getNodeLocation=function(e){var t=[],n=e;while(n.parent)t.push(n.parent.children.indexOf(n)),n=n.parent;return t.reverse()},e.prototype.getParentNodeLocation=function(e){return 0===e.length?void 0:1===e.length?[]:Li(e)[0]},e}(),rM=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)}}(),sM=function(){return sM=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sM.apply(this,arguments)},aM=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},uM=function(e){function t(t){var n=e.call(this,t.elements.map((function(e){return e.element})))||this;return n.data=t,n}return rM(t,e),t}(gI);function lM(e){return e instanceof gI?new uM(e):e}var cM=function(){function e(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=Ie.None}return e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},e.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(lM(e),t)},e.prototype.onDragOver=function(e,t,n,i,o){var r=this;void 0===o&&(o=!0);var s=this.dnd.onDragOver(lM(e),t&&t.element,n,i),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return s;if(a&&"boolean"!==typeof s&&s.autoExpand&&(this.autoExpandDisposable=_i((function(){var e=r.modelProvider(),n=e.getNodeLocation(t);e.isCollapsed(n)&&e.setCollapsed(n,!1),r.autoExpandNode=void 0}),500)),"boolean"===typeof s||!s.accept||"undefined"===typeof s.bubble||s.feedback){if(!o){var u="boolean"===typeof s?s:s.accept,l="boolean"===typeof s?void 0:s.effect;return{accept:u,effect:l,feedback:[n]}}return s}if(1===s.bubble){var c=this.modelProvider(),d=c.getNodeLocation(t),h=c.getParentNodeLocation(d),A=c.getNode(h),p=h&&c.getListIndex(h);return this.onDragOver(e,A,p,i,!1)}var f=this.modelProvider(),g=f.getNodeLocation(t),m=f.getListIndex(g),v=f.getListRenderCount(g);return sM(sM({},s),{feedback:ji(m,m+v)})},e.prototype.drop=function(e,t,n,i){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(lM(e),t&&t.element,n,i)},e.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},e}();function dM(e,t){return t&&sM(sM({},t),{identityProvider:t.identityProvider&&{getId:function(e){return t.identityProvider.getId(e.element)}},dnd:t.dnd&&new cM(e,t.dnd),multipleSelectionController:t.multipleSelectionController&&{isSelectionSingleChangeEvent:function(e){return t.multipleSelectionController.isSelectionSingleChangeEvent(sM(sM({},e),{element:e.element}))},isSelectionRangeChangeEvent:function(e){return t.multipleSelectionController.isSelectionRangeChangeEvent(sM(sM({},e),{element:e.element}))}},accessibilityProvider:t.accessibilityProvider&&sM(sM({},t.accessibilityProvider),{getAriaLabel:function(e){return t.accessibilityProvider.getAriaLabel(e.element)},getAriaLevel:function(e){return e.depth},getActiveDescendantId:t.accessibilityProvider.getActiveDescendantId&&function(e){return t.accessibilityProvider.getActiveDescendantId(e.element)}}),keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&sM(sM({},t.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),enableKeyboardNavigation:t.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(t){var n=e(),i=n.getNodeLocation(t),o=n.getParentNodeLocation(i),r=n.getNode(o);return r.visibleChildrenCount},getPosInSet:function(e){return e.visibleChildIndex+1}}})}var hM,AM=function(){function e(e){this.delegate=e}return e.prototype.getHeight=function(e){return this.delegate.getHeight(e.element)},e.prototype.getTemplateId=function(e){return this.delegate.getTemplateId(e.element)},e.prototype.hasDynamicHeight=function(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)},e.prototype.setDynamicHeight=function(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)},e}();(function(e){e["None"]="none",e["OnHover"]="onHover",e["Always"]="always"})(hM||(hM={}));var pM=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this._elements=t,this.onDidChange=Ue.forEach(e,(function(e){return n._elements=e}))}return Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),e}(),fM=function(){function e(t,n,i,o,r){void 0===r&&(r={}),this.renderer=t,this.modelProvider=n,this.activeNodes=o,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=e.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new MA,this.activeIndentNodes=new Set,this.indentGuidesDisposable=Ie.None,this.disposables=new ke,this.templateId=t.templateId,this.updateOptions(r),Ue.map(i,(function(e){return e.node}))(this.onDidChangeNodeTwistieState,this,this.disposables),t.onDidChangeTwistieState&&t.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}return e.prototype.updateOptions=function(e){if(void 0===e&&(e={}),"undefined"!==typeof e.indent&&(this.indent=bI(e.indent,0,40)),"undefined"!==typeof e.renderIndentGuides){var t=e.renderIndentGuides!==hM.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){var n=new ke;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,n),this.indentGuidesDisposable=n,this._onDidChangeActiveNodes(this.activeNodes.elements)}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)},e.prototype.renderTemplate=function(e){var t=ar(e,dr(".monaco-tl-row")),n=ar(t,dr(".monaco-tl-indent")),i=ar(t,dr(".monaco-tl-twistie")),o=ar(t,dr(".monaco-tl-contents")),r=this.renderer.renderTemplate(o);return{container:e,indent:n,twistie:i,indentGuidesDisposable:Ie.None,templateData:r}},e.prototype.renderElement=function(t,n,i,o){"number"===typeof o&&(this.renderedNodes.set(t,{templateData:i,height:o}),this.renderedElements.set(t.element,t));var r=e.DefaultIndent+(t.depth-1)*this.indent;i.twistie.style.paddingLeft=r+"px",i.indent.style.width=r+this.indent-16+"px",this.renderTwistie(t,i),"number"===typeof o&&this.renderIndentGuides(t,i),this.renderer.renderElement(t,n,i.templateData,o)},e.prototype.disposeElement=function(e,t,n,i){n.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.templateData,i),"number"===typeof i&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},e.prototype.onDidChangeTwistieState=function(e){var t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)},e.prototype.onDidChangeNodeTwistieState=function(e){var t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))},e.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e.element,t.twistie),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(Ao(t.twistie,"codicon","codicon-chevron-down","collapsible"),go(t.twistie,"collapsed",e.collapsed)):fo(t.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")},e.prototype.renderIndentGuides=function(e,t){var n=this;if(oo(t.indent),t.indentGuidesDisposable.dispose(),this.shouldRenderIndentGuides){var i=new ke,o=this.modelProvider(),r=e,s=function(){var e=o.getNodeLocation(r),s=o.getParentNodeLocation(e);if(!s)return"break";var u=o.getNode(s),l=dr(".indent-guide",{style:"width: "+a.indent+"px"});a.activeIndentNodes.has(u)&&ho(l,"active"),0===t.indent.childElementCount?t.indent.appendChild(l):t.indent.insertBefore(l,t.indent.firstElementChild),a.renderedIndentGuides.add(u,l),i.add(De((function(){return n.renderedIndentGuides.delete(u,l)}))),r=u},a=this;while(1){var u=s();if("break"===u)break}t.indentGuidesDisposable=i}},e.prototype._onDidChangeActiveNodes=function(e){var t=this;if(this.shouldRenderIndentGuides){var n=new Set,i=this.modelProvider();e.forEach((function(e){var t=i.getNodeLocation(e);try{var o=i.getParentNodeLocation(t);e.collapsible&&e.children.length>0&&!e.collapsed?n.add(e):o&&n.add(i.getNode(o))}catch(r){}})),this.activeIndentNodes.forEach((function(e){n.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return po(e,"active")}))})),n.forEach((function(e){t.activeIndentNodes.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return ho(e,"active")}))})),this.activeIndentNodes=n}},e.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),xe(this.disposables)},e.DefaultIndent=8,e}(),gM=function(){function e(e,t,n){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=n,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new ke,e.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(e.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pattern",{set:function(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()},enumerable:!0,configurable:!0}),e.prototype.filter=function(e,t){if(this._filter){var n=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return n;var i=void 0;if(i="boolean"===typeof n?n?1:0:tM(n)?nM(n.visibility):n,0===i)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:JI.Default,visibility:!0};var o=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),r=o&&o.toString();if("undefined"===typeof r)return{data:JI.Default,visibility:!0};var s=uF(this._pattern,this._lowercasePattern,0,r,r.toLowerCase(),0,!0);return s?(this._matchCount++,{data:s,visibility:!0}):this.tree.options.filterOnType?2:{data:JI.Default,visibility:!0}},e.prototype.reset=function(){this._totalCount=0,this._matchCount=0},e.prototype.dispose=function(){xe(this.disposables)},e}(),mM=function(){function e(e,t,n,i,o){this.tree=e,this.view=n,this.filter=i,this.keyboardNavigationDelegate=o,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new Ye,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new Ye,this.enabledDisposables=new ke,this.disposables=new ke,this.domNode=dr(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Yn(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=ar(n.getHTMLElement(),dr(".monaco-list-type-filter-message")),this.labelDomNode=ar(this.domNode,dr("span.label"));var s=ar(this.domNode,dr(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=ar(s,dr("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Yn(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=ar(s,dr("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=r("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e){e.simpleKeyboardNavigation?this.disable():this.enable(),"undefined"!==typeof e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),"undefined"!==typeof e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},e.prototype.enable=function(){var e=this;if(!this._enabled){var t=Ue.chain(Yn(this.view.getHTMLElement(),"keydown")).filter((function(t){return!vM(t.target)||t.target===e.filterOnTypeDomNode})).filter((function(e){return"Dead"!==e.key&&!/^Media/.test(e.key)})).map((function(e){return new oi(e)})).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).filter((function(t){return e.keyboardNavigationDelegate.mightProducePrintableCharacter(t)||(e.pattern.length>0||e.triggered)&&(9===t.keyCode||1===t.keyCode)&&!t.altKey&&!t.ctrlKey&&!t.metaKey||1===t.keyCode&&(s["e"]?t.altKey&&!t.metaKey:t.ctrlKey)&&!t.shiftKey})).forEach((function(e){e.stopPropagation(),e.preventDefault()})).event,n=Yn(this.clearDomNode,"click");Ue.chain(Ue.any(t,n)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}},e.prototype.disable=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)},e.prototype.onEventOrInput=function(e){"string"===typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(s["e"]?e.altKey:e.ctrlKey)?this.onInput(""):1===e.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)},e.prototype.onInput=function(e){var t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,(function(e){return!JI.isDefault(e.filterData)}));var n=this.tree.getFocus();if(n.length>0){var i=n[0];null===this.tree.getRelativeTop(i)&&this.tree.reveal(i,.5)}this.render(),e||(this.triggered=!1)},e.prototype.onDragStart=function(){var e=this,t=this.view.getHTMLElement(),n=Ho(t).left,i=t.clientWidth,o=i/2,r=this.domNode.clientWidth,s=new ke,a=this.positionClassName,u=function(){switch(a){case"nw":e.domNode.style.top="4px",e.domNode.style.left="4px";break;case"ne":e.domNode.style.top="4px",e.domNode.style.left=i-r-6+"px";break}},l=function(e){e.preventDefault();var t=e.screenX-n;e.dataTransfer&&(e.dataTransfer.dropEffect="none"),a=t<o?"nw":"ne",u()},c=function(){e.positionClassName=a,e.domNode.className="monaco-list-type-filter "+e.positionClassName,e.domNode.style.top="",e.domNode.style.left="",xe(s)};u(),po(this.domNode,a),ho(this.domNode,"dragging"),s.add(De((function(){return po(e.domNode,"dragging")}))),Yn(document,"dragover")(l,null,s),Yn(this.domNode,"dragend")(c,null,s),xL.CurrentDragAndDropData=new EL("vscode-ui"),s.add(De((function(){return xL.CurrentDragAndDropData=void 0})))},e.prototype.onDidSpliceModel=function(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())},e.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},e.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=r("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=r("enable filter on type","Enable Filter on Type")},e.prototype.render=function(){var e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=r("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),go(this.domNode,"no-matches",e),this.domNode.title=r("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"…"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},e.prototype.shouldAllowFocus=function(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||(this.filter.totalCount>0&&this.filter.matchCount<=1||!JI.isDefault(e.filterData))},e.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),xe(this.disposables)},e}();function vM(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function _M(e){return{elements:e.elements.map((function(e){return e.element})),browserEvent:e.browserEvent}}function yM(e,t){t(e),e.children.forEach((function(e){return yM(e,t)}))}var wM=function(){function e(e){this.identityProvider=e,this.nodes=[],this._onDidChange=new Ye,this.onDidChange=this._onDidChange.event}return Object.defineProperty(e.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t){Di(this.nodes,e)||this._set(e,!1,t)},e.prototype._set=function(e,t,n){if(this.nodes=aM(e),this.elements=void 0,this._nodeSet=void 0,!t){var i=this;this._onDidChange.fire({get elements(){return i.get()},browserEvent:n})}},e.prototype.get=function(){return this.elements||(this.elements=this.nodes.map((function(e){return e.element}))),aM(this.elements)},e.prototype.getNodes=function(){return this.nodes},e.prototype.has=function(e){return this.nodeSet.has(e)},e.prototype.onDidModelSplice=function(e){var t=this,n=e.insertedNodes,i=e.deletedNodes;if(!this.identityProvider){var o=this.createNodeSet(),r=function(e){return o.delete(e)};return i.forEach((function(e){return yM(e,r)})),void this.set(Fa(o))}var s=new Set,a=function(e){return s.add(t.identityProvider.getId(e.element).toString())};i.forEach((function(e){return yM(e,a)}));var u=new Map,l=function(e){return u.set(t.identityProvider.getId(e.element).toString(),e)};n.forEach((function(e){return yM(e,l)}));for(var c=[],d=0,h=this.nodes;d<h.length;d++){var A=h[d],p=this.identityProvider.getId(A.element).toString(),f=s.has(p);if(f){var g=u.get(p);g&&c.push(g)}else c.push(A)}this._set(c,!0)},e.prototype.createNodeSet=function(){for(var e=new Set,t=0,n=this.nodes;t<n.length;t++){var i=n[t];e.add(i)}return e},e}(),bM=function(e){function t(t,n){var i=e.call(this,t)||this;return i.tree=n,i}return rM(t,e),t.prototype.onPointer=function(t){if(!vM(t.browserEvent.target)){var n=t.element;if(!n)return e.prototype.onPointer.call(this,t);if(this.isSelectionRangeChangeEvent(t)||this.isSelectionSingleChangeEvent(t))return e.prototype.onPointer.call(this,t);var i=co(t.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&2!==t.browserEvent.detail&&!i)return e.prototype.onPointer.call(this,t);var o=!1;if(o="function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(n.element):!!this.tree.expandOnlyOnTwistieClick,o&&!i)return e.prototype.onPointer.call(this,t);if(n.collapsible){var r=this.tree.model,s=r.getNodeLocation(n),a=t.browserEvent.altKey;if(r.setCollapsed(s,void 0,a),o&&i)return}e.prototype.onPointer.call(this,t)}},t.prototype.onDoubleClick=function(t){var n=co(t.browserEvent.target,"monaco-tl-twistie");n||e.prototype.onDoubleClick.call(this,t)},t}(RF),CM=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this,t,n,i,o,a)||this;return u.focusTrait=r,u.selectionTrait=s,u}return rM(t,e),t.prototype.createMouseController=function(e){return new bM(this,e.tree)},t.prototype.splice=function(t,n,i){var o=this;if(void 0===i&&(i=[]),e.prototype.splice.call(this,t,n,i),0!==i.length){var r=[],s=[];i.forEach((function(e,n){o.focusTrait.has(e)&&r.push(t+n),o.selectionTrait.has(e)&&s.push(t+n)})),r.length>0&&e.prototype.setFocus.call(this,Hi(aM(e.prototype.getFocus.call(this),r))),s.length>0&&e.prototype.setSelection.call(this,Hi(aM(e.prototype.getSelection.call(this),s)))}},t.prototype.setFocus=function(t,n,i){var o=this;void 0===i&&(i=!1),e.prototype.setFocus.call(this,t,n),i||this.focusTrait.set(t.map((function(e){return o.element(e)})),n)},t.prototype.setSelection=function(t,n,i){var o=this;void 0===i&&(i=!1),e.prototype.setSelection.call(this,t,n),i||this.selectionTrait.set(t.map((function(e){return o.element(e)})),n)},t}(YF),SM=function(){function e(e,t,n,i,o){var r=this;void 0===o&&(o={}),this._options=o,this.eventBufferer=new Ze,this.disposables=new ke,this._onWillRefilter=new Ye,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new Ye;var s,a=new AM(n),u=new $e,l=new $e,c=new pM(l.event);this.renderers=i.map((function(e){return new fM(e,(function(){return r.model}),u.event,c,o)}));for(var d=0,h=this.renderers;d<h.length;d++){var A=h[d];this.disposables.add(A)}o.keyboardNavigationLabelProvider&&(s=new gM(this,o.keyboardNavigationLabelProvider,o.filter),o=sM(sM({},o),{filter:s}),this.disposables.add(s)),this.focus=new wM(o.identityProvider),this.selection=new wM(o.identityProvider),this.view=new CM(e,t,a,this.renderers,this.focus,this.selection,sM(sM({},dM((function(){return r.model}),o)),{tree:this})),this.model=this.createModel(e,this.view,o),u.input=this.model.onDidChangeCollapseState;var p=Ue.forEach(this.model.onDidSplice,(function(e){r.eventBufferer.bufferEvents((function(){r.focus.onDidModelSplice(e),r.selection.onDidModelSplice(e)}))}));if(p((function(){return null}),null,this.disposables),l.input=Ue.chain(Ue.any(p,this.focus.onDidChange,this.selection.onDidChange)).debounce((function(){return null}),0).map((function(){for(var e=new Set,t=0,n=r.focus.getNodes();t<n.length;t++){var i=n[t];e.add(i)}for(var o=0,s=r.selection.getNodes();o<s.length;o++){i=s[o];e.add(i)}return Qi(e)})).event,!1!==o.keyboardSupport){var f=Ue.chain(this.view.onKeyDown).filter((function(e){return!vM(e.target)})).map((function(e){return new oi(e)}));f.filter((function(e){return 15===e.keyCode})).on(this.onLeftArrow,this,this.disposables),f.filter((function(e){return 17===e.keyCode})).on(this.onRightArrow,this,this.disposables),f.filter((function(e){return 10===e.keyCode})).on(this.onSpace,this,this.disposables)}if(o.keyboardNavigationLabelProvider){var g=o.keyboardNavigationDelegate||NF;this.typeFilterController=new mM(this,this.model,this.view,s,g),this.focusNavigationFilter=function(e){return r.typeFilterController.shouldAllowFocus(e)},this.disposables.add(this.typeFilterController)}this.styleElement=qo(this.view.getHTMLElement()),go(this.getHTMLElement(),"always",this._options.renderIndentGuides===hM.Always)}return Object.defineProperty(e.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidOpen",{get:function(){return Ue.map(this.view.onDidOpen,_M)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return"undefined"===typeof this._options.openOnSingleClick||this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandOnlyOnTwistieClick",{get:function(){return"undefined"!==typeof this._options.expandOnlyOnTwistieClick&&this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=sM(sM({},this._options),e);for(var t=0,n=this.renderers;t<n.length;t++){var i=n[t];i.updateOptions(e)}this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),go(this.getHTMLElement(),"always",this._options.renderIndentGuides===hM.Always)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(e){this.view.scrollTop=e},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.view.domFocus()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.style=function(e){var t="."+this.view.domId,n=[];e.treeIndentGuidesStroke&&(n.push(".monaco-list"+t+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+t+".always .monaco-tl-indent > .indent-guide { border-color: "+e.treeIndentGuidesStroke.transparent(.4)+"; }"),n.push(".monaco-list"+t+" .monaco-tl-indent > .indent-guide.active { border-color: "+e.treeIndentGuidesStroke+"; }"));var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i),this.view.style(e)},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!0,t)},e.prototype.expand=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!1,t)},e.prototype.setCollapsible=function(e,t){return this.model.setCollapsible(e,t)},e.prototype.isCollapsed=function(e){return this.model.isCollapsed(e)},e.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},e.prototype.setSelection=function(e,t){var n=this,i=e.map((function(e){return n.model.getNode(e)}));this.selection.set(i,t);var o=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return e>-1}));this.view.setSelection(o,t,!0)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.setFocus=function(e,t){var n=this,i=e.map((function(e){return n.model.getNode(e)}));this.focus.set(i,t);var o=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return e>-1}));this.view.setFocus(o,t,!0)},e.prototype.focusNext=function(e,t,n,i){void 0===e&&(e=1),void 0===t&&(t=!1),void 0===i&&(i=this.focusNavigationFilter),this.view.focusNext(e,t,n,i)},e.prototype.getFocus=function(){return this.focus.get()},e.prototype.reveal=function(e,t){this.model.expandTo(e);var n=this.model.getListIndex(e);-1!==n&&this.view.reveal(n,t)},e.prototype.getRelativeTop=function(e){var t=this.model.getListIndex(e);return-1===t?null:this.view.getRelativeTop(t)},e.prototype.onLeftArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),o=this.model.setCollapsed(i,!0);if(!o){var r=this.model.getParentNodeLocation(i);if(!r)return;var s=this.model.getListIndex(r);this.view.reveal(s),this.view.setFocus([s])}}},e.prototype.onRightArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),o=this.model.setCollapsed(i,!1);if(!o){if(!n.children.some((function(e){return e.visible})))return;var r=this.view.getFocus()[0],s=r+1;this.view.reveal(s),this.view.setFocus([s])}}},e.prototype.onSpace=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),o=e.browserEvent.altKey;this.model.setCollapsed(i,void 0,o)}},e.prototype.dispose=function(){xe(this.disposables),this.view.dispose()},e}(),BM=function(){return BM=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},BM.apply(this,arguments)},EM=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},xM=function(){function e(e,t,n){void 0===n&&(n={}),this.user=e,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new oM(e,t,null,n),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,n.sorter&&(this.sorter={compare:function(e,t){return n.sorter.compare(e.element,t.element)}}),this.identityProvider=n.identityProvider}return e.prototype.setChildren=function(e,t,n,i){var o=this.getElementLocation(e);this._setChildren(o,this.preserveCollapseState(t),n,i)},e.prototype._setChildren=function(e,t,n,i){var o=this,r=new Set,s=new Set,a=function(e){if(r.add(e.element),o.nodes.set(e.element,e),o.identityProvider){var t=o.identityProvider.getId(e.element).toString();s.add(t),o.nodesByIdentity.set(t,e)}n&&n(e)},u=function(e){if(r.has(e.element)||o.nodes.delete(e.element),o.identityProvider){var t=o.identityProvider.getId(e.element).toString();s.has(t)||o.nodesByIdentity.delete(t)}i&&i(e)};this.model.splice(EM(e,[0]),Number.MAX_VALUE,t,a,u)},e.prototype.preserveCollapseState=function(e){var t=this,n=e?Re(e):Ne.empty();return this.sorter&&(n=Ne.fromArray(Ii(Ne.collect(n),this.sorter.compare.bind(this.sorter)))),Ne.map(n,(function(e){var n=t.nodes.get(e.element);if(!n&&t.identityProvider){var i=t.identityProvider.getId(e.element).toString();n=t.nodesByIdentity.get(i)}if(!n)return BM(BM({},e),{children:t.preserveCollapseState(e.children)});var o="boolean"===typeof e.collapsible?e.collapsible:n.collapsible,r="undefined"!==typeof e.collapsed?e.collapsed:n.collapsed;return BM(BM({},e),{collapsible:o,collapsed:r,children:t.preserveCollapseState(e.children)})}))},e.prototype.rerender=function(e){var t=this.getElementLocation(e);this.model.rerender(t)},e.prototype.getListIndex=function(e){var t=this.getElementLocation(e);return this.model.getListIndex(t)},e.prototype.getListRenderCount=function(e){var t=this.getElementLocation(e);return this.model.getListRenderCount(t)},e.prototype.setCollapsible=function(e,t){var n=this.getElementLocation(e);return this.model.setCollapsible(n,t)},e.prototype.isCollapsed=function(e){var t=this.getElementLocation(e);return this.model.isCollapsed(t)},e.prototype.setCollapsed=function(e,t,n){var i=this.getElementLocation(e);return this.model.setCollapsed(i,t,n)},e.prototype.expandTo=function(e){var t=this.getElementLocation(e);this.model.expandTo(t)},e.prototype.refilter=function(){this.model.refilter()},e.prototype.getNode=function(e){if(void 0===e&&(e=null),null===e)return this.model.getNode(this.model.rootRef);var t=this.nodes.get(e);if(!t)throw new ZF(this.user,"Tree element not found: "+e);return t},e.prototype.getNodeLocation=function(e){return e.element},e.prototype.getParentNodeLocation=function(e){if(null===e)throw new ZF(this.user,"Invalid getParentNodeLocation call");var t=this.nodes.get(e);if(!t)throw new ZF(this.user,"Tree element not found: "+e);var n=this.model.getNodeLocation(t),i=this.model.getParentNodeLocation(n),o=this.model.getNode(i);return o.element},e.prototype.getElementLocation=function(e){if(null===e)return[];var t=this.nodes.get(e);if(!t)throw new ZF(this.user,"Tree element not found: "+e);return this.model.getNodeLocation(t)},e}(),LM=function(){return LM=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},LM.apply(this,arguments)};function DM(e){var t=[e.element],n=e.incompressible||!1;return{element:{elements:t,incompressible:n},children:Ne.map(Ne.from(e.children),DM),collapsible:e.collapsible,collapsed:e.collapsed}}function NM(e){var t,n,i=[e.element],o=e.incompressible||!1;while(1){if(t=Ne.from(e.children),n=Ne.collect(t,2),1!==n.length)break;if(e=n[0],e.incompressible)break;i.push(e.element)}return{element:{elements:i,incompressible:o},children:Ne.map(Ne.concat(Ne.fromArray(n),t),NM),collapsible:e.collapsible,collapsed:e.collapsed}}function kM(e,t){var n;return void 0===t&&(t=0),n=t<e.element.elements.length-1?Ne.single(kM(e,t+1)):Ne.map(Ne.from(e.children),(function(e){return kM(e,0)})),0===t&&e.element.incompressible?{element:e.element.elements[t],children:n,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:n,collapsible:e.collapsible,collapsed:e.collapsed}}function IM(e){return kM(e,0)}function FM(e,t,n){return e.element===t?LM(LM({},e),{children:n}):LM(LM({},e),{children:Ne.map(Ne.from(e.children),(function(e){return FM(e,t,n)}))})}var MM=function(){function e(e,t,n){void 0===n&&(n={}),this.user=e,this.nodes=new Map,this.model=new xM(e,t,n),this.enabled="undefined"===typeof n.compressionEnabled||n.compressionEnabled}return Object.defineProperty(e.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),e.prototype.setChildren=function(e,t){if(null!==e){var n=this.nodes.get(e);if(!n)throw new Error("Unknown compressed tree node");var i=this.model.getNode(n),o=this.model.getParentNodeLocation(n),r=this.model.getNode(o),s=IM(i),a=FM(s,e,Ne.from(t)),u=(this.enabled?NM:DM)(a),l=r.children.map((function(e){return e===i?u:e}));this._setChildren(r.element,l)}else{var c=Ne.map(Ne.from(t),this.enabled?NM:DM);this._setChildren(null,c)}},e.prototype.setCompressionEnabled=function(e){if(e!==this.enabled){this.enabled=e;var t=this.model.getNode(),n=Ne.from(t.children),i=Ne.map(n,IM),o=Ne.map(i,e?NM:DM);this._setChildren(null,o)}},e.prototype._setChildren=function(e,t){var n=this,i=new Set,o=function(e){for(var t=0,o=e.element.elements;t<o.length;t++){var r=o[t];i.add(r),n.nodes.set(r,e.element)}},r=function(e){for(var t=0,o=e.element.elements;t<o.length;t++){var r=o[t];i.has(r)||n.nodes.delete(r)}};this.model.setChildren(e,t,o,r)},e.prototype.getListIndex=function(e){var t=this.getCompressedNode(e);return this.model.getListIndex(t)},e.prototype.getListRenderCount=function(e){var t=this.getCompressedNode(e);return this.model.getListRenderCount(t)},e.prototype.getNode=function(e){if("undefined"===typeof e)return this.model.getNode();var t=this.getCompressedNode(e);return this.model.getNode(t)},e.prototype.getNodeLocation=function(e){var t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]},e.prototype.getParentNodeLocation=function(e){var t=this.getCompressedNode(e),n=this.model.getParentNodeLocation(t);return null===n?null:n.elements[n.elements.length-1]},e.prototype.setCollapsible=function(e,t){var n=this.getCompressedNode(e);return this.model.setCollapsible(n,t)},e.prototype.isCollapsed=function(e){var t=this.getCompressedNode(e);return this.model.isCollapsed(t)},e.prototype.setCollapsed=function(e,t,n){var i=this.getCompressedNode(e);return this.model.setCollapsed(i,t,n)},e.prototype.expandTo=function(e){var t=this.getCompressedNode(e);this.model.expandTo(t)},e.prototype.rerender=function(e){var t=this.getCompressedNode(e);this.model.rerender(t)},e.prototype.refilter=function(){this.model.refilter()},e.prototype.getCompressedNode=function(e){if(null===e)return null;var t=this.nodes.get(e);if(!t)throw new ZF(this.user,"Tree element not found: "+e);return t},e}(),OM=function(e){return e[e.length-1]},TM=function(){function e(e,t){this.unwrapper=e,this.node=t}return Object.defineProperty(e.prototype,"element",{get:function(){return null===this.node.element?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){var t=this;return this.node.children.map((function(n){return new e(t.unwrapper,n)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),e}();function PM(e,t){return{splice:function(n,i,o){t.splice(n,i,o.map((function(t){return e.map(t)})))}}}function RM(e,t){return LM(LM({},t),{sorter:t.sorter&&{compare:function(e,n){return t.sorter.compare(e.elements[0],n.elements[0])}},identityProvider:t.identityProvider&&{getId:function(n){return t.identityProvider.getId(e(n))}},filter:t.filter&&{filter:function(n,i){return t.filter.filter(e(n),i)}}})}var UM=function(){function e(e,t,n){var i=this;void 0===n&&(n={}),this.elementMapper=n.elementMapper||OM;var o=function(e){return i.elementMapper(e.elements)};this.nodeMapper=new $F((function(e){return new TM(o,e)})),this.model=new MM(e,PM(this.nodeMapper,t),RM(o,n))}return Object.defineProperty(e.prototype,"onDidSplice",{get:function(){var e=this;return Ue.map(this.model.onDidSplice,(function(t){var n=t.insertedNodes,i=t.deletedNodes;return{insertedNodes:n.map((function(t){return e.nodeMapper.map(t)})),deletedNodes:i.map((function(t){return e.nodeMapper.map(t)}))}}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeCollapseState",{get:function(){var e=this;return Ue.map(this.model.onDidChangeCollapseState,(function(t){var n=t.node,i=t.deep;return{node:e.nodeMapper.map(n),deep:i}}))},enumerable:!0,configurable:!0}),e.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},e.prototype.setCompressionEnabled=function(e){this.model.setCompressionEnabled(e)},e.prototype.getListIndex=function(e){return this.model.getListIndex(e)},e.prototype.getListRenderCount=function(e){return this.model.getListRenderCount(e)},e.prototype.getNode=function(e){return this.nodeMapper.map(this.model.getNode(e))},e.prototype.getNodeLocation=function(e){return e.element},e.prototype.getParentNodeLocation=function(e){return this.model.getParentNodeLocation(e)},e.prototype.setCollapsible=function(e,t){return this.model.setCollapsible(e,t)},e.prototype.isCollapsed=function(e){return this.model.isCollapsed(e)},e.prototype.setCollapsed=function(e,t,n){return this.model.setCollapsed(e,t,n)},e.prototype.expandTo=function(e){return this.model.expandTo(e)},e.prototype.rerender=function(e){return this.model.rerender(e)},e.prototype.refilter=function(){return this.model.refilter()},e.prototype.getCompressedTreeNode=function(e){return void 0===e&&(e=null),this.model.getNode(e)},e}(),HM=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)}}(),QM=function(){return QM=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},QM.apply(this,arguments)},VM=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},WM=function(e){function t(t,n,i,o,r){return void 0===r&&(r={}),e.call(this,t,n,i,o,r)||this}return HM(t,e),Object.defineProperty(t.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),t.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},t.prototype.rerender=function(e){void 0!==e?this.model.rerender(e):this.view.rerender()},t.prototype.createModel=function(e,t,n){return new xM(e,t,n)},t}(SM),KM=function(){function e(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}return Object.defineProperty(e.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=this.renderer.renderTemplate(e);return{compressedTreeNode:void 0,data:t}},e.prototype.renderElement=function(e,t,n,i){var o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===o.element.elements.length?(n.compressedTreeNode=void 0,this.renderer.renderElement(e,t,n.data,i)):(n.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,n.data,i))},e.prototype.disposeElement=function(e,t,n,i){n.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(n.compressedTreeNode,t,n.data,i):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.data,i)},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.data)},e.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)},VM([Ig],e.prototype,"compressedTreeNodeProvider",null),e}();function zM(e,t){return t&&QM(QM({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(n){var i;try{i=e().getCompressedTreeNode(n)}catch(o){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n)}return 1===i.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}var jM=function(e){function t(t,n,i,o,r){void 0===r&&(r={});var s=this,a=function(){return s},u=o.map((function(e){return new KM(a,e)}));return s=e.call(this,t,n,i,u,zM(a,r))||this,s}return HM(t,e),t.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},t.prototype.createModel=function(e,t,n){return new UM(e,t,n)},t.prototype.updateOptions=function(t){void 0===t&&(t={}),e.prototype.updateOptions.call(this,t),"undefined"!==typeof t.compressionEnabled&&this.model.setCompressionEnabled(t.compressionEnabled)},t.prototype.getCompressedTreeNode=function(e){return void 0===e&&(e=null),this.model.getCompressedTreeNode(e)},t}(WM),GM=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)}}(),qM=function(){return qM=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qM.apply(this,arguments)},YM=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},XM=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},JM=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function ZM(e){return qM(qM({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function $M(e,t){return!!t.parent&&(t.parent===e||$M(e,t.parent))}function eO(e,t){return e===t||$M(e,t)||$M(t,e)}var tO=function(){function e(e){this.node=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.node.children.map((function(t){return new e(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),e}(),nO=function(){function e(e,t,n){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.templateId=e.templateId}return e.prototype.renderTemplate=function(e){var t=this.renderer.renderTemplate(e);return{templateData:t}},e.prototype.renderElement=function(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)},e.prototype.renderTwistie=function(e,t){return go(t,"codicon-loading",e.slow),!1},e.prototype.disposeElement=function(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},e.prototype.dispose=function(){this.renderedNodes.clear()},e}();function iO(e){return{browserEvent:e.browserEvent,elements:e.elements.map((function(e){return e.element}))}}var oO=function(e){function t(t){var n=e.call(this,t.elements.map((function(e){return e.element})))||this;return n.data=t,n}return GM(t,e),t}(gI);function rO(e){return e instanceof gI?new oO(e):e}var sO=function(){function e(e){this.dnd=e}return e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},e.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(rO(e),t)},e.prototype.onDragOver=function(e,t,n,i,o){return void 0===o&&(o=!0),this.dnd.onDragOver(rO(e),t&&t.element,n,i)},e.prototype.drop=function(e,t,n,i){this.dnd.drop(rO(e),t&&t.element,n,i)},e.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},e}();function aO(e){return e&&qM(qM({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:function(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new sO(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:function(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(qM(qM({},t),{element:t.element}))},isSelectionRangeChangeEvent:function(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(qM(qM({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&qM(qM({},e.accessibilityProvider),{getAriaLabel:function(t){return e.accessibilityProvider.getAriaLabel(t.element)},getAriaLevel:e.accessibilityProvider.getAriaLevel&&function(t){return e.accessibilityProvider.getAriaLevel(t.element)},getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&function(t){return e.accessibilityProvider.getActiveDescendantId(t.element)}}),filter:e.filter&&{filter:function(t,n){return e.filter.filter(t.element,n)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&qM(qM({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:function(t){return e.expandOnlyOnTwistieClick(t.element)},ariaProvider:void 0,additionalScrollHeight:e.additionalScrollHeight})}function uO(e,t){t(e),e.children.forEach((function(e){return uO(e,t)}))}var lO=function(){function e(e,t,n,i,o,r){void 0===r&&(r={}),this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new Ye,this._onDidChangeNodeSlowState=new Ye,this.nodeMapper=new $F((function(e){return new tO(e)})),this.disposables=new ke,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,n,i,r),this.root=ZM({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=qM(qM({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}return Object.defineProperty(e.prototype,"onDidChangeFocus",{get:function(){return Ue.map(this.tree.onDidChangeFocus,iO)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeSelection",{get:function(){return Ue.map(this.tree.onDidChangeSelection,iO)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidOpen",{get:function(){return Ue.map(this.tree.onDidOpen,iO)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),e.prototype.createTree=function(e,t,n,i,o){var r=this,s=new AM(n),a=i.map((function(e){return new nO(e,r.nodeMapper,r._onDidChangeNodeSlowState.event)})),u=aO(o)||{};return new WM(e,t,s,a,u)},e.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},e.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(e){this.tree.scrollTop=e},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.tree.domFocus()},e.prototype.layout=function(e,t){this.tree.layout(e,t)},e.prototype.style=function(e){this.tree.style(e)},e.prototype.getInput=function(){return this.root.element},e.prototype.setInput=function(e,t){return YM(this,void 0,void 0,(function(){var n;return XM(this,(function(i){switch(i.label){case 0:return this.refreshPromises.forEach((function(e){return e.cancel()})),this.refreshPromises.clear(),this.root.element=e,n=t&&{viewState:t,focus:[],selection:[]},[4,this._updateChildren(e,!0,!1,n)];case 1:return i.sent(),n&&(this.tree.setFocus(n.focus),this.tree.setSelection(n.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop),[2]}}))}))},e.prototype._updateChildren=function(e,t,n,i){return void 0===e&&(e=this.root.element),void 0===t&&(t=!0),void 0===n&&(n=!1),YM(this,void 0,void 0,(function(){var o;return XM(this,(function(r){switch(r.label){case 0:if("undefined"===typeof this.root.element)throw new ZF(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return r.sent(),[4,Ue.toPromise(this._onDidRender.event)];case 2:r.sent(),r.label=3;case 3:return o=this.getDataNode(e),[4,this.refreshAndRenderNode(o,t,i)];case 4:if(r.sent(),n)try{this.tree.rerender(o)}catch(s){}return[2]}}))}))},e.prototype.rerender=function(e){if(void 0!==e&&e!==this.root.element){var t=this.getDataNode(e);this.tree.rerender(t)}else this.tree.rerender()},e.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getDataNode(e);return this.tree.collapse(n===this.root?null:n,t)},e.prototype.expand=function(e,t){return void 0===t&&(t=!1),YM(this,void 0,void 0,(function(){var n,i;return XM(this,(function(o){switch(o.label){case 0:if("undefined"===typeof this.root.element)throw new ZF(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return o.sent(),[4,Ue.toPromise(this._onDidRender.event)];case 2:o.sent(),o.label=3;case 3:return n=this.getDataNode(e),n.refreshPromise?[4,this.root.refreshPromise]:[3,6];case 4:return o.sent(),[4,Ue.toPromise(this._onDidRender.event)];case 5:o.sent(),o.label=6;case 6:return n===this.root||n.refreshPromise||this.tree.isCollapsed(n)?(i=this.tree.expand(n===this.root?null:n,t),n.refreshPromise?[4,this.root.refreshPromise]:[3,9]):[2,!1];case 7:return o.sent(),[4,Ue.toPromise(this._onDidRender.event)];case 8:o.sent(),o.label=9;case 9:return[2,i]}}))}))},e.prototype.setSelection=function(e,t){var n=this,i=e.map((function(e){return n.getDataNode(e)}));this.tree.setSelection(i,t)},e.prototype.getSelection=function(){var e=this.tree.getSelection();return e.map((function(e){return e.element}))},e.prototype.setFocus=function(e,t){var n=this,i=e.map((function(e){return n.getDataNode(e)}));this.tree.setFocus(i,t)},e.prototype.getFocus=function(){var e=this.tree.getFocus();return e.map((function(e){return e.element}))},e.prototype.reveal=function(e,t){this.tree.reveal(this.getDataNode(e),t)},e.prototype.getDataNode=function(e){var t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new ZF(this.user,"Data tree node not found: "+e);return t},e.prototype.refreshAndRenderNode=function(e,t,n){return YM(this,void 0,void 0,(function(){return XM(this,(function(i){switch(i.label){case 0:return[4,this.refreshNode(e,t,n)];case 1:return i.sent(),this.render(e,n),[2]}}))}))},e.prototype.refreshNode=function(e,t,n){return YM(this,void 0,void 0,(function(){var i,o=this;return XM(this,(function(r){return this.subTreeRefreshPromises.forEach((function(r,s){!i&&eO(s,e)&&(i=r.then((function(){return o.refreshNode(e,t,n)})))})),i?[2,i]:[2,this.doRefreshSubTree(e,t,n)]}))}))},e.prototype.doRefreshSubTree=function(e,t,n){return YM(this,void 0,void 0,(function(){var i,o,r=this;return XM(this,(function(s){switch(s.label){case 0:e.refreshPromise=new Promise((function(e){return i=e})),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((function(){e.refreshPromise=void 0,r.subTreeRefreshPromises.delete(e)})),s.label=1;case 1:return s.trys.push([1,,4,5]),[4,this.doRefreshNode(e,t,n)];case 2:return o=s.sent(),e.stale=!1,[4,Promise.all(o.map((function(e){return r.doRefreshSubTree(e,t,n)})))];case 3:return s.sent(),[3,5];case 4:return i(),[7];case 5:return[2]}}))}))},e.prototype.doRefreshNode=function(e,t,n){return YM(this,void 0,void 0,(function(){var i,o,r,s,a=this;return XM(this,(function(u){switch(u.label){case 0:e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren?(o=vi(800),o.then((function(){e.slow=!0,a._onDidChangeNodeSlowState.fire(e)}),(function(e){return null})),i=this.doGetChildren(e).finally((function(){return o.cancel()}))):i=Promise.resolve([]),u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,i];case 2:return r=u.sent(),[2,this.setChildren(e,r,t,n)];case 3:if(s=u.sent(),e!==this.root&&this.tree.collapse(e===this.root?null:e),me(s))return[2,[]];throw s;case 4:return e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e)),[7];case 5:return[2]}}))}))},e.prototype.doGetChildren=function(e){var t=this,n=this.refreshPromises.get(e);return n||(n=fi((function(){return YM(t,void 0,void 0,(function(){var t;return XM(this,(function(n){switch(n.label){case 0:return[4,this.dataSource.getChildren(e.element)];case 1:return t=n.sent(),[2,this.processChildren(t)]}}))}))})),this.refreshPromises.set(e,n),n.finally((function(){return t.refreshPromises.delete(e)})))},e.prototype._onDidChangeCollapseState=function(e){var t=e.node,n=e.deep;!t.collapsed&&t.element.stale&&(n?this.collapse(t.element.element):this.refreshAndRenderNode(t.element,!1).catch(Ae))},e.prototype.setChildren=function(e,t,n,i){var o,r=this;if(0===e.children.length&&0===t.length)return[];for(var s=new Map,a=new Map,u=0,l=e.children;u<l.length;u++){var c=l[u];if(s.set(c.element,c),this.identityProvider){var d=this.tree.isCollapsed(c);a.set(c.id,{node:c,collapsed:d})}}for(var h=[],A=t.map((function(t){var o=!!r.dataSource.hasChildren(t);if(!r.identityProvider){var u=ZM({element:t,parent:e,hasChildren:o});return o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(u.collapsedByDefault=!1,h.push(u)),u}var l=r.identityProvider.getId(t).toString(),c=a.get(l);if(c){u=c.node;return s.delete(u.element),r.nodes.delete(u.element),r.nodes.set(t,u),u.element=t,u.hasChildren=o,n?c.collapsed?(u.children.forEach((function(e){return uO(e,(function(e){return r.nodes.delete(e.element)}))})),u.children.splice(0,u.children.length),u.stale=!0):h.push(u):o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(u.collapsedByDefault=!1,h.push(u)),u}var d=ZM({element:t,parent:e,id:l,hasChildren:o});return i&&i.viewState.focus&&i.viewState.focus.indexOf(l)>-1&&i.focus.push(d),i&&i.viewState.selection&&i.viewState.selection.indexOf(l)>-1&&i.selection.push(d),i&&i.viewState.expanded&&i.viewState.expanded.indexOf(l)>-1?h.push(d):o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(d.collapsedByDefault=!1,h.push(d)),d})),p=0,f=Fa(s);p<f.length;p++){var g=f[p];uO(g,(function(e){return r.nodes.delete(e.element)}))}for(var m=0,v=A;m<v.length;m++){c=v[m];this.nodes.set(c.element,c)}return(o=e.children).splice.apply(o,JM([0,e.children.length],A)),e!==this.root&&this.autoExpandSingleChildren&&1===A.length&&0===h.length&&(A[0].collapsedByDefault=!1,h.push(A[0])),h},e.prototype.render=function(e,t){var n=this,i=e.children.map((function(e){return n.asTreeElement(e,t)}));this.tree.setChildren(e===this.root?null:e,i),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()},e.prototype.asTreeElement=function(e,t){var n,i=this;return e.stale?{element:e,collapsible:e.hasChildren,collapsed:!0}:(n=!(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1)&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?Ne.map(Ne.fromArray(e.children),(function(e){return i.asTreeElement(e,t)})):[],collapsible:e.hasChildren,collapsed:n})},e.prototype.processChildren=function(e){return this.sorter&&e.sort(this.sorter.compare.bind(this.sorter)),e},e.prototype.dispose=function(){this.disposables.dispose()},e}(),cO=function(){function e(e){this.node=e}return Object.defineProperty(e.prototype,"element",{get:function(){return{elements:this.node.element.elements.map((function(e){return e.element})),incompressible:this.node.element.incompressible}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.node.children.map((function(t){return new e(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),e}(),dO=function(){function e(e,t,n,i){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=n,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}return e.prototype.renderTemplate=function(e){var t=this.renderer.renderTemplate(e);return{templateData:t}},e.prototype.renderElement=function(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)},e.prototype.renderCompressedElements=function(e,t,n,i){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)},e.prototype.renderTwistie=function(e,t){return go(t,"codicon-loading",e.slow),!1},e.prototype.disposeElement=function(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)},e.prototype.disposeCompressedElements=function(e,t,n,i){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},e.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=xe(this.disposables)},e}();function hO(e){var t=e&&aO(e);return t&&qM(qM({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&qM(qM({},t.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(t){return e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((function(e){return e.element})))}})})}var AO=function(e){function t(t,n,i,o,r,s,a){void 0===a&&(a={});var u=e.call(this,t,n,i,r,s,a)||this;return u.compressionDelegate=o,u.compressibleNodeMapper=new $F((function(e){return new cO(e)})),u.filter=a.filter,u}return GM(t,e),t.prototype.createTree=function(e,t,n,i,o){var r=this,s=new AM(n),a=i.map((function(e){return new dO(e,r.nodeMapper,(function(){return r.compressibleNodeMapper}),r._onDidChangeNodeSlowState.event)})),u=hO(o)||{};return new jM(e,t,s,a,u)},t.prototype.asTreeElement=function(t,n){return qM({incompressible:this.compressionDelegate.isIncompressible(t.element)},e.prototype.asTreeElement.call(this,t,n))},t.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},t.prototype.render=function(t,n){var i=this;if(!this.identityProvider)return e.prototype.render.call(this,t,n);var o=function(e){return i.identityProvider.getId(e).toString()},r=function(e){for(var t=new Set,n=0,r=e;n<r.length;n++){var s=r[n],a=i.tree.getCompressedTreeNode(s===i.root?null:s);if(a.element)for(var u=0,l=a.element.elements;u<l.length;u++){var c=l[u];t.add(o(c.element))}}return t},s=r(this.tree.getSelection()),a=r(this.tree.getFocus());e.prototype.render.call(this,t,n);var u=this.getSelection(),l=!1,c=this.getFocus(),d=!1,h=function(e){var t=e.element;if(t)for(var n=0;n<t.elements.length;n++){var i=o(t.elements[n].element),r=t.elements[t.elements.length-1].element;s.has(i)&&-1===u.indexOf(r)&&(u.push(r),l=!0),a.has(i)&&-1===c.indexOf(r)&&(c.push(r),d=!0)}e.children.forEach(h)};h(this.tree.getCompressedTreeNode(t===this.root?null:t)),l&&this.setSelection(u),d&&this.setFocus(c)},t.prototype.processChildren=function(t){var n=this;return this.filter&&(t=t.filter((function(e){var t=n.filter.filter(e,1),i=pO(t);if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),e.prototype.processChildren.call(this,t)},t}(lO);function pO(e){return"boolean"===typeof e?e?1:0:tM(e)?nM(e.visibility):nM(e)}var fO,gO=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)}}(),mO=function(e){function t(t,n,i,o,r,s){void 0===s&&(s={});var a=e.call(this,t,n,i,o,s)||this;return a.user=t,a.dataSource=r,a.identityProvider=s.identityProvider,a}return gO(t,e),t.prototype.createModel=function(e,t,n){return new xM(e,t,n)},t}(SM),vO=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)}}(),_O=function(){return _O=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_O.apply(this,arguments)},yO=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},wO=function(e,t){return function(n,i){t(n,i,e)}},bO=Dn("listService"),CO=function(){function e(e){this.disposables=new ke,this.lists=[],this._lastFocusedWidget=void 0;var t=new UF(qo(),"");this.disposables.add(xk(t,e))}return Object.defineProperty(e.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this;if(this.lists.some((function(t){return t.widget===e})))throw new Error("Cannot register the same widget multiple times");var i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),Le(e.onDidFocus((function(){return n._lastFocusedWidget=e})),De((function(){return n.lists.splice(n.lists.indexOf(i),1)})),e.onDidDispose((function(){n.lists=n.lists.filter((function(e){return e!==i})),n._lastFocusedWidget===e&&(n._lastFocusedWidget=void 0)})))},e.prototype.dispose=function(){this.disposables.dispose()},e=yO([wO(0,um)],e),e}(),SO=new Fp("listFocus",!0),BO=new Fp("listSupportsMultiselect",!0),EO=Cp.and(SO,Cp.not(XF)),xO=new Fp("listHasSelectionOrFocus",!1),LO=new Fp("listDoubleSelection",!1),DO=new Fp("listMultiSelection",!1),NO=new Fp("listSupportsKeyboardNavigation",!0),kO="listAutomaticKeyboardNavigation",IO=new Fp(kO,!0),FO=!1;function MO(e,t){var n=e.createScoped(t.getHTMLElement());return SO.bindTo(n),n}var OO="workbench.list.multiSelectModifier",TO="workbench.list.openMode",PO="workbench.list.horizontalScrolling",RO="workbench.list.keyboardNavigation",UO="workbench.list.automaticKeyboardNavigation",HO="workbench.tree.indent",QO="workbench.tree.renderIndentGuides";function VO(e){return pp(e,PO,"workbench.tree.horizontalScrolling")}function WO(e){return"alt"===e.getValue(OO)}function KO(e){return"doubleClick"!==e.getValue(TO)}var zO=function(e){function t(t){var n=e.call(this)||this;return n.configurationService=t,n.useAltAsMultipleSelectionModifier=WO(t),n.registerListeners(),n}return vO(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(OO)&&(e.useAltAsMultipleSelectionModifier=WO(e.configurationService))})))},t.prototype.isSelectionSingleChangeEvent=function(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:FF(e)},t.prototype.isSelectionRangeChangeEvent=function(e){return MF(e)},t}(Ie),jO=function(e){function t(t,n){var i=e.call(this)||this;return i.configurationService=t,i.existingOpenController=n,i.openOnSingleClick=KO(t),i.registerListeners(),i}return vO(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(TO)&&(e.openOnSingleClick=KO(e.configurationService))})))},t.prototype.shouldOpen=function(e){if(e instanceof MouseEvent){var t=0===e.button,n=2===e.detail;return!(t&&!this.openOnSingleClick&&!n)&&(!(!t&&1!==e.button)&&(!this.existingOpenController||this.existingOpenController.shouldOpen(e)))}return!this.existingOpenController||this.existingOpenController.shouldOpen(e)},t}(Ie);function GO(e,t,n){var i=new ke,o=_O({},e);if(!1!==e.multipleSelectionSupport&&!e.multipleSelectionController){var r=new zO(t);o.multipleSelectionController=r,i.add(r)}var s=new jO(t,e.openController);return o.openController=s,i.add(s),o.keyboardNavigationDelegate={mightProducePrintableCharacter:function(e){return n.mightProducePrintableCharacter(e)}},[o,i]}function qO(e,t){var n=!1;return function(i){if(n)return n=!1,!1;var o=t.softDispatch(i,e);return o&&o.enterChord?(n=!0,!1):(n=!1,!0)}}(function(e){function t(t,n,i,o,r,s,a,u,l,c,d){var h=this,A=XO(n,r,s,l,c,d),p=A.options,f=A.getAutomaticKeyboardNavigation,g=A.disposable;return h=e.call(this,t,n,i,o,p)||this,h.disposables.add(g),h.internals=new $O(h,p,f,r.overrideStyles,s,a,u,l,d),h.disposables.add(h.internals),h}vO(t,e),t=yO([wO(5,Mp),wO(6,bO),wO(7,um),wO(8,rp),wO(9,pD),wO(10,Kx)],t)})(WM),function(e){function t(t,n,i,o,r,s,a,u,l,c,d,h){var A=this,p=XO(n,s,a,c,d,h),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return A=e.call(this,t,n,i,o,r,f)||this,A.disposables.add(m),A.internals=new $O(A,f,g,s.overrideStyles,a,u,l,c,h),A.disposables.add(A.internals),A}vO(t,e),t=yO([wO(6,Mp),wO(7,bO),wO(8,um),wO(9,rp),wO(10,pD),wO(11,Kx)],t)}(mO);var YO=function(e){function t(t,n,i,o,r,s,a,u,l,c,d,h){var A=this,p=XO(n,s,a,c,d,h),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return A=e.call(this,t,n,i,o,r,f)||this,A.disposables.add(m),A.internals=new $O(A,f,g,s.overrideStyles,a,u,l,c,h),A.disposables.add(A.internals),A}return vO(t,e),t=yO([wO(6,Mp),wO(7,bO),wO(8,um),wO(9,rp),wO(10,pD),wO(11,Kx)],t),t}(lO);(function(e){function t(t,n,i,o,r,s,a,u,l,c,d,h,A){var p=this,f=XO(n,a,u,d,h,A),g=f.options,m=f.getAutomaticKeyboardNavigation,v=f.disposable;return p=e.call(this,t,n,i,o,r,s,g)||this,p.disposables.add(v),p.internals=new $O(p,g,m,a.overrideStyles,u,l,c,d,A),p.disposables.add(p.internals),p}vO(t,e),t=yO([wO(7,Mp),wO(8,bO),wO(9,um),wO(10,rp),wO(11,pD),wO(12,Kx)],t)})(AO);function XO(e,t,n,i,o,r){NO.bindTo(n),FO||(IO.bindTo(n),FO=!0);var s=function(){var e=n.getContextKeyValue(kO);return e&&(e=i.getValue(UO)),e},a=2===r.getAccessibilitySupport(),u=a?"simple":i.getValue(RO),l="undefined"!==typeof t.horizontalScrolling?t.horizontalScrolling:VO(i),c=KO(i),d=GO(t,i,o),h=d[0],A=d[1],p=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:s,disposable:A,options:_O(_O({keyboardSupport:!1},h),{indent:i.getValue(HO),renderIndentGuides:i.getValue(QO),automaticKeyboardNavigation:s(),simpleKeyboardNavigation:"simple"===u,filterOnType:"filter"===u,horizontalScrolling:l,openOnSingleClick:c,keyboardNavigationEventFilter:qO(e,o),additionalScrollHeight:p,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements})}}var JO,ZO,$O=function(){function e(e,t,n,i,o,r,s,a,u){var l=this;this.disposables=[],this.contextKeyService=MO(o,e);var c=BO.bindTo(this.contextKeyService);c.set(!(!1===t.multipleSelectionSupport)),this.hasSelectionOrFocus=xO.bindTo(this.contextKeyService),this.hasDoubleSelection=LO.bindTo(this.contextKeyService),this.hasMultiSelection=DO.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=WO(a);var d=new Set;d.add(kO);var h=function(){var t=2===u.getAccessibilitySupport(),n=t?"simple":a.getValue(RO);e.updateOptions({simpleKeyboardNavigation:"simple"===n,filterOnType:"filter"===n})};this.disposables.push(this.contextKeyService,r.register(e),i?xk(e,s,i):Ie.None,e.onDidChangeSelection((function(){var t=e.getSelection(),n=e.getFocus();l.hasSelectionOrFocus.set(t.length>0||n.length>0),l.hasMultiSelection.set(t.length>1),l.hasDoubleSelection.set(2===t.length)})),e.onDidChangeFocus((function(){var t=e.getSelection(),n=e.getFocus();l.hasSelectionOrFocus.set(t.length>0||n.length>0)})),a.onDidChangeConfiguration((function(t){if(t.affectsConfiguration(TO)&&e.updateOptions({openOnSingleClick:KO(a)}),t.affectsConfiguration(OO)&&(l._useAltAsMultipleSelectionModifier=WO(a)),t.affectsConfiguration(HO)){var i=a.getValue(HO);e.updateOptions({indent:i})}if(t.affectsConfiguration(QO)){var o=a.getValue(QO);e.updateOptions({renderIndentGuides:o})}t.affectsConfiguration(RO)&&h(),t.affectsConfiguration(UO)&&e.updateOptions({automaticKeyboardNavigation:n()})})),this.contextKeyService.onDidChangeContext((function(t){t.affectsSome(d)&&e.updateOptions({automaticKeyboardNavigation:n()})})),u.onDidChangeAccessibilitySupport((function(){return h()})))}return e.prototype.dispose=function(){this.disposables=xe(this.disposables)},e=yO([wO(4,Mp),wO(5,bO),wO(6,um),wO(7,rp),wO(8,Kx)],e),e}(),eT=uA.as(AA.Configuration);eT.registerConfiguration({id:"workbench",order:7,title:r("workbenchConfigurationTitle","Workbench"),type:"object",properties:(fO={},fO[OO]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[r("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),r("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:r({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},fO[TO]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:r({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},fO[PO]={type:"boolean",default:!1,description:r("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},fO["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:r("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:r("deprecated","This setting is deprecated, please use '{0}' instead.",PO)},fO[HO]={type:"number",default:8,minimum:0,maximum:40,description:r("tree indent setting","Controls tree indentation in pixels.")},fO[QO]={type:"string",enum:["none","onHover","always"],default:"onHover",description:r("render tree indent guides","Controls whether the tree should render indent guides.")},fO[RO]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[r("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),r("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),r("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:r("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},fO[UO]={type:"boolean",default:!0,markdownDescription:r("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},fO)}),function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"}(JO||(JO={})),function(e){function t(e,t){return t-e}e.compare=t;var n=Object.create(null);function i(e){return n[e]||""}function o(t){switch(t){case rA.Error:return e.Error;case rA.Warning:return e.Warning;case rA.Info:return e.Info;case rA.Ignore:return e.Hint}}function s(t){switch(t){case e.Error:return rA.Error;case e.Warning:return rA.Warning;case e.Info:return rA.Info;case e.Hint:return rA.Ignore}}n[e.Error]=r("sev.error","Error"),n[e.Warning]=r("sev.warning","Warning"),n[e.Info]=r("sev.info","Info"),e.toString=i,e.fromSeverity=o,e.toSeverity=s}(JO||(JO={})),function(e){var t="";function n(e){return i(e,!0)}function i(e,n){var i=[t];return e.source?i.push(e.source.replace("¦","¦")):i.push(t),e.code?i.push(e.code.replace("¦","¦")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(JO.toString(e.severity)):i.push(t),e.message&&n?i.push(e.message.replace("¦","¦")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("¦")}e.makeKey=n,e.makeKeyOptionalMessage=i}(ZO||(ZO={}));var tT,nT=Dn("markerService");(function(e){function t(e,t,n){if(e[t])return e[t][n]}function n(e,t,n,i){e[t]||(e[t]=Object.create(null)),e[t][n]=i}function i(e,t,n){return!(!e[t]||!e[t][n])&&(delete e[t][n],Ca(e[t])&&delete e[t],!0)}e.get=t,e.set=n,e.remove=i})(tT||(tT={}));var iT,oT=function(){function e(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}return e.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},e.prototype._update=function(e){if(this._data)for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i.toString(),r=this._data[o];r&&this._substract(r);var s=this._resourceStats(i);this._add(s),this._data[o]=s}},e.prototype._resourceStats=function(e){var t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===Bi.inMemory||e.scheme===Bi.walkThrough||e.scheme===Bi.walkThroughSnippet)return t;for(var n=0,i=this._service.read({resource:e});n<i.length;n++){var o=i[n].severity;o===JO.Error?t.errors+=1:o===JO.Warning?t.warnings+=1:o===JO.Info?t.infos+=1:t.unknowns+=1}return t},e.prototype._substract=function(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns},e.prototype._add=function(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns},e}(),rT=function(){function e(){this._onMarkerChanged=new Ye,this._onMarkerChangedEvent=Ue.debounce(this._onMarkerChanged.event,e._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new oT(this)}return e.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty(e.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),e.prototype.remove=function(e,t){for(var n=0,i=t||[];n<i.length;n++){var o=i[n];this.changeOne(e,o,[])}},e.prototype.changeOne=function(t,n,i){if(Pi(i)){var o=tT.remove(this._byResource,n.toString(),t),r=tT.remove(this._byOwner,t,n.toString());if(o!==r)throw new Error("invalid marker service state");o&&r&&this._onMarkerChanged.fire([n])}else{for(var s=[],a=0,u=i;a<u.length;a++){var l=u[a],c=e._toMarker(t,n,l);c&&s.push(c)}tT.set(this._byResource,n.toString(),t,s),tT.set(this._byOwner,t,n.toString(),s),this._onMarkerChanged.fire([n])}},e._toMarker=function(e,t,n){var i=n.code,o=n.severity,r=n.message,s=n.source,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn,d=n.relatedInformation,h=n.tags;if(r)return a=a>0?a:1,u=u>0?u:1,l=l>=a?l:a,c=c>0?c:u,{resource:t,owner:e,code:i,severity:o,message:r,source:s,startLineNumber:a,startColumn:u,endLineNumber:l,endColumn:c,relatedInformation:d,tags:h}},e.prototype.read=function(t){void 0===t&&(t=Object.create(null));var n=t.owner,i=t.resource,o=t.severities,r=t.take;if((!r||r<0)&&(r=-1),n&&i){var s=tT.get(this._byResource,i.toString(),n);if(s){for(var a=[],u=0,l=s;u<l.length;u++){var c=l[u];if(e._accept(c,o)){var d=a.push(c);if(r>0&&d===r)break}}return a}return[]}if(n||i){var h=n?this._byOwner[n]:i?this._byResource[i.toString()]:void 0;if(!h)return[];a=[];for(var A in h)for(var p=0,f=h[A];p<f.length;p++){s=f[p];if(e._accept(s,o)){d=a.push(s);if(r>0&&d===r)return a}}return a}var a=[];for(var g in this._byResource)for(var m in this._byResource[g])for(var v=0,_=this._byResource[g][m];v<_.length;v++){var s=_[v];if(e._accept(s,o)){var d=a.push(s);if(r>0&&d===r)return a}}return a},e._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity},e._debouncer=function(t,n){t||(e._dedupeMap=Object.create(null),t=[]);for(var i=0,o=n;i<o.length;i++){var r=o[i];void 0===e._dedupeMap[r.toString()]&&(e._dedupeMap[r.toString()]=!0,t.push(r))}return t},e}(),sT=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)}}(),aT=Dn("storageService");(function(e){e[e["NONE"]=0]="NONE",e[e["SHUTDOWN"]=1]="SHUTDOWN"})(iT||(iT={}));var uT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidChangeStorage=t._register(new Ye),t.onDidChangeStorage=t._onDidChangeStorage.event,t.onWillSaveState=Ue.None,t.globalCache=new Map,t.workspaceCache=new Map,t}return sT(t,e),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 ya(i)?n:i},t.prototype.getBoolean=function(e,t,n){var i=this.getCache(t).get(e);return ya(i)?n:"true"===i},t.prototype.store=function(e,t,n){if(ya(t))return this.remove(e,n);var i=String(t),o=this.getCache(n).get(e);return o===i||(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}(Ie),lT=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},cT=function(e,t){return function(n,i){t(n,i,e)}},dT=function(){function e(e){this._commandService=e}return e.prototype.createMenu=function(e,t){return new hT(e,this._commandService,t)},e=lT([cT(0,Ka)],e),e}(),hT=function(){function e(e,t,n){var i=this;this._id=e,this._commandService=t,this._contextKeyService=n,this._onDidChange=new Ye,this._dispoables=new ke,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(Ue.debounce(Ue.filter(dg.onDidChangeMenu,(function(e){return e===i._id})),(function(){}),50)(this._build,this)),this._dispoables.add(Ue.debounce(this._contextKeyService.onDidChangeContext,(function(e,t){return e||t.affectsSome(i._contextKeys)}),50)((function(e){return e&&i._onDidChange.fire(void 0)}),this))}return e.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},e.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var t,n=dg.getMenuItems(this._id);n.sort(e._compareMenuItems);for(var i=0,o=n;i<o.length;i++){var r=o[i],s=r.group||"";t&&t[0]===s||(t=[s,[]],this._menuGroups.push(t)),t[1].push(r),e._fillInKbExprKeys(r.when,this._contextKeys),ug(r)&&r.command.precondition&&e._fillInKbExprKeys(r.command.precondition,this._contextKeys),ug(r)&&r.command.toggled&&e._fillInKbExprKeys(r.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},e.prototype.getActions=function(e){for(var t=[],n=0,i=this._menuGroups;n<i.length;n++){for(var o=i[n],r=o[0],s=o[1],a=[],u=0,l=s;u<l.length;u++){var c=l[u];if(this._contextKeyService.contextMatchesRules(c.when)){var d=ug(c)?new pg(c.command,c.alt,e,this._contextKeyService,this._commandService):new Ag(c);a.push(d)}}a.length>0&&t.push([r,a])}return t},e._fillInKbExprKeys=function(e,t){if(e)for(var n=0,i=e.keys();n<i.length;n++){var o=i[n];t.add(o)}},e._compareMenuItems=function(t,n){var i=t.group,o=n.group;if(i!==o){if(!i)return 1;if(!o)return-1;if("navigation"===i)return-1;if("navigation"===o)return 1;var r=i.localeCompare(o);if(0!==r)return r}var s=t.order||0,a=n.order||0;return s<a?-1:s>a?1:e._compareTitles(ug(t)?t.command.title:t.title,ug(n)?n.command.title:n.title)},e._compareTitles=function(e,t){var n="string"===typeof e?e:e.value,i="string"===typeof t?t:t.value;return n.localeCompare(i)},e=lT([cT(1,Ka),cT(2,Mp)],e),e}(),AT=Dn("markerDecorationsService"),pT=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)}}(),fT=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},gT=function(e,t){return function(n,i){t(n,i,e)}};function mT(e){return e.toString()}var vT,_T=function(e){function t(t){var n=e.call(this)||this;return n.model=t,n._markersData=new Map,n._register(De((function(){n.model.deltaDecorations(Ma(n._markersData),[]),n._markersData.clear()}))),n}return pT(t,e),t.prototype.update=function(e,t){for(var n=this.model.deltaDecorations(Ma(this._markersData),t),i=0;i<n.length;i++)this._markersData.set(n[i],e[i])},t.prototype.getMarker=function(e){return this._markersData.get(e.id)},t}(Ie),yT=function(e){function t(t,n){var i=e.call(this)||this;return i._markerService=n,i._onDidChangeMarker=i._register(new Ye),i._markerDecorations=new Map,t.getModels().forEach((function(e){return i._onModelAdded(e)})),i._register(t.onModelAdded(i._onModelAdded,i)),i._register(t.onModelRemoved(i._onModelRemoved,i)),i._register(i._markerService.onMarkerChanged(i._handleMarkerChange,i)),i}return pT(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._markerDecorations.forEach((function(e){return e.dispose()})),this._markerDecorations.clear()},t.prototype.getMarker=function(e,t){var n=this._markerDecorations.get(mT(e.uri));return n?ka(n.getMarker(t)):null},t.prototype._handleMarkerChange=function(e){var t=this;e.forEach((function(e){var n=t._markerDecorations.get(mT(e));n&&t._updateDecorations(n)}))},t.prototype._onModelAdded=function(e){var t=new _T(e);this._markerDecorations.set(mT(e.uri),t),this._updateDecorations(t)},t.prototype._onModelRemoved=function(e){var t=this,n=this._markerDecorations.get(mT(e.uri));n&&(n.dispose(),this._markerDecorations.delete(mT(e.uri))),e.uri.scheme!==Bi.inMemory&&e.uri.scheme!==Bi.internal&&e.uri.scheme!==Bi.vscode||this._markerService&&this._markerService.read({resource:e.uri}).map((function(e){return e.owner})).forEach((function(n){return t._markerService.remove(n,[e.uri])}))},t.prototype._updateDecorations=function(e){var t=this,n=this._markerService.read({resource:e.model.uri,take:500}),i=n.map((function(n){return{range:t._createDecorationRange(e.model,n),options:t._createDecorationOption(n)}}));e.update(n,i),this._onDidChangeMarker.fire(e.model)},t.prototype._createDecorationRange=function(e,t){var n=vn.lift(t);if(t.severity===JO.Hint&&(t.tags&&-1!==t.tags.indexOf(1)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2))),n=e.validateRange(n),n.isEmpty()){var i=e.getWordAtPosition(n.getStartPosition());if(i)n=new vn(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn);else{var o=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===o||(n=n.endColumn>=o?new vn(n.startLineNumber,o-1,n.endLineNumber,o):new vn(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){var r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r<n.endColumn&&(n=new vn(n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r)}return n},t.prototype._createDecorationOption=function(e){var t,n,i,o=void 0,r=void 0;switch(e.severity){case JO.Hint:t=e.tags&&e.tags.indexOf(1)>=0?"squiggly-unnecessary":"squiggly-hint",n=0;break;case JO.Warning:t="squiggly-warning",o=lm(CC),n=20,i={color:lm(Qb),position:Eu.Inline};break;case JO.Info:t="squiggly-info",o=lm(SC),n=10;break;case JO.Error:default:t="squiggly-error",o=lm(bC),n=30,i={color:lm(Hb),position:Eu.Inline};break}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:o,position:Bu.Right},minimap:i,zIndex:n,inlineClassName:r}},t=fT([gT(0,ll),gT(1,nT)],t),t}(Ie),wT=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)}}(),bT=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},CT=function(e,t){return function(n,i){t(n,i,e)}},ST=function(e){function t(t,n){var i=e.call(this)||this;return i._contextKeyService=t,i._configurationService=n,i._onDidChangeAccessibilitySupport=new Ye,i.onDidChangeAccessibilitySupport=i._onDidChangeAccessibilitySupport.event,i._accessibilityModeEnabledContext=zx.bindTo(i._contextKeyService),i._register(i._configurationService.onDidChangeConfiguration((function(e){e.affectsConfiguration("editor.accessibilitySupport")&&i._updateContextKey()}))),i._updateContextKey(),i.onDidChangeAccessibilitySupport((function(){return i._updateContextKey()})),i}return wT(t,e),t.prototype._updateContextKey=function(){var e=2===this.getAccessibilitySupport(),t=this._configurationService.getValue("editor.accessibilitySupport");this._accessibilityModeEnabledContext.set("on"===t||"auto"===t&&e)},t=bT([CT(0,Mp),CT(1,rp)],t),t}(Ie),BT=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)}}(),ET=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},xT=function(e,t){return function(n,i){t(n,i,e)}},LT=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.contextKeyService=t,i.configurationService=n,i._accessibilitySupport=0,i}return BT(t,e),t.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},t=ET([xT(0,Mp),xT(1,rp)],t),t}(ST),DT=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(e){var t=new Wx,n=function(){function e(e,t){this._serviceId=e,this._factory=t,this._value=null}return Object.defineProperty(e.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),e.prototype.get=function(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value},e}();e.LazyStaticService=n;var i=[];function o(e,t){var o=new n(e,t);return i.push(o),o}function r(e){for(var t=new Wx,n=0,o=fL();n<o.length;n++){var r=o[n],s=r[0],a=r[1];t.set(s,a)}for(var u in e)e.hasOwnProperty(u)&&t.set(Dn(u),e[u]);i.forEach((function(n){return t.set(n.id,n.get(e))}));var l=new eI(t,!0);return t.set(xn,l),[t,l]}e.init=r,e.instantiationService=o(xn,(function(){return new eI(t,!0)}));var s=new Bf;e.configurationService=o(rp,(function(){return s})),e.resourceConfigurationService=o(kd,(function(){return new Ef(s)})),e.resourcePropertiesService=o(Id,(function(){return new xf(s)})),e.contextService=o(tf,(function(){return new Df})),e.labelService=o(iI,(function(){return new Of})),e.telemetryService=o(fg,(function(){return new Lf})),e.dialogService=o(zk,(function(){return new yf})),e.notificationService=o($p,(function(){return new wf})),e.markerService=o(nT,(function(){return new rT})),e.modeService=o(ED,(function(e){return new qD})),e.standaloneThemeService=o(AD,(function(){return new YN})),e.modelService=o(ll,(function(t){return new tN(e.configurationService.get(t),e.resourcePropertiesService.get(t),e.standaloneThemeService.get(t))})),e.markerDecorationsService=o(AT,(function(t){return new yT(e.modelService.get(t),e.markerService.get(t))})),e.codeEditorService=o(kn,(function(t){return new wN(e.standaloneThemeService.get(t))})),e.editorProgressService=o(qL,(function(){return new _f})),e.storageService=o(aT,(function(){return new uT})),e.logService=o(Fd,(function(){return new Md})),e.editorWorkerService=o($l,(function(t){return new zd(e.modelService.get(t),e.resourceConfigurationService.get(t),e.logService.get(t))}))})(vT||(vT={}));var NT=function(e){function t(t,n){var i=e.call(this)||this,o=vT.init(n),r=o[0],s=o[1];i._serviceCollection=r,i._instantiationService=s;var a=i.get(rp),u=i.get($p),l=i.get(fg),c=i.get(um),d=function(e,t){var o=null;return n&&(o=n[e.toString()]),o||(o=t()),i._serviceCollection.set(e,o),o},h=d(Mp,(function(){return i._register(new uk(a))}));d(Kx,(function(){return new LT(h,a)})),d(bO,(function(){return new CO(c)}));var A=d(Ka,(function(){return new bf(i._instantiationService)})),p=d(pD,(function(){return i._register(new Cf(h,A,l,u,t))})),f=d(Hk,(function(){return new Tf(t)})),g=d(VL,(function(){return i._register(new Kk(f))}));return d(WL,(function(){var e=new Tk(l,u,g,p,c);return e.configure({blockMouse:!1}),i._register(e)})),d(cg,(function(){return new dT(A)})),d(BD,(function(){return new Mf(vT.modelService.get(ll))})),i}return DT(t,e),t.prototype.get=function(e){var t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t},t.prototype.set=function(e,t){this._serviceCollection.set(e,t)},t.prototype.has=function(e){return this._serviceCollection.has(e)},t}(Ie);function kT(e,t,n){var i=new NT(e,t),o=null;i.has(ec)||(o=new vf(vT.modelService.get()),i.set(ec,o)),i.has(qa)||i.set(qa,new ou(i.get(kn),i.get(Ka)));var r=n(i);return o&&o.setEditor(r),r}function IT(e,t,n){return kT(e,n||{},(function(n){return new CD(e,t,n,n.get(xn),n.get(kn),n.get(Ka),n.get(Mp),n.get(pD),n.get(VL),n.get(AD),n.get($p),n.get(rp),n.get(Kx))}))}function FT(e){return vT.codeEditorService.get().onCodeEditorAdd((function(t){e(t)}))}function MT(e,t,n){return kT(e,n||{},(function(n){return new SD(e,t,n,n.get(xn),n.get(Mp),n.get(pD),n.get(VL),n.get($l),n.get(kn),n.get(AD),n.get($p),n.get(rp),n.get(WL),n.get(qL),null)}))}function OT(e,t){return new mu(e,t)}function TT(e,t,n){return vT.modelService.get().createModel(e,t,n)}function PT(e,t,n){if(e=e||"",!t){var i=e.indexOf("\n"),o=e;return-1!==i&&(o=e.substring(0,i)),TT(e,vT.modeService.get().createByFilepathOrFirstLine(n||null,o),n)}return TT(e,vT.modeService.get().create(t),n)}function RT(e,t){vT.modelService.get().setMode(e,vT.modeService.get().create(t))}function UT(e,t,n){e&&vT.markerService.get().changeOne(t,e.uri,n)}function HT(e){return vT.markerService.get().read(e)}function QT(e){return vT.modelService.get().getModel(e)}function VT(){return vT.modelService.get().getModels()}function WT(e){return vT.modelService.get().onModelAdded(e)}function KT(e){return vT.modelService.get().onModelRemoved(e)}function zT(e){return vT.modelService.get().onModelModeChanged((function(t){e({model:t.model,oldLanguage:t.oldModeId})}))}function jT(e){return $d(vT.modelService.get(),e)}function GT(e,t){return tA.colorizeElement(vT.standaloneThemeService.get(),vT.modeService.get(),e,t)}function qT(e,t,n){return tA.colorize(vT.modeService.get(),e,t,n)}function YT(e,t,n){return void 0===n&&(n=4),tA.colorizeModelLine(e,t,n)}function XT(e){var t=zl.get(e);return t||{getInitialState:function(){return Gl},tokenize:function(t,n,i){return Xl(e,t,n,i)}}}function JT(e,t){var n=vT.modeService.get();n.triggerMode(t);for(var i=XT(t),o=e.split(/\r\n|\r|\n/),r=[],s=i.getInitialState(),a=0,u=o.length;a<u;a++){var l=o[a],c=i.tokenize(l,s,0);r[a]=c.tokens,s=c.endState}return r}function ZT(e,t){vT.standaloneThemeService.get().defineTheme(e,t)}function $T(e){vT.standaloneThemeService.get().setTheme(e)}function eP(){Xf()}function tP(){return{create:IT,onDidCreateEditor:FT,createDiffEditor:MT,createDiffNavigator:OT,createModel:PT,setModelLanguage:RT,setModelMarkers:UT,getModelMarkers:HT,getModels:VT,getModel:QT,onDidCreateModel:WT,onWillDisposeModel:KT,onDidChangeModelLanguage:zT,createWebWorker:jT,colorizeElement:GT,colorize:qT,colorizeModelLine:YT,tokenize:JT,defineTheme:ZT,setTheme:$T,remeasureFonts:eP,AccessibilitySupport:Pt,ContentWidgetPositionPreference:Vt,CursorChangeReason:Wt,DefaultEndOfLine:Kt,EditorAutoIndentStrategy:jt,EditorOption:Gt,EndOfLinePreference:qt,EndOfLineSequence:Yt,MinimapPosition:en,MouseTargetType:tn,OverlayWidgetPositionPreference:nn,OverviewRulerLane:on,RenderLineNumbersType:rn,RenderMinimap:sn,ScrollbarVisibility:un,ScrollType:an,TextEditorCursorBlinkingStyle:An,TextEditorCursorStyle:pn,TrackedRangeStickiness:fn,WrappingIndent:gn,ConfigurationChangedEvent:m,BareFontInfo:bu,FontInfo:Cu,TextModelResolvedOptions:Du,FindMatch:Nu,EditorType:xu,EditorOptions:ce}}function nP(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(var n=0,i=t;n<i.length;n++){var o=i[n];if(!e(o))return!1}return!0}function iP(e,t){return"boolean"===typeof e?e:t}function oP(e,t){return"string"===typeof e?e:t}function rP(e){for(var t={},n=0,i=e;n<i.length;n++){var o=i[n];t[o]=!0}return t}function sP(e,t){void 0===t&&(t=!1),t&&(e=e.map((function(e){return e.toLowerCase()})));var n=rP(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}}function aP(e,t){var n=0;while(t.indexOf("@")>=0&&n<5)n++,t=t.replace(/@(\w+)/g,(function(n,i){var o="";if("string"===typeof e[i])o=e[i];else{if(!(e[i]&&e[i]instanceof RegExp))throw void 0===e[i]?Uh(e,"language definition does not contain attribute '"+i+"', used at: "+t):Uh(e,"attribute reference '"+i+"' must be a string, used at: "+t);o=e[i].source}return Oh(o)?"":"(?:"+o+")"}));return new RegExp(t,e.ignoreCase?"i":"")}function uP(e,t,n,i){if(i<0)return e;if(i<t.length)return t[i];if(i>=100){i-=100;var o=n.split(".");if(o.unshift(n),i<o.length)return o[i]}return null}function lP(e,t,n,i){var o=-1,r=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(o=parseInt(s[3]),s[2]&&(o+=100)),r=s[4]);var a,u="~",l=r;if(r&&0!==r.length?/^\w*$/.test(l)?u="==":(s=r.match(/^(@|!@|~|!~|==|!=)(.*)$/),s&&(u=s[1],l=s[2])):(u="!=",l=""),"~"!==u&&"!~"!==u||!/^(\w|\|)*$/.test(l))if("@"===u||"!@"===u){var c=e[l];if(!c)throw Uh(e,"the @ match target '"+l+"' is not defined, in rule: "+t);if(!nP((function(e){return"string"===typeof e}),c))throw Uh(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);var d=sP(c,e.ignoreCase);a=function(e){return"@"===u?d(e):!d(e)}}else if("~"===u||"!~"===u)if(l.indexOf("$")<0){var h=aP(e,"^"+l+"$");a=function(e){return"~"===u?h.test(e):!h.test(e)}}else a=function(t,n,i,o){var r=aP(e,"^"+Hh(e,l,n,i,o)+"$");return r.test(t)};else if(l.indexOf("$")<0){var A=Th(e,l);a=function(e){return"=="===u?e===A:e!==A}}else{var p=Th(e,l);a=function(t,n,i,o,r){var s=Hh(e,p,n,i,o);return"=="===u?t===s:t!==s}}else{var f=sP(l.split("|"),e.ignoreCase);a=function(e){return"~"===u?f(e):!f(e)}}return-1===o?{name:n,value:i,test:function(e,t,n,i){return a(e,e,t,n,i)}}:{name:n,value:i,test:function(e,t,n,i){var r=uP(e,t,n,o);return a(r||"",e,t,n,i)}}}function cP(e,t,n){if(n){if("string"===typeof n)return n;if(n.token||""===n.token){if("string"!==typeof n.token)throw Uh(e,"a 'token' attribute must be of type string, in rule: "+t);var i={token:n.token};if(n.token.indexOf("$")>=0&&(i.tokenSubst=!0),"string"===typeof n.bracket)if("@open"===n.bracket)i.bracket=1;else{if("@close"!==n.bracket)throw Uh(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);i.bracket=-1}if(n.next){if("string"!==typeof n.next)throw Uh(e,"the next state must be a string value in rule: "+t);var o=n.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),o.indexOf("$")<0&&!Vh(e,Hh(e,o,"",[],""))))throw Uh(e,"the next state '"+n.next+"' is not defined in rule: "+t);i.next=o}return"number"===typeof n.goBack&&(i.goBack=n.goBack),"string"===typeof n.switchTo&&(i.switchTo=n.switchTo),"string"===typeof n.log&&(i.log=n.log),"string"===typeof n.nextEmbedded&&(i.nextEmbedded=n.nextEmbedded,e.usesEmbedded=!0),i}if(Array.isArray(n)){for(var r=[],s=0,a=n.length;s<a;s++)r[s]=cP(e,t,n[s]);return{group:r}}if(n.cases){var u=[];for(var l in n.cases)if(n.cases.hasOwnProperty(l)){var c=cP(e,t,n.cases[l]);"@default"===l||"@"===l||""===l?u.push({test:void 0,value:c,name:l}):"@eos"===l?u.push({test:function(e,t,n,i){return i},value:c,name:l}):u.push(lP(e,t,l,c))}var d=e.defaultToken;return{test:function(e,t,n,i){for(var o=0,r=u;o<r.length;o++){var s=r[o],a=!s.test||s.test(e,t,n,i);if(a)return s.value}return d}}}throw Uh(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}var dP=function(){function e(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}return e.prototype.setRegex=function(e,t){var n;if("string"===typeof t)n=t;else{if(!(t instanceof RegExp))throw Uh(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=n.length>0&&"^"===n[0],this.name=this.name+": "+n,this.regex=aP(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")},e.prototype.setAction=function(e,t){this.action=cP(e,this.name,t)},e}();function hP(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=e,n.noThrow=!1,n.maxStack=100,n.start="string"===typeof t.start?t.start:null,n.ignoreCase=iP(t.ignoreCase,!1),n.tokenPostfix=oP(t.tokenPostfix,"."+n.languageId),n.defaultToken=oP(t.defaultToken,"source"),n.usesEmbedded=!1;var i=t;function o(e,r,s){for(var a=0,u=s;a<u.length;a++){var l=u[a],c=l.include;if(c){if("string"!==typeof c)throw Uh(n,"an 'include' attribute must be a string at: "+e);if("@"===c[0]&&(c=c.substr(1)),!t.tokenizer[c])throw Uh(n,"include target '"+c+"' is not defined at: "+e);o(e+"."+c,r,t.tokenizer[c])}else{var d=new dP(e);if(Array.isArray(l)&&l.length>=1&&l.length<=3)if(d.setRegex(i,l[0]),l.length>=3)if("string"===typeof l[1])d.setAction(i,{token:l[1],next:l[2]});else{if("object"!==typeof l[1])throw Uh(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);var h=l[1];h.next=l[2],d.setAction(i,h)}else d.setAction(i,l[1]);else{if(!l.regex)throw Uh(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);l.name&&"string"===typeof l.name&&(d.name=l.name),l.matchOnlyAtStart&&(d.matchOnlyAtLineStart=iP(l.matchOnlyAtLineStart,!1)),d.setRegex(i,l.regex),d.setAction(i,l.action)}r.push(d)}}}if(i.languageId=e,i.ignoreCase=n.ignoreCase,i.noThrow=n.noThrow,i.usesEmbedded=n.usesEmbedded,i.stateNames=t.tokenizer,i.defaultToken=n.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw Uh(n,"a language definition must define the 'tokenizer' attribute as an object");for(var r in n.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(r)){n.start||(n.start=r);var s=t.tokenizer[r];n.tokenizer[r]=new Array,o("tokenizer."+r,n.tokenizer[r],s)}if(n.usesEmbedded=i.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw Uh(n,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var a=[],u=0,l=t.brackets;u<l.length;u++){var c=l[u],d=c;if(d&&Array.isArray(d)&&3===d.length&&(d={token:d[2],open:d[0],close:d[1]}),d.open===d.close)throw Uh(n,"open and close brackets in a 'brackets' attribute must be different: "+d.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof d.open||"string"!==typeof d.token||"string"!==typeof d.close)throw Uh(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");a.push({token:d.token+n.tokenPostfix,open:Th(n,d.open),close:Th(n,d.close)})}return n.brackets=a,n.noThrow=!0,n}function AP(e){HD.registerLanguage(e)}function pP(){var e=[];return e=e.concat(HD.getLanguages()),e}function fP(e){var t=vT.modeService.get().getLanguageIdentifier(e);return t?t.id:0}function gP(e,t){var n=vT.modeService.get().onDidCreateMode((function(i){i.getId()===e&&(n.dispose(),t())}));return n}function mP(e,t){var n=vT.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set configuration for unknown language "+e);return Pc.register(n,t)}var vP=function(){function e(e){this._actual=e}return e.prototype.getInitialState=function(){return this._actual.getInitialState()},e.prototype.tokenize=function(e,t,n){throw new Error("Not supported!")},e.prototype.tokenize2=function(e,t){var n=this._actual.tokenizeEncoded(e,t);return new Cn(n.tokens,n.endState)},e}(),_P=function(){function e(e,t,n){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=n}return e.prototype.getInitialState=function(){return this._actual.getInitialState()},e.prototype._toClassicTokens=function(e,t,n){for(var i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r],u=a.startIndex;0===r?u=0:u<o&&(u=o),i[r]=new wn(u+n,a.scopes,t),o=u}return i},e.prototype.tokenize=function(e,t,n){var i,o=this._actual.tokenize(e,t),r=this._toClassicTokens(o.tokens,this._languageIdentifier.language,n);return i=o.endState.equals(t)?t:o.endState,new bn(r,i)},e.prototype._toBinaryTokens=function(e,t){for(var n=this._languageIdentifier.id,i=this._standaloneThemeService.getTheme().tokenTheme,o=[],r=0,s=0,a=0,u=e.length;a<u;a++){var l=e[a],c=i.match(n,l.scopes);if(!(r>0&&o[r-1]===c)){var d=l.startIndex;0===a?d=0:d<s&&(d=s),o[r++]=d+t,o[r++]=c,s=d}}var h=new Uint32Array(r);for(a=0;a<r;a++)h[a]=o[a];return h},e.prototype.tokenize2=function(e,t,n){var i,o=this._actual.tokenize(e,t),r=this._toBinaryTokens(o.tokens,n);return i=o.endState.equals(t)?t:o.endState,new Cn(r,i)},e}();function yP(e){return"tokenizeEncoded"in e}function wP(e){return e&&"function"===typeof e.then}function bP(e,t){var n=vT.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set tokens provider for unknown language "+e);var i=function(e){return yP(e)?new vP(e):new _P(vT.standaloneThemeService.get(),n,e)};return wP(t)?zl.registerPromise(e,t.then((function(e){return i(e)}))):zl.register(e,i(t))}function CP(e,t){var n=function(t){return $h(vT.modeService.get(),vT.standaloneThemeService.get(),e,hP(e,t))};return wP(t)?zl.registerPromise(e,t.then((function(e){return n(e)}))):zl.register(e,n(t))}function SP(e,t){return Sl.register(e,t)}function BP(e,t){return Bl.register(e,t)}function EP(e,t){return xl.register(e,t)}function xP(e,t){return Ll.register(e,{provideHover:function(e,n,i){var o=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,i)).then((function(e){if(e)return!e.range&&o&&(e.range=new vn(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn)),e.range||(e.range=new vn(n.lineNumber,n.column,n.lineNumber,n.column)),e}))}})}function LP(e,t){return Dl.register(e,t)}function DP(e,t){return Nl.register(e,t)}function NP(e,t){return kl.register(e,t)}function kP(e,t){return Fl.register(e,t)}function IP(e,t){return Ml.register(e,t)}function FP(e,t){return Ol.register(e,t)}function MP(e,t){return Tl.register(e,{provideCodeActions:function(e,n,i,o){var r=vT.markerService.get().read({resource:e.uri}).filter((function(e){return vn.areIntersectingOrTouching(e,n)}));return t.provideCodeActions(e,n,{markers:r,only:i.only},o)}})}function OP(e,t){return Pl.register(e,t)}function TP(e,t){return Rl.register(e,t)}function PP(e,t){return Ul.register(e,t)}function RP(e,t){return Hl.register(e,t)}function UP(e,t){return El.register(e,t)}function HP(e,t){return Ql.register(e,t)}function QP(e,t){return Wl.register(e,t)}function VP(e,t){return Il.register(e,t)}function WP(e,t){return Vl.register(e,t)}function KP(){return{register:AP,getLanguages:pP,onLanguage:gP,getEncodedLanguageId:fP,setLanguageConfiguration:mP,setTokensProvider:bP,setMonarchTokensProvider:CP,registerReferenceProvider:SP,registerRenameProvider:BP,registerCompletionItemProvider:UP,registerSignatureHelpProvider:EP,registerHoverProvider:xP,registerDocumentSymbolProvider:LP,registerDocumentHighlightProvider:DP,registerDefinitionProvider:NP,registerImplementationProvider:kP,registerTypeDefinitionProvider:IP,registerCodeLensProvider:FP,registerCodeActionProvider:MP,registerDocumentFormattingEditProvider:OP,registerDocumentRangeFormattingEditProvider:TP,registerOnTypeFormattingEditProvider:PP,registerLinkProvider:RP,registerColorProvider:HP,registerFoldingRangeProvider:QP,registerDeclarationProvider:VP,registerSelectionRangeProvider:WP,DocumentHighlightKind:zt,CompletionItemKind:Ut,CompletionItemTag:Ht,CompletionItemInsertTextRule:Rt,SymbolKind:dn,SymbolTag:hn,IndentAction:Xt,CompletionTriggerKind:Qt,SignatureHelpTriggerKind:cn,FoldingRangeKind:bl}}var zP=self;ce.wrappingIndent.defaultValue=0,ce.glyphMargin.defaultValue=!1,ce.autoIndent.defaultValue=3,ce.overviewRulerLanes.defaultValue=2;var jP=Bn();jP.editor=tP(),jP.languages=KP();jP.CancellationTokenSource,jP.Emitter,jP.KeyCode,jP.KeyMod,jP.Position,jP.Range,jP.Selection,jP.SelectionDirection,jP.MarkerSeverity,jP.MarkerTag,jP.Uri,jP.Token;var GP=jP.editor;jP.languages;zP.monaco=jP,"undefined"!==typeof zP.require&&"function"===typeof zP.require.config&&zP.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var qP,YP,XP,JP,ZP,$P="3.7.3",eR=monaco.Emitter,tR=function(){function e(e,t){this._onDidChange=new eR,this._onDidExtraLibsChange=new eR,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),e.prototype.getExtraLibs=function(){return this._extraLibs},e.prototype.addExtraLib=function(e,t){var n,i=this;if(n="undefined"===typeof t?"ts:extralib-"+Math.random().toString(36).substring(2,15):t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var o=1;return this._extraLibs[n]&&(o=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:o},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var e=i._extraLibs[n];e&&e.version===o&&(delete i._extraLibs[n],i._fireOnDidExtraLibsChangeSoon())}}},e.prototype.setExtraLibs=function(e){if(this._extraLibs=Object.create(null),e&&e.length>0)for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),r=i.content;this._extraLibs[o]={content:r,version:1}}this._fireOnDidExtraLibsChangeSoon()},e.prototype._fireOnDidExtraLibsChangeSoon=function(){var e=this;-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=setTimeout((function(){e._onDidExtraLibsChangeTimeout=-1,e._onDidExtraLibsChange.fire(void 0)}),0))},e.prototype.getCompilerOptions=function(){return this._compilerOptions},e.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},e.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)},e.prototype.setMaximumWorkerIdleTime=function(e){},e.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},e.prototype.getEagerModelSync=function(){return this._eagerModelSync},e}();(function(e){e[e["None"]=0]="None",e[e["CommonJS"]=1]="CommonJS",e[e["AMD"]=2]="AMD",e[e["UMD"]=3]="UMD",e[e["System"]=4]="System",e[e["ES2015"]=5]="ES2015",e[e["ESNext"]=99]="ESNext"})(qP||(qP={})),function(e){e[e["None"]=0]="None",e[e["Preserve"]=1]="Preserve",e[e["React"]=2]="React",e[e["ReactNative"]=3]="ReactNative"}(YP||(YP={})),function(e){e[e["CarriageReturnLineFeed"]=0]="CarriageReturnLineFeed",e[e["LineFeed"]=1]="LineFeed"}(XP||(XP={})),function(e){e[e["ES3"]=0]="ES3",e[e["ES5"]=1]="ES5",e[e["ES2015"]=2]="ES2015",e[e["ES2016"]=3]="ES2016",e[e["ES2017"]=4]="ES2017",e[e["ES2018"]=5]="ES2018",e[e["ES2019"]=6]="ES2019",e[e["ES2020"]=7]="ES2020",e[e["ESNext"]=99]="ESNext",e[e["JSON"]=100]="JSON",e[e["Latest"]=99]="Latest"}(JP||(JP={})),function(e){e[e["Classic"]=1]="Classic",e[e["NodeJs"]=2]="NodeJs"}(ZP||(ZP={}));var nR=new tR({allowNonTsExtensions:!0,target:JP.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),iR=new tR({allowNonTsExtensions:!0,allowJs:!0,target:JP.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function oR(){return aR().then((function(e){return e.getTypeScriptWorker()}))}function rR(){return aR().then((function(e){return e.getJavaScriptWorker()}))}function sR(){return{ModuleKind:qP,JsxEmit:YP,NewLineKind:XP,ScriptTarget:JP,ModuleResolutionKind:ZP,typescriptVersion:$P,typescriptDefaults:nR,javascriptDefaults:iR,getTypeScriptWorker:oR,getJavaScriptWorker:rR}}function aR(){return n.e("chunk-2d22502a").then(n.bind(null,"e328"))}monaco.languages.typescript=sR(),monaco.languages.onLanguage("typescript",(function(){return aR().then((function(e){return e.setupTypeScript(nR)}))})),monaco.languages.onLanguage("javascript",(function(){return aR().then((function(e){return e.setupJavaScript(iR)}))}));var uR=monaco.Emitter,lR=function(){function e(e,t,n){this._onDidChange=new uR,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),cR={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"}},dR={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},hR=new lR("css",cR,dR),AR=new lR("scss",cR,dR),pR=new lR("less",cR,dR);function fR(){return{cssDefaults:hR,lessDefaults:pR,scssDefaults:AR}}function gR(){return n.e("chunk-0b65ffb6").then(n.bind(null,"db4f"))}monaco.languages.css=fR(),monaco.languages.onLanguage("less",(function(){gR().then((function(e){return e.setupMode(pR)}))})),monaco.languages.onLanguage("scss",(function(){gR().then((function(e){return e.setupMode(AR)}))})),monaco.languages.onLanguage("css",(function(){gR().then((function(e){return e.setupMode(hR)}))}));var mR=monaco.Emitter,vR=function(){function e(e,t,n){this._onDidChange=new mR,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),_R={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},yR={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},wR=new vR("json",_R,yR);function bR(){return{jsonDefaults:wR}}function CR(){return n.e("chunk-e13e4362").then(n.bind(null,"47b9"))}monaco.languages.json=bR(),monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",(function(){CR().then((function(e){return e.setupMode(wR)}))}));var SR=monaco.Emitter,BR=function(){function e(e,t,n){this._onDidChange=new SR,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),e.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),ER={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},xR={format:ER,suggest:{html5:!0,angular1:!0,ionic:!0}},LR={format:ER,suggest:{html5:!0}},DR={format:ER,suggest:{html5:!0,razor:!0}};function NR(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===kR,documentFormattingEdits:e===kR,documentRangeFormattingEdits:e===kR}}var kR="html",IR="handlebars",FR="razor",MR=new BR(kR,xR,NR(kR)),OR=new BR(IR,LR,NR(IR)),TR=new BR(FR,DR,NR(FR));function PR(){return{htmlDefaults:MR,razorDefaults:TR,handlebarDefaults:OR}}function RR(){return n.e("chunk-12950967").then(n.bind(null,"fa5bb"))}monaco.languages.html=PR(),monaco.languages.onLanguage(kR,(function(){RR().then((function(e){return e.setupMode(MR)}))})),monaco.languages.onLanguage(IR,(function(){RR().then((function(e){return e.setupMode(OR)}))})),monaco.languages.onLanguage(FR,(function(){RR().then((function(e){return e.setupMode(TR)}))}));var UR="undefined"===typeof monaco?self.monaco:monaco,HR={},QR={},VR=function(){function e(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,n){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=n}))}return e.getOrCreate=function(t){return QR[t]||(QR[t]=new e(t)),QR[t]},e.prototype.whenLoaded=function(){return this._lazyLoadPromise},e.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,HR[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise},e}();function WR(e){var t=e.id;HR[t]=e,UR.languages.register(e);var n=VR.getOrCreate(t);UR.languages.setMonarchTokensProvider(t,n.whenLoaded().then((function(e){return e.language}))),UR.languages.onLanguage(t,(function(){n.load().then((function(e){UR.languages.setLanguageConfiguration(t,e.conf)}))}))}WR({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return n.e("chunk-2d226775").then(n.bind(null,"e97b"))}}),WR({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return n.e("chunk-2d0d056d").then(n.bind(null,"680e"))}}),WR({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return n.e("chunk-2d0ba136").then(n.bind(null,"3652"))}}),WR({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return n.e("chunk-2d2311f7").then(n.bind(null,"eecd"))}}),WR({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return n.e("chunk-2d229411").then(n.bind(null,"dd50"))}}),WR({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return n.e("chunk-2d0a3577").then(n.bind(null,"0287"))}}),WR({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return n.e("chunk-2d21f327").then(n.bind(null,"d995"))}}),WR({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return n.e("chunk-2d0e22d6").then(n.bind(null,"7e1c"))}}),WR({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return n.e("chunk-2d0e22d6").then(n.bind(null,"7e1c"))}}),WR({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return n.e("chunk-2d237ee7").then(n.bind(null,"fce9"))}}),WR({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return n.e("chunk-2d209408").then(n.bind(null,"a7ea"))}}),WR({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return n.e("chunk-2d21b84a").then(n.bind(null,"bfb2"))}}),WR({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return n.e("chunk-2d0afa49").then(n.bind(null,"0eca"))}}),WR({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return n.e("chunk-2d221a34").then(n.bind(null,"cacc"))}}),WR({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return n.e("chunk-2d0e542a").then(n.bind(null,"9470"))}}),WR({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return n.e("chunk-2d0aa90c").then(n.bind(null,"120e"))}}),WR({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return n.e("chunk-2d0c46d1").then(n.bind(null,"3b7c"))}}),WR({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return n.e("chunk-2d20ff23").then(n.bind(null,"b692"))}}),WR({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return n.e("chunk-2d0c4313").then(n.bind(null,"3a7f"))}}),WR({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return n.e("chunk-2d0a43df").then(n.bind(null,"0636"))}}),WR({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return n.e("chunk-7532b3ea").then(n.bind(null,"ed79"))}}),WR({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return n.e("chunk-2d221814").then(n.bind(null,"cb43"))}}),WR({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return n.e("chunk-2d0bb267").then(n.bind(null,"39f1"))}}),WR({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return n.e("chunk-2d217e5b").then(n.bind(null,"c94c"))}}),WR({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return n.e("chunk-2d0c512b").then(n.bind(null,"3e14"))}}),WR({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return n.e("chunk-2d0af08c").then(n.bind(null,"0d35"))}}),WR({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return n.e("chunk-2d22c171").then(n.bind(null,"f26e"))}}),WR({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return n.e("chunk-2d20f745").then(n.bind(null,"b463"))}}),WR({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return n.e("chunk-2d0e1fbe").then(n.bind(null,"7d83"))}}),WR({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return n.e("chunk-2d0e6c86").then(n.bind(null,"99e5"))}}),WR({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return n.e("chunk-2d221799").then(n.bind(null,"cb04"))}}),WR({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return n.e("chunk-2d0c0494").then(n.bind(null,"40ac"))}}),WR({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return n.e("chunk-2d0b6187").then(n.bind(null,"1c65"))}}),WR({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"))}}),WR({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return n.e("chunk-2d0cf16e").then(n.bind(null,"61da"))}}),WR({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return n.e("chunk-2d0d2f22").then(n.bind(null,"5b54"))}}),WR({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return n.e("chunk-2d208ac5").then(n.bind(null,"a693"))}}),WR({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return n.e("chunk-7459c510").then(n.bind(null,"23e02"))}}),WR({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return n.e("chunk-2d22c2b8").then(n.bind(null,"f1a8"))}}),WR({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return n.e("chunk-2d0c0a09").then(n.bind(null,"431e"))}}),WR({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return n.e("chunk-2d0abc00").then(n.bind(null,"1737"))}}),WR({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return n.e("chunk-2d0ea098").then(n.bind(null,"8fa5"))}}),WR({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return n.e("chunk-2d0bcec1").then(n.bind(null,"2a95"))}}),WR({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return n.e("chunk-7470082e").then(n.bind(null,"2dd4f"))}}),WR({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return n.e("chunk-2d2295e9").then(n.bind(null,"dcc7"))}}),WR({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return n.e("chunk-2d238465").then(n.bind(null,"ff4c"))}}),WR({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return n.e("chunk-2d2214b3").then(n.bind(null,"ca76"))}}),WR({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return n.e("chunk-2d0e1b57").then(n.bind(null,"7c1f"))}}),WR({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return n.e("chunk-2d0bff92").then(n.bind(null,"4099"))}}),WR({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return n.e("chunk-2d0e6553").then(n.bind(null,"97fe"))}}),WR({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return n.e("chunk-2d0aeb45").then(n.bind(null,"0aca"))}}),WR({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return n.e("chunk-2d0d61fd").then(n.bind(null,"70e3"))}}),WR({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return n.e("chunk-74523e0e").then(n.bind(null,"0b3be"))}}),WR({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return n.e("chunk-2d2138c7").then(n.bind(null,"acc2"))}}),WR({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return n.e("chunk-2d21dcd2").then(n.bind(null,"d39f"))}}),WR({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return n.e("chunk-2d216f3b").then(n.bind(null,"c53f"))}}),WR({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return n.e("chunk-2d0f0a11").then(n.bind(null,"9cd5"))}}),WR({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return n.e("chunk-2d22ca58").then(n.bind(null,"f3b7"))}}),WR({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return n.e("chunk-2d0d7e63").then(n.bind(null,"797b"))}}),WR({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return n.e("chunk-2d0d0645").then(n.bind(null,"687d"))}}),WR({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return n.e("chunk-2d0aab07").then(n.bind(null,"11a2"))}});n("f004");var KR=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)}}(),zR=Ky("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},r("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),jR=function(e){function t(){return e.call(this,{id:"editor.action.jumpToBracket",label:r("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:_S.editorTextFocus,primary:3160,weight:100}})||this}return KR(t,e),t.prototype.run=function(e,t){var n=YR.get(t);n&&n.jumpToBracket()},t}(_g),GR=function(e){function t(){return e.call(this,{id:"editor.action.selectToBracket",label:r("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})||this}return KR(t,e),t.prototype.run=function(e,t,n){var i=YR.get(t);if(i){var o=!0;n&&!1===n.selectBrackets&&(o=!1),i.selectToBracket(o)}},t}(_g),qR=function(){function e(e,t,n){this.position=e,this.brackets=t,this.options=n}return e}(),YR=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._lastBracketsData=[],n._lastVersionId=0,n._decorations=[],n._updateBracketsSoon=n._register(new Si((function(){return n._updateBrackets()}),50)),n._matchBrackets=n._editor.getOption(51),n._updateBracketsSoon.schedule(),n._register(t.onDidChangeCursorPosition((function(e){"never"!==n._matchBrackets&&n._updateBracketsSoon.schedule()}))),n._register(t.onDidChangeModelContent((function(e){n._updateBracketsSoon.schedule()}))),n._register(t.onDidChangeModel((function(e){n._lastBracketsData=[],n._decorations=[],n._updateBracketsSoon.schedule()}))),n._register(t.onDidChangeModelLanguageConfiguration((function(e){n._lastBracketsData=[],n._updateBracketsSoon.schedule()}))),n._register(t.onDidChangeConfiguration((function(e){e.hasChanged(51)&&(n._matchBrackets=n._editor.getOption(51),n._decorations=n._editor.deltaDecorations(n._decorations,[]),n._lastBracketsData=[],n._lastVersionId=0,n._updateBracketsSoon.schedule())}))),n}return KR(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.jumpToBracket=function(){if(this._editor.hasModel()){var e=this._editor.getModel(),t=this._editor.getSelections().map((function(t){var n=t.getStartPosition(),i=e.matchBracket(n),o=null;if(i)i[0].containsPosition(n)?o=i[1].getStartPosition():i[1].containsPosition(n)&&(o=i[0].getStartPosition());else{var r=e.findEnclosingBrackets(n);if(r)o=r[0].getStartPosition();else{var s=e.findNextBracket(n);s&&s.range&&(o=s.range.getStartPosition())}}return o?new yn(o.lineNumber,o.column,o.lineNumber,o.column):new yn(n.lineNumber,n.column,n.lineNumber,n.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}},t.prototype.selectToBracket=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=[];this._editor.getSelections().forEach((function(i){var o=i.getStartPosition(),r=t.matchBracket(o);if(!r&&(r=t.findEnclosingBrackets(o),!r)){var s=t.findNextBracket(o);s&&s.range&&(r=t.matchBracket(s.range.getStartPosition()))}var a=null,u=null;if(r){r.sort(vn.compareRangesUsingStarts);var l=r[0],c=r[1];a=e?l.getStartPosition():l.getEndPosition(),u=e?c.getEndPosition():c.getStartPosition()}a&&u&&n.push(new yn(a.lineNumber,a.column,u.lineNumber,u.column))})),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}},t.prototype._updateBrackets=function(){if("never"!==this._matchBrackets){this._recomputeBrackets();for(var e=[],t=0,n=0,i=this._lastBracketsData;n<i.length;n++){var o=i[n],r=o.brackets;r&&(e[t++]={range:r[0],options:o.options},e[t++]={range:r[1],options:o.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}},t.prototype._recomputeBrackets=function(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);var e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);var n=this._editor.getModel(),i=n.getVersionId(),o=[];this._lastVersionId===i&&(o=this._lastBracketsData);for(var r=[],s=0,a=0,u=e.length;a<u;a++){var l=e[a];l.isEmpty()&&(r[s++]=l.getStartPosition())}r.length>1&&r.sort(mn.compare);var c=[],d=0,h=0,A=o.length;for(a=0,u=r.length;a<u;a++){var p=r[a];while(h<A&&o[h].position.isBefore(p))h++;if(h<A&&o[h].position.equals(p))c[d++]=o[h];else{var f=n.matchBracket(p),g=t._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;f||"always"!==this._matchBrackets||(f=n.findEnclosingBrackets(p,20),g=t._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),c[d++]=new qR(p,f,g)}}this._lastBracketsData=c,this._lastVersionId=i},t.ID="editor.contrib.bracketMatchingController",t._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=z_.register({stickiness:1,className:"bracket-match",overviewRuler:{color:lm(zR),position:Bu.Center}}),t._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=z_.register({stickiness:1,className:"bracket-match"}),t}(Ie);Bg(YR.ID,YR),Cg(GR),Cg(jR),gm((function(e,t){var n=e.getColor(gC);n&&t.addRule(".monaco-editor .bracket-match { background-color: "+n+"; }");var i=e.getColor(mC);i&&t.addRule(".monaco-editor .bracket-match { border: 1px solid "+i+"; }")})),dg.appendMenuItem(17,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:r({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});var XR=function(){function e(e,t){this._selection=e,this._isMovingLeft=t,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}return e.prototype.getEditOperations=function(e,t){var n=this._selection;if(this._selectionId=t.trackSelection(n),n.startLineNumber===n.endLineNumber&&(!this._isMovingLeft||0!==n.startColumn)&&(this._isMovingLeft||n.endColumn!==e.getLineMaxColumn(n.startLineNumber))){var i,o,r,s=n.selectionStartLineNumber,a=e.getLineContent(s);this._isMovingLeft?(i=a.substring(0,n.startColumn-2),o=a.substring(n.startColumn-1,n.endColumn-1),r=a.substring(n.startColumn-2,n.startColumn-1)+a.substring(n.endColumn-1)):(i=a.substring(0,n.startColumn-1)+a.substring(n.endColumn-1,n.endColumn),o=a.substring(n.startColumn-1,n.endColumn-1),r=a.substring(n.endColumn));var u=i+o+r;t.addEditOperation(new vn(s,1,s,e.getLineMaxColumn(s)),null),t.addEditOperation(new vn(s,1,s,1),u),this._cutStartIndex=n.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+n.endColumn-n.startColumn,this._moved=!0}},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moved&&(n=n.setStartPosition(n.startLineNumber,this._cutStartIndex),n=n.setEndPosition(n.startLineNumber,this._cutEndIndex)),n},e}(),JR=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)}}(),ZR=function(e){function t(t,n){var i=e.call(this,n)||this;return i.left=t,i}return JR(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=[],i=t.getSelections(),o=0,r=i;o<r.length;o++){var s=r[o];n.push(new XR(s,this.left))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},t}(_g),$R=function(e){function t(){return e.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:r("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:_S.writable})||this}return JR(t,e),t}(ZR),eU=function(e){function t(){return e.call(this,!1,{id:"editor.action.moveCarretRightAction",label:r("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:_S.writable})||this}return JR(t,e),t}(ZR);Cg($R),Cg(eU);var tU=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)}}(),nU=function(e){function t(){return e.call(this,{id:"editor.action.transposeLetters",label:r("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:_S.writable,kbOpts:{kbExpr:_S.textInputFocus,primary:0,mac:{primary:306},weight:100}})||this}return tU(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),i=[],o=t.getSelections(),r=0,s=o;r<s.length;r++){var a=s[r];if(a.isEmpty()){var u=a.startLineNumber,l=a.startColumn,c=n.getLineMaxColumn(u);if(1!==u||1!==l&&(2!==l||2!==c)){var d=l===c?a.getPosition():lS.rightPosition(n,a.getPosition().lineNumber,a.getPosition().column),h=lS.leftPosition(n,d.lineNumber,d.column),A=lS.leftPosition(n,h.lineNumber,h.column),p=n.getValueInRange(vn.fromPositions(A,h)),f=n.getValueInRange(vn.fromPositions(h,d)),g=vn.fromPositions(A,d);i.push(new iS(g,f+p))}}}i.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())}},t}(_g);Cg(nU);n("e431");var iU=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)}}(),oU="9_cutcopypaste",rU=s["f"]||document.queryCommandSupported("cut"),sU=s["f"]||document.queryCommandSupported("copy"),aU=sU&&!Hn,uU=s["f"]||!Wn&&document.queryCommandSupported("paste"),lU=function(e){function t(t,n){var i=e.call(this,n)||this;return i.browserCommand=t,i}return iU(t,e),t.prototype.runCommand=function(e,t){var n=e.get(kn).getFocusedCodeEditor();n&&n.hasTextFocus()?n.trigger("keyboard",this.id,t):document.execCommand(this.browserCommand)},t.prototype.run=function(e,t){t.focus(),document.execCommand(this.browserCommand)},t}(_g),cU=function(e){function t(){var t=this,n={kbExpr:_S.textInputFocus,primary:2102,win:{primary:2102,secondary:[1044]},weight:100};return s["f"]||(n=void 0),t=e.call(this,"cut",{id:"editor.action.clipboardCutAction",label:r("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:_S.writable,kbOpts:n,contextMenuOpts:{group:oU,order:1},menuOpts:{menuId:15,group:"2_ccp",title:r({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this,t}return iU(t,e),t.prototype.run=function(t,n){if(n.hasModel()){var i=n.getOption(24);!i&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)}},t}(lU),dU=function(e){function t(){var t=this,n={kbExpr:_S.textInputFocus,primary:2081,win:{primary:2081,secondary:[2067]},weight:100};return s["f"]||(n=void 0),t=e.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:r("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:n,contextMenuOpts:{group:oU,order:2},menuOpts:{menuId:15,group:"2_ccp",title:r({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this,t}return iU(t,e),t.prototype.run=function(t,n){if(n.hasModel()){var i=n.getOption(24);!i&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)}},t}(lU),hU=function(e){function t(){var t=this,n={kbExpr:_S.textInputFocus,primary:2100,win:{primary:2100,secondary:[1043]},weight:100};return s["f"]||(n=void 0),t=e.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:r("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:_S.writable,kbOpts:n,contextMenuOpts:{group:oU,order:3},menuOpts:{menuId:15,group:"2_ccp",title:r({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this,t}return iU(t,e),t}(lU),AU=function(e){function t(){return e.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:r("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:_S.textInputFocus,primary:0,weight:100}})||this}return iU(t,e),t.prototype.run=function(t,n){if(n.hasModel()){var i=n.getOption(24);!i&&n.getSelection().isEmpty()||(My.forceCopyWithSyntaxHighlighting=!0,e.prototype.run.call(this,t,n),My.forceCopyWithSyntaxHighlighting=!1)}},t}(lU);rU&&Cg(cU),sU&&Cg(dU),uU&&Cg(hU),aU&&Cg(AU);var pU=function(){function e(e){this.executor=e,this._didRun=!1}return e.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(e.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}(),fU=function(){function e(e){this.value=e}return e.prototype.equals=function(e){return this.value===e.value},e.prototype.contains=function(t){return this.equals(t)||""===this.value||Mr(t.value,this.value+e.sep)},e.prototype.intersects=function(e){return this.contains(e)||e.contains(this)},e.prototype.append=function(t){return new e(this.value+e.sep+t)},e.sep=".",e.None=new e("@@none@@"),e.Empty=new e(""),e.QuickFix=new e("quickfix"),e.Refactor=new e("refactor"),e.Source=new e("source"),e.SourceOrganizeImports=e.Source.append("organizeImports"),e.SourceFixAll=e.Source.append("fixAll"),e}();function gU(e,t){return!(e.include&&!e.include.intersects(t))&&!(!e.includeSourceActions&&fU.Source.contains(t))}function mU(e,t){var n=t.kind?new fU(t.kind):void 0;return!!(!e.include||n&&e.include.contains(n))&&(!(e.excludes&&n&&e.excludes.some((function(t){return t.contains(n)&&(!e.include||!e.include.contains(n))})))&&(!(!e.includeSourceActions&&n&&fU.Source.contains(n))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}var vU=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"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}},e.getKindFromUser=function(e,t){return"string"===typeof e.kind?new fU(e.kind):t},e.getPreferredUser=function(e){return"boolean"===typeof e.preferred&&e.preferred},e}(),_U=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)}}(),yU=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},wU=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},bU=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},CU="editor.action.codeAction",SU="editor.action.refactor",BU="editor.action.sourceAction",EU="editor.action.organizeImports",xU="editor.action.fixAll",LU=function(e){function t(n,i){var o=e.call(this)||this;return o._register(i),o.allActions=Ii(bU(n),t.codeActionsComparator),o.validActions=o.allActions.filter((function(e){return!e.disabled})),o}return _U(t,e),t.codeActionsComparator=function(e,t){return Ri(e.diagnostics)?Ri(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Ri(t.diagnostics)?1:0},Object.defineProperty(t.prototype,"hasAutoFix",{get:function(){return this.validActions.some((function(e){return!!e.kind&&fU.QuickFix.contains(new fU(e.kind))&&!!e.isPreferred}))},enumerable:!0,configurable:!0}),t}(Ie);function DU(e,t,n,i){var o,r=this,s=n.filter||{},a={only:null===(o=s.include)||void 0===o?void 0:o.value,trigger:"manual"===n.type?2:1},u=new CL(e,i),l=NU(e,s),c=new ke,d=l.map((function(n){return yU(r,void 0,void 0,(function(){var i,o;return wU(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.provideCodeActions(e,t,a,u.token)];case 1:return i=r.sent(),u.token.isCancellationRequested||!i?[2,[]]:(c.add(i),[2,i.actions.filter((function(e){return e&&mU(s,e)}))]);case 2:if(o=r.sent(),me(o))throw o;return pe(o),[2,[]];case 3:return[2]}}))}))})),h=Tl.onDidChange((function(){var t=Tl.all(e);Di(t,l)||u.cancel()}));return Promise.all(d).then(zi).then((function(e){return new LU(e,c)})).finally((function(){h.dispose(),u.dispose()}))}function NU(e,t){return Tl.all(e).filter((function(e){return!e.providedCodeActionKinds||e.providedCodeActionKinds.some((function(e){return gU(t,new fU(e))}))}))}yg("_executeCodeActionProvider",(function(e,t){return yU(this,void 0,void 0,(function(){var n,i,o,r,s,a;return wU(this,(function(u){switch(u.label){case 0:if(n=t.resource,i=t.rangeOrSelection,o=t.kind,!(n instanceof Et))throw _e();if(r=e.get(ll).getModel(n),!r)throw _e();if(s=yn.isISelection(i)?yn.liftSelection(i):vn.isIRange(i)?r.validateRange(i):void 0,!s)throw _e();return[4,DU(r,s,{type:"manual",filter:{includeSourceActions:!0,include:o&&o.value?new fU(o.value):void 0}},je.None)];case 1:return a=u.sent(),setTimeout((function(){return a.dispose()}),100),[2,a.validActions]}}))}))}));n("b329");var kU=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)}}(),IU=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},FU=function(e,t){return function(n,i){t(n,i,e)}},MU=function(e){function t(n,i){var o=e.call(this)||this;return o.closeTimeout=3e3,o._messageWidget=o._register(new Fe),o._messageListeners=o._register(new ke),o._editor=n,o._visible=t.MESSAGE_VISIBLE.bindTo(i),o._register(o._editor.onDidAttemptReadOnlyEdit((function(){return o._onDidAttemptReadOnlyEdit()}))),o}return kU(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._visible.reset()},t.prototype.showMessage=function(e,t){var n,i=this;Rf(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new TU(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidDispose((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeModel((function(){return i.closeMessage()}))),this._messageListeners.add(new bi((function(){return i.closeMessage()}),this.closeTimeout)),this._messageListeners.add(this._editor.onMouseMove((function(e){e.target.position&&(n?n.containsPosition(e.target.position)||i.closeMessage():n=new vn(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))},t.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(TU.fadeOut(this._messageWidget.value))},t.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(r("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},t.ID="editor.contrib.messageController",t.MESSAGE_VISIBLE=new Fp("messageVisible",!1),t=IU([FU(1,Mp)],t),t}(Ie),OU=vg.bindToContribution(MU.get);bg(new OU({id:"leaveEditorMessage",precondition:MU.MESSAGE_VISIBLE,handler:function(e){return e.closeMessage()},kbOpts:{weight:130,primary:9}}));var TU=function(){function e(e,t,n){var i=t.lineNumber,o=t.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(i,i,0),this._position={lineNumber:i,column:o-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);var s=document.createElement("div");s.classList.add("anchor"),this._domNode.appendChild(s),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return e.fadeOut=function(e){var t,n=function(){e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",n)};return t=setTimeout(n,110),e.getDomNode().addEventListener("animationend",n),e.getDomNode().classList.add("fadeOut"),{dispose:n}},e.prototype.dispose=function(){this._editor.removeContentWidget(this)},e.prototype.getId=function(){return"messageoverlay"},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},e}();Bg(MU.ID,MU),gm((function(e,t){var n=e.getColor(sw);if(n){var i=e.type===dm?2:1;t.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+n+"; }"),t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+i+"px solid "+n+"; }")}var o=e.getColor(ow);o&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+o+"; }");var r=e.getColor(rw);r&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+r+"; }")}));var PU,RU=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)}}(),UU=function(){return UU=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},UU.apply(this,arguments)},HU=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},QU=function(e,t){return function(n,i){t(n,i,e)}},VU=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},WU=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},KU=function(e){function t(t,n){var i=e.call(this,t.command?t.command.id:t.title,t.title,void 0,!t.disabled,n)||this;return i.action=t,i}return RU(t,e),t}(ng),zU=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._editor=t,r._delegate=n,r._contextMenuService=i,r._visible=!1,r._showingActions=r._register(new Fe),r._keybindingResolver=new jU({getKeybindings:function(){return o.getKeybindings()}}),r}return RU(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),t.prototype.show=function(e,t,n){return VU(this,void 0,void 0,(function(){var i,o,r,s,a=this;return WU(this,(function(u){if(i=n.includeDisabledActions?e.allActions:e.validActions,!i.length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,ve();return this._visible=!0,this._showingActions.value=e,o=i.map((function(e){return new KU(e,(function(){return a._delegate.onSelectCodeAction(e)}))})),r=mn.isIPosition(t)?this._toCoords(t):t||{x:0,y:0},s=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return r},getActions:function(){return o},onHide:function(){a._visible=!1,a._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(e){return e instanceof KU?s(e.action):void 0}}),[2]}))}))},t.prototype._toCoords=function(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();var t=this._editor.getScrolledVisiblePosition(e),n=Ho(this._editor.getDomNode()),i=n.left+t.left,o=n.top+t.top+t.height;return{x:i,y:o}},t=HU([QU(2,WL),QU(3,pD)],t),t}(Ie),jU=function(){function e(e){this._keybindingProvider=e}return e.prototype.getResolver=function(){var t=this,n=new pU((function(){return t._keybindingProvider.getKeybindings().filter((function(t){return e.codeActionCommands.indexOf(t.command)>=0})).filter((function(e){return e.resolvedKeybinding})).map((function(e){var t=e.commandArgs;return e.command===EU?t={kind:fU.SourceOrganizeImports.value}:e.command===xU&&(t={kind:fU.SourceFixAll.value}),UU({resolvedKeybinding:e.resolvedKeybinding},vU.fromUser(t,{kind:fU.None,apply:"never"}))}))}));return function(e){var i;if(e.kind){var o=t.bestKeybindingForCodeAction(e,n.getValue());return null===(i=o)||void 0===i?void 0:i.resolvedKeybinding}}},e.prototype.bestKeybindingForCodeAction=function(e,t){if(e.kind){var n=new fU(e.kind);return t.filter((function(e){return e.kind.contains(n)})).filter((function(t){return!t.preferred||e.isPreferred})).reduceRight((function(e,t){return e?e.kind.contains(t.kind)?t:e:t}),void 0)}},e.codeActionCommands=[SU,CU,BU,EU,xU],e}(),GU=(n("30d5"),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)}}()),qU=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},YU=function(e,t){return function(n,i){t(n,i,e)}};(function(e){e.Hidden={type:0};var t=function(){function e(e,t,n){this.actions=e,this.editorPosition=t,this.widgetPosition=n,this.type=1}return e}();e.Showing=t})(PU||(PU={}));var XU=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._editor=t,r._quickFixActionId=n,r._preferredFixActionId=i,r._keybindingService=o,r._onClick=r._register(new Ye),r.onClick=r._onClick.event,r._state=PU.Hidden,r._domNode=document.createElement("div"),r._domNode.className="codicon codicon-lightbulb",r._editor.addContentWidget(r),r._register(r._editor.onDidChangeModelContent((function(e){var t=r._editor.getModel();(1!==r.state.type||!t||r.state.editorPosition.lineNumber>=t.getLineCount())&&r.hide()}))),Tg.ignoreTarget(r._domNode),r._register(bo(r._domNode,(function(e){if(1===r.state.type){r._editor.focus(),e.preventDefault();var t=Ho(r._domNode),n=t.top,i=t.height,o=r._editor.getOption(47),s=Math.floor(o/3);null!==r.state.widgetPosition.position&&r.state.widgetPosition.position.lineNumber<r.state.editorPosition.lineNumber&&(s+=o),r._onClick.fire({x:e.posx,y:n+i+s,actions:r.state.actions})}}))),r._register(vo(r._domNode,"mouseenter",(function(e){if(1===(1&e.buttons)){r.hide();var t=new Rg;t.startMonitoring(Pg,(function(){}),(function(){t.dispose()}))}}))),r._register(r._editor.onDidChangeConfiguration((function(e){e.hasChanged(45)&&!r._editor.getOption(45).enabled&&r.hide()}))),r._updateLightBulbTitle(),r._register(r._keybindingService.onDidUpdateKeybindings(r._updateLightBulbTitle,r)),r}return GU(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._editor.removeContentWidget(this)},t.prototype.getId=function(){return"LightBulbWidget"},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return 1===this._state.type?this._state.widgetPosition:null},t.prototype.update=function(e,n){var i=this;if(e.validActions.length<=0)return this.hide();var o=this._editor.getOptions();if(!o.get(45).enabled)return this.hide();var r=n.lineNumber,s=n.column,a=this._editor.getModel();if(!a)return this.hide();var u=a.getOptions().tabSize,l=o.get(32),c=a.getLineContent(r),d=U_.computeIndentLevel(c,u),h=l.spaceWidth*d>22,A=function(e){return e>2&&i._editor.getTopForLineNumber(e)===i._editor.getTopForLineNumber(e-1)},p=r;if(!h)if(r>1&&!A(r-1))p-=1;else if(A(r+1)){if(s*l.spaceWidth<22)return this.hide()}else p+=1;this.state=new PU.Showing(e,n,{position:{lineNumber:p,column:1},preference:t._posPref}),go(this._domNode,"codicon-lightbulb-autofix",e.hasAutoFix),this._editor.layoutContentWidget(this)},t.prototype.hide=function(){this.state=PU.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state=e,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),t.prototype._updateLightBulbTitle=function(){if(1===this.state.type&&this.state.actions.hasAutoFix){var e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e)return void(this.title=r("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",e.getLabel()))}var t=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=t?r("quickFixWithKb","Show Fixes ({0})",t.getLabel()):r("quickFix","Show Fixes")},Object.defineProperty(t.prototype,"title",{set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),t._posPref=[0],t=qU([YU(3,pD)],t),t}(Ie);gm((function(e,t){var n=e.getColor(tb);n&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb,\n\t\t.monaco-workbench .markers-panel-container .codicon-lightbulb {\n\t\t\tcolor: "+n+";\n\t\t}");var i=e.getColor(nb);i&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb-autofix,\n\t\t.monaco-workbench .markers-panel-container .codicon-lightbulb-autofix {\n\t\t\tcolor: "+i+";\n\t\t}")}));var JU,ZU=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=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},eH=function(e,t){return function(n,i){t(n,i,e)}},tH=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},nH=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},iH=function(e){function t(t,n,i,o,r){var s=e.call(this)||this;return s._editor=t,s.delegate=o,s._activeCodeActions=s._register(new Fe),s._codeActionWidget=new pU((function(){return s._register(r.createInstance(zU,s._editor,{onSelectCodeAction:function(e){return tH(s,void 0,void 0,(function(){return nH(this,(function(t){return this.delegate.applyCodeAction(e,!0),[2]}))}))}}))})),s._lightBulbWidget=new pU((function(){var e=s._register(r.createInstance(XU,s._editor,n,i));return s._register(e.onClick((function(e){return s.showCodeActionList(e.actions,e,{includeDisabledActions:!1})}))),e})),s}return ZU(t,e),t.prototype.update=function(e){var t,n,i;return tH(this,void 0,void 0,(function(){var o,r,s,a,u;return nH(this,(function(l){switch(l.label){case 0:if(1!==e.type)return null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide(),[2];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e.actions];case 2:return o=l.sent(),[3,4];case 3:return r=l.sent(),Ae(r),[2];case 4:if(this._lightBulbWidget.getValue().update(o,e.position),"manual"!==e.trigger.type)return[3,11];if(!(null===(n=e.trigger.filter)||void 0===n?void 0:n.include))return[3,10];if(s=this.tryGetValidActionToApply(e.trigger,o),!s)return[3,9];l.label=5;case 5:return l.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(s,!1)];case 6:return l.sent(),[3,8];case 7:return o.dispose(),[7];case 8:return[2];case 9:if(e.trigger.context&&(a=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,o),a&&a.disabled))return MU.get(this._editor).showMessage(a.disabled,e.trigger.context.position),o.dispose(),[2];l.label=10;case 10:return u=!!(null===(i=e.trigger.filter)||void 0===i?void 0:i.include),!e.trigger.context||o.allActions.length&&(u||o.validActions.length)?(this._activeCodeActions.value=o,this._codeActionWidget.getValue().show(o,e.position,{includeDisabledActions:u}),[3,12]):(MU.get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=o,o.dispose(),[2]);case 11:this._codeActionWidget.getValue().isVisible?o.dispose():this._activeCodeActions.value=o,l.label=12;case 12:return[2]}}))}))},t.prototype.getInvalidActionThatWouldHaveBeenApplied=function(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?Xi(t.allActions,(function(e){return e.disabled})):void 0},t.prototype.tryGetValidActionToApply=function(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0},t.prototype.showCodeActionList=function(e,t,n){return tH(this,void 0,void 0,(function(){return nH(this,(function(i){return this._codeActionWidget.getValue().show(e,t,n),[2]}))}))},t=$U([eH(4,xn)],t),t}(Ie),oH=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)}}(),rH=new Fp("supportedCodeAction",""),sH=function(e){function t(t,n,i,o){void 0===o&&(o=250);var r=e.call(this)||this;return r._editor=t,r._markerService=n,r._signalChange=i,r._delay=o,r._autoTriggerTimer=r._register(new bi),r._register(r._markerService.onMarkerChanged((function(e){return r._onMarkerChanges(e)}))),r._register(r._editor.onDidChangeCursorPosition((function(){return r._onCursorChange()}))),r}return oH(t,e),t.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)},t.prototype._onMarkerChanges=function(e){var t=this,n=this._editor.getModel();n&&e.some((function(e){return sa(e,n.uri)}))&&this._autoTriggerTimer.cancelAndSet((function(){t.trigger({type:"auto"})}),this._delay)},t.prototype._onCursorChange=function(){var e=this;this._autoTriggerTimer.cancelAndSet((function(){e.trigger({type:"auto"})}),this._delay)},t.prototype._getRangeOfMarker=function(e){var t=this._editor.getModel();if(t)for(var n=0,i=this._markerService.read({resource:t.uri});n<i.length;n++){var o=i[n],r=t.validateRange(o);if(vn.intersectRanges(r,e))return vn.lift(r)}},t.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&"auto"===e.type){var i=n.getPosition(),o=i.lineNumber,r=i.column,s=t.getLineContent(o);if(0===s.length)return;if(1===r){if(/\s/.test(s[0]))return}else if(r===t.getLineMaxColumn(o)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[r-2])&&/\s/.test(s[r-1]))return}return n}},t.prototype._createEventAndSignalChange=function(e,t){var n=this._editor.getModel();if(t&&n){var i=this._getRangeOfMarker(t),o=i?i.getStartPosition():t.getStartPosition(),r={trigger:e,selection:t,position:o};return this._signalChange(r),r}this._signalChange(void 0)},t}(Ie);(function(e){e.Empty={type:0};var t=function(){function e(e,t,n,i){this.trigger=e,this.rangeOrSelection=t,this.position=n,this.actions=i,this.type=1}return e}();e.Triggered=t})(JU||(JU={}));var aH=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._editor=t,r._markerService=n,r._progressService=o,r._codeActionOracle=r._register(new Fe),r._state=JU.Empty,r._onDidChangeState=r._register(new Ye),r.onDidChangeState=r._onDidChangeState.event,r._supportedCodeActions=rH.bindTo(i),r._register(r._editor.onDidChangeModel((function(){return r._update()}))),r._register(r._editor.onDidChangeModelLanguage((function(){return r._update()}))),r._register(Tl.onDidChange((function(){return r._update()}))),r._update(),r}return oH(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.setState(JU.Empty,!0)},t.prototype._update=function(){var e=this;this._codeActionOracle.value=void 0,this.setState(JU.Empty);var t=this._editor.getModel();if(t&&Tl.has(t)&&!this._editor.getOption(65)){for(var n=[],i=0,o=Tl.all(t);i<o.length;i++){var r=o[i];Array.isArray(r.providedCodeActionKinds)&&n.push.apply(n,r.providedCodeActionKinds)}this._supportedCodeActions.set(n.join(" ")),this._codeActionOracle.value=new sH(this._editor,this._markerService,(function(n){if(n){var i=fi((function(e){return DU(t,n.selection,n.trigger,e)}));e._progressService&&"manual"===n.trigger.type&&e._progressService.showWhile(i,250),e.setState(new JU.Triggered(n.trigger,n.selection,n.position,i))}else e.setState(JU.Empty)}),void 0),this._codeActionOracle.value.trigger({type:"auto"})}else this._supportedCodeActions.reset()},t.prototype.trigger=function(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)},t.prototype.setState=function(e,t){e!==this._state&&(1===this._state.type&&this._state.actions.cancel(),this._state=e,t||this._onDidChangeState.fire(e))},t}(Ie),uH=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)}}(),lH=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},cH=function(e,t){return function(n,i){t(n,i,e)}},dH=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},hH=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},AH=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function pH(e){return Cp.regex(rH.keys()[0],new RegExp("(\\s|^)"+Dr(e.value)+"\\b"))}var fH={type:"object",required:["kind"],defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:r("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:r("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[r("args.schema.apply.first","Always apply the first returned code action."),r("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),r("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:r("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},gH=function(e){function t(t,n,i,o,r,s,a,u,l){var c=e.call(this)||this;return c._commandService=a,c._bulkEditService=u,c._instantiationService=l,c._editor=t,c._model=c._register(new aH(c._editor,n,i,o)),c._register(c._model.onDidChangeState((function(e){return c.update(e)}))),c._ui=new pU((function(){return c._register(new iH(t,yH.Id,EH.Id,{applyCodeAction:function(e,t){return dH(c,void 0,void 0,(function(){return hH(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,2,3]),[4,this._applyCodeAction(e)];case 1:return n.sent(),[3,3];case 2:return t&&this._trigger({type:"auto",filter:{}}),[7];case 3:return[2]}}))}))}},c._instantiationService))})),c}return uH(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.update=function(e){this._ui.getValue().update(e)},t.prototype.showCodeActions=function(e,t){return this._ui.getValue().showCodeActionList(e,t,{includeDisabledActions:!1})},t.prototype.manualTriggerAtCurrentPosition=function(e,t,n){if(this._editor.hasModel()){MU.get(this._editor).closeMessage();var i=this._editor.getPosition();this._trigger({type:"manual",filter:t,autoApply:n,context:{notAvailableMessage:e,position:i}})}},t.prototype._trigger=function(e){return this._model.trigger(e)},t.prototype._applyCodeAction=function(e){return this._instantiationService.invokeFunction(mH,e,this._bulkEditService,this._commandService,this._editor)},t.ID="editor.contrib.quickFixController",t=lH([cH(1,nT),cH(2,Mp),cH(3,qL),cH(4,WL),cH(5,pD),cH(6,Ka),cH(7,BD),cH(8,xn)],t),t}(Ie);function mH(e,t,n,i,o){return dH(this,void 0,void 0,(function(){var s,a,u;return hH(this,(function(l){switch(l.label){case 0:return s=e.get($p),t.edit?[4,n.apply(t.edit,{editor:o})]:[3,2];case 1:l.sent(),l.label=2;case 2:if(!t.command)return[3,6];l.label=3;case 3:return l.trys.push([3,5,,6]),[4,i.executeCommand.apply(i,AH([t.command.id],t.command.arguments||[]))];case 4:return l.sent(),[3,6];case 5:return a=l.sent(),u=vH(a),s.error("string"===typeof u?u:r("applyCodeActionFailed","An unknown error occurred while applying the code action")),[3,6];case 6:return[2]}}))}))}function vH(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}function _H(e,t,n,i){if(e.hasModel()){var o=gH.get(e);o&&o.manualTriggerAtCurrentPosition(t,n,i)}}var yH=function(e){function t(){return e.call(this,{id:t.Id,label:r("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:Cp.and(_S.writable,_S.hasCodeActionsProvider),kbOpts:{kbExpr:_S.editorTextFocus,primary:2132,weight:100}})||this}return uH(t,e),t.prototype.run=function(e,t){return _H(t,r("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},t.Id="editor.action.quickFix",t}(_g),wH=function(e){function t(){return e.call(this,{id:CU,precondition:Cp.and(_S.writable,_S.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:fH}]}})||this}return uH(t,e),t.prototype.runEditorCommand=function(e,t,n){var i,o=vU.fromUser(n,{kind:fU.Empty,apply:"ifSingle"});return _H(t,"string"===typeof(null===(i=n)||void 0===i?void 0:i.kind)?o.preferred?r("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):r("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):o.preferred?r("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):r("editor.action.codeAction.noneMessage","No code actions available"),{include:o.kind,includeSourceActions:!0,onlyIncludePreferredActions:o.preferred},o.apply)},t}(vg),bH=function(e){function t(){return e.call(this,{id:SU,label:r("refactor.label","Refactor..."),alias:"Refactor...",precondition:Cp.and(_S.writable,_S.hasCodeActionsProvider),kbOpts:{kbExpr:_S.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:Cp.and(_S.writable,pH(fU.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:fH}]}})||this}return uH(t,e),t.prototype.run=function(e,t,n){var i,o=vU.fromUser(n,{kind:fU.Refactor,apply:"never"});return _H(t,"string"===typeof(null===(i=n)||void 0===i?void 0:i.kind)?o.preferred?r("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):r("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):o.preferred?r("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):r("editor.action.refactor.noneMessage","No refactorings available"),{include:fU.Refactor.contains(o.kind)?o.kind:fU.None,onlyIncludePreferredActions:o.preferred},o.apply)},t}(_g),CH=function(e){function t(){return e.call(this,{id:BU,label:r("source.label","Source Action..."),alias:"Source Action...",precondition:Cp.and(_S.writable,_S.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:Cp.and(_S.writable,pH(fU.Source))},description:{description:"Source Action...",args:[{name:"args",schema:fH}]}})||this}return uH(t,e),t.prototype.run=function(e,t,n){var i,o=vU.fromUser(n,{kind:fU.Source,apply:"never"});return _H(t,"string"===typeof(null===(i=n)||void 0===i?void 0:i.kind)?o.preferred?r("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):r("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):o.preferred?r("editor.action.source.noneMessage.preferred","No preferred source actions available"):r("editor.action.source.noneMessage","No source actions available"),{include:fU.Source.contains(o.kind)?o.kind:fU.None,includeSourceActions:!0,onlyIncludePreferredActions:o.preferred},o.apply)},t}(_g),SH=function(e){function t(){return e.call(this,{id:EU,label:r("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:Cp.and(_S.writable,pH(fU.SourceOrganizeImports)),kbOpts:{kbExpr:_S.editorTextFocus,primary:1581,weight:100}})||this}return uH(t,e),t.prototype.run=function(e,t){return _H(t,r("editor.action.organize.noneMessage","No organize imports action available"),{include:fU.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")},t}(_g),BH=function(e){function t(){return e.call(this,{id:xU,label:r("fixAll.label","Fix All"),alias:"Fix All",precondition:Cp.and(_S.writable,pH(fU.SourceFixAll))})||this}return uH(t,e),t.prototype.run=function(e,t){return _H(t,r("fixAll.noneMessage","No fix all action available"),{include:fU.SourceFixAll,includeSourceActions:!0},"ifSingle")},t}(_g),EH=function(e){function t(){return e.call(this,{id:t.Id,label:r("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:Cp.and(_S.writable,pH(fU.QuickFix)),kbOpts:{kbExpr:_S.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})||this}return uH(t,e),t.prototype.run=function(e,t){return _H(t,r("editor.action.autoFix.noneMessage","No auto fixes available"),{include:fU.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},t.Id="editor.action.autoFix",t}(_g);Bg(gH.ID,gH),Cg(yH),Cg(bH),Cg(CH),Cg(SH),Cg(EH),Cg(BH),bg(new wH);var xH=function(){function e(){this.lenses=[],this._disposables=new ke}return e.prototype.dispose=function(){this._disposables.dispose()},e.prototype.add=function(e,t){this._disposables.add(e);for(var n=0,i=e.lenses;n<i.length;n++){var o=i[n];this.lenses.push({symbol:o,provider:t})}},e}();function LH(e,t){var n=Ol.ordered(e),i=new Map,o=new xH,r=n.map((function(n,r){return i.set(n,r),Promise.resolve(n.provideCodeLenses(e,t)).then((function(e){return e&&o.add(e,n)})).catch(pe)}));return Promise.all(r).then((function(){return o.lenses=Ii(o.lenses,(function(e,t){return e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:i.get(e.provider)<i.get(t.provider)?-1:i.get(e.provider)>i.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0})),o}))}yg("_executeCodeLensProvider",(function(e,t){var n=t.resource,i=t.itemResolveCount;if(!(n instanceof Et))throw _e();var o=e.get(ll).getModel(n);if(!o)throw _e();var r=[],s=new ke;return LH(o,je.None).then((function(e){s.add(e);for(var t=[],n=function(e){"undefined"===typeof i||Boolean(e.symbol.command)?r.push(e.symbol):i-- >0&&e.provider.resolveCodeLens&&t.push(Promise.resolve(e.provider.resolveCodeLens(o,e.symbol,je.None)).then((function(t){return r.push(t||e.symbol)})))},a=0,u=e.lenses;a<u.length;a++){var l=u[a];n(l)}return Promise.all(t)})).then((function(){return r})).finally((function(){setTimeout((function(){return s.dispose()}),100)}))}));n("44c7"),n("5cdb"),n("7a99");function DH(e){return e.replace(/\$\((([a-z0-9\-]+?)(~([a-z0-9\-]*?))?)\)/gi,(function(e,t,n,i,o){return'<span class="codicon codicon-'+n+" "+(o?"codicon-animation-"+o:"")+'"></span>'}))}function NH(e){return DH(Lr(e))}var kH=function(){function e(e,t){this.afterLineNumber=e,this._onHeight=t,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}return e.prototype.onComputedHeight=function(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())},e}(),IH=function(){function e(t,n,i){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=t,this._id="codelens.widget-"+e._idPool++,this.updatePosition(i),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+n}return e.prototype.withCommands=function(e,t){this._commands.clear();for(var n="",i=!1,o=0;o<e.length;o++){var r=e[o];if(r&&(i=!0,r.command)){var s=NH(r.command.title);r.command.id?(n+="<a id="+o+">"+s+"</a>",this._commands.set(String(o),r.command)):n+="<span>"+s+"</span>",o+1<e.length&&(n+="<span>&#160;|&#160;</span>")}}i?(n||(n="&#160;"),this._domNode.innerHTML=n,this._isEmpty&&t&&ho(this._domNode,"fadein"),this._isEmpty=!1):this._domNode.innerHTML="<span>no commands</span>"},e.prototype.getCommand=function(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0},e.prototype.getId=function(){return this._id},e.prototype.getDomNode=function(){return this._domNode},e.prototype.updatePosition=function(e){var t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}},e.prototype.getPosition=function(){return this._widgetPosition||null},e._idPool=0,e}(),FH=function(){function e(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}return e.prototype.addDecoration=function(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)},e.prototype.removeDecoration=function(e){this._removeDecorations.push(e)},e.prototype.commit=function(e){for(var t=e.deltaDecorations(this._removeDecorations,this._addDecorations),n=0,i=t.length;n<i;n++)this._addDecorationsCallbacks[n](t[n])},e}(),MH=function(){function e(e,t,n,i,o,r){var s,a=this;this._isDisposed=!1,this._editor=t,this._className=n,this._data=e,this._decorationIds=[];var u=[];this._data.forEach((function(e,t){e.symbol.command&&u.push(e.symbol),i.addDecoration({range:e.symbol.range,options:z_.EMPTY},(function(e){return a._decorationIds[t]=e})),s=s?vn.plusRange(s,e.symbol.range):vn.lift(e.symbol.range)})),this._viewZone=new kH(s.startLineNumber-1,r),this._viewZoneId=o.addZone(this._viewZone),u.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(u,!1))}return e.prototype._createContentWidgetIfNecessary=function(){this._contentWidget||(this._contentWidget=new IH(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))},e.prototype.dispose=function(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t&&t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0},e.prototype.isDisposed=function(){return this._isDisposed},e.prototype.isValid=function(){var e=this;return this._decorationIds.some((function(t,n){var i=e._editor.getModel().getDecorationRange(t),o=e._data[n].symbol;return!(!i||vn.isEmpty(o.range)!==i.isEmpty())}))},e.prototype.updateCodeLensSymbols=function(e,t){var n=this;this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((function(e,i){t.addDecoration({range:e.symbol.range,options:z_.EMPTY},(function(e){return n._decorationIds[i]=e}))}))},e.prototype.computeIfNecessary=function(e){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(var t=0;t<this._decorationIds.length;t++){var n=e.getDecorationRange(this._decorationIds[t]);n&&(this._data[t].symbol.range=n)}return this._data},e.prototype.updateCommands=function(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(var t=0;t<this._data.length;t++){var n=e[t];if(n){var i=this._data[t].symbol;i.command=n.command||i.command}}},e.prototype.getCommand=function(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getCommand(e)},e.prototype.getLineNumber=function(){var e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1},e.prototype.update=function(e){if(this.isValid()){var t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}},e}();gm((function(e,t){var n=e.getColor(fC);n&&t.addRule(".monaco-editor .codelens-decoration { color: "+n+"; }");var i=e.getColor(eb);i&&t.addRule(".monaco-editor .codelens-decoration > a:hover { color: "+i+" !important; }")}));var OH=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},TH=function(e,t){return function(n,i){t(n,i,e)}},PH=Dn("ICodeLensCache"),RH=function(){function e(e,t){this.lineCount=e,this.data=t}return e}(),UH=function(){function e(e){var t=this;this._fakeProvider=new(function(){function e(){}return e.prototype.provideCodeLenses=function(){throw new Error("not supported")},e}()),this._cache=new Va(20,.75);var n="codelens/cache";wi((function(){return e.remove(n,1)}));var i="codelens/cache2",o=e.get(i,1,"{}");this._deserialize(o),we(e.onWillSaveState)((function(n){n.reason===iT.SHUTDOWN&&e.store(i,t._serialize(),1)}))}return e.prototype.put=function(e,t){var n=t.lenses.map((function(e){var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),i=new xH;i.add({lenses:n,dispose:function(){}},this._fakeProvider);var o=new RH(e.getLineCount(),i);this._cache.set(e.uri.toString(),o)},e.prototype.get=function(e){var t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0},e.prototype.delete=function(e){this._cache.delete(e.uri.toString())},e.prototype._serialize=function(){var e=Object.create(null);return this._cache.forEach((function(t,n){for(var i=new Set,o=0,r=t.data.lenses;o<r.length;o++){var s=r[o];i.add(s.symbol.range.startLineNumber)}e[n]={lineCount:t.lineCount,lines:Fa(i)}})),JSON.stringify(e)},e.prototype._deserialize=function(e){try{var t=JSON.parse(e);for(var n in t){for(var i=t[n],o=[],r=0,s=i.lines;r<s.length;r++){var a=s[r];o.push({range:new vn(a,1,a,11)})}var u=new xH;u.add({lenses:o,dispose:function(){}},this._fakeProvider),this._cache.set(n,new RH(i.lineCount,u))}}catch(l){}},e=OH([TH(0,aT)],e),e}();pL(PH,UH);var HH=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},QH=function(e,t){return function(n,i){t(n,i,e)}},VH=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},WH=function(){function e(e,t,n,i){var o=this;this._editor=e,this._commandService=t,this._notificationService=n,this._codeLensCache=i,this._globalToDispose=new ke,this._localToDispose=new ke,this._lenses=[],this._oldCodeLensModels=new ke,this._modelChangeCounter=0,this._isEnabled=this._editor.getOption(11),this._globalToDispose.add(this._editor.onDidChangeModel((function(){return o._onModelChange()}))),this._globalToDispose.add(this._editor.onDidChangeModelLanguage((function(){return o._onModelChange()}))),this._globalToDispose.add(this._editor.onDidChangeConfiguration((function(){var e=o._isEnabled;o._isEnabled=o._editor.getOption(11),e!==o._isEnabled&&o._onModelChange()}))),this._globalToDispose.add(Ol.onDidChange(this._onModelChange,this)),this._globalToDispose.add(this._editor.onDidChangeConfiguration((function(e){e.hasChanged(32)&&o._updateLensStyle()}))),this._onModelChange(),this._styleClassName=Uc(this._editor.getId()).toString(16),this._styleElement=qo(),this._updateLensStyle()}return e.prototype.dispose=function(){this._localDispose(),this._globalToDispose.dispose(),this._oldCodeLensModels.dispose(),xe(this._currentCodeLensModel)},e.prototype._updateLensStyle=function(){var e=this._editor.getOptions(),t=e.get(32),n=e.get(47),i=".monaco-editor .codelens-decoration."+this._styleClassName+" { height: "+Math.round(1.1*n)+"px; line-height: "+n+"px; font-size: "+Math.round(.9*t.fontSize)+"px; padding-right: "+Math.round(.45*t.fontSize)+"px;}";this._styleElement.innerHTML=i},e.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=void 0,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0),this._localToDispose.clear(),this._oldCodeLensModels.clear(),xe(this._currentCodeLensModel)},e.prototype._onModelChange=function(){var e=this;this._localDispose();var t=this._editor.getModel();if(t&&this._isEnabled){var n=this._codeLensCache.get(t);if(n&&this._renderCodeLensSymbols(n),Ol.has(t)){for(var i=0,o=Ol.all(t);i<o.length;i++){var r=o[i];if("function"===typeof r.onDidChange){var s=r.onDidChange((function(){return u.schedule()}));this._localToDispose.add(s)}}var a=this._detectVisibleLenses=new Si((function(){return e._onViewportChanged()}),250),u=new Si((function(){var n=++e._modelChangeCounter;e._currentFindCodeLensSymbolsPromise&&e._currentFindCodeLensSymbolsPromise.cancel(),e._currentFindCodeLensSymbolsPromise=fi((function(e){return LH(t,e)})),e._currentFindCodeLensSymbolsPromise.then((function(i){n===e._modelChangeCounter&&(e._currentCodeLensModel&&e._oldCodeLensModels.add(e._currentCodeLensModel),e._currentCodeLensModel=i,e._codeLensCache.put(t,i),e._renderCodeLensSymbols(i),a.schedule())}),Ae)}),250);this._localToDispose.add(u),this._localToDispose.add(a),this._localToDispose.add(this._editor.onDidChangeModelContent((function(){e._editor.changeDecorations((function(t){e._editor.changeViewZones((function(n){var i=[],o=-1;e._lenses.forEach((function(e){e.isValid()&&o!==e.getLineNumber()?(e.update(n),o=e.getLineNumber()):i.push(e)}));var r=new FH;i.forEach((function(t){t.dispose(r,n),e._lenses.splice(e._lenses.indexOf(t),1)})),r.commit(t)}))})),a.schedule(),u.schedule()}))),this._localToDispose.add(this._editor.onDidScrollChange((function(t){t.scrollTopChanged&&e._lenses.length>0&&a.schedule()}))),this._localToDispose.add(this._editor.onDidLayoutChange((function(){a.schedule()}))),this._localToDispose.add(De((function(){if(e._editor.getModel()){var t=SL.capture(e._editor);e._editor.changeDecorations((function(t){e._editor.changeViewZones((function(n){e._disposeAllLenses(t,n)}))})),t.restore(e._editor)}else e._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseUp((function(t){var n,i,o;if(9===t.target.type){var r=t.target.element;if("SPAN"===(null===(i=r)||void 0===i?void 0:i.tagName)&&(r=r.parentElement),"A"===(null===(o=r)||void 0===o?void 0:o.tagName))for(var s=0,a=e._lenses;s<a.length;s++){var u=a[s],l=u.getCommand(r);if(l){(n=e._commandService).executeCommand.apply(n,VH([l.id],l.arguments||[])).catch((function(t){return e._notificationService.error(t)}));break}}}}))),u.schedule()}else n&&this._localToDispose.add(_i((function(){var i=e._codeLensCache.get(t);n===i&&(e._codeLensCache.delete(t),e._onModelChange())}),3e4))}},e.prototype._disposeAllLenses=function(e,t){for(var n=new FH,i=0,o=this._lenses;i<o.length;i++){var r=o[i];r.dispose(n,t)}e&&n.commit(e),this._lenses=[]},e.prototype._renderCodeLensSymbols=function(e){var t=this;if(this._editor.hasModel()){for(var n,i=this._editor.getModel().getLineCount(),o=[],r=0,s=e.lenses;r<s.length;r++){var a=s[r],u=a.symbol.range.startLineNumber;u<1||u>i||(n&&n[n.length-1].symbol.range.startLineNumber===u?n.push(a):(n=[a],o.push(n)))}var l=SL.capture(this._editor);this._editor.changeDecorations((function(e){t._editor.changeViewZones((function(n){var i=new FH,r=0,s=0;while(s<o.length&&r<t._lenses.length){var a=o[s][0].symbol.range.startLineNumber,u=t._lenses[r].getLineNumber();u<a?(t._lenses[r].dispose(i,n),t._lenses.splice(r,1)):u===a?(t._lenses[r].updateCodeLensSymbols(o[s],i),s++,r++):(t._lenses.splice(r,0,new MH(o[s],t._editor,t._styleClassName,i,n,(function(){return t._detectVisibleLenses&&t._detectVisibleLenses.schedule()}))),r++,s++)}while(r<t._lenses.length)t._lenses[r].dispose(i,n),t._lenses.splice(r,1);while(s<o.length)t._lenses.push(new MH(o[s],t._editor,t._styleClassName,i,n,(function(){return t._detectVisibleLenses&&t._detectVisibleLenses.schedule()}))),s++;i.commit(e)}))})),l.restore(this._editor)}},e.prototype._onViewportChanged=function(){var e=this;this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);var t=this._editor.getModel();if(t){var n=[],i=[];if(this._lenses.forEach((function(e){var o=e.computeIfNecessary(t);o&&(n.push(o),i.push(e))})),0!==n.length){var o=fi((function(e){var o=n.map((function(n,o){var r=new Array(n.length),s=n.map((function(n,i){return n.symbol.command||"function"!==typeof n.provider.resolveCodeLens?(r[i]=n.symbol,Promise.resolve(void 0)):Promise.resolve(n.provider.resolveCodeLens(t,n.symbol,e)).then((function(e){r[i]=e}),pe)}));return Promise.all(s).then((function(){e.isCancellationRequested||i[o].isDisposed()||i[o].updateCommands(r)}))}));return Promise.all(o)}));this._currentResolveCodeLensSymbolsPromise=o,this._currentResolveCodeLensSymbolsPromise.then((function(){e._currentCodeLensModel&&e._codeLensCache.put(t,e._currentCodeLensModel),e._oldCodeLensModels.clear(),o===e._currentResolveCodeLensSymbolsPromise&&(e._currentResolveCodeLensSymbolsPromise=void 0)}),(function(t){Ae(t),o===e._currentResolveCodeLensSymbolsPromise&&(e._currentResolveCodeLensSymbolsPromise=void 0)}))}}},e.ID="css.editor.codeLens",e=HH([QH(1,Ka),QH(2,$p),QH(3,PH)],e),e}();function KH(e,t){var n=[],i=Ql.ordered(e).reverse(),o=i.map((function(i){return Promise.resolve(i.provideDocumentColors(e,t)).then((function(e){if(Array.isArray(e))for(var t=0,o=e;t<o.length;t++){var r=o[t];n.push({colorInfo:r,provider:i})}}))}));return Promise.all(o).then((function(){return n}))}function zH(e,t,n,i){return Promise.resolve(n.provideColorPresentations(e,t,i))}Bg(WH.ID,WH),yg("_executeDocumentColorProvider",(function(e,t){var n=t.resource;if(!(n instanceof Et))throw _e();var i=e.get(ll).getModel(n);if(!i)throw _e();var o=[],r=Ql.ordered(i).reverse(),s=r.map((function(e){return Promise.resolve(e.provideDocumentColors(i,je.None)).then((function(e){if(Array.isArray(e))for(var t=0,n=e;t<n.length;t++){var i=n[t];o.push({range:i.range,color:[i.color.red,i.color.green,i.color.blue,i.color.alpha]})}}))}));return Promise.all(s).then((function(){return o}))})),yg("_executeColorPresentationProvider",(function(e,t){var n=t.resource,i=t.color,o=t.range;if(!(n instanceof Et)||!Array.isArray(i)||4!==i.length||!vn.isIRange(o))throw _e();var r=i[0],s=i[1],a=i[2],u=i[3],l=e.get(ll).getModel(n);if(!l)throw _e();var c={range:o,color:{red:r,green:s,blue:a,alpha:u}},d=[],h=Ql.ordered(l).reverse(),A=h.map((function(e){return Promise.resolve(e.provideColorPresentations(l,c,je.None)).then((function(e){Array.isArray(e)&&d.push.apply(d,e)}))}));return Promise.all(A).then((function(){return d}))}));var jH=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)}}(),GH=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},qH=function(e,t){return function(n,i){t(n,i,e)}},YH=500,XH=function(e){function t(t,n,i){var o=e.call(this)||this;return o._editor=t,o._codeEditorService=n,o._configurationService=i,o._localToDispose=o._register(new ke),o._decorationsIds=[],o._colorDatas=new Map,o._colorDecoratorIds=[],o._decorationsTypes=new Set,o._register(t.onDidChangeModel((function(e){o._isEnabled=o.isEnabled(),o.onModelChanged()}))),o._register(t.onDidChangeModelLanguage((function(e){return o.onModelChanged()}))),o._register(Ql.onDidChange((function(e){return o.onModelChanged()}))),o._register(t.onDidChangeConfiguration((function(e){var t=o._isEnabled;o._isEnabled=o.isEnabled(),t!==o._isEnabled&&(o._isEnabled?o.onModelChanged():o.removeAllDecorations())}))),o._timeoutTimer=null,o._computePromise=null,o._isEnabled=o.isEnabled(),o.onModelChanged(),o}return jH(t,e),t.prototype.isEnabled=function(){var e=this._editor.getModel();if(!e)return!1;var t=e.getLanguageIdentifier(),n=this._configurationService.getValue(t.language);if(n){var i=n["colorDecorators"];if(i&&void 0!==i["enable"]&&!i["enable"])return i["enable"]}return this._editor.getOption(12)},t.get=function(e){return e.getContribution(this.ID)},t.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),e.prototype.dispose.call(this)},t.prototype.onModelChanged=function(){var e=this;if(this.stop(),this._isEnabled){var n=this._editor.getModel();n&&Ql.has(n)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((function(n){e._timeoutTimer||(e._timeoutTimer=new bi,e._timeoutTimer.cancelAndSet((function(){e._timeoutTimer=null,e.beginCompute()}),t.RECOMPUTE_TIME))}))),this.beginCompute())}},t.prototype.beginCompute=function(){var e=this;this._computePromise=fi((function(t){var n=e._editor.getModel();return n?KH(n,t):Promise.resolve([])})),this._computePromise.then((function(t){e.updateDecorations(t),e.updateColorDecorators(t),e._computePromise=null}),Ae)},t.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},t.prototype.updateDecorations=function(e){var t=this,n=e.map((function(e){return{range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:z_.EMPTY}}));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,n),this._colorDatas=new Map,this._decorationsIds.forEach((function(n,i){return t._colorDatas.set(n,e[i])}))},t.prototype.updateColorDecorators=function(e){for(var t=this,n=[],i={},o=0;o<e.length&&n.length<YH;o++){var r=e[o].colorInfo.color,s=r.red,a=r.green,u=r.blue,l=r.alpha,c=new x_(Math.round(255*s),Math.round(255*a),Math.round(255*u),l),d=Uc(c).toString(16),h="rgba("+c.r+", "+c.g+", "+c.b+", "+c.a+")",A="colorBox-"+d;this._decorationsTypes.has(A)||i[A]||this._codeEditorService.registerDecorationType(A,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:h},dark:{before:{border:"solid 0.1em #eee"}}}),i[A]=!0,n.push({range:{startLineNumber:e[o].colorInfo.range.startLineNumber,startColumn:e[o].colorInfo.range.startColumn,endLineNumber:e[o].colorInfo.range.endLineNumber,endColumn:e[o].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(A,!0)})}this._decorationsTypes.forEach((function(e){i[e]||t._codeEditorService.removeDecorationType(e)})),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,n)},t.prototype.removeAllDecorations=function(){var e=this;this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach((function(t){e._codeEditorService.removeDecorationType(t)}))},t.prototype.getColorData=function(e){var t=this,n=this._editor.getModel();if(!n)return null;var i=n.getDecorationsInRange(vn.fromPositions(e,e)).filter((function(e){return t._colorDatas.has(e.id)}));return 0===i.length?null:this._colorDatas.get(i[0].id)},t.ID="editor.contrib.colorDetector",t.RECOMPUTE_TIME=1e3,t=GH([qH(1,kn),qH(2,rp)],t),t}(Ie);Bg(XH.ID,XH);var JH=function(){function e(e){this._selection=e,this._usedEndToken=null}return e._haystackHasNeedleAtOffset=function(e,t,n){if(n<0)return!1;var i=t.length,o=e.length;if(n+i>o)return!1;for(var r=0;r<i;r++){var s=e.charCodeAt(n+r),a=t.charCodeAt(r);if(s!==a&&(!(s>=65&&s<=90&&s+32===a)&&!(a>=65&&a<=90&&a+32===s)))return!1}return!0},e.prototype._createOperationsForBlockComment=function(t,n,i,o,r){var s,a=t.startLineNumber,u=t.startColumn,l=t.endLineNumber,c=t.endColumn,d=o.getLineContent(a),h=o.getLineContent(l),A=d.lastIndexOf(n,u-1+n.length),p=h.indexOf(i,c-1-i.length);if(-1!==A&&-1!==p)if(a===l){var f=d.substring(A+n.length,p);f.indexOf(i)>=0&&(A=-1,p=-1)}else{var g=d.substring(A+n.length),m=h.substring(0,p);(g.indexOf(i)>=0||m.indexOf(i)>=0)&&(A=-1,p=-1)}-1!==A&&-1!==p?(A+n.length<d.length&&32===d.charCodeAt(A+n.length)&&(n+=" "),p>0&&32===h.charCodeAt(p-1)&&(i=" "+i,p-=1),s=e._createRemoveBlockCommentOperations(new vn(a,A+n.length+1,l,p+1),n,i)):(s=e._createAddBlockCommentOperations(t,n,i),this._usedEndToken=1===s.length?i:null);for(var v=0,_=s;v<_.length;v++){var y=_[v];r.addTrackedEditOperation(y.range,y.text)}},e._createRemoveBlockCommentOperations=function(e,t,n){var i=[];return vn.isEmpty(e)?i.push(op.delete(new vn(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(i.push(op.delete(new vn(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(op.delete(new vn(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),i},e._createAddBlockCommentOperations=function(e,t,n){var i=[];return vn.isEmpty(e)?i.push(op.replace(new vn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(i.push(op.insert(new mn(e.startLineNumber,e.startColumn),t+" ")),i.push(op.insert(new mn(e.endLineNumber,e.endColumn)," "+n))),i},e.prototype.getEditOperations=function(e,t){var n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenizeIfCheap(n);var o=e.getLanguageIdAtPosition(n,i),r=Pc.getComments(o);r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,e,t)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations();if(2===n.length){var i=n[0],o=n[1];return new yn(i.range.endLineNumber,i.range.endColumn,o.range.startLineNumber,o.range.startColumn)}var r=n[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new yn(r.endLineNumber,r.endColumn+s,r.endLineNumber,r.endColumn+s)},e}(),ZH=function(){function e(e,t,n){this._selection=e,this._selectionId=null,this._tabSize=t,this._type=n,this._deltaColumn=0,this._moveEndPositionDown=!1}return e._gatherPreflightCommentStrings=function(e,t,n){e.tokenizeIfCheap(t);var i=e.getLanguageIdAtPosition(t,1),o=Pc.getComments(i),r=o?o.lineCommentToken:null;if(!r)return null;for(var s=[],a=0,u=n-t+1;a<u;a++)s[a]={ignore:!1,commentStr:r,commentStrOffset:0,commentStrLength:r.length};return s},e._analyzeLines=function(e,t,n,i){var o,r=!0;o=0===e||1!==e;for(var s=0,a=n.length;s<a;s++){var u=n[s],l=i+s,c=t.getLineContent(l),d=Ur(c);if(-1!==d){if(r=!1,u.ignore=!1,u.commentStrOffset=d,o&&!JH._haystackHasNeedleAtOffset(c,u.commentStr,d)&&(0===e?o=!1:1===e||(u.ignore=!0)),o){var h=d+u.commentStrLength;h<c.length&&32===c.charCodeAt(h)&&(u.commentStrLength+=1)}}else u.ignore=!0,u.commentStrOffset=c.length}if(0===e&&r){o=!1;for(s=0,a=n.length;s<a;s++)n[s].ignore=!1}return{supported:!0,shouldRemoveComments:o,lines:n}},e._gatherPreflightData=function(t,n,i,o){var r=e._gatherPreflightCommentStrings(n,i,o);return null===r?{supported:!1}:e._analyzeLines(t,n,r,i)},e.prototype._executeLineComments=function(t,n,i,o){var r;i.shouldRemoveComments?r=e._createRemoveLineCommentsOperations(i.lines,o.startLineNumber):(e._normalizeInsertionPoint(t,i.lines,o.startLineNumber,this._tabSize),r=e._createAddLineCommentsOperations(i.lines,o.startLineNumber));for(var s=new mn(o.positionLineNumber,o.positionColumn),a=0,u=r.length;a<u;a++)if(n.addEditOperation(r[a].range,r[a].text),r[a].range.isEmpty()&&r[a].range.getStartPosition().equals(s)){var l=t.getLineContent(s.lineNumber);l.length+1===s.column&&(this._deltaColumn=(r[a].text||"").length)}this._selectionId=n.trackSelection(o)},e.prototype._attemptRemoveBlockComment=function(e,t,n,i){var o=t.startLineNumber,r=t.endLineNumber,s=i.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),a=e.getLineContent(o).lastIndexOf(n,s-1),u=e.getLineContent(r).indexOf(i,t.endColumn-1-n.length);return-1!==a&&-1===u&&(u=e.getLineContent(o).indexOf(i,a+n.length),r=o),-1===a&&-1!==u&&(a=e.getLineContent(r).lastIndexOf(n,u),o=r),!t.isEmpty()||-1!==a&&-1!==u||(a=e.getLineContent(o).indexOf(n),-1!==a&&(u=e.getLineContent(o).indexOf(i,a+n.length))),-1!==a&&32===e.getLineContent(o).charCodeAt(a+n.length)&&(n+=" "),-1!==u&&32===e.getLineContent(r).charCodeAt(u-1)&&(i=" "+i,u-=1),-1!==a&&-1!==u?JH._createRemoveBlockCommentOperations(new vn(o,a+n.length+1,r,u+1),n,i):null},e.prototype._executeBlockComment=function(e,t,n){e.tokenizeIfCheap(n.startLineNumber);var i=e.getLanguageIdAtPosition(n.startLineNumber,1),o=Pc.getComments(i);if(o&&o.blockCommentStartToken&&o.blockCommentEndToken){var r=o.blockCommentStartToken,s=o.blockCommentEndToken,a=this._attemptRemoveBlockComment(e,n,r,s);if(!a){if(n.isEmpty()){var u=e.getLineContent(n.startLineNumber),l=Ur(u);-1===l&&(l=u.length),a=JH._createAddBlockCommentOperations(new vn(n.startLineNumber,l+1,n.startLineNumber,u.length+1),r,s)}else a=JH._createAddBlockCommentOperations(new vn(n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),r,s);1===a.length&&(this._deltaColumn=r.length+1)}this._selectionId=t.trackSelection(n);for(var c=0,d=a;c<d.length;c++){var h=d[c];t.addEditOperation(h.range,h.text)}}},e.prototype.getEditOperations=function(t,n){var i=this._selection;this._moveEndPositionDown=!1,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,t.getLineMaxColumn(i.endLineNumber-1)));var o=e._gatherPreflightData(this._type,t,i.startLineNumber,i.endLineNumber);return o.supported?this._executeLineComments(t,n,o,i):this._executeBlockComment(t,n,i)},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new yn(n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn)},e._createRemoveLineCommentsOperations=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];r.ignore||n.push(op.delete(new vn(t+i,r.commentStrOffset+1,t+i,r.commentStrOffset+r.commentStrLength+1)))}return n},e._createAddLineCommentsOperations=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];r.ignore||n.push(op.insert(new mn(t+i,r.commentStrOffset+1),r.commentStr+" "))}return n},e.nextVisibleColumn=function(e,t,n,i){return n?e+(t-e%t):e+i},e._normalizeInsertionPoint=function(t,n,i,o){for(var r,s,a=1073741824,u=0,l=n.length;u<l;u++)if(!n[u].ignore){for(var c=t.getLineContent(i+u),d=0,h=0,A=n[u].commentStrOffset;d<a&&h<A;h++)d=e.nextVisibleColumn(d,o,9===c.charCodeAt(h),1);d<a&&(a=d)}a=Math.floor(a/o)*o;for(u=0,l=n.length;u<l;u++)if(!n[u].ignore){c=t.getLineContent(i+u),d=0;for(r=0,s=n[u].commentStrOffset;d<a&&r<s;r++)d=e.nextVisibleColumn(d,o,9===c.charCodeAt(r),1);n[u].commentStrOffset=d>a?r-1:r}},e}(),$H=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)}}(),eQ=function(e){function t(t,n){var i=e.call(this,n)||this;return i._type=t,i}return $H(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),i=[],o=t.getSelections(),r=n.getOptions(),s=0,a=o;s<a.length;s++){var u=a[s];i.push(new ZH(u,r.tabSize,this._type))}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}},t}(_g),tQ=function(e){function t(){return e.call(this,0,{id:"editor.action.commentLine",label:r("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:15,group:"5_insert",title:r({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}return $H(t,e),t}(eQ),nQ=function(e){function t(){return e.call(this,1,{id:"editor.action.addCommentLine",label:r("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2081),weight:100}})||this}return $H(t,e),t}(eQ),iQ=function(e){function t(){return e.call(this,2,{id:"editor.action.removeCommentLine",label:r("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2099),weight:100}})||this}return $H(t,e),t}(eQ),oQ=function(e){function t(){return e.call(this,{id:"editor.action.blockComment",label:r("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:15,group:"5_insert",title:r({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}return $H(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=[],i=t.getSelections(),o=0,r=i;o<r.length;o++){var s=r[o];n.push(new JH(s))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},t}(_g);Cg(tQ),Cg(nQ),Cg(iQ),Cg(oQ);var rQ=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)}}(),sQ=function(e){function t(t,n){var i=e.call(this,t,n,"contextsubmenu")||this;return i.entries=n,i}return rQ(t,e),t}(gk),aQ=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)}}(),uQ=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},lQ=function(e,t){return function(n,i){t(n,i,e)}},cQ=function(){function e(e,t,n,i,o,r){var s=this;this._contextMenuService=t,this._contextViewService=n,this._contextKeyService=i,this._keybindingService=o,this._menuService=r,this._toDispose=new ke,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((function(e){return s._onContextMenu(e)}))),this._toDispose.add(this._editor.onMouseWheel((function(e){s._contextMenuIsBeingShownCount>0&&s._contextViewService.hideContextView()}))),this._toDispose.add(this._editor.onKeyDown((function(e){58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),s.showContextMenu())})))}return e.get=function(t){return t.getContribution(e.ID)},e.prototype._onContextMenu=function(e){if(this._editor.hasModel()){if(!this._editor.getOption(13))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12!==e.target.type&&(e.event.preventDefault(),6===e.target.type||7===e.target.type||1===e.target.type)){if(this._editor.focus(),e.target.position){for(var t=!1,n=0,i=this._editor.getSelections();n<i.length;n++){var o=i[n];if(o.containsPosition(e.target.position)){t=!0;break}}t||this._editor.setPosition(e.target.position)}var r=null;1!==e.target.type&&(r={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(r)}}},e.prototype.showContextMenu=function(e){if(this._editor.getOption(13)&&this._editor.hasModel())if(this._contextMenuService){var t=this._getMenuActions(this._editor.getModel(),7);t.length>0&&this._doShowContextMenu(t,e)}else this._editor.focus()},e.prototype._getMenuActions=function(e,t){var n=[],i=this._menuService.createMenu(t,this._contextKeyService),o=i.getActions({arg:e.uri});i.dispose();for(var r=0,s=o;r<s.length;r++){for(var a=s[r],u=a[1],l=0,c=0,d=u;c<d.length;c++){var h=d[c];if(h instanceof Ag){var A=this._getMenuActions(e,h.item.submenu);A.length>0&&(n.push(new sQ(h.label,A)),l++)}else n.push(h),l++}l&&n.push(new NL)}return n.length&&n.pop(),n},e.prototype._doShowContextMenu=function(e,t){var n=this;if(void 0===t&&(t=null),this._editor.hasModel()){var i=this._editor.getOption(42);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var o=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=Ho(this._editor.getDomNode()),s=r.left+o.left,a=r.top+o.top+o.height;t={x:s,y:a}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return t},getActions:function(){return e},getActionViewItem:function(e){var t=n._keybindingFor(e);if(t)return new kL(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});var i=e;return"function"===typeof i.getActionViewItem?i.getActionViewItem():new kL(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(e){return n._keybindingFor(e)},onHide:function(e){n._contextMenuIsBeingShownCount--,n._editor.focus(),n._editor.updateOptions({hover:i})}})}},e.prototype._keybindingFor=function(e){return this._keybindingService.lookupKeybinding(e.id)},e.prototype.dispose=function(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()},e.ID="editor.contrib.contextmenu",e=uQ([lQ(1,WL),lQ(2,VL),lQ(3,Mp),lQ(4,pD),lQ(5,cg)],e),e}(),dQ=function(e){function t(){return e.call(this,{id:"editor.action.showContextMenu",label:r("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:_S.textInputFocus,primary:1092,weight:100}})||this}return aQ(t,e),t.prototype.run=function(e,t){var n=cQ.get(t);n.showContextMenu()},t}(_g);Bg(cQ.ID,cQ),Cg(dQ);var hQ=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)}}(),AQ=function(){function e(e){this.selections=e}return e.prototype.equals=function(e){var t=this.selections.length,n=e.selections.length;if(t!==n)return!1;for(var i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0},e}(),pQ=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._isCursorUndoRedo=!1,n._undoStack=[],n._redoStack=[],n._register(t.onDidChangeModel((function(e){n._undoStack=[],n._redoStack=[]}))),n._register(t.onDidChangeModelContent((function(e){n._undoStack=[],n._redoStack=[]}))),n._register(t.onDidChangeCursorSelection((function(e){if(!n._isCursorUndoRedo&&e.oldSelections&&e.oldModelVersionId===e.modelVersionId){var t=new AQ(e.oldSelections),i=n._undoStack.length>0&&n._undoStack[n._undoStack.length-1].equals(t);i||(n._undoStack.push(t),n._redoStack=[],n._undoStack.length>50&&n._undoStack.shift())}}))),n}return hQ(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.cursorUndo=function(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new AQ(this._editor.getSelections())),this._applyState(this._undoStack.pop()))},t.prototype.cursorRedo=function(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new AQ(this._editor.getSelections())),this._applyState(this._redoStack.pop()))},t.prototype._applyState=function(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.selections),this._editor.revealRangeInCenterIfOutsideViewport(e.selections[0],0),this._isCursorUndoRedo=!1},t.ID="editor.contrib.cursorUndoRedoController",t}(Ie),fQ=function(e){function t(){return e.call(this,{id:"cursorUndo",label:r("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:_S.textInputFocus,primary:2099,weight:100}})||this}return hQ(t,e),t.prototype.run=function(e,t,n){pQ.get(t).cursorUndo()},t}(_g),gQ=function(e){function t(){return e.call(this,{id:"cursorRedo",label:r("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})||this}return hQ(t,e),t.prototype.run=function(e,t,n){pQ.get(t).cursorRedo()},t}(_g);Bg(pQ.ID,pQ),Cg(fQ),Cg(gQ);n("3a19");var mQ=function(){function e(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}return e.prototype.getEditOperations=function(e,t){var n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new vn(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new yn(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new yn(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new yn(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new yn(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new yn(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection},e.prototype.computeCursorState=function(e,t){return this.targetSelection},e}(),vQ=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 _Q(e){return s["e"]?e.altKey:e.ctrlKey}var yQ=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._register(n._editor.onMouseDown((function(e){return n._onEditorMouseDown(e)}))),n._register(n._editor.onMouseUp((function(e){return n._onEditorMouseUp(e)}))),n._register(n._editor.onMouseDrag((function(e){return n._onEditorMouseDrag(e)}))),n._register(n._editor.onMouseDrop((function(e){return n._onEditorMouseDrop(e)}))),n._register(n._editor.onKeyDown((function(e){return n.onEditorKeyDown(e)}))),n._register(n._editor.onKeyUp((function(e){return n.onEditorKeyUp(e)}))),n._register(n._editor.onDidBlurEditorWidget((function(){return n.onEditorBlur()}))),n._dndDecorationIds=[],n._mouseDown=!1,n._modifierPressed=!1,n._dragSelection=null,n}return vQ(t,e),t.prototype.onEditorBlur=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1},t.prototype.onEditorKeyDown=function(e){this._editor.getOption(23)&&(_Q(e)&&(this._modifierPressed=!0),this._mouseDown&&_Q(e)&&this._editor.updateOptions({mouseStyle:"copy"}))},t.prototype.onEditorKeyUp=function(e){this._editor.getOption(23)&&(_Q(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===t.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))},t.prototype._onEditorMouseDown=function(e){this._mouseDown=!0},t.prototype._onEditorMouseUp=function(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})},t.prototype._onEditorMouseDrag=function(e){var t=e.target;if(null===this._dragSelection){var n=this._editor.getSelections()||[],i=n.filter((function(e){return t.position&&e.containsPosition(t.position)}));if(1!==i.length)return;this._dragSelection=i[0]}_Q(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))},t.prototype._onEditorMouseDrop=function(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){var n=new mn(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){var i=null;if(e.event.shiftKey){var o=this._editor.getSelection();if(o){var r=o.selectionStartLineNumber,s=o.selectionStartColumn;i=[new yn(r,s,n.lineNumber,n.column)]}}else i=(this._editor.getSelections()||[]).map((function(e){return e.containsPosition(n)?new yn(n.lineNumber,n.column,n.lineNumber,n.column):e}));this._editor.setSelections(i||[],"mouse")}else(!this._dragSelection.containsPosition(n)||(_Q(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(n)||this._dragSelection.getStartPosition().equals(n)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(t.ID,new mQ(this._dragSelection,n,_Q(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1},t.prototype.showAt=function(e){var n=[{range:new vn(e.lineNumber,e.column,e.lineNumber,e.column),options:t._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,n),this._editor.revealPosition(e,1)},t.prototype._removeDecoration=function(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])},t.prototype._hitContent=function(e){return 6===e.type||7===e.type},t.prototype._hitMargin=function(e){return 2===e.type||3===e.type||4===e.type},t.prototype.dispose=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,e.prototype.dispose.call(this)},t.ID="editor.contrib.dragAndDrop",t.TRIGGER_KEY_VALUE=s["e"]?6:5,t._DECORATION_OPTIONS=z_.register({className:"dnd-target"}),t}(Ie);Bg(yQ.ID,yQ);var wQ=function(){function e(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return e.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},e.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},e.prototype.getCount=function(){return this._decorations.length},e.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},e.prototype.getStartPosition=function(){return this._startPosition},e.prototype.setStartPosition=function(e){this._startPosition=e,this.setCurrentFindMatch(null)},e.prototype._getDecorationIndex=function(e){var t=this._decorations.indexOf(e);return t>=0?t+1:1},e.prototype.getCurrentMatchesPosition=function(t){for(var n=this._editor.getModel().getDecorationsInRange(t),i=0,o=n;i<o.length;i++){var r=o[i],s=r.options;if(s===e._FIND_MATCH_DECORATION||s===e._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(r.id)}return 1},e.prototype.setCurrentFindMatch=function(t){var n=this,i=null,o=0;if(t)for(var r=0,s=this._decorations.length;r<s;r++){var a=this._editor.getModel().getDecorationRange(this._decorations[r]);if(t.equalsRange(a)){i=this._decorations[r],o=r+1;break}}return null===this._highlightedDecorationId&&null===i||this._editor.changeDecorations((function(t){if(null!==n._highlightedDecorationId&&(t.changeDecorationOptions(n._highlightedDecorationId,e._FIND_MATCH_DECORATION),n._highlightedDecorationId=null),null!==i&&(n._highlightedDecorationId=i,t.changeDecorationOptions(n._highlightedDecorationId,e._CURRENT_FIND_MATCH_DECORATION)),null!==n._rangeHighlightDecorationId&&(t.removeDecoration(n._rangeHighlightDecorationId),n._rangeHighlightDecorationId=null),null!==i){var o=n._editor.getModel().getDecorationRange(i);if(o.startLineNumber!==o.endLineNumber&&1===o.endColumn){var r=o.endLineNumber-1,s=n._editor.getModel().getLineMaxColumn(r);o=new vn(o.startLineNumber,o.startColumn,r,s)}n._rangeHighlightDecorationId=t.addDecoration(o,e._RANGE_HIGHLIGHT_DECORATION)}})),o},e.prototype.set=function(t,n){var i=this;this._editor.changeDecorations((function(o){var r=e._FIND_MATCH_DECORATION,s=[];if(t.length>1e3){r=e._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var a=i._editor.getModel().getLineCount(),u=i._editor.getLayoutInfo().height,l=u/a,c=Math.max(2,Math.ceil(3/l)),d=t[0].range.startLineNumber,h=t[0].range.endLineNumber,A=1,p=t.length;A<p;A++){var f=t[A].range;h+c>=f.startLineNumber?f.endLineNumber>h&&(h=f.endLineNumber):(s.push({range:new vn(d,1,h,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),d=f.startLineNumber,h=f.endLineNumber)}s.push({range:new vn(d,1,h,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var g=new Array(t.length);for(A=0,p=t.length;A<p;A++)g[A]={range:t[A].range,options:r};i._decorations=o.deltaDecorations(i._decorations,g),i._overviewRulerApproximateDecorations=o.deltaDecorations(i._overviewRulerApproximateDecorations,s),i._rangeHighlightDecorationId&&(o.removeDecoration(i._rangeHighlightDecorationId),i._rangeHighlightDecorationId=null),i._findScopeDecorationId&&(o.removeDecoration(i._findScopeDecorationId),i._findScopeDecorationId=null),n&&(i._findScopeDecorationId=o.addDecoration(n,e._FIND_SCOPE_DECORATION))}))},e.prototype.matchBeforePosition=function(e){if(0===this._decorations.length)return null;for(var t=this._decorations.length-1;t>=0;t--){var n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.endLineNumber>e.lineNumber)){if(i.endLineNumber<e.lineNumber)return i;if(!(i.endColumn>e.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},e.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;t<n;t++){var i=this._decorations[t],o=this._editor.getModel().getDecorationRange(i);if(o&&!(o.startLineNumber<e.lineNumber)){if(o.startLineNumber>e.lineNumber)return o;if(!(o.startColumn<e.column))return o}}return this._editor.getModel().getDecorationRange(this._decorations[0])},e.prototype._allDecorations=function(){var e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&e.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e},e._CURRENT_FIND_MATCH_DECORATION=z_.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:lm(Tb),position:Bu.Center},minimap:{color:lm(Rb),position:Eu.Inline}}),e._FIND_MATCH_DECORATION=z_.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:lm(Tb),position:Bu.Center},minimap:{color:lm(Rb),position:Eu.Inline}}),e._FIND_MATCH_NO_OVERVIEW_DECORATION=z_.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),e._FIND_MATCH_ONLY_OVERVIEW_DECORATION=z_.register({stickiness:1,overviewRuler:{color:lm(Tb),position:Bu.Center}}),e._RANGE_HIGHLIGHT_DECORATION=z_.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),e._FIND_SCOPE_DECORATION=z_.register({className:"findScope",isWholeLine:!0}),e}(),bQ=function(){function e(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}return e.prototype.getEditOperations=function(e,t){if(this._ranges.length>0){for(var n=[],i=0;i<this._ranges.length;i++)n.push({range:this._ranges[i],text:this._replaceStrings[i]});n.sort((function(e,t){return vn.compareRangesUsingStarts(e.range,t.range)}));var o=[],r=n[0];for(i=1;i<n.length;i++)r.range.endLineNumber===n[i].range.startLineNumber&&r.range.endColumn===n[i].range.startColumn?(r.range=r.range.plusRange(n[i].range),r.text=r.text+n[i].text):(o.push(r),r=n[i]);o.push(r);for(var s=0,a=o;s<a.length;s++){var u=a[s];t.addEditOperation(u.range,u.text)}}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)},e}();function CQ(e,t){if(e&&""!==e[0]){var n=SQ(e,t,"-"),i=SQ(e,t,"_");return n&&!i?BQ(e,t,"-"):!n&&i?BQ(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():_s(e[0][0])?t[0].toUpperCase()+t.substr(1):t}return t}function SQ(e,t,n){var i=-1!==e[0].indexOf(n)&&-1!==t.indexOf(n);return i&&e[0].split(n).length===t.split(n).length}function BQ(e,t,n){var i=t.split(n),o=e[0].split(n),r="";return i.forEach((function(e,t){r+=CQ([o[t]],e)+n})),r.slice(0,-1)}var EQ=function(){function e(e){this.staticValue=e,this.kind=0}return e}(),xQ=function(){function e(e){this.pieces=e,this.kind=1}return e}(),LQ=function(){function e(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new EQ(e[0].staticValue):this._state=new xQ(e):this._state=new EQ("")}return e.fromStaticValue=function(t){return new e([DQ.staticValue(t)])},Object.defineProperty(e.prototype,"hasReplacementPatterns",{get:function(){return 1===this._state.kind},enumerable:!0,configurable:!0}),e.prototype.buildReplaceString=function(t,n){if(0===this._state.kind)return n?CQ(t,this._state.staticValue):this._state.staticValue;for(var i="",o=0,r=this._state.pieces.length;o<r;o++){var s=this._state.pieces[o];null===s.staticValue?i+=e._substitute(s.matchIndex,t):i+=s.staticValue}return i},e._substitute=function(e,t){if(null===t)return"";if(0===e)return t[0];var n="";while(e>0){if(e<t.length){var i=t[e]||"";return i+n}n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n},e}(),DQ=function(){function e(e,t){this.staticValue=e,this.matchIndex=t}return e.staticValue=function(t){return new e(t,-1)},e.matchIndex=function(t){return new e(null,t)},e}(),NQ=function(){function e(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return e.prototype.emitUnchanged=function(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e},e.prototype.emitStatic=function(e,t){this._emitStatic(e),this._lastCharIndex=t},e.prototype._emitStatic=function(e){0!==e.length&&(this._currentStaticPiece+=e)},e.prototype.emitMatchIndex=function(e,t){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=DQ.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=DQ.matchIndex(e),this._lastCharIndex=t},e.prototype.finalize=function(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=DQ.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new LQ(this._result)},e}();function kQ(e){if(!e||0===e.length)return new LQ(null);for(var t=new NQ(e),n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);if(92!==o){if(36===o){if(n++,n>=i)break;a=e.charCodeAt(n);if(36===a){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue}if(48===a||38===a){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1);continue}if(49<=a&&a<=57){var r=a-48;if(n+1<i){var s=e.charCodeAt(n+1);if(48<=s&&s<=57){n++,r=10*r+(s-48),t.emitUnchanged(n-2),t.emitMatchIndex(r,n+1);continue}}t.emitUnchanged(n-1),t.emitMatchIndex(r,n+1);continue}}}else{if(n++,n>=i)break;var a=e.charCodeAt(n);switch(a){case 92:t.emitUnchanged(n-1),t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1),t.emitStatic("\n",n+1);break;case 116:t.emitUnchanged(n-1),t.emitStatic("\t",n+1);break}}}return t.finalize()}var IQ=new Fp("findWidgetVisible",!1),FQ=new Fp("findInputFocussed",!1),MQ=new Fp("replaceInputFocussed",!1),OQ={primary:545,mac:{primary:2593}},TQ={primary:565,mac:{primary:2613}},PQ={primary:560,mac:{primary:2608}},RQ={primary:554,mac:{primary:2602}},UQ={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},HQ=19999,QQ=240,VQ=function(){function e(e,t){var n=this;this._toDispose=new ke,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new bi,this._decorations=new wQ(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new Si((function(){return n.research(!1)}),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((function(e){3!==e.reason&&5!==e.reason&&6!==e.reason||n._decorations.setStartPosition(n._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((function(e){n._ignoreModelContentChanged||(e.isFlush&&n._decorations.reset(),n._decorations.setStartPosition(n._editor.getPosition()),n._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((function(e){return n._onStateChanged(e)}))),this.research(!1,this._state.searchScope)}return e.prototype.dispose=function(){this._isDisposed=!0,xe(this._startSearchingTimer),this._toDispose.dispose()},e.prototype._onStateChanged=function(e){var t=this;if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){var n=this._editor.getModel();n.isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((function(){e.searchScope?t.research(e.moveCursor,t._state.searchScope):t.research(e.moveCursor)}),QQ)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}},e._getSearchRange=function(e,t){return t||e.getFullModelRange()},e.prototype.research=function(e,t){var n=null;n="undefined"!==typeof t?t:this._decorations.getFindScope(),null!==n&&n.startLineNumber!==n.endLineNumber&&(n=1===n.endColumn?new vn(n.startLineNumber,1,n.endLineNumber-1,this._editor.getModel().getLineMaxColumn(n.endLineNumber-1)):new vn(n.startLineNumber,1,n.endLineNumber,this._editor.getModel().getLineMaxColumn(n.endLineNumber)));var i=this._findMatches(n,!1,HQ);this._decorations.set(i,n),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),e&&this._moveToNextMatch(this._decorations.getStartPosition())},e.prototype._hasMatches=function(){return this._state.matchesCount>0},e.prototype._cannotFind=function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1},e.prototype._setCurrentFindMatch=function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)},e.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||1===i?(1===n?n=o.getLineCount():n--,i=o.getLineMaxColumn(n)):i--,new mn(n,i)},e.prototype._moveToPrevMatch=function(t,n){if(void 0===n&&(n=!1),this._decorations.getCount()<HQ){var i=this._decorations.matchBeforePosition(t);return i&&i.isEmpty()&&i.getStartPosition().equals(t)&&(t=this._prevSearchPosition(t),i=this._decorations.matchBeforePosition(t)),void(i&&this._setCurrentFindMatch(i))}if(!this._cannotFind()){var o=this._decorations.getFindScope(),r=e._getSearchRange(this._editor.getModel(),o);r.getEndPosition().isBefore(t)&&(t=r.getEndPosition()),t.isBefore(r.getStartPosition())&&(t=r.getEndPosition());var s=t.lineNumber,a=t.column,u=this._editor.getModel(),l=new mn(s,a),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(92):null,!1);if(c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(92):null,!1)),c)return n||r.containsRange(c.range)?void this._setCurrentFindMatch(c.range):this._moveToPrevMatch(c.range.getStartPosition(),!0)}},e.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},e.prototype._nextSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||i===o.getLineMaxColumn(n)?(n===o.getLineCount()?n=1:n++,i=1):i++,new mn(n,i)},e.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<HQ){var t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}var n=this._getNextMatch(e,!1,!0);n&&this._setCurrentFindMatch(n.range)},e.prototype._getNextMatch=function(t,n,i,o){if(void 0===o&&(o=!1),this._cannotFind())return null;var r=this._decorations.getFindScope(),s=e._getSearchRange(this._editor.getModel(),r);s.getEndPosition().isBefore(t)&&(t=s.getStartPosition()),t.isBefore(s.getStartPosition())&&(t=s.getStartPosition());var a=t.lineNumber,u=t.column,l=this._editor.getModel(),c=new mn(a,u),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(92):null,n);return i&&d&&d.range.isEmpty()&&d.range.getStartPosition().equals(c)&&(c=this._nextSearchPosition(c),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(92):null,n)),d?o||s.containsRange(d.range)?d:this._getNextMatch(d.range.getEndPosition(),n,i,!0):null},e.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},e.prototype._getReplacePattern=function(){return this._state.isRegex?kQ(this._state.replaceString):LQ.fromStaticValue(this._state.replaceString)},e.prototype.replace=function(){if(this._hasMatches()){var e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){var i=e.buildReplaceString(n.matches,this._state.preserveCase),o=new iS(t,i);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new mn(t.startLineNumber,t.startColumn+i.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}},e.prototype._findMatches=function(t,n,i){var o=e._getSearchRange(this._editor.getModel(),t);return this._editor.getModel().findMatches(this._state.searchString,o,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(92):null,n,i)},e.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=HQ?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},e.prototype._largeReplaceAll=function(){var e=new Ov(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(92):null),t=e.parseSearchRequest();if(t){var n=t.regex;if(!n.multiline){var i="mu";n.ignoreCase&&(i+="i"),n.global&&(i+="g"),n=new RegExp(n.source,i)}var o,r=this._editor.getModel(),s=r.getValue(1),a=r.getFullModelRange(),u=this._getReplacePattern(),l=this._state.preserveCase;o=u.hasReplacementPatterns||l?s.replace(n,(function(){return u.buildReplaceString(arguments,l)})):s.replace(n,u.buildReplaceString(null,l));var c=new aS(a,o,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}},e.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),i=[],o=0,r=n.length;o<r;o++)i[o]=t.buildReplaceString(n[o].matches,this._state.preserveCase);var s=new bQ(this._editor.getSelection(),n.map((function(e){return e.range})),i);this._executeEditorCommand("replaceAll",s)},e.prototype.selectAllMatches=function(){if(this._hasMatches()){for(var e=this._decorations.getFindScope(),t=this._findMatches(e,!1,1073741824),n=t.map((function(e){return new yn(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)})),i=this._editor.getSelection(),o=0,r=n.length;o<r;o++){var s=n[o];if(s.equalsRange(i)){n=[i].concat(n.slice(0,o)).concat(n.slice(o+1));break}}this._editor.setSelections(n)}},e.prototype._executeEditorCommand=function(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},e}(),WQ=(n("8899"),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)}}()),KQ={inputActiveOptionBorder:N_.fromHex("#007ACC00"),inputActiveOptionBackground:N_.fromHex("#0E639C50")},zQ=function(e){function t(t){var n=e.call(this)||this;return n._onChange=n._register(new Ye),n.onChange=n._onChange.event,n._onKeyDown=n._register(new Ye),n.onKeyDown=n._onKeyDown.event,n._opts=su(t),du(n._opts,KQ,!1),n._checked=n._opts.isChecked,n.domNode=document.createElement("div"),n.domNode.title=n._opts.title,n.domNode.className="monaco-custom-checkbox codicon "+(n._opts.actionClassName||"")+" "+(n._checked?"checked":"unchecked"),n.domNode.tabIndex=0,n.domNode.setAttribute("role","checkbox"),n.domNode.setAttribute("aria-checked",String(n._checked)),n.domNode.setAttribute("aria-label",n._opts.title),n.applyStyles(),n.onclick(n.domNode,(function(e){n.checked=!n._checked,n._onChange.fire(!1),e.preventDefault()})),n.ignoreGesture(n.domNode),n.onkeydown(n.domNode,(function(e){if(10===e.keyCode||3===e.keyCode)return n.checked=!n._checked,n._onChange.fire(!0),void e.preventDefault();n._onKeyDown.fire(e)})),n}return WQ(t,e),Object.defineProperty(t.prototype,"enabled",{get:function(){return"true"!==this.domNode.getAttribute("aria-disabled")},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()},enumerable:!0,configurable:!0}),t.prototype.width=function(){return 22},t.prototype.style=function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()},t.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")},t.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},t.prototype.disable=function(){fr(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},t}(sB),jQ=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)}}(),GQ=r("caseDescription","Match Case"),qQ=r("wordsDescription","Match Whole Word"),YQ=r("regexDescription","Use Regular Expression"),XQ=function(e){function t(t){return e.call(this,{actionClassName:"codicon-case-sensitive",title:GQ+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return jQ(t,e),t}(zQ),JQ=function(e){function t(t){return e.call(this,{actionClassName:"codicon-whole-word",title:qQ+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return jQ(t,e),t}(zQ),ZQ=function(e){function t(t){return e.call(this,{actionClassName:"codicon-regex",title:YQ+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return jQ(t,e),t}(zQ),$Q=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)}}(),eV=function(e){function t(t,n,i,o){var r=e.call(this)||this;r._hideSoon=r._register(new Si((function(){return r._hide()}),2e3)),r._isVisible=!1,r._editor=t,r._state=n,r._keybindingService=i,r._domNode=document.createElement("div"),r._domNode.className="findOptionsWidget",r._domNode.style.display="none",r._domNode.style.top="10px",r._domNode.setAttribute("role","presentation"),r._domNode.setAttribute("aria-hidden","true");var s=o.getTheme().getColor(nw),a=o.getTheme().getColor(iw);return r.caseSensitive=r._register(new XQ({appendTitle:r._keybindingLabelFor(UQ.ToggleCaseSensitiveCommand),isChecked:r._state.matchCase,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),r._domNode.appendChild(r.caseSensitive.domNode),r._register(r.caseSensitive.onChange((function(){r._state.change({matchCase:r.caseSensitive.checked},!1)}))),r.wholeWords=r._register(new JQ({appendTitle:r._keybindingLabelFor(UQ.ToggleWholeWordCommand),isChecked:r._state.wholeWord,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),r._domNode.appendChild(r.wholeWords.domNode),r._register(r.wholeWords.onChange((function(){r._state.change({wholeWord:r.wholeWords.checked},!1)}))),r.regex=r._register(new ZQ({appendTitle:r._keybindingLabelFor(UQ.ToggleRegexCommand),isChecked:r._state.isRegex,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),r._domNode.appendChild(r.regex.domNode),r._register(r.regex.onChange((function(){r._state.change({isRegex:r.regex.checked},!1)}))),r._editor.addOverlayWidget(r),r._register(r._state.onFindReplaceStateChange((function(e){var t=!1;e.isRegex&&(r.regex.checked=r._state.isRegex,t=!0),e.wholeWord&&(r.wholeWords.checked=r._state.wholeWord,t=!0),e.matchCase&&(r.caseSensitive.checked=r._state.matchCase,t=!0),!r._state.isRevealed&&t&&r._revealTemporarily()}))),r._register(Bo(r._domNode,(function(e){return r._onMouseOut()}))),r._register(vo(r._domNode,"mouseover",(function(e){return r._onMouseOver()}))),r._applyTheme(o.getTheme()),r._register(o.onThemeChange(r._applyTheme.bind(r))),r}return $Q(t,e),t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return{preference:0}},t.prototype.highlightFindOptions=function(){this._revealTemporarily()},t.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},t.prototype._onMouseOut=function(){this._hideSoon.schedule()},t.prototype._onMouseOver=function(){this._hideSoon.cancel()},t.prototype._show=function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")},t.prototype._hide=function(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(nw),inputActiveOptionBackground:e.getColor(iw)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)},t.ID="editor.contrib.findOptionsWidget",t}(sB);gm((function(e,t){var n=e.getColor(Mw);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: "+n+"; }");var i=e.getColor(Ow);i&&t.addRule(".monaco-editor .findOptionsWidget { color: "+i+"; }");var o=e.getColor(Zy);o&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+o+"; }");var r=e.getColor(qy);r&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+r+"; }")}));var tV=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 nV(e,t){return 1===e||2!==e&&t}var iV=function(e){function t(){var t=e.call(this)||this;return t._onFindReplaceStateChange=t._register(new Ye),t.onFindReplaceStateChange=t._onFindReplaceStateChange.event,t._searchString="",t._replaceString="",t._isRevealed=!1,t._isReplaceRevealed=!1,t._isRegex=!1,t._isRegexOverride=0,t._wholeWord=!1,t._wholeWordOverride=0,t._matchCase=!1,t._matchCaseOverride=0,t._preserveCase=!1,t._preserveCaseOverride=0,t._searchScope=null,t._matchesPosition=0,t._matchesCount=0,t._currentMatch=null,t}return tV(t,e),Object.defineProperty(t.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRegex",{get:function(){return nV(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wholeWord",{get:function(){return nV(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchCase",{get:function(){return nV(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveCase",{get:function(){return nV(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),t.prototype.changeMatchInfo=function(e,t,n){var i={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,i.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,i.matchesCount=!0,o=!0),"undefined"!==typeof n&&(vn.equalsRange(this._currentMatch,n)||(this._currentMatch=n,i.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(i)},t.prototype.change=function(e,t,n){void 0===n&&(n=!0);var i={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1,r=this.isRegex,s=this.wholeWord,a=this.matchCase,u=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,i.searchString=!0,o=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,i.replaceString=!0,o=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,i.isRevealed=!0,o=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,i.isReplaceRevealed=!0,o=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&(vn.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,i.searchScope=!0,o=!0)),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(o=!0,i.isRegex=!0),s!==this.wholeWord&&(o=!0,i.wholeWord=!0),a!==this.matchCase&&(o=!0,i.matchCase=!0),u!==this.preserveCase&&(o=!0,i.preserveCase=!0),o&&this._onFindReplaceStateChange.fire(i)},t}(Ie);n("01b0"),n("caa1"),n("8bf4");function oV(e,t){void 0===t&&(t={});var n=sV(t);return n.textContent=e,n}function rV(e,t){void 0===t&&(t={});var n=sV(t);return uV(n,lV(e),t.actionHandler),n}function sV(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}var aV=function(){function e(e){this.source=e,this.index=0}return e.prototype.eos=function(){return this.index>=this.source.length},e.prototype.next=function(){var e=this.peek();return this.advance(),e},e.prototype.peek=function(){return this.source[this.index]},e.prototype.advance=function(){this.index++},e}();function uV(e,t,n){var i;if(2===t.type)i=document.createTextNode(t.content||"");else if(3===t.type)i=document.createElement("b");else if(4===t.type)i=document.createElement("i");else if(5===t.type&&n){var o=document.createElement("a");o.href="#",n.disposeables.add(wo(o,"click",(function(e){n.callback(String(t.index),e)}))),i=o}else 7===t.type?i=document.createElement("br"):1===t.type&&(i=e);i&&e!==i&&e.appendChild(i),i&&Array.isArray(t.children)&&t.children.forEach((function(e){uV(i,e,n)}))}function lV(e){var t={type:1,children:[]},n=0,i=t,o=[],r=new aV(e);while(!r.eos()){var s=r.next(),a="\\"===s&&0!==dV(r.peek());if(a&&(s=r.next()),!a&&cV(s)&&s===r.peek()){r.advance(),2===i.type&&(i=o.pop());var u=dV(s);if(i.type===u||5===i.type&&6===u)i=o.pop();else{var l={type:u,children:[]};5===u&&(l.index=n,n++),i.children.push(l),o.push(i),i=l}}else if("\n"===s)2===i.type&&(i=o.pop()),i.children.push({type:7});else if(2!==i.type){var c={type:2,content:s};i.children.push(c),o.push(i),i=c}else i.content+=s}return 2===i.type&&(i=o.pop()),o.length,t}function cV(e){return 0!==dV(e)}function dV(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}var hV=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=10),this._initialize(e),this._limit=t,this._onChange()}return e.prototype.add=function(e){this._history.delete(e),this._history.add(e),this._onChange()},e.prototype.next=function(){return this._navigator.next()},e.prototype.previous=function(){return this._navigator.previous()},e.prototype.current=function(){return this._navigator.current()},e.prototype.parent=function(){return null},e.prototype.first=function(){return this._navigator.first()},e.prototype.last=function(){return this._navigator.last()},e.prototype.has=function(e){return this._history.has(e)},e.prototype._onChange=function(){this._reduceToLimit();var e=this._elements;this._navigator=new Qe(e,0,e.length,e.length)},e.prototype._reduceToLimit=function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))},e.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t<n.length;t++){var i=n[t];this._history.add(i)}},Object.defineProperty(e.prototype,"_elements",{get:function(){var e=[];return this._history.forEach((function(t){return e.push(t)})),e},enumerable:!0,configurable:!0}),e}(),AV=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)}}(),pV=dr,fV={inputBackground:N_.fromHex("#3C3C3C"),inputForeground:N_.fromHex("#CCCCCC"),inputValidationInfoBorder:N_.fromHex("#55AAFF"),inputValidationInfoBackground:N_.fromHex("#063B49"),inputValidationWarningBorder:N_.fromHex("#B89500"),inputValidationWarningBackground:N_.fromHex("#352A05"),inputValidationErrorBorder:N_.fromHex("#BE1100"),inputValidationErrorBackground:N_.fromHex("#5A1D1D")},gV=function(e){function t(t,n,i){var o=e.call(this)||this;o.state="idle",o.maxHeight=Number.POSITIVE_INFINITY,o._onDidChange=o._register(new Ye),o.onDidChange=o._onDidChange.event,o._onDidHeightChange=o._register(new Ye),o.onDidHeightChange=o._onDidHeightChange.event,o.contextViewProvider=n,o.options=i||Object.create(null),du(o.options,fV,!1),o.message=null,o.placeholder=o.options.placeholder||"",o.ariaLabel=o.options.ariaLabel||"",o.inputBackground=o.options.inputBackground,o.inputForeground=o.options.inputForeground,o.inputBorder=o.options.inputBorder,o.inputValidationInfoBorder=o.options.inputValidationInfoBorder,o.inputValidationInfoBackground=o.options.inputValidationInfoBackground,o.inputValidationInfoForeground=o.options.inputValidationInfoForeground,o.inputValidationWarningBorder=o.options.inputValidationWarningBorder,o.inputValidationWarningBackground=o.options.inputValidationWarningBackground,o.inputValidationWarningForeground=o.options.inputValidationWarningForeground,o.inputValidationErrorBorder=o.options.inputValidationErrorBorder,o.inputValidationErrorBackground=o.options.inputValidationErrorBackground,o.inputValidationErrorForeground=o.options.inputValidationErrorForeground,o.options.validationOptions&&(o.validation=o.options.validationOptions.validation),o.element=ar(t,pV(".monaco-inputbox.idle"));var r=o.options.flexibleHeight?"textarea":"input",s=ar(o.element,pV(".wrapper"));if(o.input=ar(s,pV(r+".input.empty")),o.input.setAttribute("autocorrect","off"),o.input.setAttribute("autocapitalize","off"),o.input.setAttribute("spellcheck","false"),o.onfocus(o.input,(function(){return ho(o.element,"synthetic-focus")})),o.onblur(o.input,(function(){return po(o.element,"synthetic-focus")})),o.options.flexibleHeight){o.maxHeight="number"===typeof o.options.flexibleMaxHeight?o.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,o.mirror=ar(s,pV("div.mirror")),o.mirror.innerHTML="&#160;",o.scrollableElement=new PB(o.element,{vertical:1}),o.options.flexibleWidth&&(o.input.setAttribute("wrap","off"),o.mirror.style.whiteSpace="pre",o.mirror.style.wordWrap="initial"),ar(t,o.scrollableElement.getDomNode()),o._register(o.scrollableElement),o._register(o.scrollableElement.onScroll((function(e){return o.input.scrollTop=e.scrollTop})));var a=Ue.filter(Yn(document,"selectionchange"),(function(){var e,t=document.getSelection();return(null===(e=t)||void 0===e?void 0:e.anchorNode)===s}));o._register(a(o.updateScrollDimensions,o)),o._register(o.onDidHeightChange(o.updateScrollDimensions,o))}else o.input.type=o.options.type||"text",o.input.setAttribute("wrap","off");return o.ariaLabel&&o.input.setAttribute("aria-label",o.ariaLabel),o.placeholder&&o.setPlaceHolder(o.placeholder),o.oninput(o.input,(function(){return o.onValueChange()})),o.onblur(o.input,(function(){return o.onBlur()})),o.onfocus(o.input,(function(){return o.onFocus()})),o.placeholder&&Rn&&o.onclick(o.input,(function(e){nr.stop(e,!0),o.input.focus()})),o.ignoreGesture(o.input),setTimeout((function(){return o.updateMirror()}),0),o.options.actions&&(o.actionbar=o._register(new FL(o.element)),o.actionbar.push(o.options.actions,{icon:!0,label:!1})),o.applyStyles(),o}return AV(t,e),t.prototype.onBlur=function(){this._hideMessage()},t.prototype.onFocus=function(){this._showMessage()},t.prototype.setPlaceHolder=function(e){this.placeholder=e,this.input.setAttribute("placeholder",e),this.input.title=e},t.prototype.setAriaLabel=function(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.input.value},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return"number"===typeof this.cachedHeight?this.cachedHeight:zo(this.element)},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.hasFocus=function(){return document.activeElement===this.input},t.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},t.prototype.enable=function(){this.input.removeAttribute("disabled")},t.prototype.disable=function(){this.blur(),this.input.disabled=!0,this._hideMessage()},Object.defineProperty(t.prototype,"width",{get:function(){return Vo(this.input)},set:function(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){var t=0;if(this.mirror){var n=parseFloat(this.mirror.style.paddingLeft||"")||0,i=parseFloat(this.mirror.style.paddingRight||"")||0;t=n+i}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{set:function(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+e+"px)":this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")},enumerable:!0,configurable:!0}),t.prototype.updateScrollDimensions=function(){if("number"===typeof this.cachedContentHeight&&"number"===typeof this.cachedHeight&&this.scrollableElement){var e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}},t.prototype.showMessage=function(e,t){this.message=e,po(this.element,"idle"),po(this.element,"info"),po(this.element,"warning"),po(this.element,"error"),ho(this.element,this.classForType(e.type));var n,i=this.stylesForType(this.message.type);this.element.style.border=i.border?"1px solid "+i.border:"",n=3===e.type?r("alertErrorMessage","Error: {0}",e.content):2===e.type?r("alertWarningMessage","Warning: {0}",e.content):r("alertInfoMessage","Info: {0}",e.content),Rf(n),(this.hasFocus()||t)&&this._showMessage()},t.prototype.hideMessage=function(){this.message=null,po(this.element,"info"),po(this.element,"warning"),po(this.element,"error"),ho(this.element,"idle"),this._hideMessage(),this.applyStyles()},t.prototype.validate=function(){var e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e},t.prototype.stylesForType=function(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}},t.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}},t.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,n=function(){return t.style.width=Vo(e.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(i){if(!e.message)return null;t=ar(i,pV(".monaco-inputbox-container")),n();var o={inline:!0,className:"monaco-inputbox-message"},r=e.message.formatContent?rV(e.message.content,o):oV(e.message.content,o);ho(r,e.classForType(e.message.type));var s=e.stylesForType(e.message.type);return r.style.backgroundColor=s.background?s.background.toString():"",r.style.color=s.foreground?s.foreground.toString():null,r.style.border=s.border?"1px solid "+s.border:"",ar(t,r),null},onHide:function(){e.state="closed"},layout:n}),this.state="open"}},t.prototype._hideMessage=function(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")},t.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),go(this.input,"empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()},t.prototype.updateMirror=function(){if(this.mirror){var e=this.value,t=e.charCodeAt(e.length-1),n=10===t?" ":"",i=e+n;i?this.mirror.textContent=e+n:this.mirror.innerHTML="&#160;",this.layout()}},t.prototype.style=function(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){var e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",n=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor=e,this.input.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n},t.prototype.layout=function(){if(this.mirror){var e=this.cachedContentHeight;this.cachedContentHeight=zo(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}},t.prototype.insertAtCursor=function(e){var t=this.inputElement,n=t.selectionStart,i=t.selectionEnd,o=t.value;null!==n&&null!==i&&(this.value=o.substr(0,n)+e+o.substr(i),t.setSelectionRange(n+1,n+1),this.layout())},t.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),e.prototype.dispose.call(this)},t}(sB),mV=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.history=new hV(i.history,100),o}return AV(t,e),t.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},t.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,Uf(this.value))},t.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,Uf(this.value))},t.prototype.getCurrentValue=function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e},t.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},t.prototype.getNextValue=function(){return this.history.next()||this.history.last()},t}(gV),vV=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=r("defaultLabel","input"),yV=function(e){function t(t,n,i,o){var r=e.call(this)||this;r._showOptionButtons=i,r.fixFocusOnOptionClickEnabled=!0,r._onDidOptionChange=r._register(new Ye),r.onDidOptionChange=r._onDidOptionChange.event,r._onKeyDown=r._register(new Ye),r.onKeyDown=r._onKeyDown.event,r._onMouseDown=r._register(new Ye),r.onMouseDown=r._onMouseDown.event,r._onInput=r._register(new Ye),r._onKeyUp=r._register(new Ye),r._onCaseSensitiveKeyDown=r._register(new Ye),r.onCaseSensitiveKeyDown=r._onCaseSensitiveKeyDown.event,r._onRegexKeyDown=r._register(new Ye),r.onRegexKeyDown=r._onRegexKeyDown.event,r._lastHighlightFindOptions=0,r.contextViewProvider=n,r.placeholder=o.placeholder||"",r.validation=o.validation,r.label=o.label||_V,r.inputActiveOptionBorder=o.inputActiveOptionBorder,r.inputActiveOptionBackground=o.inputActiveOptionBackground,r.inputBackground=o.inputBackground,r.inputForeground=o.inputForeground,r.inputBorder=o.inputBorder,r.inputValidationInfoBorder=o.inputValidationInfoBorder,r.inputValidationInfoBackground=o.inputValidationInfoBackground,r.inputValidationInfoForeground=o.inputValidationInfoForeground,r.inputValidationWarningBorder=o.inputValidationWarningBorder,r.inputValidationWarningBackground=o.inputValidationWarningBackground,r.inputValidationWarningForeground=o.inputValidationWarningForeground,r.inputValidationErrorBorder=o.inputValidationErrorBorder,r.inputValidationErrorBackground=o.inputValidationErrorBackground,r.inputValidationErrorForeground=o.inputValidationErrorForeground;var s=o.appendCaseSensitiveLabel||"",a=o.appendWholeWordsLabel||"",u=o.appendRegexLabel||"",l=o.history||[],c=!!o.flexibleHeight,d=!!o.flexibleWidth,h=o.flexibleMaxHeight;r.domNode=document.createElement("div"),ho(r.domNode,"monaco-findInput"),r.inputBox=r._register(new mV(r.domNode,r.contextViewProvider,{placeholder:r.placeholder||"",ariaLabel:r.label||"",validationOptions:{validation:r.validation},inputBackground:r.inputBackground,inputForeground:r.inputForeground,inputBorder:r.inputBorder,inputValidationInfoBackground:r.inputValidationInfoBackground,inputValidationInfoForeground:r.inputValidationInfoForeground,inputValidationInfoBorder:r.inputValidationInfoBorder,inputValidationWarningBackground:r.inputValidationWarningBackground,inputValidationWarningForeground:r.inputValidationWarningForeground,inputValidationWarningBorder:r.inputValidationWarningBorder,inputValidationErrorBackground:r.inputValidationErrorBackground,inputValidationErrorForeground:r.inputValidationErrorForeground,inputValidationErrorBorder:r.inputValidationErrorBorder,history:l,flexibleHeight:c,flexibleWidth:d,flexibleMaxHeight:h})),r.regex=r._register(new ZQ({appendTitle:u,isChecked:!1,inputActiveOptionBorder:r.inputActiveOptionBorder,inputActiveOptionBackground:r.inputActiveOptionBackground})),r._register(r.regex.onChange((function(e){r._onDidOptionChange.fire(e),!e&&r.fixFocusOnOptionClickEnabled&&r.inputBox.focus(),r.validate()}))),r._register(r.regex.onKeyDown((function(e){r._onRegexKeyDown.fire(e)}))),r.wholeWords=r._register(new JQ({appendTitle:a,isChecked:!1,inputActiveOptionBorder:r.inputActiveOptionBorder,inputActiveOptionBackground:r.inputActiveOptionBackground})),r._register(r.wholeWords.onChange((function(e){r._onDidOptionChange.fire(e),!e&&r.fixFocusOnOptionClickEnabled&&r.inputBox.focus(),r.validate()}))),r.caseSensitive=r._register(new XQ({appendTitle:s,isChecked:!1,inputActiveOptionBorder:r.inputActiveOptionBorder,inputActiveOptionBackground:r.inputActiveOptionBackground})),r._register(r.caseSensitive.onChange((function(e){r._onDidOptionChange.fire(e),!e&&r.fixFocusOnOptionClickEnabled&&r.inputBox.focus(),r.validate()}))),r._register(r.caseSensitive.onKeyDown((function(e){r._onCaseSensitiveKeyDown.fire(e)}))),r._showOptionButtons&&(r.inputBox.paddingRight=r.caseSensitive.width()+r.wholeWords.width()+r.regex.width());var A=[r.caseSensitive.domNode,r.wholeWords.domNode,r.regex.domNode];r.onkeydown(r.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=A.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%A.length:e.equals(15)&&(n=0===t?A.length-1:t-1),e.equals(9)?A[t].blur():n>=0&&A[n].focus(),nr.stop(e,!0)}}}));var p=document.createElement("div");return p.className="controls",p.style.display=r._showOptionButtons?"block":"none",p.appendChild(r.caseSensitive.domNode),p.appendChild(r.wholeWords.domNode),p.appendChild(r.regex.domNode),r.domNode.appendChild(p),t&&t.appendChild(r.domNode),r.onkeydown(r.inputBox.inputElement,(function(e){return r._onKeyDown.fire(e)})),r.onkeyup(r.inputBox.inputElement,(function(e){return r._onKeyUp.fire(e)})),r.oninput(r.inputBox.inputElement,(function(e){return r._onInput.fire()})),r.onmousedown(r.inputBox.inputElement,(function(e){return r._onMouseDown.fire(e)})),r}return vV(t,e),t.prototype.enable=function(){po(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},t.prototype.disable=function(){ho(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},t.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.getValue=function(){return this.inputBox.value},t.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},t.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e},t.prototype.getWholeWords=function(){return this.wholeWords.checked},t.prototype.setWholeWords=function(e){this.wholeWords.checked=e},t.prototype.getRegex=function(){return this.regex.checked},t.prototype.setRegex=function(e){this.regex.checked=e,this.validate()},t.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},t.prototype.highlightFindOptions=function(){po(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,ho(this.domNode,"highlight-"+this._lastHighlightFindOptions)},t.prototype.validate=function(){this.inputBox.validate()},t.prototype.clearMessage=function(){this.inputBox.hideMessage()},t}(sB),wV=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)}}(),bV=r("defaultLabel","input"),CV=r("label.preserveCaseCheckbox","Preserve Case"),SV=function(e){function t(t){return e.call(this,{actionClassName:"codicon-preserve-case",title:CV+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return wV(t,e),t}(zQ),BV=function(e){function t(t,n,i,o){var r=e.call(this)||this;r._showOptionButtons=i,r.fixFocusOnOptionClickEnabled=!0,r.cachedOptionsWidth=0,r._onDidOptionChange=r._register(new Ye),r.onDidOptionChange=r._onDidOptionChange.event,r._onKeyDown=r._register(new Ye),r.onKeyDown=r._onKeyDown.event,r._onMouseDown=r._register(new Ye),r._onInput=r._register(new Ye),r._onKeyUp=r._register(new Ye),r._onPreserveCaseKeyDown=r._register(new Ye),r.onPreserveCaseKeyDown=r._onPreserveCaseKeyDown.event,r.contextViewProvider=n,r.placeholder=o.placeholder||"",r.validation=o.validation,r.label=o.label||bV,r.inputActiveOptionBorder=o.inputActiveOptionBorder,r.inputActiveOptionBackground=o.inputActiveOptionBackground,r.inputBackground=o.inputBackground,r.inputForeground=o.inputForeground,r.inputBorder=o.inputBorder,r.inputValidationInfoBorder=o.inputValidationInfoBorder,r.inputValidationInfoBackground=o.inputValidationInfoBackground,r.inputValidationInfoForeground=o.inputValidationInfoForeground,r.inputValidationWarningBorder=o.inputValidationWarningBorder,r.inputValidationWarningBackground=o.inputValidationWarningBackground,r.inputValidationWarningForeground=o.inputValidationWarningForeground,r.inputValidationErrorBorder=o.inputValidationErrorBorder,r.inputValidationErrorBackground=o.inputValidationErrorBackground,r.inputValidationErrorForeground=o.inputValidationErrorForeground;var s=o.history||[],a=!!o.flexibleHeight,u=!!o.flexibleWidth,l=o.flexibleMaxHeight;r.domNode=document.createElement("div"),ho(r.domNode,"monaco-findInput"),r.inputBox=r._register(new mV(r.domNode,r.contextViewProvider,{ariaLabel:r.label||"",placeholder:r.placeholder||"",validationOptions:{validation:r.validation},inputBackground:r.inputBackground,inputForeground:r.inputForeground,inputBorder:r.inputBorder,inputValidationInfoBackground:r.inputValidationInfoBackground,inputValidationInfoForeground:r.inputValidationInfoForeground,inputValidationInfoBorder:r.inputValidationInfoBorder,inputValidationWarningBackground:r.inputValidationWarningBackground,inputValidationWarningForeground:r.inputValidationWarningForeground,inputValidationWarningBorder:r.inputValidationWarningBorder,inputValidationErrorBackground:r.inputValidationErrorBackground,inputValidationErrorForeground:r.inputValidationErrorForeground,inputValidationErrorBorder:r.inputValidationErrorBorder,history:s,flexibleHeight:a,flexibleWidth:u,flexibleMaxHeight:l})),r.preserveCase=r._register(new SV({appendTitle:"",isChecked:!1,inputActiveOptionBorder:r.inputActiveOptionBorder,inputActiveOptionBackground:r.inputActiveOptionBackground})),r._register(r.preserveCase.onChange((function(e){r._onDidOptionChange.fire(e),!e&&r.fixFocusOnOptionClickEnabled&&r.inputBox.focus(),r.validate()}))),r._register(r.preserveCase.onKeyDown((function(e){r._onPreserveCaseKeyDown.fire(e)}))),r._showOptionButtons?r.cachedOptionsWidth=r.preserveCase.width():r.cachedOptionsWidth=0;var c=[r.preserveCase.domNode];r.onkeydown(r.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=c.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%c.length:e.equals(15)&&(n=0===t?c.length-1:t-1),e.equals(9)?c[t].blur():n>=0&&c[n].focus(),nr.stop(e,!0)}}}));var d=document.createElement("div");return d.className="controls",d.style.display=r._showOptionButtons?"block":"none",d.appendChild(r.preserveCase.domNode),r.domNode.appendChild(d),t&&t.appendChild(r.domNode),r.onkeydown(r.inputBox.inputElement,(function(e){return r._onKeyDown.fire(e)})),r.onkeyup(r.inputBox.inputElement,(function(e){return r._onKeyUp.fire(e)})),r.oninput(r.inputBox.inputElement,(function(e){return r._onInput.fire()})),r.onmousedown(r.inputBox.inputElement,(function(e){return r._onMouseDown.fire(e)})),r}return wV(t,e),t.prototype.enable=function(){po(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},t.prototype.disable=function(){ho(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getPreserveCase=function(){return this.preserveCase.checked},t.prototype.setPreserveCase=function(e){this.preserveCase.checked=e},t.prototype.focusOnPreserve=function(){this.preserveCase.focus()},t.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(t.prototype,"width",{set:function(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t}(sB),EV=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)}}(),xV=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},LV=function(e,t){return function(n,i){t(n,i,e)}},DV="historyNavigationWidget",NV="historyNavigationEnabled";function kV(e,t,n){new Fp(n,t).bindTo(e)}function IV(e,t){return e.createScoped(t.target)}function FV(e,t){return e.getContext(document.activeElement).getValue(t)}function MV(e,t){var n=IV(e,t);kV(n,t,DV);var i=new Fp(NV,!0).bindTo(n);return{scopedContextKeyService:n,historyNavigationEnablement:i}}var OV=function(e){function t(t,n,i,o,r){void 0===r&&(r=!1);var s=e.call(this,t,n,r,i)||this;return s._register(MV(o,{target:s.inputBox.element,historyNavigator:s.inputBox}).scopedContextKeyService),s}return EV(t,e),t=xV([LV(3,Mp)],t),t}(yV),TV=function(e){function t(t,n,i,o,r){void 0===r&&(r=!1);var s=e.call(this,t,n,r,i)||this;return s._register(MV(o,{target:s.inputBox.element,historyNavigator:s.inputBox}).scopedContextKeyService),s}return EV(t,e),t=xV([LV(3,Mp)],t),t}(BV);Rp.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:Cp.and(Cp.has(DV),Cp.equals(NV,!0)),primary:16,secondary:[528],handler:function(e,t){var n=FV(e.get(Mp),DV);if(n){var i=n.historyNavigator;i.showPreviousValue()}}}),Rp.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:Cp.and(Cp.has(DV),Cp.equals(NV,!0)),primary:18,secondary:[530],handler:function(e,t){var n=FV(e.get(Mp),DV);if(n){var i=n.historyNavigator;i.showNextValue()}}});var PV=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)}}(),RV=r("label.find","Find"),UV=r("placeholder.find","Find"),HV=r("label.previousMatchButton","Previous match"),QV=r("label.nextMatchButton","Next match"),VV=r("label.toggleSelectionFind","Find in selection"),WV=r("label.closeButton","Close"),KV=r("label.replace","Replace"),zV=r("placeholder.replace","Replace"),jV=r("label.replaceButton","Replace"),GV=r("label.replaceAllButton","Replace All"),qV=r("label.toggleReplaceButton","Toggle Replace mode"),YV=r("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",HQ),XV=r("label.matchesLocation","{0} of {1}"),JV=r("label.noResults","No Results"),ZV=419,$V=275,eW=$V-54,tW=69,nW=33,iW="ctrlEnterReplaceAll.windows.donotask",oW=s["e"]?256:2048,rW=function(){function e(e){this.afterLineNumber=e,this.heightInPx=nW,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return e}();function sW(e,t,n){var i=!!t.match(/\n/);n&&i&&n.selectionStart>0&&e.stopPropagation()}function aW(e,t,n){var i=!!t.match(/\n/);n&&i&&n.selectionEnd<n.value.length&&e.stopPropagation()}var uW=function(e){function t(t,n,i,o,r,s,a,u,l){var c=e.call(this)||this;return c._cachedHeight=null,c._codeEditor=t,c._controller=n,c._state=i,c._contextViewProvider=o,c._keybindingService=r,c._contextKeyService=s,c._storageService=u,c._notificationService=l,c._ctrlEnterReplaceAllWarningPrompted=!!u.getBoolean(iW,0),c._isVisible=!1,c._isReplaceVisible=!1,c._ignoreChangeEvent=!1,c._updateHistoryDelayer=new mi(500),c._register(De((function(){return c._updateHistoryDelayer.cancel()}))),c._register(c._state.onFindReplaceStateChange((function(e){return c._onStateChanged(e)}))),c._buildDomNode(),c._updateButtons(),c._tryUpdateWidgetWidth(),c._findInput.inputBox.layout(),c._register(c._codeEditor.onDidChangeConfiguration((function(e){if(e.hasChanged(65)&&(c._codeEditor.getOption(65)&&c._state.change({isReplaceRevealed:!1},!1),c._updateButtons()),e.hasChanged(103)&&c._tryUpdateWidgetWidth(),e.hasChanged(2)&&c.updateAccessibilitySupport(),e.hasChanged(27)){var t=c._codeEditor.getOption(27).addExtraSpaceOnTop;t&&!c._viewZone&&(c._viewZone=new rW(0),c._showViewZone()),!t&&c._viewZone&&c._removeViewZone()}}))),c.updateAccessibilitySupport(),c._register(c._codeEditor.onDidChangeCursorSelection((function(){c._isVisible&&c._updateToggleSelectionFindButton()}))),c._register(c._codeEditor.onDidFocusEditorWidget((function(){if(c._isVisible){var e=c._controller.getGlobalBufferTerm();e&&e!==c._state.searchString&&(c._state.change({searchString:e},!0),c._findInput.select())}}))),c._findInputFocused=FQ.bindTo(s),c._findFocusTracker=c._register(sr(c._findInput.inputBox.inputElement)),c._register(c._findFocusTracker.onDidFocus((function(){c._findInputFocused.set(!0),c._updateSearchScope()}))),c._register(c._findFocusTracker.onDidBlur((function(){c._findInputFocused.set(!1)}))),c._replaceInputFocused=MQ.bindTo(s),c._replaceFocusTracker=c._register(sr(c._replaceInput.inputBox.inputElement)),c._register(c._replaceFocusTracker.onDidFocus((function(){c._replaceInputFocused.set(!0),c._updateSearchScope()}))),c._register(c._replaceFocusTracker.onDidBlur((function(){c._replaceInputFocused.set(!1)}))),c._codeEditor.addOverlayWidget(c),c._codeEditor.getOption(27).addExtraSpaceOnTop&&(c._viewZone=new rW(0)),c._applyTheme(a.getTheme()),c._register(a.onThemeChange(c._applyTheme.bind(c))),c._register(c._codeEditor.onDidChangeModel((function(){c._isVisible&&(c._viewZoneId=void 0)}))),c._register(c._codeEditor.onDidScrollChange((function(e){e.scrollTopChanged?c._layoutViewZone():setTimeout((function(){c._layoutViewZone()}),0)}))),c}return PV(t,e),t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},t.prototype._onStateChanged=function(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(65)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=Vo(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){var t=this._state.searchString.length>0&&0===this._state.matchesCount;go(this._domNode,"no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory()},t.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},t.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},t.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=tW+"px",this._state.matchesCount>=HQ?this._matchesCount.title=YV:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=HQ&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=xr(XV,n,t)}else e=JV;this._matchesCount.appendChild(document.createTextNode(e)),Rf(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString),!0),tW=Math.max(tW,this._matchesCount.clientWidth)},t.prototype._getAriaLabel=function(e,t,n){return e===JV?""===n?r("ariaSearchNoResultEmpty","{0} found",e):r("ariaSearchNoResult","{0} found for {1}",e,n):t?r("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",e,n,t.startLineNumber+":"+t.startColumn):r("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",e,n)},t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._isVisible&&(n||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},t.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t),this._nextBtn.setEnabled(this._isVisible&&e&&t),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),go(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var n=!this._codeEditor.getOption(65);this._toggleReplaceBtn.setEnabled(this._isVisible&&n)},t.prototype._reveal=function(){var e=this;if(!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection();switch(this._codeEditor.getOption(27).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var n=!!t&&t.startLineNumber!==t.endLineNumber;this._toggleSelectionFind.checked=n;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout((function(){ho(e._domNode,"visible"),e._domNode.setAttribute("aria-hidden","false")}),0),setTimeout((function(){e._findInput.validate()}),200),this._codeEditor.layoutOverlayWidget(this);var i=!0;if(this._codeEditor.getOption(27).seedSearchStringFromSelection&&t){var o=this._codeEditor.getDomNode();if(o){var r=Ho(o),s=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition()),a=r.left+(s?s.left:0),u=s?s.top:0;if(this._viewZone&&u<this._viewZone.heightInPx){t.endLineNumber>t.startLineNumber&&(i=!1);var l=Uo(this._domNode).left;a>l&&(i=!1);var c=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition()),d=r.left+(c?c.left:0);d>l&&(i=!1)}}}this._showViewZone(i)}},t.prototype._hide=function(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),po(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},t.prototype._layoutViewZone=function(){var e=this,t=this._codeEditor.getOption(27).addExtraSpaceOnTop;if(t){if(this._isVisible){var n=this._viewZone;void 0===this._viewZoneId&&n&&this._codeEditor.changeViewZones((function(t){n.heightInPx=e._getHeight(),e._viewZoneId=t.addZone(n),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+n.heightInPx)}))}}else this._removeViewZone()},t.prototype._showViewZone=function(e){var t=this;if(void 0===e&&(e=!0),this._isVisible){var n=this._codeEditor.getOption(27).addExtraSpaceOnTop;if(n){void 0===this._viewZone&&(this._viewZone=new rW(0));var i=this._viewZone;this._codeEditor.changeViewZones((function(n){if(void 0!==t._viewZoneId){var o=t._getHeight();if(o===i.heightInPx)return;var r=o-i.heightInPx;return i.heightInPx=o,n.layoutZone(t._viewZoneId),void(e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+r))}r=t._getHeight();i.heightInPx=r,t._viewZoneId=n.addZone(i),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+r)}))}}},t.prototype._removeViewZone=function(){var e=this;this._codeEditor.changeViewZones((function(t){void 0!==e._viewZoneId&&(t.removeZone(e._viewZoneId),e._viewZoneId=void 0,e._viewZone&&(e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()-e._viewZone.heightInPx),e._viewZone=void 0))}))},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(nw),inputActiveOptionBackground:e.getColor(iw),inputBackground:e.getColor($y),inputForeground:e.getColor(ew),inputBorder:e.getColor(tw),inputValidationInfoBackground:e.getColor(ow),inputValidationInfoForeground:e.getColor(rw),inputValidationInfoBorder:e.getColor(sw),inputValidationWarningBackground:e.getColor(aw),inputValidationWarningForeground:e.getColor(uw),inputValidationWarningBorder:e.getColor(lw),inputValidationErrorBackground:e.getColor(cw),inputValidationErrorForeground:e.getColor(dw),inputValidationErrorBorder:e.getColor(hw)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)},t.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible&&so(this._domNode)){var e=this._codeEditor.getLayoutInfo(),t=e.contentWidth;if(t<=0)ho(this._domNode,"hiddenEditor");else{co(this._domNode,"hiddenEditor")&&po(this._domNode,"hiddenEditor");var n=e.width,i=e.minimapWidth,o=!1,r=!1,s=!1;if(this._resized){var a=Vo(this._domNode);if(a>ZV)return this._domNode.style.maxWidth=n-28-i-15+"px",void(this._replaceInput.width=Vo(this._findInput.domNode))}if(ZV+28+i>=n&&(r=!0),ZV+28+i-tW>=n&&(s=!0),ZV+28+i-tW>=n+50&&(o=!0),go(this._domNode,"collapsed-find-widget",o),go(this._domNode,"narrow-find-widget",s),go(this._domNode,"reduced-find-widget",r),s||o||(this._domNode.style.maxWidth=n-28-i-15+"px"),this._resized){this._findInput.inputBox.layout();var u=this._findInput.inputBox.element.clientWidth;u>0&&(this._replaceInput.width=u)}else this._isReplaceVisible&&(this._replaceInput.width=Vo(this._findInput.domNode))}}},t.prototype._getHeight=function(){var e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e},t.prototype._tryUpdateHeight=function(){var e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)},t.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},t.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},t.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},t.prototype._updateSearchScope=function(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){var e=this._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));var t=this._state.currentMatch;e.startLineNumber!==e.endLineNumber&&(vn.equalsRange(e,t)||this._state.change({searchScope:e},!0))}},t.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},t.prototype._onFindInputKeyDown=function(e){return e.equals(3|oW)?(this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?sW(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?aW(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0},t.prototype._onReplaceInputKeyDown=function(e){return e.equals(3|oW)?(s["h"]&&s["f"]&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(r("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(iW,!0,0)),this._replaceInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?sW(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?aW(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0},t.prototype.getHorizontalSashTop=function(e){return 0},t.prototype.getHorizontalSashLeft=function(e){return 0},t.prototype.getHorizontalSashWidth=function(e){return 500},t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype._buildDomNode=function(){var e=this,t=!0,n=!0;this._findInput=this._register(new OV(null,this._contextViewProvider,{width:eW,label:RV,placeholder:UV,appendCaseSensitiveLabel:this._keybindingLabelFor(UQ.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(UQ.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(UQ.ToggleRegexCommand),validation:function(t){if(0===t.length||!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(n){return{content:n.message}}},flexibleHeight:t,flexibleWidth:n,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((function(t){return e._onFindInputKeyDown(t)}))),this._register(this._findInput.inputBox.onDidChange((function(){e._ignoreChangeEvent||e._state.change({searchString:e._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((function(){e._state.change({isRegex:e._findInput.getRegex(),wholeWord:e._findInput.getWholeWords(),matchCase:e._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((function(t){t.equals(1026)&&e._isReplaceVisible&&(e._replaceInput.focus(),t.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceInput.focusOnPreserve(),t.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((function(t){e._tryUpdateHeight()&&e._showViewZone()}))),s["d"]&&this._register(this._findInput.onMouseDown((function(t){return e._onFindInputMouseDown(t)}))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new lW({label:HV+this._keybindingLabelFor(UQ.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){e._codeEditor.getAction(UQ.PreviousMatchFindAction).run().then(void 0,Ae)}})),this._nextBtn=this._register(new lW({label:QV+this._keybindingLabelFor(UQ.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){e._codeEditor.getAction(UQ.NextMatchFindAction).run().then(void 0,Ae)}}));var i=document.createElement("div");i.className="find-part",i.appendChild(this._findInput.domNode);var o=document.createElement("div");o.className="find-actions",i.appendChild(o),o.appendChild(this._matchesCount),o.appendChild(this._prevBtn.domNode),o.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new zQ({actionClassName:"codicon codicon-selection",title:VV+this._keybindingLabelFor(UQ.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange((function(){if(e._toggleSelectionFind.checked){if(e._codeEditor.hasModel()){var t=e._codeEditor.getSelection();1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()||e._state.change({searchScope:t},!0)}}else e._state.change({searchScope:null},!0)}))),o.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new lW({label:WV+this._keybindingLabelFor(UQ.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault())}})),o.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new TV(null,void 0,{label:KV,placeholder:zV,history:[],flexibleHeight:t,flexibleWidth:n,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((function(t){return e._onReplaceInputKeyDown(t)}))),this._register(this._replaceInput.inputBox.onDidChange((function(){e._state.change({replaceString:e._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((function(t){e._isReplaceVisible&&e._tryUpdateHeight()&&e._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((function(){e._state.change({preserveCase:e._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((function(t){t.equals(2)&&(e._prevBtn.isEnabled()?e._prevBtn.focus():e._nextBtn.isEnabled()?e._nextBtn.focus():e._toggleSelectionFind.enabled?e._toggleSelectionFind.focus():e._closeBtn.isEnabled()&&e._closeBtn.focus(),t.preventDefault())}))),this._replaceBtn=this._register(new lW({label:jV+this._keybindingLabelFor(UQ.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new lW({label:GV+this._keybindingLabelFor(UQ.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){e._controller.replaceAll()}}));var r=document.createElement("div");r.className="replace-part",r.appendChild(this._replaceInput.domNode);var a=document.createElement("div");a.className="replace-actions",r.appendChild(a),a.appendChild(this._replaceBtn.domNode),a.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new lW({label:qV,className:"codicon toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInput.width=Vo(e._findInput.domNode),e._replaceInput.inputBox.layout()),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=ZV+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(i),this._domNode.appendChild(r),this._resizeSash=new dL(this._domNode,this,{orientation:0}),this._resized=!1;var u=ZV;this._register(this._resizeSash.onDidStart((function(){u=Vo(e._domNode)}))),this._register(this._resizeSash.onDidChange((function(t){e._resized=!0;var n=u+t.startX-t.currentX;if(!(n<ZV)){var i=parseFloat(To(e._domNode).maxWidth)||0;n>i||(e._domNode.style.width=n+"px",e._isReplaceVisible&&(e._replaceInput.width=Vo(e._findInput.domNode)),e._findInput.inputBox.layout(),e._tryUpdateHeight())}}))),this._register(this._resizeSash.onDidReset((function(){var t=Vo(e._domNode);if(!(t<ZV)){var n=ZV;if(!e._resized||t===ZV){var i=e._codeEditor.getLayoutInfo();n=i.width-28-i.minimapWidth-15,e._resized=!0}e._domNode.style.width=n+"px",e._isReplaceVisible&&(e._replaceInput.width=Vo(e._findInput.domNode)),e._findInput.inputBox.layout()}})))},t.prototype.updateAccessibilitySupport=function(){var e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)},t.ID="editor.contrib.findWidget",t}(sB),lW=function(e){function t(t){var n=e.call(this)||this;return n._opts=t,n._domNode=document.createElement("div"),n._domNode.title=n._opts.label,n._domNode.tabIndex=0,n._domNode.className="button "+n._opts.className,n._domNode.setAttribute("role","button"),n._domNode.setAttribute("aria-label",n._opts.label),n.onclick(n._domNode,(function(e){n._opts.onTrigger(),e.preventDefault()})),n.onkeydown(n._domNode,(function(e){if(e.equals(10)||e.equals(3))return n._opts.onTrigger(),void e.preventDefault();n._opts.onKeyDown&&n._opts.onKeyDown(e)})),n}return PV(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),t.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},t.prototype.focus=function(){this._domNode.focus()},t.prototype.setEnabled=function(e){go(this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1},t.prototype.setExpanded=function(e){this._domNode.setAttribute("aria-expanded",String(!!e))},t.prototype.toggleClass=function(e,t){go(this._domNode,e,t)},t}(sB);gm((function(e,t){var n=function(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")};n(".findMatch",e.getColor(Kw)),n(".currentFindMatch",e.getColor(Ww)),n(".findScope",e.getColor(zw));var i=e.getColor(Mw);n(".find-widget",i);var o=e.getColor(Zy);o&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+o+"; }");var r=e.getColor(Gw);r&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+r+"; box-sizing: border-box; }");var s=e.getColor(jw);s&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+s+"; padding: 1px; box-sizing: border-box; }");var a=e.getColor(qw);a&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+a+"; }");var u=e.getColor(qy);u&&t.addRule(".monaco-editor .find-widget { border: 1px solid "+u+"; }");var l=e.getColor(Ow);l&&t.addRule(".monaco-editor .find-widget { color: "+l+"; }");var c=e.getColor(jy);c&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+c+"; }");var d=e.getColor(Pw);if(d)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+d+"; width: 3px !important; margin-left: -4px;}");else{var h=e.getColor(Tw);h&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+h+"; width: 3px !important; margin-left: -4px;}")}var A=e.getColor(Gy);A&&t.addRule(".monaco-workbench .monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+A+"; }")}));var cW=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)}}(),dW=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},hW=function(e,t){return function(n,i){t(n,i,e)}},AW=524288;function pW(e){if(!e.hasModel())return null;var t=e.getSelection();if(t.startLineNumber===t.endLineNumber)if(t.isEmpty()){var n=e.getModel().getWordAtPosition(t.getStartPosition());if(n)return n.word}else if(e.getModel().getValueLengthInRange(t)<AW)return e.getModel().getValueInRange(t);return null}var fW=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._editor=t,r._findWidgetVisible=IQ.bindTo(n),r._contextKeyService=n,r._storageService=i,r._clipboardService=o,r._updateHistoryDelayer=new mi(500),r._state=r._register(new iV),r.loadQueryState(),r._register(r._state.onFindReplaceStateChange((function(e){return r._onStateChanged(e)}))),r._model=null,r._register(r._editor.onDidChangeModel((function(){var e=r._editor.getModel()&&r._state.isRevealed;r.disposeModel(),r._state.change({searchScope:null,matchCase:r._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:r._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:r._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:r._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&r._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})}))),r}return cW(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this.disposeModel(),e.prototype.dispose.call(this)},t.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},t.prototype._onStateChanged=function(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)},t.prototype.saveQueryState=function(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},t.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)},t.prototype.isFindInputFocused=function(){return!!FQ.getValue(this._contextKeyService)},t.prototype.getState=function(){return this._state},t.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},t.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var e=this._editor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()||this._state.change({searchScope:e},!0)}},t.prototype.setSearchString=function(e){this._state.isRegex&&(e=Dr(e)),this._state.change({searchString:e},!1)},t.prototype.highlightFindOptions=function(){},t.prototype._start=function(e){if(this.disposeModel(),this._editor.hasModel()){var t={isRevealed:!0};if(e.seedSearchStringFromSelection){var n=pW(this._editor);n&&(this._state.isRegex?t.searchString=Dr(n):t.searchString=n)}if(!t.searchString&&e.seedSearchStringFromGlobalClipboard){n=this.getGlobalBufferTerm();n&&(t.searchString=n)}if(e.forceRevealReplace?t.isReplaceRevealed=!0:this._findWidgetVisible.get()||(t.isReplaceRevealed=!1),e.updateSearchScope){var i=this._editor.getSelection();i.isEmpty()||(t.searchScope=i)}this._state.change(t,!1),this._model||(this._model=new VQ(this._editor,this._state))}},t.prototype.start=function(e){this._start(e)},t.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},t.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},t.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},t.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},t.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},t.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(27).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},t.prototype.setGlobalBufferTerm=function(e){this._editor.getOption(27).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)},t.ID="editor.contrib.findController",t=dW([hW(1,Mp),hW(2,aT),hW(3,fD)],t),t}(Ie),gW=function(e){function t(t,n,i,o,r,s,a,u){var l=e.call(this,t,i,a,u)||this;return l._contextViewService=n,l._keybindingService=o,l._themeService=r,l._notificationService=s,l._widget=null,l._findOptionsWidget=null,l}return cW(t,e),t.prototype._start=function(t){this._widget||this._createFindWidget();var n=this._editor.getSelection(),i=!1;switch(this._editor.getOption(27).autoFindInSelection){case"always":i=!0;break;case"never":i=!1;break;case"multiline":var o=!!n&&n.startLineNumber!==n.endLineNumber;i=o;break;default:break}t.updateSearchScope=i,e.prototype._start.call(this,t),2===t.shouldFocus?this._widget.focusReplaceInput():1===t.shouldFocus&&this._widget.focusFindInput()},t.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},t.prototype._createFindWidget=function(){this._widget=this._register(new uW(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new eV(this._editor,this._state,this._keybindingService,this._themeService))},t=dW([hW(1,VL),hW(2,Mp),hW(3,pD),hW(4,um),hW(5,$p),hW(6,aT),hW(7,Nn(fD))],t),t}(fW),mW=function(e){function t(){return e.call(this,{id:UQ.StartFindAction,label:r("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:15,group:"3_find",title:r({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return cW(t,e),t.prototype.run=function(e,t){var n=fW.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(27).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(27).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},t}(_g),vW=function(e){function t(){return e.call(this,{id:UQ.StartFindWithSelection,label:r("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this}return cW(t,e),t.prototype.run=function(e,t){var n=fW.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),n.setGlobalBufferTerm(n.getState().searchString))},t}(_g),_W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cW(t,e),t.prototype.run=function(e,t){var n=fW.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getOption(27).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))},t}(_g),yW=function(e){function t(){return e.call(this,{id:UQ.NextMatchFindAction,label:r("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this}return cW(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(_W),wW=function(e){function t(){return e.call(this,{id:UQ.NextMatchFindAction,label:r("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:Cp.and(_S.focus,FQ),primary:3,weight:100}})||this}return cW(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(_W),bW=function(e){function t(){return e.call(this,{id:UQ.PreviousMatchFindAction,label:r("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}return cW(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(_W),CW=function(e){function t(){return e.call(this,{id:UQ.PreviousMatchFindAction,label:r("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:Cp.and(_S.focus,FQ),primary:1027,weight:100}})||this}return cW(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(_W),SW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cW(t,e),t.prototype.run=function(e,t){var n=fW.get(t);if(n){var i=pW(t);i&&n.setSearchString(i),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(27).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))}},t}(_g),BW=function(e){function t(){return e.call(this,{id:UQ.NextSelectionMatchFindAction,label:r("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:2109,weight:100}})||this}return cW(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(SW),EW=function(e){function t(){return e.call(this,{id:UQ.PreviousSelectionMatchFindAction,label:r("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:3133,weight:100}})||this}return cW(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(SW),xW=function(e){function t(){return e.call(this,{id:UQ.StartFindReplaceAction,label:r("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:15,group:"3_find",title:r({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return cW(t,e),t.prototype.run=function(e,t){if(t.hasModel()&&!t.getOption(65)){var n=fW.get(t),i=t.getSelection(),o=n.isFindInputFocused(),r=!i.isEmpty()&&i.startLineNumber===i.endLineNumber&&t.getOption(27).seedSearchStringFromSelection&&!o,s=o||r?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r,seedSearchStringFromGlobalClipboard:t.getOption(27).seedSearchStringFromSelection,shouldFocus:s,shouldAnimate:!0,updateSearchScope:!1})}},t}(_g);Bg(fW.ID,gW),Cg(mW),Cg(vW),Cg(yW),Cg(wW),Cg(bW),Cg(CW),Cg(BW),Cg(EW),Cg(xW);var LW=vg.bindToContribution(fW.get);bg(new LW({id:UQ.CloseFindWidgetCommand,precondition:IQ,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:_S.focus,primary:9,secondary:[1033]}})),bg(new LW({id:UQ.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:_S.focus,primary:OQ.primary,mac:OQ.mac,win:OQ.win,linux:OQ.linux}})),bg(new LW({id:UQ.ToggleWholeWordCommand,precondition:void 0,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:_S.focus,primary:TQ.primary,mac:TQ.mac,win:TQ.win,linux:TQ.linux}})),bg(new LW({id:UQ.ToggleRegexCommand,precondition:void 0,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:_S.focus,primary:PQ.primary,mac:PQ.mac,win:PQ.win,linux:PQ.linux}})),bg(new LW({id:UQ.ToggleSearchScopeCommand,precondition:void 0,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:_S.focus,primary:RQ.primary,mac:RQ.mac,win:RQ.win,linux:RQ.linux}})),bg(new LW({id:UQ.ReplaceOneAction,precondition:IQ,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:_S.focus,primary:3094}})),bg(new LW({id:UQ.ReplaceOneAction,precondition:IQ,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:Cp.and(_S.focus,MQ),primary:3}})),bg(new LW({id:UQ.ReplaceAllAction,precondition:IQ,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:_S.focus,primary:2563}})),bg(new LW({id:UQ.ReplaceAllAction,precondition:IQ,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:Cp.and(_S.focus,MQ),primary:void 0,mac:{primary:2051}}})),bg(new LW({id:UQ.SelectAllMatchesAction,precondition:IQ,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:_S.focus,primary:515}}));n("0a33");var DW=65535,NW=16777215,kW=4278190080,IW=function(){function e(e,t,n){if(e.length!==t.length||e.length>DW)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n,this._parentsComputed=!1}return e.prototype.ensureParentIndices=function(){var e=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var t=[],n=function(n,i){var o=t[t.length-1];return e.getStartLineNumber(o)<=n&&e.getEndLineNumber(o)>=i},i=0,o=this._startIndexes.length;i<o;i++){var r=this._startIndexes[i],s=this._endIndexes[i];if(r>NW||s>NW)throw new Error("startLineNumber or endLineNumber must not exceed "+NW);while(t.length>0&&!n(r,s))t.pop();var a=t.length>0?t[t.length-1]:-1;t.push(i),this._startIndexes[i]=r+((255&a)<<24),this._endIndexes[i]=s+((65280&a)<<16)}}},Object.defineProperty(e.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),e.prototype.getStartLineNumber=function(e){return this._startIndexes[e]&NW},e.prototype.getEndLineNumber=function(e){return this._endIndexes[e]&NW},e.prototype.getType=function(e){return this._types?this._types[e]:void 0},e.prototype.hasTypes=function(){return!!this._types},e.prototype.isCollapsed=function(e){var t=e/32|0,n=e%32;return 0!==(this._collapseStates[t]&1<<n)},e.prototype.setCollapsed=function(e,t){var n=e/32|0,i=e%32,o=this._collapseStates[n];this._collapseStates[n]=t?o|1<<i:o&~(1<<i)},e.prototype.toRegion=function(e){return new FW(this,e)},e.prototype.getParentIndex=function(e){this.ensureParentIndices();var t=((this._startIndexes[e]&kW)>>>24)+((this._endIndexes[e]&kW)>>>16);return t===DW?-1:t},e.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t},e.prototype.findIndex=function(e){var t=0,n=this._startIndexes.length;if(0===n)return-1;while(t<n){var i=Math.floor((t+n)/2);e<this.getStartLineNumber(i)?n=i:t=i+1}return t-1},e.prototype.findRange=function(e){var t=this.findIndex(e);if(t>=0){var n=this.getEndLineNumber(t);if(n>=e)return t;t=this.getParentIndex(t);while(-1!==t){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1},e.prototype.toString=function(){for(var e=[],t=0;t<this.length;t++)e[t]="["+(this.isCollapsed(t)?"+":"-")+"] "+this.getStartLineNumber(t)+"/"+this.getEndLineNumber(t);return e.join(", ")},e}(),FW=function(){function e(e,t){this.ranges=e,this.index=t}return Object.defineProperty(e.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),e.prototype.containedBy=function(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber},e.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber},e}(),MW=function(){function e(e,t){this._updateEventEmitter=new Ye,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new IW(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(e.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),e.prototype.toggleCollapseState=function(e){var t=this;if(e.length){var n={};this._decorationProvider.changeDecorations((function(i){for(var o=0,r=e;o<r.length;o++){var s=r[o],a=s.regionIndex,u=t._editorDecorationIds[a];if(u&&!n[u]){n[u]=!0;var l=!t._regions.isCollapsed(a);t._regions.setCollapsed(a,l),i.changeDecorationOptions(u,t._decorationProvider.getDecorationOption(l))}}})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}},e.prototype.update=function(e,t){var n=this;void 0===t&&(t=[]);var i=[],o=function(e,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(e<r&&r<=n)return!0}return!1},r=function(t,r){var s=e.getStartLineNumber(t);r&&o(s,e.getEndLineNumber(t))&&(r=!1),e.setCollapsed(t,r);var a=n._textModel.getLineMaxColumn(s),u={startLineNumber:s,startColumn:a,endLineNumber:s,endColumn:a};i.push({range:u,options:n._decorationProvider.getDecorationOption(r)})},s=0,a=function(){while(s<n._regions.length){var e=n._regions.isCollapsed(s);if(s++,e)return s-1}return-1},u=0,l=a();while(-1!==l&&u<e.length){var c=this._textModel.getDecorationRange(this._editorDecorationIds[l]);if(c){var d=c.startLineNumber;if(this._textModel.getLineMaxColumn(d)===c.startColumn)while(u<e.length){var h=e.getStartLineNumber(u);if(!(d>=h))break;r(u,d===h),u++}}l=a()}while(u<e.length)r(u,!1),u++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,i),this._regions=e,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},e.prototype.getMemento=function(){for(var e=[],t=0;t<this._regions.length;t++)if(this._regions.isCollapsed(t)){var n=this._textModel.getDecorationRange(this._editorDecorationIds[t]);if(n){var i=n.startLineNumber,o=n.endLineNumber+this._regions.getEndLineNumber(t)-this._regions.getStartLineNumber(t);e.push({startLineNumber:i,endLineNumber:o})}}if(e.length>0)return e},e.prototype.applyMemento=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n],r=this.getRegionAtLine(o.startLineNumber);r&&!r.isCollapsed&&t.push(r)}this.toggleCollapseState(t)}},e.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},e.prototype.getAllRegionsAtLine=function(e,t){var n=[];if(this._regions){var i=this._regions.findRange(e),o=1;while(i>=0){var r=this._regions.toRegion(i);t&&!t(r,o)||n.push(r),o++,i=r.parentIndex}}return n},e.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null},e.prototype.getRegionsInside=function(e,t){var n=[],i=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length)for(var r=[],s=i,a=this._regions.length;s<a;s++){var u=this._regions.toRegion(s);if(!(this._regions.getStartLineNumber(s)<o))break;while(r.length>0&&!u.containedBy(r[r.length-1]))r.pop();r.push(u),t(u,r.length)&&n.push(u)}else for(s=i,a=this._regions.length;s<a;s++){u=this._regions.toRegion(s);if(!(this._regions.getStartLineNumber(s)<o))break;t&&!t(u)||n.push(u)}return n},e}();function OW(e,t,n){for(var i=[],o=function(n){var o=e.getRegionAtLine(n);if(o){var r=!o.isCollapsed;if(i.push(o),t>1){var s=e.getRegionsInside(o,(function(e,n){return e.isCollapsed!==r&&n<t}));i.push.apply(i,s)}}},r=0,s=n;r<s.length;r++){var a=s[r];o(a)}e.toggleCollapseState(i)}function TW(e,t,n,i){void 0===n&&(n=Number.MAX_VALUE);var o=[];if(i&&i.length>0)for(var r=0,s=i;r<s.length;r++){var a=s[r],u=e.getRegionAtLine(a);if(u&&(u.isCollapsed!==t&&o.push(u),n>1)){var l=e.getRegionsInside(u,(function(e,i){return e.isCollapsed!==t&&i<n}));o.push.apply(o,l)}}else{l=e.getRegionsInside(null,(function(e,i){return e.isCollapsed!==t&&i<n}));o.push.apply(o,l)}e.toggleCollapseState(o)}function PW(e,t,n,i){for(var o=[],r=0,s=i;r<s.length;r++){var a=s[r],u=e.getAllRegionsAtLine(a,(function(e,i){return e.isCollapsed!==t&&i<=n}));o.push.apply(o,u)}e.toggleCollapseState(o)}function RW(e,t,n,i){var o=function(e,o){return o===t&&e.isCollapsed!==n&&!i.some((function(t){return e.containsLine(t)}))},r=e.getRegionsInside(null,o);e.toggleCollapseState(r)}function UW(e,t,n){for(var i=e.textModel,o=e.regions,r=[],s=o.length-1;s>=0;s--)if(n!==o.isCollapsed(s)){var a=o.getStartLineNumber(s);t.test(i.getLineContent(a))&&r.push(o.toRegion(s))}e.toggleCollapseState(r)}function HW(e,t,n){for(var i=e.regions,o=[],r=i.length-1;r>=0;r--)n!==i.isCollapsed(r)&&t===i.getType(r)&&o.push(i.toRegion(r));e.toggleCollapseState(o)}var QW=function(){function e(e){this.editor=e,this.autoHideFoldingControls=!0}return e.prototype.getDecorationOption=function(t){return t?e.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:e.EXPANDED_VISUAL_DECORATION},e.prototype.deltaDecorations=function(e,t){return this.editor.deltaDecorations(e,t)},e.prototype.changeDecorations=function(e){return this.editor.changeDecorations(e)},e.COLLAPSED_VISUAL_DECORATION=z_.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=z_.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),e.EXPANDED_VISUAL_DECORATION=z_.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),e}(),VW=function(){function e(e){var t=this;this._updateEventEmitter=new Ye,this._foldingModel=e,this._foldingModelListener=e.onDidChange((function(e){return t.updateHiddenRanges()})),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),e.prototype.updateHiddenRanges=function(){for(var e=!1,t=[],n=0,i=0,o=Number.MAX_VALUE,r=-1,s=this._foldingModel.regions;n<s.length;n++)if(s.isCollapsed(n)){var a=s.getStartLineNumber(n)+1,u=s.getEndLineNumber(n);o<=a&&u<=r||(!e&&i<this._hiddenRanges.length&&this._hiddenRanges[i].startLineNumber===a&&this._hiddenRanges[i].endLineNumber===u?(t.push(this._hiddenRanges[i]),i++):(e=!0,t.push(new vn(a,1,u,1))),o=a,r=u)}(e||i<this._hiddenRanges.length)&&this.applyHiddenRanges(t)},e.prototype.applyMemento=function(e){if(!Array.isArray(e)||0===e.length)return!1;for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];if(!o.startLineNumber||!o.endLineNumber)return!1;t.push(new vn(o.startLineNumber+1,1,o.endLineNumber,1))}return this.applyHiddenRanges(t),!0},e.prototype.getMemento=function(){return this._hiddenRanges.map((function(e){return{startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}}))},e.prototype.applyHiddenRanges=function(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)},e.prototype.hasRanges=function(){return this._hiddenRanges.length>0},e.prototype.isHidden=function(e){return null!==KW(this._hiddenRanges,e)},e.prototype.adjustSelections=function(e){for(var t=this,n=!1,i=this._foldingModel.textModel,o=null,r=function(e){return o&&WW(e,o)||(o=KW(t._hiddenRanges,e)),o?o.startLineNumber-1:null},s=0,a=e.length;s<a;s++){var u=e[s],l=r(u.startLineNumber);l&&(u=u.setStartPosition(l,i.getLineMaxColumn(l)),n=!0);var c=r(u.endLineNumber);c&&(u=u.setEndPosition(c,i.getLineMaxColumn(c)),n=!0),e[s]=u}return n},e.prototype.dispose=function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},e}();function WW(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}function KW(e,t){var n=ki(e,(function(e){return t<e.startLineNumber}))-1;return n>=0&&e[n].endLineNumber>=t?e[n]:null}var zW=5e3,jW="indent",GW=function(){function e(e){this.editorModel=e,this.id=jW}return e.prototype.dispose=function(){},e.prototype.compute=function(e){var t=Pc.getFoldingRules(this.editorModel.getLanguageIdentifier().id),n=t&&!!t.offSide,i=t&&t.markers;return Promise.resolve(YW(this.editorModel,n,i))},e}(),qW=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.insertFirst=function(e,t,n){if(!(e>NW||t>NW)){var i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}},e.prototype.toIndentRanges=function(e){if(this._length<=this._foldingRangesLimit){for(var t=new Uint32Array(this._length),n=new Uint32Array(this._length),i=this._length-1,o=0;i>=0;i--,o++)t[o]=this._startIndexes[i],n[o]=this._endIndexes[i];return new IW(t,n)}var r=0,s=this._indentOccurrences.length;for(i=0;i<this._indentOccurrences.length;i++){var a=this._indentOccurrences[i];if(a){if(a+r>this._foldingRangesLimit){s=i;break}r+=a}}var u=e.getOptions().tabSize;for(t=new Uint32Array(this._foldingRangesLimit),n=new Uint32Array(this._foldingRangesLimit),i=this._length-1,o=0;i>=0;i--){var l=this._startIndexes[i],c=e.getLineContent(l),d=U_.computeIndentLevel(c,u);(d<s||d===s&&r++<this._foldingRangesLimit)&&(t[o]=l,n[o]=this._endIndexes[i],o++)}return new IW(t,n)},e}();function YW(e,t,n,i){void 0===i&&(i=zW);var o=e.getOptions().tabSize,r=new qW(i),s=void 0;n&&(s=new RegExp("("+n.start.source+")|(?:"+n.end.source+")"));var a=[],u=e.getLineCount()+1;a.push({indent:-1,endAbove:u,line:u});for(var l=e.getLineCount();l>0;l--){var c=e.getLineContent(l),d=U_.computeIndentLevel(c,o),h=a[a.length-1];if(-1!==d){var A=void 0;if(s&&(A=c.match(s))){if(!A[1]){a.push({indent:-2,endAbove:l,line:l});continue}var p=a.length-1;while(p>0&&-2!==a[p].indent)p--;if(p>0){a.length=p+1,h=a[p],r.insertFirst(l,h.line,d),h.line=l,h.indent=d,h.endAbove=l;continue}}if(h.indent>d){do{a.pop(),h=a[a.length-1]}while(h.indent>d);var f=h.endAbove-1;f-l>=1&&r.insertFirst(l,f,d)}h.indent===d?h.endAbove=l:a.push({indent:d,endAbove:l,line:l})}else t&&(h.endAbove=l)}return r.toIndentRanges(e)}var XW=5e3,JW={},ZW="syntax",$W=function(){function e(e,t,n){void 0===n&&(n=XW),this.editorModel=e,this.providers=t,this.limit=n,this.id=ZW}return e.prototype.compute=function(e){var t=this;return eK(this.providers,this.editorModel,e).then((function(e){if(e){var n=nK(e,t.limit);return n}return null}))},e.prototype.dispose=function(){},e}();function eK(e,t,n){var i=null,o=e.map((function(e,o){return Promise.resolve(e.provideFoldingRanges(t,JW,n)).then((function(e){if(!n.isCancellationRequested&&Array.isArray(e)){Array.isArray(i)||(i=[]);for(var r=t.getLineCount(),s=0,a=e;s<a.length;s++){var u=a[s];u.start>0&&u.end>u.start&&u.end<=r&&i.push({start:u.start,end:u.end,rank:o,kind:u.kind})}}}),pe)}));return Promise.all(o).then((function(e){return i}))}var tK=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.add=function(e,t,n,i){if(!(e>NW||t>NW)){var o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=i,this._types[o]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1)}},e.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var e=new Uint32Array(this._length),t=new Uint32Array(this._length),n=0;n<this._length;n++)e[n]=this._startIndexes[n],t[n]=this._endIndexes[n];return new IW(e,t,this._types)}var i=0,o=this._nestingLevelCounts.length;for(n=0;n<this._nestingLevelCounts.length;n++){var r=this._nestingLevelCounts[n];if(r){if(r+i>this._foldingRangesLimit){o=n;break}i+=r}}e=new Uint32Array(this._foldingRangesLimit),t=new Uint32Array(this._foldingRangesLimit);for(var s=[],a=(n=0,0);n<this._length;n++){var u=this._nestingLevels[n];(u<o||u===o&&i++<this._foldingRangesLimit)&&(e[a]=this._startIndexes[n],t[a]=this._endIndexes[n],s[a]=this._types[n],a++)}return new IW(e,t,s)},e}();function nK(e,t){for(var n=e.sort((function(e,t){var n=e.start-t.start;return 0===n&&(n=e.rank-t.rank),n})),i=new tK(t),o=void 0,r=[],s=0,a=n;s<a.length;s++){var u=a[s];if(o){if(u.start>o.start)if(u.end<=o.end)r.push(o),o=u,i.add(u.start,u.end,u.kind&&u.kind.value,r.length);else{if(u.start>o.end){do{o=r.pop()}while(o&&u.start>o.end);o&&r.push(o),o=u}i.add(u.start,u.end,u.kind&&u.kind.value,r.length)}}else o=u,i.add(u.start,u.end,u.kind&&u.kind.value,r.length)}return i.toIndentRanges()}var iK="init",oK=function(){function e(e,t,n,i){if(this.editorModel=e,this.id=iK,t.length){var o=function(t){return{range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{stickiness:1}}};this.decorationIds=e.deltaDecorations([],t.map(o)),this.timeout=setTimeout(n,i)}}return e.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"===typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},e.prototype.compute=function(e){var t=[];if(this.decorationIds)for(var n=0,i=this.decorationIds;n<i.length;n++){var o=i[n],r=this.editorModel.getDecorationRange(o);r&&t.push({start:r.startLineNumber,end:r.endLineNumber,rank:1})}return Promise.resolve(nK(t,Number.MAX_VALUE))},e}(),rK=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)}}(),sK=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},aK=function(e,t){return function(n,i){t(n,i,e)}},uK=new Fp("foldingEnabled",!1),lK=function(e){function t(t,n){var i=e.call(this)||this;i.contextKeyService=n,i.localToDispose=i._register(new ke),i.editor=t;var o=i.editor.getOptions();return i._isEnabled=o.get(29),i._autoHideFoldingControls="mouseover"===o.get(80),i._useFoldingProviders="indentation"!==o.get(30),i.foldingModel=null,i.hiddenRangeModel=null,i.rangeProvider=null,i.foldingRegionPromise=null,i.foldingStateMemento=null,i.foldingModelPromise=null,i.updateScheduler=null,i.cursorChangedScheduler=null,i.mouseDownInfo=null,i.foldingDecorationProvider=new QW(t),i.foldingDecorationProvider.autoHideFoldingControls=i._autoHideFoldingControls,i.foldingEnabled=uK.bindTo(i.contextKeyService),i.foldingEnabled.set(i._isEnabled),i._register(i.editor.onDidChangeModel((function(){return i.onModelChanged()}))),i._register(i.editor.onDidChangeConfiguration((function(e){if(e.hasChanged(29)||e.hasChanged(80)||e.hasChanged(30)){var t=i._isEnabled,n=i.editor.getOptions();i._isEnabled=n.get(29),i.foldingEnabled.set(i._isEnabled),t!==i._isEnabled&&i.onModelChanged();var o=i._autoHideFoldingControls;i._autoHideFoldingControls="mouseover"===n.get(80),o!==i._autoHideFoldingControls&&(i.foldingDecorationProvider.autoHideFoldingControls=i._autoHideFoldingControls,i.onModelContentChanged());var r=i._useFoldingProviders;i._useFoldingProviders="indentation"!==n.get(30),r!==i._useFoldingProviders&&i.onFoldingStrategyChanged()}}))),i.onModelChanged(),i}return rK(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.saveViewState=function(){var e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){var t=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n}}},t.prototype.restoreViewState=function(e){var t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&e.collapsedRegions&&e.lineCount===t.getLineCount()){e.provider!==ZW&&e.provider!==iK||(this.foldingStateMemento=e);var n=e.collapsedRegions;if(this.hiddenRangeModel.applyMemento(n)){var i=this.getFoldingModel();i&&i.then((function(e){e&&e.applyMemento(n)})).then(void 0,Ae)}}},t.prototype.onModelChanged=function(){var e=this;this.localToDispose.clear();var t=this.editor.getModel();this._isEnabled&&t&&!t.isTooLargeForTokenization()&&(this.foldingModel=new MW(t,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new VW(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((function(t){return e.onHiddenRangesChanges(t)}))),this.updateScheduler=new mi(200),this.cursorChangedScheduler=new Si((function(){return e.revealCursor()}),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(Wl.onDidChange((function(){return e.onFoldingStrategyChanged()}))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((function(){return e.onFoldingStrategyChanged()}))),this.localToDispose.add(this.editor.onDidChangeModelContent((function(){return e.onModelContentChanged()}))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((function(){return e.onCursorPositionChanged()}))),this.localToDispose.add(this.editor.onMouseDown((function(t){return e.onEditorMouseDown(t)}))),this.localToDispose.add(this.editor.onMouseUp((function(t){return e.onEditorMouseUp(t)}))),this.localToDispose.add({dispose:function(){e.foldingRegionPromise&&(e.foldingRegionPromise.cancel(),e.foldingRegionPromise=null),e.updateScheduler&&e.updateScheduler.cancel(),e.updateScheduler=null,e.foldingModel=null,e.foldingModelPromise=null,e.hiddenRangeModel=null,e.cursorChangedScheduler=null,e.foldingStateMemento=null,e.rangeProvider&&e.rangeProvider.dispose(),e.rangeProvider=null}}),this.onModelContentChanged())},t.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},t.prototype.getRangeProvider=function(e){var t=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new GW(e),this._useFoldingProviders&&this.foldingModel){var n=Wl.ordered(this.foldingModel.textModel);if(0===n.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var i=this.rangeProvider=new oK(e,this.foldingStateMemento.collapsedRegions,(function(){t.foldingStateMemento=null,t.onFoldingStrategyChanged()}),3e4);return i}n.length>0&&(this.rangeProvider=new $W(e,n))}return this.foldingStateMemento=null,this.rangeProvider},t.prototype.getFoldingModel=function(){return this.foldingModelPromise},t.prototype.onModelContentChanged=function(){var e=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((function(){var t=e.foldingModel;if(!t)return null;var n=e.foldingRegionPromise=fi((function(n){return e.getRangeProvider(t.textModel).compute(n)}));return n.then((function(i){if(i&&n===e.foldingRegionPromise){var o=e.editor.getSelections(),r=o?o.map((function(e){return e.startLineNumber})):[];t.update(i,r)}return t}))})).then(void 0,(function(e){return Ae(e),null})))},t.prototype.onHiddenRangesChanges=function(e){if(this.hiddenRangeModel&&e.length){var t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e)},t.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},t.prototype.revealCursor=function(){var e=this,t=this.getFoldingModel();t&&t.then((function(t){if(t){var n=e.editor.getSelections();if(n&&n.length>0){for(var i=[],o=function(n){var o=n.selectionStartLineNumber;e.hiddenRangeModel&&e.hiddenRangeModel.isHidden(o)&&i.push.apply(i,t.getAllRegionsAtLine(o,(function(e){return e.isCollapsed&&o>e.startLineNumber})))},r=0,s=n;r<s.length;r++){var a=s[r];o(a)}i.length&&(t.toggleCollapseState(i),e.reveal(n[0].getPosition()))}}})).then(void 0,Ae)},t.prototype.onEditorMouseDown=function(e){if(this.mouseDownInfo=null,this.hiddenRangeModel&&e.target&&e.target.range&&(e.event.leftButton||e.event.middleButton)){var t=e.target.range,n=!1;switch(e.target.type){case 4:var i=e.target.detail,o=e.target.element.offsetLeft,r=i.offsetX-o;if(r<5)return;n=!0;break;case 7:if(this.hiddenRangeModel.hasRanges()){var s=e.target.detail;if(!s.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){var a=this.editor.getModel();if(a&&t.startColumn===a.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}}},t.prototype.onEditorMouseUp=function(e){var t=this,n=this.getFoldingModel();if(n&&this.mouseDownInfo&&e.target){var i=this.mouseDownInfo.lineNumber,o=this.mouseDownInfo.iconClicked,r=e.target.range;if(r&&r.startLineNumber===i){if(o){if(4!==e.target.type)return}else{var s=this.editor.getModel();if(!s||r.startColumn!==s.getLineMaxColumn(i))return}n.then((function(n){if(n){var r=n.getRegionAtLine(i);if(r&&r.startLineNumber===i){var s=r.isCollapsed;if(o||s){var a=[r];(e.event.middleButton||e.event.shiftKey)&&a.push.apply(a,n.getRegionsInside(r,(function(e){return e.isCollapsed===s}))),n.toggleCollapseState(a),t.reveal({lineNumber:i,column:1})}}}})).then(void 0,Ae)}}},t.prototype.reveal=function(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)},t.ID="editor.contrib.folding",t=sK([aK(1,Mp)],t),t}(Ie),cK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rK(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this,o=lK.get(t);if(o){var r=o.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then((function(e){if(e){i.invoke(o,e,t,n);var r=t.getSelection();r&&o.reveal(r.getStartPosition())}}))):void 0}},t.prototype.getSelectedLines=function(e){var t=e.getSelections();return t?t.map((function(e){return e.startLineNumber})):[]},t.prototype.getLineNumbers=function(e,t){return e&&e.selectionLines?e.selectionLines.map((function(e){return e+1})):this.getSelectedLines(t)},t.prototype.run=function(e,t){},t}(_g);function dK(e){if(!_a(e)){if(!ga(e))return!1;var t=e;if(!_a(t.levels)&&!ma(t.levels))return!1;if(!_a(t.direction)&&!fa(t.direction))return!1;if(!_a(t.selectionLines)&&(!pa(t.selectionLines)||!t.selectionLines.every(ma)))return!1}return!0}var hK=function(e){function t(){return e.call(this,{id:"editor.unfold",label:r("unfoldAction.label","Unfold"),alias:"Unfold",precondition:uK,kbOpts:{kbExpr:_S.editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:dK,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return rK(t,e),t.prototype.invoke=function(e,t,n,i){var o=i&&i.levels||1,r=this.getLineNumbers(i,n);i&&"up"===i.direction?PW(t,!1,o,r):TW(t,!1,o,r)},t}(cK),AK=function(e){function t(){return e.call(this,{id:"editor.unfoldRecursively",label:r("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:uK,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2137),weight:100}})||this}return rK(t,e),t.prototype.invoke=function(e,t,n,i){TW(t,!1,Number.MAX_VALUE,this.getSelectedLines(n))},t}(cK),pK=function(e){function t(){return e.call(this,{id:"editor.fold",label:r("foldAction.label","Fold"),alias:"Fold",precondition:uK,kbOpts:{kbExpr:_S.editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold. Defaults to 1.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:dK,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return rK(t,e),t.prototype.invoke=function(e,t,n,i){var o=i&&i.levels||1,r=this.getLineNumbers(i,n);i&&"up"===i.direction?PW(t,!0,o,r):TW(t,!0,o,r)},t}(cK),fK=function(e){function t(){return e.call(this,{id:"editor.toggleFold",label:r("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:uK,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2090),weight:100}})||this}return rK(t,e),t.prototype.invoke=function(e,t,n){var i=this.getSelectedLines(n);OW(t,1,i)},t}(cK),gK=function(e){function t(){return e.call(this,{id:"editor.foldRecursively",label:r("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:uK,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2135),weight:100}})||this}return rK(t,e),t.prototype.invoke=function(e,t,n){var i=this.getSelectedLines(n);TW(t,!0,Number.MAX_VALUE,i)},t}(cK),mK=function(e){function t(){return e.call(this,{id:"editor.foldAllBlockComments",label:r("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:uK,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2133),weight:100}})||this}return rK(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())HW(t,bl.Comment.value,!0);else{var i=n.getModel();if(!i)return;var o=Pc.getComments(i.getLanguageIdentifier().id);if(o&&o.blockCommentStartToken){var r=new RegExp("^\\s*"+Dr(o.blockCommentStartToken));UW(t,r,!0)}}},t}(cK),vK=function(e){function t(){return e.call(this,{id:"editor.foldAllMarkerRegions",label:r("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:uK,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2077),weight:100}})||this}return rK(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())HW(t,bl.Region.value,!0);else{var i=n.getModel();if(!i)return;var o=Pc.getFoldingRules(i.getLanguageIdentifier().id);if(o&&o.markers&&o.markers.start){var r=new RegExp(o.markers.start);UW(t,r,!0)}}},t}(cK),_K=function(e){function t(){return e.call(this,{id:"editor.unfoldAllMarkerRegions",label:r("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:uK,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2078),weight:100}})||this}return rK(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())HW(t,bl.Region.value,!1);else{var i=n.getModel();if(!i)return;var o=Pc.getFoldingRules(i.getLanguageIdentifier().id);if(o&&o.markers&&o.markers.start){var r=new RegExp(o.markers.start);UW(t,r,!1)}}},t}(cK),yK=function(e){function t(){return e.call(this,{id:"editor.foldAll",label:r("foldAllAction.label","Fold All"),alias:"Fold All",precondition:uK,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2069),weight:100}})||this}return rK(t,e),t.prototype.invoke=function(e,t,n){TW(t,!0)},t}(cK),wK=function(e){function t(){return e.call(this,{id:"editor.unfoldAll",label:r("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:uK,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2088),weight:100}})||this}return rK(t,e),t.prototype.invoke=function(e,t,n){TW(t,!1)},t}(cK),bK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rK(t,e),t.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(t.ID_PREFIX.length))},t.prototype.invoke=function(e,t,n){RW(t,this.getFoldingLevel(),!0,this.getSelectedLines(n))},t.ID_PREFIX="editor.foldLevel",t.ID=function(e){return t.ID_PREFIX+e},t}(cK);Bg(lK.ID,lK),Cg(hK),Cg(AK),Cg(pK),Cg(gK),Cg(yK),Cg(wK),Cg(mK),Cg(vK),Cg(_K),Cg(fK);for(var CK=1;CK<=7;CK++)Sg(new bK({id:bK.ID(CK),label:r("foldLevelAction.label","Fold Level {0}",CK),alias:"Fold Level "+CK,precondition:uK,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2048|21+CK),weight:100}}));var SK=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)}}(),BK=function(e){function t(){return e.call(this,{id:"editor.action.fontZoomIn",label:r("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})||this}return SK(t,e),t.prototype.run=function(e,t){vu.setZoomLevel(vu.getZoomLevel()+1)},t}(_g),EK=function(e){function t(){return e.call(this,{id:"editor.action.fontZoomOut",label:r("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})||this}return SK(t,e),t.prototype.run=function(e,t){vu.setZoomLevel(vu.getZoomLevel()-1)},t}(_g),xK=function(e){function t(){return e.call(this,{id:"editor.action.fontZoomReset",label:r("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})||this}return SK(t,e),t.prototype.run=function(e,t){vu.setZoomLevel(0)},t}(_g);Cg(BK),Cg(EK),Cg(xK);var LK=function(){function e(){}return e._handleEolEdits=function(e,t){for(var n=void 0,i=[],o=0,r=t;o<r.length;o++){var s=r[o];"number"===typeof s.eol&&(n=s.eol),s.range&&"string"===typeof s.text&&i.push(s)}return"number"===typeof n&&e.hasModel()&&e.getModel().pushEOL(n),i},e._isFullModelReplaceEdit=function(e,t){if(!e.hasModel())return!1;var n=e.getModel(),i=n.validateRange(t.range),o=n.getFullModelRange();return o.equalsRange(i)},e.execute=function(t,n){t.pushUndoStop();var i=e._handleEolEdits(t,n);1===i.length&&e._isFullModelReplaceEdit(t,i[0])?t.executeEdits("formatEditsCommand",i.map((function(e){return op.replace(vn.lift(e.range),e.text)}))):t.executeEdits("formatEditsCommand",i.map((function(e){return op.replaceMove(vn.lift(e.range),e.text)}))),t.pushUndoStop()},e}(),DK=function(){function e(e){this.value=e,this._lower=e.toLowerCase()}return e.toKey=function(e){return"string"===typeof e?e.toLowerCase():e._lower},e}(),NK=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},kK=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function IK(e){if(e=e.filter((function(e){return e.range})),e.length){for(var t=e[0].range,n=1;n<e.length;n++)t=vn.plusRange(t,e[n].range);var i=t.startLineNumber,o=t.endLineNumber;i===o?1===e.length?Rf(r("hint11","Made 1 formatting edit on line {0}",i)):Rf(r("hintn1","Made {0} formatting edits on line {1}",e.length,i)):1===e.length?Rf(r("hint1n","Made 1 formatting edit between lines {0} and {1}",i,o)):Rf(r("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,i,o))}}function FK(e){for(var t=[],n=new Set,i=Pl.ordered(e),o=0,r=i;o<r.length;o++){var s=r[o];t.push(s),s.extensionId&&n.add(DK.toKey(s.extensionId))}for(var a=Rl.ordered(e),u=function(e){if(e.extensionId){if(n.has(DK.toKey(e.extensionId)))return"continue";n.add(DK.toKey(e.extensionId))}t.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:function(t,n,i){return e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),n,i)}})},l=0,c=a;l<c.length;l++){s=c[l];u(s)}return t}var MK=function(){function e(){}return e.select=function(t,n,i){return NK(this,void 0,void 0,(function(){var o;return kK(this,(function(r){switch(r.label){case 0:return 0===t.length?[2,void 0]:(o=e._selectors.iterator().next().value,o?[4,o(t,n,i)]:[3,2]);case 1:return[2,r.sent()];case 2:return[2,t[0]]}}))}))},e._selectors=new Ke,e}();function OK(e,t,n,i,o){return NK(this,void 0,void 0,(function(){var r,s,a,u;return kK(this,(function(l){switch(l.label){case 0:return r=e.get(xn),s=sA(t)?t.getModel():t,a=Rl.ordered(s),[4,MK.select(a,s,i)];case 1:return u=l.sent(),u?[4,r.invokeFunction(TK,u,t,n,o)]:[3,3];case 2:l.sent(),l.label=3;case 3:return[2]}}))}))}function TK(e,t,n,i,o){return NK(this,void 0,void 0,(function(){var r,s,a,u,l,c,d;return kK(this,(function(h){switch(h.label){case 0:r=e.get($l),sA(n)?(s=n.getModel(),a=new bL(n,5,o)):(s=n,a=new CL(n,o)),h.label=1;case 1:return h.trys.push([1,,4,5]),[4,t.provideDocumentRangeFormattingEdits(s,i,s.getFormattingOptions(),a.token)];case 2:return l=h.sent(),[4,r.computeMoreMinimalEdits(s.uri,l)];case 3:return u=h.sent(),a.token.isCancellationRequested?[2,!0]:[3,5];case 4:return a.dispose(),[7];case 5:return u&&0!==u.length?(sA(n)?(LK.execute(n,u),IK(u),n.pushUndoStop(),n.focus(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1)):(c=u[0].range,d=new yn(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn),s.pushEditOperations([d],u.map((function(e){return{text:e.text,range:vn.lift(e.range),forceMoveMarkers:!0}})),(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t].range;if(vn.areIntersectingOrTouching(i,d))return[new yn(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}return null}))),[2,!0]):[2,!1]}}))}))}function PK(e,t,n,i){return NK(this,void 0,void 0,(function(){var o,r,s,a;return kK(this,(function(u){switch(u.label){case 0:return o=e.get(xn),r=sA(t)?t.getModel():t,s=FK(r),[4,MK.select(s,r,n)];case 1:return a=u.sent(),a?[4,o.invokeFunction(RK,a,t,n,i)]:[3,3];case 2:u.sent(),u.label=3;case 3:return[2]}}))}))}function RK(e,t,n,i,o){return NK(this,void 0,void 0,(function(){var r,s,a,u,l,c,d;return kK(this,(function(h){switch(h.label){case 0:r=e.get($l),sA(n)?(s=n.getModel(),a=new bL(n,5,o)):(s=n,a=new CL(n,o)),h.label=1;case 1:return h.trys.push([1,,4,5]),[4,t.provideDocumentFormattingEdits(s,s.getFormattingOptions(),a.token)];case 2:return l=h.sent(),[4,r.computeMoreMinimalEdits(s.uri,l)];case 3:return u=h.sent(),a.token.isCancellationRequested?[2,!0]:[3,5];case 4:return a.dispose(),[7];case 5:return u&&0!==u.length?(sA(n)?(LK.execute(n,u),2!==i&&(IK(u),n.pushUndoStop(),n.focus(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1))):(c=u[0].range,d=new yn(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn),s.pushEditOperations([d],u.map((function(e){return{text:e.text,range:vn.lift(e.range),forceMoveMarkers:!0}})),(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t].range;if(vn.areIntersectingOrTouching(i,d))return[new yn(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}return null}))),[2,!0]):[2,!1]}}))}))}function UK(e,t,n,i,o){return NK(this,void 0,void 0,(function(){var r,s,a,u,l;return kK(this,(function(c){switch(c.label){case 0:r=Rl.ordered(t),s=0,a=r,c.label=1;case 1:return s<a.length?(u=a[s],[4,Promise.resolve(u.provideDocumentRangeFormattingEdits(t,n,i,o)).catch(pe)]):[3,5];case 2:return l=c.sent(),Ri(l)?[4,e.computeMoreMinimalEdits(t.uri,l)]:[3,4];case 3:return[2,c.sent()];case 4:return s++,[3,1];case 5:return[2,void 0]}}))}))}function HK(e,t,n,i){return NK(this,void 0,void 0,(function(){var o,r,s,a,u;return kK(this,(function(l){switch(l.label){case 0:o=FK(t),r=0,s=o,l.label=1;case 1:return r<s.length?(a=s[r],[4,Promise.resolve(a.provideDocumentFormattingEdits(t,n,i)).catch(pe)]):[3,5];case 2:return u=l.sent(),Ri(u)?[4,e.computeMoreMinimalEdits(t.uri,u)]:[3,4];case 3:return[2,l.sent()];case 4:return r++,[3,1];case 5:return[2,void 0]}}))}))}function QK(e,t,n,i,o){var r=Ul.ordered(t);return 0===r.length||r[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(r[0].provideOnTypeFormattingEdits(t,n,i,o,je.None)).catch(pe).then((function(n){return e.computeMoreMinimalEdits(t.uri,n)}))}yg("_executeFormatRangeProvider",(function(e,t){var n=t.resource,i=t.range,o=t.options;if(!(n instanceof Et)||!vn.isIRange(i))throw _e();var r=e.get(ll).getModel(n);if(!r)throw _e("resource");return UK(e.get($l),r,vn.lift(i),o,je.None)})),yg("_executeFormatDocumentProvider",(function(e,t){var n=t.resource,i=t.options;if(!(n instanceof Et))throw _e("resource");var o=e.get(ll).getModel(n);if(!o)throw _e("resource");return HK(e.get($l),o,i,je.None)})),yg("_executeFormatOnTypeProvider",(function(e,t){var n=t.resource,i=t.position,o=t.ch,r=t.options;if(!(n instanceof Et)||!mn.isIPosition(i)||"string"!==typeof o)throw _e();var s=e.get(ll).getModel(n);if(!s)throw _e("resource");return QK(e.get($l),s,mn.lift(i),o,r)}));var VK=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)}}(),WK=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},KK=function(e,t){return function(n,i){t(n,i,e)}},zK=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},jK=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},GK=function(){function e(e,t){var n=this;this._workerService=t,this._callOnDispose=new ke,this._callOnModel=new ke,this._editor=e,this._callOnDispose.add(e.onDidChangeConfiguration((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModel((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModelLanguage((function(){return n._update()}))),this._callOnDispose.add(Ul.onDidChange(this._update,this))}return e.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},e.prototype._update=function(){var e=this;if(this._callOnModel.clear(),this._editor.getOption(37)&&this._editor.hasModel()){var t=this._editor.getModel(),n=Ul.ordered(t)[0];if(n&&n.autoFormatTriggerCharacters){for(var i=new gd,o=0,r=n.autoFormatTriggerCharacters;o<r.length;o++){var s=r[o];i.add(s.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType((function(t){var n=t.charCodeAt(t.length-1);i.has(n)&&e._trigger(String.fromCharCode(n))})))}}},e.prototype._trigger=function(e){var t=this;if(this._editor.hasModel()&&!(this._editor.getSelections().length>1)){var n=this._editor.getModel(),i=this._editor.getPosition(),o=!1,r=this._editor.onDidChangeModelContent((function(e){if(e.isFlush)return o=!0,void r.dispose();for(var t=0,n=e.changes.length;t<n;t++){var s=e.changes[t];if(s.range.endLineNumber<=i.lineNumber)return o=!0,void r.dispose()}}));QK(this._workerService,n,i,e,n.getFormattingOptions()).then((function(e){r.dispose(),o||Ri(e)&&(LK.execute(t._editor,e),IK(e))}),(function(e){throw r.dispose(),e}))}},e.ID="editor.contrib.autoFormat",e=WK([KK(1,$l)],e),e}(),qK=function(){function e(e,t){var n=this;this.editor=e,this._instantiationService=t,this._callOnDispose=new ke,this._callOnModel=new ke,this._callOnDispose.add(e.onDidChangeConfiguration((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModel((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModelLanguage((function(){return n._update()}))),this._callOnDispose.add(Rl.onDidChange(this._update,this))}return e.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},e.prototype._update=function(){var e=this;this._callOnModel.clear(),this.editor.getOption(36)&&this.editor.hasModel()&&Rl.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((function(t){return e._trigger(t)})))},e.prototype._trigger=function(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(OK,this.editor,e,2,je.None).catch(Ae))},e.ID="editor.contrib.formatOnPaste",e=WK([KK(1,xn)],e),e}(),YK=function(e){function t(){return e.call(this,{id:"editor.action.formatDocument",label:r("formatDocument.label","Format Document"),alias:"Format Document",precondition:Cp.and(_S.writable,_S.hasDocumentFormattingProvider),kbOpts:{kbExpr:Cp.and(_S.editorTextFocus,_S.hasDocumentFormattingProvider),primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{when:_S.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return VK(t,e),t.prototype.run=function(e,t){return zK(this,void 0,void 0,(function(){var n;return jK(this,(function(i){switch(i.label){case 0:return t.hasModel()?(n=e.get(xn),[4,n.invokeFunction(PK,t,1,je.None)]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},t}(_g),XK=function(e){function t(){return e.call(this,{id:"editor.action.formatSelection",label:r("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:Cp.and(_S.writable,_S.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:Cp.and(_S.editorTextFocus,_S.hasDocumentSelectionFormattingProvider),primary:ut(2089,2084),weight:100},contextMenuOpts:{when:Cp.and(_S.hasDocumentSelectionFormattingProvider,_S.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return VK(t,e),t.prototype.run=function(e,t){return zK(this,void 0,void 0,(function(){var n,i,o;return jK(this,(function(r){switch(r.label){case 0:return t.hasModel()?(n=e.get(xn),i=t.getModel(),o=t.getSelection(),o.isEmpty()&&(o=new vn(o.startLineNumber,1,o.startLineNumber,i.getLineMaxColumn(o.startLineNumber))),[4,n.invokeFunction(OK,t,o,1,je.None)]):[2];case 1:return r.sent(),[2]}}))}))},t}(_g);Bg(GK.ID,GK),Bg(qK.ID,qK),Cg(YK),Cg(XK),za.registerCommand("editor.action.format",(function(e){return zK(void 0,void 0,void 0,(function(){var t,n;return jK(this,(function(i){switch(i.label){case 0:return t=e.get(kn).getFocusedCodeEditor(),t&&t.hasModel()?(n=e.get(Ka),t.getSelection().isEmpty()?[4,n.executeCommand("editor.action.formatDocument")]:[3,2]):[2];case 1:return i.sent(),[3,4];case 2:return[4,n.executeCommand("editor.action.formatSelection")];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))}));n("7b59");var JK,ZK=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)}}(),$K=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},ez=function(e,t){return function(n,i){t(n,i,e)}},tz=function(e){function t(t,n,i,o,r,s,a,u,l,c){var d=e.call(this,t,i.getRawOptions(),{},o,r,s,a,u,l,c)||this;return d._parentEditor=i,d._overwriteOptions=n,e.prototype.updateOptions.call(d,d._overwriteOptions),d._register(i.onDidChangeConfiguration((function(e){return d._onParentConfigurationChanged(e)}))),d}return ZK(t,e),t.prototype.getParentEditor=function(){return this._parentEditor},t.prototype._onParentConfigurationChanged=function(t){e.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),e.prototype.updateOptions.call(this,this._overwriteOptions)},t.prototype.updateOptions=function(t){du(this._overwriteOptions,t,!0),e.prototype.updateOptions.call(this,this._overwriteOptions)},t=$K([ez(3,xn),ez(4,kn),ez(5,Ka),ez(6,Mp),ez(7,um),ez(8,$p),ez(9,Kx)],t),t}(Jx),nz=(n("b968"),function(){function e(e){this._prefix=e,this._lastId=0}return e.prototype.nextId=function(){return this._prefix+ ++this._lastId},e}()),iz=new nz("id#"),oz=new N_(new x_(0,122,204)),rz={showArrow:!0,showFrame:!0,className:"",frameColor:oz,arrowColor:oz,keepEditorSelection:!1},sz="vs.editor.contrib.zoneWidget",az=function(){function e(e,t,n,i,o,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this._onDomNodeTop=o,this._onComputedHeight=r}return e.prototype.onDomNodeTop=function(e){this._onDomNodeTop(e)},e.prototype.onComputedHeight=function(e){this._onComputedHeight(e)},e}(),uz=function(){function e(e,t){this._id=e,this._domNode=t}return e.prototype.getId=function(){return this._id},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return null},e}(),lz=function(){function e(t){this._editor=t,this._ruleName=e._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}return e.prototype.dispose=function(){this.hide(),$o(this._ruleName)},Object.defineProperty(e.prototype,"color",{set:function(e){this._color!==e&&(this._color=e,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{set:function(e){this._height!==e&&(this._height=e,this._updateStyle())},enumerable:!0,configurable:!0}),e.prototype._updateStyle=function(){$o(this._ruleName),Zo(".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},e.prototype.show=function(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:vn.fromPositions(e),options:{className:this._ruleName,stickiness:1}}])},e.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},e._IdGenerator=new nz(".arrow-decoration-"),e}(),cz=function(){function e(e,t){var n=this;void 0===t&&(t={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new ke,this.container=null,this._isShowing=!1,this.editor=e,this.options=su(t),du(this.options,rz,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((function(e){var t=n._getWidth(e);n.domNode.style.width=t+"px",n.domNode.style.left=n._getLeft(e)+"px",n._onWidth(t)})))}return e.prototype.dispose=function(){var e=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((function(t){e._viewZone&&t.removeZone(e._viewZone.id),e._viewZone=null})),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},e.prototype.create=function(){ho(this.domNode,"zone-widget"),this.options.className&&ho(this.domNode,this.options.className),this.container=document.createElement("div"),ho(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new lz(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},e.prototype.style=function(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()},e.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){var t=this.options.arrowColor.toString();this._arrow.color=t}},e.prototype._getWidth=function(e){return e.width-e.minimapWidth-e.verticalScrollbarWidth},e.prototype._getLeft=function(e){return e.minimapWidth>0&&0===e.minimapLeft?e.minimapWidth:0},e.prototype._onViewZoneTop=function(e){this.domNode.style.top=e+"px"},e.prototype._onViewZoneHeight=function(e){if(this.domNode.style.height=e+"px",this.container){var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(e.prototype,"position",{get:function(){var e=this._positionMarkerId[0];if(e){var t=this.editor.getModel();if(t){var n=t.getDecorationRange(e);if(n)return n.getStartPosition()}}},enumerable:!0,configurable:!0}),e.prototype.show=function(e,t){var n=vn.isIRange(e)?vn.lift(e):vn.fromPositions(e);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:z_.EMPTY}])},e.prototype.hide=function(){var e=this;this._viewZone&&(this.editor.changeViewZones((function(t){e._viewZone&&t.removeZone(e._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},e.prototype._decoratingElementsHeight=function(){var e=this.editor.getOption(47),t=0;if(this.options.showArrow){var n=Math.round(e/3);t+=2*n}if(this.options.showFrame){var i=Math.round(e/9);t+=2*i}return t},e.prototype._showImpl=function(e,t){var n=this,i=e.getStartPosition(),o=this.editor.getLayoutInfo(),r=this._getWidth(o);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(o)+"px";var s=document.createElement("div");s.style.overflow="hidden";var a=this.editor.getOption(47),u=this.editor.getLayoutInfo().height/a*.8;t>=u&&(t=u);var l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones((function(e){n._viewZone&&e.removeZone(n._viewZone.id),n._overlayWidget&&(n.editor.removeOverlayWidget(n._overlayWidget),n._overlayWidget=null),n.domNode.style.top="-1000px",n._viewZone=new az(s,i.lineNumber,i.column,t,(function(e){return n._onViewZoneTop(e)}),(function(e){return n._onViewZoneHeight(e)})),n._viewZone.id=e.addZone(n._viewZone),n._overlayWidget=new uz(sz+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)})),this.container&&this.options.showFrame){var d=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=d+"px",this.container.style.borderBottomWidth=d+"px"}var h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,r),this.options.keepEditorSelection||this.editor.setSelection(e);var A=this.editor.getModel();if(A){var p=e.endLineNumber+1;p<=A.getLineCount()?this.revealLine(p,!1):this.revealLine(A.getLineCount(),!0)}},e.prototype.revealLine=function(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)},e.prototype.setCssClass=function(e,t){this.container&&(t&&this.container.classList.remove(t),ho(this.container,e))},e.prototype._onWidth=function(e){},e.prototype._doLayout=function(e,t){},e.prototype._relayout=function(e){var t=this;this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((function(n){t._viewZone&&(t._viewZone.heightInLines=e,n.layoutZone(t._viewZone.id))}))},e.prototype._initSash=function(){var e,t=this;this._resizeSash||(this._resizeSash=this._disposables.add(new dL(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((function(n){t._viewZone&&(e={startY:n.startY,heightInLines:t._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((function(){e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((function(n){if(e){var i=(n.currentY-e.startY)/t.editor.getOption(47),o=i<0?Math.ceil(i):Math.floor(i),r=e.heightInLines+o;r>5&&r<35&&t._relayout(r)}}))))},e.prototype.getHorizontalSashLeft=function(){return 0},e.prototype.getHorizontalSashTop=function(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},e.prototype.getHorizontalSashWidth=function(){var e=this.editor.getLayoutInfo();return e.width-e.minimapWidth},e}(),dz=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)}}(),hz=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},Az=function(e,t){return function(n,i){t(n,i,e)}},pz=Dn("IPeekViewService");pL(pz,function(){function e(){this._widgets=new Map}return e.prototype.addExclusiveWidget=function(e,t){var n=this,i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());var o=function(){var i=n._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),n._widgets.delete(e))};this._widgets.set(e,{widget:t,listener:t.onDidClose(o)})},e}()),function(e){e.inPeekEditor=new Fp("inReferenceSearchEditor",!0),e.notInPeekEditor=e.inPeekEditor.toNegated()}(JK||(JK={}));var fz=function(){function e(e,t){e instanceof tz&&JK.inPeekEditor.bindTo(t)}return e.prototype.dispose=function(){},e.ID="editor.contrib.referenceController",e=hz([Az(1,Mp)],e),e}();function gz(e){var t=e.get(kn).getFocusedCodeEditor();return t instanceof tz?t.getParentEditor():t}Bg(fz.ID,fz);var mz={headerBackgroundColor:N_.white,primaryHeadingColor:N_.fromHex("#333333"),secondaryHeadingColor:N_.fromHex("#6c6c6cb3")},vz=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this,t,n)||this;return i._onDidClose=new Ye,i.onDidClose=i._onDidClose.event,du(i.options,mz,!1),i}return dz(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._onDidClose.fire(this)},t.prototype.style=function(t){var n=this.options;t.headerBackgroundColor&&(n.headerBackgroundColor=t.headerBackgroundColor),t.primaryHeadingColor&&(n.primaryHeadingColor=t.primaryHeadingColor),t.secondaryHeadingColor&&(n.secondaryHeadingColor=t.secondaryHeadingColor),e.prototype.style.call(this,t)},t.prototype._applyStyles=function(){e.prototype._applyStyles.call(this);var t=this.options;this._headElement&&t.headerBackgroundColor&&(this._headElement.style.backgroundColor=t.headerBackgroundColor.toString()),this._primaryHeading&&t.primaryHeadingColor&&(this._primaryHeading.style.color=t.primaryHeadingColor.toString()),this._secondaryHeading&&t.secondaryHeadingColor&&(this._secondaryHeading.style.color=t.secondaryHeadingColor.toString()),this._bodyElement&&t.frameColor&&(this._bodyElement.style.borderColor=t.frameColor.toString())},t.prototype._fillContainer=function(e){this.setCssClass("peekview-widget"),this._headElement=dr(".head"),this._bodyElement=dr(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)},t.prototype._fillHead=function(e){var t=this,n=dr(".peekview-title");ar(this._headElement,n),wo(n,"click",(function(e){return t._onTitleClick(e)})),this._fillTitleIcon(n),this._primaryHeading=dr("span.filename"),this._secondaryHeading=dr("span.dirname"),this._metaHeading=dr("span.meta"),ar(n,this._primaryHeading,this._secondaryHeading,this._metaHeading);var i=dr(".peekview-actions");ar(this._headElement,i);var o=this._getActionBarOptions();this._actionbarWidget=new FL(i,o),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new ng("peekview.close",r("label.close","Close"),"codicon-close",!0,(function(){return t.dispose(),Promise.resolve()})),{label:!1,icon:!0})},t.prototype._fillTitleIcon=function(e){},t.prototype._getActionBarOptions=function(){return{}},t.prototype._onTitleClick=function(e){},t.prototype.setTitle=function(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=Lr(e),this._primaryHeading.setAttribute("aria-label",e),t?this._secondaryHeading.innerHTML=Lr(t):oo(this._secondaryHeading))},t.prototype.setMetaTitle=function(e){this._metaHeading&&(e?(this._metaHeading.innerHTML=Lr(e),hr(this._metaHeading)):Ar(this._metaHeading))},t.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{var n=Math.ceil(1.2*this.editor.getOption(47)),i=Math.round(e-(n+2));this._doLayoutHead(n,t),this._doLayoutBody(i,t)}},t.prototype._doLayoutHead=function(e,t){this._headElement&&(this._headElement.style.height=e+"px",this._headElement.style.lineHeight=this._headElement.style.height)},t.prototype._doLayoutBody=function(e,t){this._bodyElement&&(this._bodyElement.style.height=e+"px")},t}(cz),_z=Ky("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},r("peekViewTitleBackground","Background color of the peek view title area.")),yz=Ky("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},r("peekViewTitleForeground","Color of the peek view title.")),wz=Ky("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#6c6c6cb3",hc:"#FFFFFF99"},r("peekViewTitleInfoForeground","Color of the peek view title info.")),bz=Ky("peekView.border",{dark:"#007acc",light:"#007acc",hc:qy},r("peekViewBorder","Color of the peek view borders and arrow.")),Cz=Ky("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:N_.black},r("peekViewResultsBackground","Background color of the peek view result list.")),Sz=Ky("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:N_.white},r("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),Bz=Ky("peekViewResult.fileForeground",{dark:N_.white,light:"#1E1E1E",hc:N_.white},r("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Ez=Ky("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},r("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),xz=Ky("peekViewResult.selectionForeground",{dark:N_.white,light:"#6C6C6C",hc:N_.white},r("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Lz=Ky("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:N_.black},r("peekViewEditorBackground","Background color of the peek view editor.")),Dz=Ky("peekViewEditorGutter.background",{dark:Lz,light:Lz,hc:Lz},r("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Nz=Ky("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},r("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),kz=Ky("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},r("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Iz=Ky("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:Yy},r("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor.")),Fz=function(){function e(e,t,n,i){this.isProviderFirst=e,this.parent=t,this._range=n,this._rangeCallback=i,this.id=iz.nextId()}return Object.defineProperty(e.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e,this._rangeCallback(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaMessage",{get:function(){return r("aria.oneReference","symbol in {0} on line {1} at column {2}",aa(this.uri),this.range.startLineNumber,this.range.startColumn)},enumerable:!0,configurable:!0}),e}(),Mz=function(){function e(e){this._modelReference=e}return e.prototype.dispose=function(){this._modelReference.dispose()},e.prototype.preview=function(e,t){void 0===t&&(t=8);var n=this._modelReference.object.textEditorModel;if(n){var i=e.startLineNumber,o=e.startColumn,r=e.endLineNumber,s=e.endColumn,a=n.getWordUntilPosition({lineNumber:i,column:o-t}),u=new vn(i,a.startColumn,i,o),l=new vn(r,s,r,1073741824),c=n.getValueInRange(u).replace(/^\s+/,""),d=n.getValueInRange(e),h=n.getValueInRange(l).replace(/\s+$/,"");return{value:c+d+h,highlight:{start:c.length,end:c.length+d.length}}}},e}(),Oz=function(){function e(e,t){this.parent=e,this.uri=t,this.children=[]}return e.prototype.dispose=function(){xe(this._preview),this._preview=void 0},Object.defineProperty(e.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaMessage",{get:function(){var e=this.children.length;return 1===e?r("aria.fileReferences.1","1 symbol in {0}, full path {1}",aa(this.uri),this.uri.fsPath):r("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,aa(this.uri),this.uri.fsPath)},enumerable:!0,configurable:!0}),e.prototype.resolve=function(e){var t=this;return this._resolved?Promise.resolve(this):Promise.resolve(e.createModelReference(this.uri).then((function(e){var n=e.object;if(!n)throw e.dispose(),new Error;return t._preview=new Mz(e),t._resolved=!0,t}),(function(e){return t.children.length=0,t._resolved=!0,t._loadFailure=e,t})))},e}(),Tz=function(){function e(t,n){var i=this;this._disposables=new ke,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new Ye,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=t,this._title=n;var o,r=t[0];t.sort(e._compareReferences);for(var s=0,a=t;s<a.length;s++){var u=a[s];if(o&&o.uri.toString()===u.uri.toString()||(o=new Oz(this,u.uri),this.groups.push(o)),0===o.children.length||!vn.equalsRange(u.range,o.children[o.children.length-1].range)){var l=new Fz(r===u,o,u.targetSelectionRange||u.range,(function(e){return i._onDidChangeReferenceRange.fire(e)}));this.references.push(l),o.children.push(l)}}}return e.prototype.dispose=function(){xe(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0},e.prototype.clone=function(){return new e(this._links,this._title)},Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.groups.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaMessage",{get:function(){return this.isEmpty?r("aria.result.0","No results found"):1===this.references.length?r("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?r("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):r("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)},enumerable:!0,configurable:!0}),e.prototype.nextOrPreviousReference=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.length,r=n.parent.groups.length;return 1===r||t&&i+1<o||!t&&i>0?(i=t?(i+1)%o:(i+o-1)%o,n.children[i]):(i=n.parent.groups.indexOf(n),t?(i=(i+1)%r,n.parent.groups[i].children[0]):(i=(i+r-1)%r,n.parent.groups[i].children[n.parent.groups[i].children.length-1]))},e.prototype.nearestReference=function(e,t){var n=this.references.map((function(n,i){return{idx:i,prefixLen:Xr(n.uri.toString(),e.toString()),offsetDist:100*Math.abs(n.range.startLineNumber-t.lineNumber)+Math.abs(n.range.startColumn-t.column)}})).sort((function(e,t){return e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0}))[0];if(n)return this.references[n.idx]},e.prototype.referenceAt=function(e,t){for(var n=0,i=this.references;n<i.length;n++){var o=i[n];if(o.uri.toString()===e.toString()&&vn.containsPosition(o.range,t))return o}},e.prototype.firstReference=function(){for(var e=0,t=this.references;e<t.length;e++){var n=t[e];if(n.isProviderFirst)return n}return this.references[0]},e._compareReferences=function(e,t){return Vr(e.uri.toString(),t.uri.toString())||vn.compareRangesUsingStarts(e.range,t.range)},e}(),Pz=(n("29a1"),n("2a04"),function(){function e(e,t){this.supportCodicons=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",e.appendChild(this.domNode)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),e.prototype.set=function(t,n,i,o){void 0===n&&(n=[]),void 0===i&&(i=""),t||(t=""),o&&(t=e.escapeNewLines(t,n)),this.didEverRender&&this.text===t&&this.title===i&&Au(this.highlights,n)||(Array.isArray(n)||(n=[]),this.text=t,this.title=i,this.highlights=n,this.render())},e.prototype.render=function(){for(var e="",t=0,n=0,i=this.highlights;n<i.length;n++){var o=i[n];if(o.end!==o.start){if(t<o.start){e+="<span>";var r=this.text.substring(t,o.start);e+=this.supportCodicons?NH(r):Lr(r),e+="</span>",t=o.end}e+='<span class="highlight">';var s=this.text.substring(o.start,o.end);e+=this.supportCodicons?NH(s):Lr(s),e+="</span>",t=o.end}}if(t<this.text.length){e+="<span>";s=this.text.substring(t);e+=this.supportCodicons?NH(s):Lr(s),e+="</span>"}this.domNode.innerHTML=e,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},e.escapeNewLines=function(e,t){var n=0,i=0;return e.replace(/\r\n|\r|\n/g,(function(e,o){i="\r\n"===e?-1:0,o+=n;for(var r=0,s=t;r<s.length;r++){var a=s[r];a.end<=o||(a.start>=o&&(a.start+=i),a.end>=o&&(a.end+=i))}return n+=i,"⏎"}))},e}()),Rz=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)}}(),Uz=function(){function e(e){this._element=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposed=!0},e}(),Hz=function(e){function t(t,n){var i,o,r=e.call(this)||this;r.domNode=r._register(new Uz(ar(t,dr(".monaco-icon-label"))));var s=ar(r.domNode.element,dr(".monaco-icon-label-container")),a=ar(s,dr("span.monaco-icon-name-container"));return r.descriptionContainer=r._register(new Uz(ar(s,dr("span.monaco-icon-description-container")))),(null===(i=n)||void 0===i?void 0:i.supportHighlights)?r.nameNode=new Wz(a,!!n.supportCodicons):r.nameNode=new Qz(a),(null===(o=n)||void 0===o?void 0:o.supportDescriptionHighlights)?r.descriptionNodeFactory=function(){return new Pz(ar(r.descriptionContainer.element,dr("span.label-description")),!!n.supportCodicons)}:r.descriptionNodeFactory=function(){return r._register(new Uz(ar(r.descriptionContainer.element,dr("span.label-description"))))},r}return Rz(t,e),t.prototype.setLabel=function(e,t,n){var i,o,r,s=["monaco-icon-label"];n&&(n.extraClasses&&s.push.apply(s,n.extraClasses),n.italic&&s.push("italic")),this.domNode.className=s.join(" "),this.domNode.title=(null===(i=n)||void 0===i?void 0:i.title)||"",this.nameNode.setLabel(e,n),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof Pz?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),(null===(o=n)||void 0===o?void 0:o.descriptionTitle)?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=(null===(r=n)||void 0===r?void 0:r.descriptionTitle)||"",this.descriptionNode.empty=!t))},t}(Ie),Qz=function(){function e(e){this.container=e,this.label=void 0,this.singleLabel=void 0}return e.prototype.setLabel=function(e,t){var n,i,o,r;if(this.label!==e||!Au(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerHTML="",po(this.container,"multiple"),this.singleLabel=ar(this.container,dr("a.label-name",{id:null===(n=t)||void 0===n?void 0:n.domId}))),this.singleLabel.textContent=e;else{this.container.innerHTML="",ho(this.container,"multiple"),this.singleLabel=void 0;for(var s=0;s<e.length;s++){var a=e[s],u=(null===(i=t)||void 0===i?void 0:i.domId)&&(null===(o=t)||void 0===o?void 0:o.domId)+"_"+s;ar(this.container,dr("a.label-name",{id:u,"data-icon-label-count":e.length,"data-icon-label-index":s},a)),s<e.length-1&&ar(this.container,dr("span.label-separator",void 0,(null===(r=t)||void 0===r?void 0:r.separator)||"/"))}}},e}();function Vz(e,t,n){if(n){var i=0;return e.map((function(e){var o={start:i,end:i+e.length},r=n.map((function(e){return kk.intersect(o,e)})).filter((function(e){return!kk.isEmpty(e)})).map((function(e){var t=e.start,n=e.end;return{start:t-i,end:n-i}}));return i=o.end+t.length,r}))}}var Wz=function(){function e(e,t){this.container=e,this.supportCodicons=t,this.label=void 0,this.singleLabel=void 0}return e.prototype.setLabel=function(e,t){var n,i,o,r,s,a,u,l,c,d;if(this.label!==e||!Au(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerHTML="",po(this.container,"multiple"),this.singleLabel=new Pz(ar(this.container,dr("a.label-name",{id:null===(n=t)||void 0===n?void 0:n.domId})),this.supportCodicons)),this.singleLabel.set(e,null===(i=t)||void 0===i?void 0:i.matches,null===(o=t)||void 0===o?void 0:o.title,null===(r=t)||void 0===r?void 0:r.labelEscapeNewLines);else{this.container.innerHTML="",ho(this.container,"multiple"),this.singleLabel=void 0;for(var h=(null===(s=t)||void 0===s?void 0:s.separator)||"/",A=Vz(e,h,null===(a=t)||void 0===a?void 0:a.matches),p=0;p<e.length;p++){var f=e[p],g=A?A[p]:void 0,m=(null===(u=t)||void 0===u?void 0:u.domId)&&(null===(l=t)||void 0===l?void 0:l.domId)+"_"+p,v=dr("a.label-name",{id:m,"data-icon-label-count":e.length,"data-icon-label-index":p}),_=new Pz(ar(this.container,v),this.supportCodicons);_.set(f,g,null===(c=t)||void 0===c?void 0:c.title,null===(d=t)||void 0===d?void 0:d.labelEscapeNewLines),p<e.length-1&&ar(v,dr("span.label-separator",void 0,h))}}},e}(),Kz=(n("54f2"),{badgeBackground:N_.fromHex("#4D4D4D"),badgeForeground:N_.fromHex("#FFFFFF")}),zz=function(){function e(e,t){this.count=0,this.options=t||Object.create(null),du(this.options,Kz,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=ar(e,dr(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}return e.prototype.setCount=function(e){this.count=e,this.render()},e.prototype.setTitleFormat=function(e){this.titleFormat=e,this.render()},e.prototype.render=function(){this.element.textContent=xr(this.countFormat,this.count),this.element.title=xr(this.titleFormat,this.count),this.applyStyles()},e.prototype.style=function(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()},e.prototype.applyStyles=function(){if(this.element){var e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",n=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}},e}();function jz(e,t,n){if("string"===typeof e&&(e=Et.file(e)),n){var i=n.getWorkspaceFolder(e);if(i){var o=n.getWorkspace().folders.length>1,r=void 0;if(r=sa(i.uri,e)?"":ha(i.uri,e),o){var a=i.name?i.name:aa(i.uri);r=r?a+" • "+r:a}return r}}if(e.scheme!==Bi.file&&e.scheme!==Bi.untitled)return e.with({query:null,fragment:null}).toString(!0);if(qz(e.fsPath))return zs(Yz(e.fsPath));var u=zs(e.fsPath);return!s["h"]&&t&&(u=Jz(u,t.userHome)),u}function Gz(e){if(e){"string"===typeof e&&(e=Et.file(e));var t=aa(e)||(e.scheme===Bi.file?e.fsPath:e.path);return qz(t)?Yz(t):t}}function qz(e){return!(!s["h"]||!e||":"!==e[1])}function Yz(e){return qz(e)?e.charAt(0).toUpperCase()+e.slice(1):e}var Xz=Object.create(null);function Jz(e,t){if(s["h"]||!e||!t)return e;var n=Xz.original===t?Xz.normalized:void 0;return n||(n=""+Ir(t,Ks.sep)+Ks.sep,Xz={original:t,normalized:n}),(s["d"]?Mr(e,n):Yr(e,n))&&(e="~/"+e.substr(n.length)),e}var Zz,$z,ej=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)}}(),tj=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},nj=function(e,t){return function(n,i){t(n,i,e)}},ij=function(){function e(e){this._resolverService=e}return e.prototype.hasChildren=function(e){return e instanceof Tz||e instanceof Oz&&!e.failure},e.prototype.getChildren=function(e){if(e instanceof Tz)return e.groups;if(e instanceof Oz)return e.resolve(this._resolverService).then((function(e){return e.children}));throw new Error("bad tree")},e=tj([nj(0,ec)],e),e}(),oj=function(){function e(){}return e.prototype.getHeight=function(){return 23},e.prototype.getTemplateId=function(e){return e instanceof Oz?uj.id:cj.id},e}(),rj=function(){function e(e){this._keybindingService=e}return e.prototype.getKeyboardNavigationLabel=function(e){if(e instanceof Fz){var t=e.parent.preview,n=t&&t.preview(e.range);if(n)return n.value}return aa(e.uri)},e=tj([nj(0,pD)],e),e}(),sj=function(){function e(){}return e.prototype.getId=function(e){return e instanceof Fz?e.id:e.uri},e}(),aj=function(e){function t(t,n,i){var o=e.call(this)||this;o._uriLabel=n;var r=document.createElement("div");return ho(r,"reference-file"),o.file=o._register(new Hz(r,{supportHighlights:!0})),o.badge=new zz(ar(r,dr(".count"))),o._register(Bk(o.badge,i)),t.appendChild(r),o}return ej(t,e),t.prototype.set=function(e,t){var n=ua(e.uri);this.file.setLabel(Gz(e.uri),this._uriLabel.getUriLabel(n,{relative:!0}),{title:this._uriLabel.getUriLabel(e.uri),matches:t});var i=e.children.length;this.badge.setCount(i),e.failure?this.badge.setTitleFormat(r("referencesFailre","Failed to resolve file.")):i>1?this.badge.setTitleFormat(r("referencesCount","{0} references",i)):this.badge.setTitleFormat(r("referenceCount","{0} reference",i))},t=tj([nj(1,iI),nj(2,um)],t),t}(Ie),uj=function(){function e(t){this._instantiationService=t,this.templateId=e.id}return e.prototype.renderTemplate=function(e){return this._instantiationService.createInstance(aj,e)},e.prototype.renderElement=function(e,t,n){n.set(e.element,qI(e.filterData))},e.prototype.disposeTemplate=function(e){e.dispose()},e.id="FileReferencesRenderer",e=tj([nj(0,xn)],e),e}(),lj=function(){function e(e){this.label=new Pz(e,!1)}return e.prototype.set=function(e,t){var n=e.parent.preview,i=n&&n.preview(e.range);if(i){var o=i.value,r=i.highlight;t&&!JI.isDefault(t)?(go(this.label.element,"referenceMatch",!1),this.label.set(o,qI(t))):(go(this.label.element,"referenceMatch",!0),this.label.set(o,[r]))}else this.label.set(aa(e.uri)+":"+(e.range.startLineNumber+1)+":"+(e.range.startColumn+1))},e}(),cj=function(){function e(){this.templateId=e.id}return e.prototype.renderTemplate=function(e){return new lj(e)},e.prototype.renderElement=function(e,t,n){n.set(e.element,e.filterData)},e.prototype.disposeTemplate=function(){},e.id="OneReferenceRenderer",e}(),dj=function(){function e(){}return e.prototype.getAriaLabel=function(e){return e.ariaMessage},e}(),hj=(n("e750"),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)}}()),Aj=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},pj={separatorBorder:N_.transparent},fj=function(){function e(e,t,n,i){this.container=e,this.view=t,this.disposable=i,this._cachedVisibleSize=void 0,"number"===typeof n?(this._size=n,this._cachedVisibleSize=void 0,ho(e,"visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return"undefined"===typeof this._cachedVisibleSize},enumerable:!0,configurable:!0}),e.prototype.setVisible=function(e,t){e!==this.visible&&(e?(this.size=bI(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),go(this.container,"visible",e),this.view.setVisible&&this.view.setVisible(e))},Object.defineProperty(e.prototype,"minimumSize",{get:function(){return this.visible?this.view.minimumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewMinimumSize",{get:function(){return this.view.minimumSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumSize",{get:function(){return this.visible?this.view.maximumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewMaximumSize",{get:function(){return this.view.maximumSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"priority",{get:function(){return this.view.priority},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snap",{get:function(){return!!this.view.snap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{set:function(e){this.container.style.pointerEvents=e?null:"none"},enumerable:!0,configurable:!0}),e.prototype.layout=function(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)},e.prototype.dispose=function(){return this.disposable.dispose(),this.view},e}(),gj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hj(t,e),t.prototype.layoutContainer=function(e){this.container.style.top=e+"px",this.container.style.height=this.size+"px"},t}(fj),mj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hj(t,e),t.prototype.layoutContainer=function(e){this.container.style.left=e+"px",this.container.style.width=this.size+"px"},t}(fj);(function(e){e[e["Idle"]=0]="Idle",e[e["Busy"]=1]="Busy"})(Zz||(Zz={})),function(e){function t(e){return{type:"split",index:e}}function n(e){return{type:"invisible",cachedVisibleSize:e}}e.Distribute={type:"distribute"},e.Split=t,e.Invisible=n}($z||($z={}));var vj=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this)||this;return i.size=0,i.contentSize=0,i.proportions=void 0,i.viewItems=[],i.sashItems=[],i.state=Zz.Idle,i._onDidSashChange=i._register(new Ye),i.onDidSashChange=i._onDidSashChange.event,i._onDidSashReset=i._register(new Ye),i._startSnappingEnabled=!0,i._endSnappingEnabled=!0,i.orientation=_a(n.orientation)?0:n.orientation,i.inverseAltBehavior=!!n.inverseAltBehavior,i.proportionalLayout=!!_a(n.proportionalLayout)||!!n.proportionalLayout,i.el=document.createElement("div"),ho(i.el,"monaco-split-view2"),ho(i.el,0===i.orientation?"vertical":"horizontal"),t.appendChild(i.el),i.sashContainer=ar(i.el,dr(".sash-container")),i.viewContainer=ar(i.el,dr(".split-view-container")),i.style(n.styles||pj),n.descriptor&&(i.size=n.descriptor.size,n.descriptor.views.forEach((function(e,t){var n=_a(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},o=e.view;i.doAddView(o,n,t,!0)})),i.contentSize=i.viewItems.reduce((function(e,t){return e+t.size}),0),i.saveProportions()),i}return hj(t,e),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++){var i=n[t];i.sash.orthogonalStartSash=e}this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++){var i=n[t];i.sash.orthogonalEndSash=e}this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startSnappingEnabled",{get:function(){return this._startSnappingEnabled},set:function(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endSnappingEnabled",{get:function(){return this._endSnappingEnabled},set:function(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())},enumerable:!0,configurable:!0}),t.prototype.style=function(e){e.separatorBorder.isTransparent()?(po(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(ho(this.el,"separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))},t.prototype.addView=function(e,t,n){void 0===n&&(n=this.viewItems.length),this.doAddView(e,t,n,!1)},t.prototype.layout=function(e,t){var n=this,i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(var o=0;o<this.viewItems.length;o++){var r=this.viewItems[o];r.size=bI(Math.round(this.proportions[o]*e),r.minimumSize,r.maximumSize)}else{var s=ji(this.viewItems.length),a=s.filter((function(e){return 1===n.viewItems[e].priority})),u=s.filter((function(e){return 2===n.viewItems[e].priority}));this.resize(this.viewItems.length-1,e-i,void 0,a,u)}this.distributeEmptySpace(),this.layoutViews()},t.prototype.saveProportions=function(){var e=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map((function(t){return t.size/e.contentSize})))},t.prototype.onSashStart=function(e){for(var t=this,n=e.sash,i=e.start,o=e.alt,r=0,s=this.viewItems;r<s.length;r++){var a=s[r];a.enabled=!1}var u=Vi(this.sashItems,(function(e){return e.sash===n})),l=Le(Yn(document.body,"keydown")((function(e){return c(t.sashDragState.current,e.altKey)})),Yn(document.body,"keyup")((function(){return c(t.sashDragState.current,!1)}))),c=function(e,n){var i,o,r=t.viewItems.map((function(e){return e.size})),s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;if(t.inverseAltBehavior&&(n=!n),n){var c=u===t.sashItems.length-1;if(c){var d=t.viewItems[u];s=(d.minimumSize-d.size)/2,a=(d.maximumSize-d.size)/2}else{d=t.viewItems[u+1];s=(d.size-d.maximumSize)/2,a=(d.size-d.minimumSize)/2}}if(!n){var h=ji(u,-1),A=ji(u+1,t.viewItems.length),p=h.reduce((function(e,n){return e+(t.viewItems[n].minimumSize-r[n])}),0),f=h.reduce((function(e,n){return e+(t.viewItems[n].viewMaximumSize-r[n])}),0),g=0===A.length?Number.POSITIVE_INFINITY:A.reduce((function(e,n){return e+(r[n]-t.viewItems[n].minimumSize)}),0),m=0===A.length?Number.NEGATIVE_INFINITY:A.reduce((function(e,n){return e+(r[n]-t.viewItems[n].viewMaximumSize)}),0),v=Math.max(p,m),_=Math.min(g,f),y=t.findFirstSnapIndex(h),w=t.findFirstSnapIndex(A);if("number"===typeof y){d=t.viewItems[y];var b=Math.floor(d.viewMinimumSize/2);i={index:y,limitDelta:d.visible?v-b:v+b,size:d.size}}if("number"===typeof w){d=t.viewItems[w],b=Math.floor(d.viewMinimumSize/2);o={index:w,limitDelta:d.visible?_+b:_-b,size:d.size}}}t.sashDragState={start:e,current:e,index:u,sizes:r,minDelta:s,maxDelta:a,alt:n,snapBefore:i,snapAfter:o,disposable:l}};c(i,o)},t.prototype.onSashChange=function(e){var t=e.current,n=this.sashDragState,i=n.index,o=n.start,r=n.sizes,s=n.alt,a=n.minDelta,u=n.maxDelta,l=n.snapBefore,c=n.snapAfter;this.sashDragState.current=t;var d=t-o,h=this.resize(i,d,r,void 0,void 0,a,u,l,c);if(s){var A=i===this.sashItems.length-1,p=this.viewItems.map((function(e){return e.size})),f=A?i:i+1,g=this.viewItems[f],m=g.size-g.maximumSize,v=g.size-g.minimumSize,_=A?i-1:i+1;this.resize(_,-h,p,void 0,void 0,m,v)}this.distributeEmptySpace(),this.layoutViews()},t.prototype.onSashEnd=function(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(var t=0,n=this.viewItems;t<n.length;t++){var i=n[t];i.enabled=!0}},t.prototype.onViewChange=function(e,t){var n=this.viewItems.indexOf(e);n<0||n>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=bI(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&n>0?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))},t.prototype.resizeView=function(e,t){var n=this;if(this.state!==Zz.Idle)throw new Error("Cant modify splitview");if(this.state=Zz.Busy,!(e<0||e>=this.viewItems.length)){var i=ji(this.viewItems.length).filter((function(t){return t!==e})),o=Aj(i.filter((function(e){return 1===n.viewItems[e].priority})),[e]),r=i.filter((function(e){return 2===n.viewItems[e].priority})),s=this.viewItems[e];t=Math.round(t),t=bI(t,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(o,r),this.state=Zz.Idle}},t.prototype.distributeViewSizes=function(){for(var e=this,t=[],n=0,i=0,o=this.viewItems;i<o.length;i++){var r=o[i];r.maximumSize-r.minimumSize>0&&(t.push(r),n+=r.size)}for(var s=Math.floor(n/t.length),a=0,u=t;a<u.length;a++){r=u[a];r.size=bI(s,r.minimumSize,r.maximumSize)}var l=ji(this.viewItems.length),c=l.filter((function(t){return 1===e.viewItems[t].priority})),d=l.filter((function(t){return 2===e.viewItems[t].priority}));this.relayout(c,d)},t.prototype.getViewSize=function(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size},t.prototype.doAddView=function(e,t,n,i){var o=this;if(void 0===n&&(n=this.viewItems.length),this.state!==Zz.Idle)throw new Error("Cant modify splitview");this.state=Zz.Busy;var r=dr(".split-view-view");n===this.viewItems.length?this.viewContainer.appendChild(r):this.viewContainer.insertBefore(r,this.viewContainer.children.item(n));var s,a=e.onDidChange((function(e){return o.onViewChange(d,e)})),u=De((function(){return o.viewContainer.removeChild(r)})),l=Le(a,u);s="number"===typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;var c,d=0===this.orientation?new gj(r,e,s,l):new mj(r,e,s,l);if(this.viewItems.splice(n,0,d),this.viewItems.length>1){var h=0===this.orientation?1:0,A=0===this.orientation?{getHorizontalSashTop:function(e){return o.getSashPosition(e)}}:{getVerticalSashLeft:function(e){return o.getSashPosition(e)}},p=new dL(this.sashContainer,A,{orientation:h,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),f=0===this.orientation?function(e){return{sash:p,start:e.startY,current:e.currentY,alt:e.altKey}}:function(e){return{sash:p,start:e.startX,current:e.currentX,alt:e.altKey}},g=Ue.map(p.onDidStart,f),m=g(this.onSashStart,this),v=Ue.map(p.onDidChange,f),_=v(this.onSashChange,this),y=Ue.map(p.onDidEnd,(function(){return Vi(o.sashItems,(function(e){return e.sash===p}))})),w=y(this.onSashEnd,this),b=p.onDidReset((function(){var e=Vi(o.sashItems,(function(e){return e.sash===p})),t=ji(e,-1),n=ji(e+1,o.viewItems.length),i=o.findFirstSnapIndex(t),r=o.findFirstSnapIndex(n);("number"!==typeof i||o.viewItems[i].visible)&&("number"!==typeof r||o.viewItems[r].visible)&&o._onDidSashReset.fire(e)})),C=Le(m,_,w,b,p),S={sash:p,disposable:C};this.sashItems.splice(n-1,0,S)}r.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(c=[t.index]),i||this.relayout([n],c),this.state=Zz.Idle,i||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()},t.prototype.relayout=function(e,t){var n=this.viewItems.reduce((function(e,t){return e+t.size}),0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},t.prototype.resize=function(e,t,n,i,o,r,s,a,u){var l=this;if(void 0===n&&(n=this.viewItems.map((function(e){return e.size}))),void 0===r&&(r=Number.NEGATIVE_INFINITY),void 0===s&&(s=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var c=ji(e,-1),d=ji(e+1,this.viewItems.length);if(o)for(var h=0,A=o;h<A.length;h++){var p=A[h];qi(c,p),qi(d,p)}if(i)for(var f=0,g=i;f<g.length;f++){var m=g[f];Yi(c,m),Yi(d,m)}var v=c.map((function(e){return l.viewItems[e]})),_=c.map((function(e){return n[e]})),y=d.map((function(e){return l.viewItems[e]})),w=d.map((function(e){return n[e]})),b=c.reduce((function(e,t){return e+(l.viewItems[t].minimumSize-n[t])}),0),C=c.reduce((function(e,t){return e+(l.viewItems[t].maximumSize-n[t])}),0),S=0===d.length?Number.POSITIVE_INFINITY:d.reduce((function(e,t){return e+(n[t]-l.viewItems[t].minimumSize)}),0),B=0===d.length?Number.NEGATIVE_INFINITY:d.reduce((function(e,t){return e+(n[t]-l.viewItems[t].maximumSize)}),0),E=Math.max(b,B,r),x=Math.min(S,C,s),L=!1;if(a){var D=this.viewItems[a.index],N=t>=a.limitDelta;L=N!==D.visible,D.setVisible(N,a.size)}if(!L&&u){D=this.viewItems[u.index],N=t<u.limitDelta;L=N!==D.visible,D.setVisible(N,u.size)}if(L)return this.resize(e,t,n,i,o,r,s);t=bI(t,E,x);for(var k=0,I=t;k<v.length;k++){var F=v[k],M=bI(_[k]+I,F.minimumSize,F.maximumSize),O=M-_[k];I-=O,F.size=M}k=0;for(var T=t;k<y.length;k++){F=y[k],M=bI(w[k]-T,F.minimumSize,F.maximumSize),O=M-w[k];T+=O,F.size=M}return t},t.prototype.distributeEmptySpace=function(e){for(var t=this,n=this.viewItems.reduce((function(e,t){return e+t.size}),0),i=this.size-n,o=ji(this.viewItems.length-1,-1),r=o.filter((function(e){return 1===t.viewItems[e].priority})),s=o.filter((function(e){return 2===t.viewItems[e].priority})),a=0,u=s;a<u.length;a++){var l=u[a];qi(o,l)}for(var c=0,d=r;c<d.length;c++){l=d[c];Yi(o,l)}"number"===typeof e&&Yi(o,e);for(var h=0;0!==i&&h<o.length;h++){var A=this.viewItems[o[h]],p=bI(A.size+i,A.minimumSize,A.maximumSize),f=p-A.size;i-=f,A.size=p}},t.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce((function(e,t){return e+t.size}),0);for(var e=0,t=0,n=this.viewItems;t<n.length;t++){var i=n[t];i.layout(e,this.layoutContext),e+=i.size}this.sashItems.forEach((function(e){return e.sash.layout()})),this.updateSashEnablement()},t.prototype.updateSashEnablement=function(){var e=!1,t=this.viewItems.map((function(t){return e=t.size-t.minimumSize>0||e}));e=!1;var n=this.viewItems.map((function(t){return e=t.maximumSize-t.size>0||e})),i=Aj(this.viewItems).reverse();e=!1;var o=i.map((function(t){return e=t.size-t.minimumSize>0||e})).reverse();e=!1;for(var r=i.map((function(t){return e=t.maximumSize-t.size>0||e})).reverse(),s=0,a=0;a<this.sashItems.length;a++){var u=this.sashItems[a].sash,l=this.viewItems[a];s+=l.size;var c=!(t[a]&&r[a+1]),d=!(n[a]&&o[a+1]);if(c&&d){var h=ji(a,-1),A=ji(a+1,this.viewItems.length),p=this.findFirstSnapIndex(h),f=this.findFirstSnapIndex(A),g="number"===typeof p&&!this.viewItems[p].visible,m="number"===typeof f&&!this.viewItems[f].visible;g&&o[a]&&(s>0||this.startSnappingEnabled)?u.state=1:m&&t[a]&&(s<this.contentSize||this.endSnappingEnabled)?u.state=2:u.state=0}else u.state=c&&!d?1:!c&&d?2:3}},t.prototype.getSashPosition=function(e){for(var t=0,n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return Math.min(t,this.contentSize-2);return 0},t.prototype.findFirstSnapIndex=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t],o=this.viewItems[i];if(o.visible&&o.snap)return i}for(var r=0,s=e;r<s.length;r++){i=s[r],o=this.viewItems[i];if(o.visible&&o.maximumSize-o.minimumSize>0)return;if(!o.visible&&o.snap)return i}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.viewItems.forEach((function(e){return e.dispose()})),this.viewItems=[],this.sashItems.forEach((function(e){return e.disposable.dispose()})),this.sashItems=[]},t}(Ie),_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)}}(),yj=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},wj=function(e,t){return function(n,i){t(n,i,e)}},bj=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Cj=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},Sj=function(){function e(e,t){var n=this;this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new ke,this._callOnModelChange=new ke,this._callOnDispose.add(this._editor.onDidChangeModel((function(){return n._onModelChanged()}))),this._onModelChanged()}return e.prototype.dispose=function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()},e.prototype._onModelChanged=function(){this._callOnModelChange.clear();var e=this._editor.getModel();if(e)for(var t=0,n=this._model.groups;t<n.length;t++){var i=n[t];if(sa(i.uri,e.uri))return void this._addDecorations(i)}},e.prototype._addDecorations=function(t){var n=this;if(this._editor.hasModel()){this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((function(e){return n._onDecorationChanged()})));for(var i=[],o=[],r=0,s=t.children.length;r<s;r++){var a=t.children[r];this._decorationIgnoreSet.has(a.id)||(i.push({range:a.range,options:e.DecorationOptions}),o.push(r))}var u=this._editor.deltaDecorations([],i);for(r=0;r<u.length;r++)this._decorations.set(u[r],t.children[o[r]])}},e.prototype._onDecorationChanged=function(){var e=this,t=[],n=this._editor.getModel();if(n){this._decorations.forEach((function(i,o){var r=n.getDecorationRange(o);if(r){var s=!1;if(!vn.equalsRange(r,i.range)){if(vn.spansMultipleLines(r))s=!0;else{var a=i.range.endColumn-i.range.startColumn,u=r.endColumn-r.startColumn;a!==u&&(s=!0)}s?(e._decorationIgnoreSet.add(i.id),t.push(o)):i.range=r}}}));for(var i=0,o=t.length;i<o;i++)this._decorations.delete(t[i]);this._editor.deltaDecorations(t,[])}},e.prototype.removeDecorations=function(){var e=[];this._decorations.forEach((function(t,n){e.push(n)})),this._editor.deltaDecorations(e,[]),this._decorations.clear()},e.DecorationOptions=z_.register({stickiness:1,className:"reference-decoration"}),e}(),Bj=function(){function e(){this.ratio=.7,this.heightInLines=18}return e.fromJSON=function(e){var t,n;try{var i=JSON.parse(e);t=i.ratio,n=i.heightInLines}catch(o){}return{ratio:t||.7,heightInLines:n||18}},e}(),Ej=function(e){function t(t,n,i,o,r,s,a,u){var l=e.call(this,t,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return l._defaultTreeKeyboardSupport=n,l.layoutData=i,l._textModelResolverService=r,l._instantiationService=s,l._peekViewService=a,l._uriLabel=u,l._disposeOnNewModel=new ke,l._callOnDispose=new ke,l._onDidSelectReference=new Ye,l.onDidSelectReference=l._onDidSelectReference.event,l._dim={height:0,width:0},l._applyTheme(o.getTheme()),l._callOnDispose.add(o.onThemeChange(l._applyTheme.bind(l))),l._peekViewService.addExclusiveWidget(t,l),l.create(),l}return _j(t,e),t.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),xe(this._preview),xe(this._previewNotAvailableMessage),xe(this._tree),xe(this._previewModelReference),this._splitView.dispose(),e.prototype.dispose.call(this)},t.prototype._applyTheme=function(e){var t=e.getColor(bz)||N_.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(_z)||N_.transparent,primaryHeadingColor:e.getColor(yz),secondaryHeadingColor:e.getColor(wz)})},t.prototype.show=function(t){this.editor.revealRangeInCenterIfOutsideViewport(t,0),e.prototype.show.call(this,t,this.layoutData.heightInLines||18)},t.prototype.focus=function(){this._tree.domFocus()},t.prototype._onTitleClick=function(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})},t.prototype._fillBody=function(e){var t=this;this.setCssClass("reference-zone-widget"),this._messageContainer=ar(e,dr("div.messages")),Ar(this._messageContainer),this._splitView=new vj(e,{orientation:1}),this._previewContainer=ar(e,dr("div.preview.inline"));var n={scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}};this._preview=this._instantiationService.createInstance(tz,this._previewContainer,n,this.editor),Ar(this._previewContainer),this._previewNotAvailableMessage=U_.createFromString(r("missingPreviewMessage","no preview available")),this._treeContainer=ar(e,dr("div.ref-tree.inline"));var i={ariaLabel:r("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new dj,keyboardNavigationLabelProvider:this._instantiationService.createInstance(rj),identityProvider:new sj,overrideStyles:{listBackground:Cz}};this._tree=this._instantiationService.createInstance(YO,"ReferencesWidget",this._treeContainer,new oj,[this._instantiationService.createInstance(uj),this._instantiationService.createInstance(cj)],this._instantiationService.createInstance(ij),i),this._splitView.addView({onDidChange:Ue.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(e){t._preview.layout({height:t._dim.height,width:e})}},$z.Distribute),this._splitView.addView({onDidChange:Ue.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(e){t._treeContainer.style.height=t._dim.height+"px",t._treeContainer.style.width=e+"px",t._tree.layout(t._dim.height,e)}},$z.Distribute),this._disposables.add(this._splitView.onDidSashChange((function(){t._dim.width&&(t.layoutData.ratio=t._splitView.getViewSize(0)/t._dim.width)}),void 0));var o=function(e,n){e instanceof Fz&&("show"===n&&t._revealReference(e,!1),t._onDidSelectReference.fire({element:e,kind:n,source:"tree"}))};this._tree.onDidChangeFocus((function(e){o(e.elements[0],"show")})),this._tree.onDidOpen((function(e){e.browserEvent instanceof MouseEvent&&(e.browserEvent.ctrlKey||e.browserEvent.metaKey||e.browserEvent.altKey)?o(e.elements[0],"side"):e.browserEvent instanceof KeyboardEvent||e.browserEvent instanceof MouseEvent&&2===e.browserEvent.detail||2===e.browserEvent.tapCount?o(e.elements[0],"goto"):o(e.elements[0],"show")})),Ar(this._treeContainer)},t.prototype._onWidth=function(e){this._dim&&this._doLayoutBody(this._dim.height,e)},t.prototype._doLayoutBody=function(t,n){e.prototype._doLayoutBody.call(this,t,n),this._dim={height:t,width:n},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(n),this._splitView.resizeView(0,n*this.layoutData.ratio)},t.prototype.setSelection=function(e){var t=this;return this._revealReference(e,!0).then((function(){t._model&&(t._tree.setSelection([e]),t._tree.setFocus([e]))}))},t.prototype.setModel=function(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()},t.prototype._onNewModel=function(){var e=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerHTML=r("noResults","No results"),hr(this._messageContainer),Promise.resolve(void 0)):(Ar(this._messageContainer),this._decorationsManager=new Sj(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((function(t){return e._tree.rerender(t)}))),this._disposeOnNewModel.add(this._preview.onMouseDown((function(t){var n=t.event,i=t.target;if(2===n.detail){var o=e._getFocusedReference();o&&e._onDidSelectReference.fire({element:{uri:o.uri,range:i.range},kind:n.ctrlKey||n.metaKey||n.altKey?"side":"open",source:"editor"})}}))),ho(this.container,"results-loaded"),hr(this._treeContainer),hr(this._previewContainer),this._splitView.layout(this._dim.width),this.focus(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)},t.prototype._getFocusedReference=function(){var e=this._tree.getFocus()[0];return e instanceof Fz?e:e instanceof Oz&&e.children.length>0?e.children[0]:void 0},t.prototype._revealReference=function(e,t){return bj(this,void 0,void 0,(function(){var n,i,o,s,a;return Cj(this,(function(u){switch(u.label){case 0:return this._revealedReference===e?[2]:(this._revealedReference=e,e.uri.scheme!==Bi.inMemory?this.setTitle(oa(e.uri),this._uriLabel.getUriLabel(ua(e.uri))):this.setTitle(r("peekView.alternateTitle","References")),n=this._textModelResolverService.createModelReference(e.uri),this._tree.getInput()!==e.parent?[3,1]:(this._tree.reveal(e),[3,3]));case 1:return t&&this._tree.reveal(e.parent),[4,this._tree.expand(e.parent)];case 2:u.sent(),this._tree.reveal(e),u.label=3;case 3:return[4,n];case 4:return i=u.sent(),this._model?(xe(this._previewModelReference),o=i.object,o?(s=this._preview.getModel()===o.textEditorModel?0:1,a=vn.lift(e.range).collapseToStart(),this._previewModelReference=i,this._preview.setModel(o.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,s)):(this._preview.setModel(this._previewNotAvailableMessage),i.dispose()),[2]):(i.dispose(),[2])}}))}))},t=yj([wj(3,um),wj(4,ec),wj(5,xn),wj(6,pz),wj(7,iI)],t),t}(vz);gm((function(e,t){var n=e.getColor(Nz);n&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+n+"; }");var i=e.getColor(kz);i&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+i+"; }");var o=e.getColor(Iz);o&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+o+"; box-sizing: border-box; }");var r=e.getColor(Yy);r&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+r+"; box-sizing: border-box; }");var s=e.getColor(Cz);s&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+s+"; }");var a=e.getColor(Sz);a&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+a+"; }");var u=e.getColor(Bz);u&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+u+"; }");var l=e.getColor(Ez);l&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+l+"; }");var c=e.getColor(xz);c&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+c+" !important; }");var d=e.getColor(Lz);d&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: "+d+";}");var h=e.getColor(Dz);h&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+h+";}")}));var xj=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},Lj=function(e,t){return function(n,i){t(n,i,e)}},Dj=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Nj=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},kj=new Fp("referenceSearchVisible",!1),Ij=function(){function e(e,t,n,i,o,r,s,a){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=i,this._notificationService=o,this._instantiationService=r,this._storageService=s,this._configurationService=a,this._disposables=new ke,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=kj.bindTo(n)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._referenceSearchVisible.reset(),this._disposables.dispose(),xe(this._widget),xe(this._model),this._widget=void 0,this._model=void 0},e.prototype.toggleWidget=function(e,t,n){var i,o=this;if(this._widget&&(i=this._widget.position),this.closeWidget(),!i||!e.containsPosition(i)){this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((function(){o.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((function(){o._ignoreModelChangeEvent||o.closeWidget()})));var s="peekViewLayout",a=Bj.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(Ej,this._editor,this._defaultTreeKeyboardSupport,a),this._widget.setTitle(r("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((function(){t.cancel(),o._widget&&(o._storageService.store(s,JSON.stringify(o._widget.layoutData),0),o._widget=void 0),o.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((function(e){var t=e.element,i=e.kind;if(t)switch(i){case"open":"editor"===e.source&&o._configurationService.getValue("editor.stablePeek")||o.openReference(t,!1);break;case"side":o.openReference(t,!0);break;case"goto":n?o._gotoReference(t):o.openReference(t,!1);break}})));var u=++this._requestIdPool;t.then((function(t){if(u===o._requestIdPool&&o._widget)return o._model&&o._model.dispose(),o._model=t,o._widget.setModel(o._model).then((function(){if(o._widget&&o._model&&o._editor.hasModel()){o._model.isEmpty?o._widget.setMetaTitle(""):o._widget.setMetaTitle(r("metaTitle.N","{0} ({1})",o._model.title,o._model.references.length));var t=o._editor.getModel().uri,n=new mn(e.startLineNumber,e.startColumn),i=o._model.nearestReference(t,n);if(i)return o._widget.setSelection(i)}}))}),(function(e){o._notificationService.error(e)}))}},e.prototype.goToNextOrPreviousReference=function(e){return Dj(this,void 0,void 0,(function(){var t,n,i,o;return Nj(this,(function(r){switch(r.label){case 0:return this._editor.hasModel()&&this._model&&this._widget?(t=this._widget.position,t?(n=this._model.nearestReference(this._editor.getModel().uri,t),n?(i=this._model.nextOrPreviousReference(n,e),o=this._editor.hasTextFocus(),[4,this._widget.setSelection(i)]):[2]):[2]):[2];case 1:return r.sent(),[4,this._gotoReference(i)];case 2:return r.sent(),o&&this._editor.focus(),[2]}}))}))},e.prototype.closeWidget=function(){this._referenceSearchVisible.reset(),this._disposables.clear(),xe(this._widget),xe(this._model),this._widget=void 0,this._model=void 0,this._editor.focus(),this._requestIdPool+=1},e.prototype._gotoReference=function(t){var n=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var i=vn.lift(t.range).collapseToStart();return this._editorService.openCodeEditor({resource:t.uri,options:{selection:i}},this._editor).then((function(t){var o;if(n._ignoreModelChangeEvent=!1,t&&n._widget)if(n._editor===t)n._widget.show(i),n._widget.focus();else{var r=e.get(t),s=n._model.clone();n.closeWidget(),t.focus(),r.toggleWidget(i,fi((function(e){return Promise.resolve(s)})),(o=n._peekMode,null!==o&&void 0!==o&&o))}else n.closeWidget()}),(function(e){n._ignoreModelChangeEvent=!1,Ae(e)}))},e.prototype.openReference=function(e,t){t||this.closeWidget();var n=e.uri,i=e.range;this._editorService.openCodeEditor({resource:n,options:{selection:i}},this._editor,t)},e.ID="editor.contrib.referencesController",e=xj([Lj(2,Mp),Lj(3,kn),Lj(4,$p),Lj(5,xn),Lj(6,aT),Lj(7,rp)],e),e}();function Fj(e,t){var n=gz(e);if(n){var i=Ij.get(n);i&&t(i)}}Rp.registerCommandAndKeybindingRule({id:"goToNextReference",weight:250,primary:62,secondary:[70],when:kj,handler:function(e){Fj(e,(function(e){e.goToNextOrPreviousReference(!0)}))}}),Rp.registerCommandAndKeybindingRule({id:"goToNextReferenceFromEmbeddedEditor",weight:150,primary:62,secondary:[70],when:JK.inPeekEditor,handler:function(e){Fj(e,(function(e){e.goToNextOrPreviousReference(!0)}))}}),Rp.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:250,primary:1086,secondary:[1094],when:kj,handler:function(e){Fj(e,(function(e){e.goToNextOrPreviousReference(!1)}))}}),Rp.registerCommandAndKeybindingRule({id:"goToPreviousReferenceFromEmbeddedEditor",weight:150,primary:1086,secondary:[1094],when:JK.inPeekEditor,handler:function(e){Fj(e,(function(e){e.goToNextOrPreviousReference(!1)}))}}),Rp.registerCommandAndKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:Cp.and(kj,Cp.not("config.editor.stablePeek")),handler:function(e){Fj(e,(function(e){return e.closeWidget()}))}}),Rp.registerCommandAndKeybindingRule({id:"closeReferenceSearchEditor",weight:-1,primary:9,secondary:[1033],when:Cp.and(JK.inPeekEditor,Cp.not("config.editor.stablePeek")),handler:function(e){Fj(e,(function(e){return e.closeWidget()}))}}),Rp.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:Cp.and(kj,EO),handler:function(e){var t,n=e.get(bO),i=null===(t=n.lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof Fz&&Fj(e,(function(e){return e.openReference(i[0],!0)}))}});var Mj=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Oj=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function Tj(e,t,n,i){var o=n.ordered(e),r=o.map((function(n){return Promise.resolve(i(n,e,t)).then(void 0,(function(e){pe(e)}))}));return Promise.all(r).then(zi).then(Ti)}function Pj(e,t,n){return Tj(e,t,kl,(function(e,t,i){return e.provideDefinition(t,i,n)}))}function Rj(e,t,n){return Tj(e,t,Il,(function(e,t,i){return e.provideDeclaration(t,i,n)}))}function Uj(e,t,n){return Tj(e,t,Fl,(function(e,t,i){return e.provideImplementation(t,i,n)}))}function Hj(e,t,n){return Tj(e,t,Ml,(function(e,t,i){return e.provideTypeDefinition(t,i,n)}))}function Qj(e,t,n,i){var o=this;return Tj(e,t,Sl,(function(e,t,r){return Mj(o,void 0,void 0,(function(){var o,s;return Oj(this,(function(a){switch(a.label){case 0:return[4,e.provideReferences(t,r,{includeDeclaration:!0},i)];case 1:return o=a.sent(),n&&o&&2===o.length?[4,e.provideReferences(t,r,{includeDeclaration:!1},i)]:[2,o];case 2:return s=a.sent(),s&&1===s.length?[2,s]:[2,o]}}))}))}))}wg("_executeDefinitionProvider",(function(e,t){return Pj(e,t,je.None)})),wg("_executeDeclarationProvider",(function(e,t){return Rj(e,t,je.None)})),wg("_executeImplementationProvider",(function(e,t){return Uj(e,t,je.None)})),wg("_executeTypeDefinitionProvider",(function(e,t){return Hj(e,t,je.None)})),wg("_executeReferenceProvider",(function(e,t){return Qj(e,t,!1,je.None)}));var Vj=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)}}(),Wj=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},Kj=function(e,t){return function(n,i){t(n,i,e)}},zj=new Fp("hasSymbols",!1),jj=Dn("ISymbolNavigationService"),Gj=function(){function e(e,t,n,i){this._editorService=t,this._notificationService=n,this._keybindingService=i,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=zj.bindTo(e)}return e.prototype.reset=function(){this._ctxHasSymbols.reset(),xe(this._currentState),xe(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},e.prototype.put=function(e){var t=this,n=e.parent.parent;if(n.references.length<=1)this.reset();else{this._currentModel=n,this._currentIdx=n.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();var i=new nG(this._editorService),o=i.onDidChange((function(e){if(!t._ignoreEditorChange){var i=t._editorService.getActiveCodeEditor();if(i){var o=i.getModel(),r=i.getPosition();if(o&&r){for(var s=!1,a=!1,u=0,l=n.references;u<l.length;u++){var c=l[u];if(sa(c.uri,o.uri))s=!0,a=a||vn.containsPosition(c.range,r);else if(s)break}s&&a||t.reset()}}}}));this._currentState=Le(i,o)}},e.prototype.revealNext=function(e){var t=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var n=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:n.uri,options:{selection:vn.collapseToStart(n.range),revealInCenterIfOutsideViewport:!0}},e).finally((function(){t._ignoreEditorChange=!1}))},e.prototype._showMessage=function(){xe(this._currentMessage);var e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?r("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):r("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)},e=Wj([Kj(0,Mp),Kj(1,kn),Kj(2,$p),Kj(3,pD)],e),e}();pL(jj,Gj,!0),bg(new(function(e){function t(){return e.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:zj,kbOpts:{weight:100,primary:70}})||this}return Vj(t,e),t.prototype.runEditorCommand=function(e,t){return e.get(jj).revealNext(t)},t}(vg))),Rp.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:zj,primary:9,handler:function(e){e.get(jj).reset()}});var qj,Yj,Xj,Jj,Zj,$j,eG,tG,nG=function(){function e(e){this._listener=new Map,this._disposables=new ke,this._onDidChange=new Ye,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}return e.prototype.dispose=function(){this._disposables.dispose(),this._onDidChange.dispose(),this._listener.forEach(xe)},e.prototype._onDidAddEditor=function(e){var t=this;this._listener.set(e,Le(e.onDidChangeCursorPosition((function(n){return t._onDidChange.fire({editor:e})})),e.onDidChangeModelContent((function(n){return t._onDidChange.fire({editor:e})}))))},e.prototype._onDidRemoveEditor=function(e){xe(this._listener.get(e)),this._listener.delete(e)},e=Wj([Kj(0,kn)],e),e}(),iG=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)}}(),oG=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},rG=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};dg.appendMenuItem(7,{submenu:8,title:r("peek.submenu","Peek"),group:"navigation",order:100});var sG=function(e){function t(t,n){var i=e.call(this,n)||this;return i._configuration=t,i}return iG(t,e),t.prototype.run=function(e,t){var n=this;if(!t.hasModel())return Promise.resolve(void 0);var i=e.get($p),o=e.get(kn),r=e.get(qL),s=e.get(jj),a=t.getModel(),u=t.getPosition(),l=new bL(t,5),c=gi(this._getLocationModel(a,u,l.token),l.token).then((function(e){return oG(n,void 0,void 0,(function(){var n,i,r,c;return rG(this,(function(d){if(!e||l.token.isCancellationRequested)return[2];if(Rf(e.ariaMessage),e.referenceAt(a.uri,u)&&(i=this._getAlternativeCommand(t),i!==this.id&&(n=t.getAction(i))),r=e.references.length,0===r)this._configuration.muteMessage||(c=a.getWordAtPosition(u),MU.get(t).showMessage(this._getNoResultFoundMessage(c),u));else{if(1!==r||!n)return[2,this._onResult(o,s,t,e)];n.run()}return[2]}))}))}),(function(e){i.error(e)})).finally((function(){l.dispose()}));return r.showWhile(c,250),c},t.prototype._onResult=function(e,t,n,i){return oG(this,void 0,void 0,(function(){var o,r,s,a;return rG(this,(function(u){switch(u.label){case 0:return o=this._getGoToPreference(n),this._configuration.openInPeek||"peek"===o&&i.references.length>1?(this._openInPeek(n,i),[3,3]):[3,1];case 1:return r=i.firstReference(),s=i.references.length>1&&"gotoAndPeek"===o,[4,this._openReference(n,e,r,this._configuration.openToSide,!s)];case 2:a=u.sent(),s&&a?this._openInPeek(a,i):i.dispose(),"goto"===o&&t.put(r),u.label=3;case 3:return[2]}}))}))},t.prototype._openReference=function(e,t,n,i,o){return oG(this,void 0,void 0,(function(){var r,s,a,u;return rG(this,(function(l){switch(l.label){case 0:return r=void 0,wl(n)&&(r=n.targetSelectionRange),r||(r=n.range),[4,t.openCodeEditor({resource:n.uri,options:{selection:vn.collapseToStart(r),revealInCenterIfOutsideViewport:!0}},e,i)];case 1:return s=l.sent(),s?(o&&(a=s.getModel(),u=s.deltaDecorations([],[{range:r,options:{className:"symbolHighlight"}}]),setTimeout((function(){s.getModel()===a&&s.deltaDecorations(u,[])}),350)),[2,s]):[2,void 0]}}))}))},t.prototype._openInPeek=function(e,t){var n=Ij.get(e);n&&e.hasModel()?n.toggleWidget(e.getSelection(),fi((function(e){return Promise.resolve(t)})),this._configuration.openInPeek):t.dispose()},t}(_g),aG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return iG(t,e),t.prototype._getLocationModel=function(e,t,n){return oG(this,void 0,void 0,(function(){var i;return rG(this,(function(o){switch(o.label){case 0:return i=Tz.bind,[4,Pj(e,t,n)];case 1:return[2,new(i.apply(Tz,[void 0,o.sent(),r("def.title","Definitions")]))]}}))}))},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?r("noResultWord","No definition found for '{0}'",e.word):r("generic.noResults","No definition found")},t.prototype._getAlternativeCommand=function(e){return e.getOption(39).alternativeDefinitionCommand},t.prototype._getGoToPreference=function(e){return e.getOption(39).multipleDefinitions},t}(sG),uG=s["g"]&&!qn?2118:70;Cg((qj=function(e){function t(){var n=e.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:t.id,label:r("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:Cp.and(_S.hasDefinitionProvider,_S.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:_S.editorTextFocus,primary:uG,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:17,group:"4_symbol_nav",order:2,title:r({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return za.registerCommandAlias("editor.action.goToDeclaration",t.id),n}return iG(t,e),t}(aG),qj.id="editor.action.revealDefinition",qj)),Cg((Yj=function(e){function t(){var n=e.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:t.id,label:r("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:Cp.and(_S.hasDefinitionProvider,_S.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,uG),weight:100}})||this;return za.registerCommandAlias("editor.action.openDeclarationToTheSide",t.id),n}return iG(t,e),t}(aG),Yj.id="editor.action.revealDefinitionAside",Yj)),Cg((Xj=function(e){function t(){var n=e.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:t.id,label:r("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:Cp.and(_S.hasDefinitionProvider,JK.notInPeekEditor,_S.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:_S.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return za.registerCommandAlias("editor.action.previewDeclaration",t.id),n}return iG(t,e),t}(aG),Xj.id="editor.action.peekDefinition",Xj));var lG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return iG(t,e),t.prototype._getLocationModel=function(e,t,n){return oG(this,void 0,void 0,(function(){var i;return rG(this,(function(o){switch(o.label){case 0:return i=Tz.bind,[4,Rj(e,t,n)];case 1:return[2,new(i.apply(Tz,[void 0,o.sent(),r("decl.title","Declarations")]))]}}))}))},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?r("decl.noResultWord","No declaration found for '{0}'",e.word):r("decl.generic.noResults","No declaration found")},t.prototype._getAlternativeCommand=function(e){return e.getOption(39).alternativeDeclarationCommand},t.prototype._getGoToPreference=function(e){return e.getOption(39).multipleDeclarations},t}(sG);Cg((Jj=function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:t.id,label:r("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:Cp.and(_S.hasDeclarationProvider,_S.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:17,group:"4_symbol_nav",order:3,title:r({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return iG(t,e),t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?r("decl.noResultWord","No declaration found for '{0}'",e.word):r("decl.generic.noResults","No declaration found")},t}(lG),Jj.id="editor.action.revealDeclaration",Jj)),Cg(function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:r("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:Cp.and(_S.hasDeclarationProvider,JK.notInPeekEditor,_S.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return iG(t,e),t}(lG));var cG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return iG(t,e),t.prototype._getLocationModel=function(e,t,n){return oG(this,void 0,void 0,(function(){var i;return rG(this,(function(o){switch(o.label){case 0:return i=Tz.bind,[4,Hj(e,t,n)];case 1:return[2,new(i.apply(Tz,[void 0,o.sent(),r("typedef.title","Type Definitions")]))]}}))}))},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?r("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):r("goToTypeDefinition.generic.noResults","No type definition found")},t.prototype._getAlternativeCommand=function(e){return e.getOption(39).alternativeTypeDefinitionCommand},t.prototype._getGoToPreference=function(e){return e.getOption(39).multipleTypeDefinitions},t}(sG);Cg((Zj=function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:t.ID,label:r("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:Cp.and(_S.hasTypeDefinitionProvider,_S.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:_S.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:17,group:"4_symbol_nav",order:3,title:r({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return iG(t,e),t}(cG),Zj.ID="editor.action.goToTypeDefinition",Zj)),Cg(($j=function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:t.ID,label:r("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:Cp.and(_S.hasTypeDefinitionProvider,JK.notInPeekEditor,_S.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return iG(t,e),t}(cG),$j.ID="editor.action.peekTypeDefinition",$j));var dG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return iG(t,e),t.prototype._getLocationModel=function(e,t,n){return oG(this,void 0,void 0,(function(){var i;return rG(this,(function(o){switch(o.label){case 0:return i=Tz.bind,[4,Uj(e,t,n)];case 1:return[2,new(i.apply(Tz,[void 0,o.sent(),r("impl.title","Implementations")]))]}}))}))},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?r("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):r("goToImplementation.generic.noResults","No implementation found")},t.prototype._getAlternativeCommand=function(e){return e.getOption(39).alternativeImplementationCommand},t.prototype._getGoToPreference=function(e){return e.getOption(39).multipleImplementations},t}(sG);Cg((eG=function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:t.ID,label:r("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:Cp.and(_S.hasImplementationProvider,_S.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:_S.editorTextFocus,primary:2118,weight:100},menuOpts:{menuId:17,group:"4_symbol_nav",order:4,title:r({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return iG(t,e),t}(dG),eG.ID="editor.action.goToImplementation",eG)),Cg((tG=function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:t.ID,label:r("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:Cp.and(_S.hasImplementationProvider,JK.notInPeekEditor,_S.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:_S.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return iG(t,e),t}(dG),tG.ID="editor.action.peekImplementation",tG));var hG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return iG(t,e),t.prototype._getNoResultFoundMessage=function(e){return e?r("references.no","No references found for '{0}'",e.word):r("references.noGeneric","No references found")},t.prototype._getAlternativeCommand=function(e){return e.getOption(39).alternativeReferenceCommand},t.prototype._getGoToPreference=function(e){return e.getOption(39).multipleReferences},t}(sG);Cg(function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:r("goToReferences.label","Go to References"),alias:"Go to References",precondition:Cp.and(_S.hasReferenceProvider,JK.notInPeekEditor,_S.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:_S.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:17,group:"4_symbol_nav",order:5,title:r({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return iG(t,e),t.prototype._getLocationModel=function(e,t,n){return oG(this,void 0,void 0,(function(){var i;return rG(this,(function(o){switch(o.label){case 0:return i=Tz.bind,[4,Qj(e,t,!0,n)];case 1:return[2,new(i.apply(Tz,[void 0,o.sent(),r("ref.title","References")]))]}}))}))},t}(hG)),Cg(function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:r("references.action.label","Peek References"),alias:"Peek References",precondition:Cp.and(_S.hasReferenceProvider,JK.notInPeekEditor,_S.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return iG(t,e),t.prototype._getLocationModel=function(e,t,n){return oG(this,void 0,void 0,(function(){var i;return rG(this,(function(o){switch(o.label){case 0:return i=Tz.bind,[4,Qj(e,t,!1,n)];case 1:return[2,new(i.apply(Tz,[void 0,o.sent(),r("ref.title","References")]))]}}))}))},t}(hG));var AG=function(e){function t(t,n){var i=e.call(this,{muteMessage:!0,openInPeek:!1,openToSide:!1},{id:"editor.action.goToLocation",label:r("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:Cp.and(JK.notInPeekEditor,_S.isInEmbeddedEditor.toNegated())})||this;return i._references=t,i._gotoMultipleBehaviour=n,i}return iG(t,e),t.prototype._getLocationModel=function(e,t,n){return oG(this,void 0,void 0,(function(){return rG(this,(function(e){return[2,new Tz(this._references,r("generic.title","Locations"))]}))}))},t.prototype._getNoResultFoundMessage=function(e){return e&&r("generic.noResult","No results for '{0}'",e.word)||""},t.prototype._getGoToPreference=function(e){var t;return t=this._gotoMultipleBehaviour,null!==t&&void 0!==t?t:e.getOption(39).multipleReferences},t.prototype._getAlternativeCommand=function(){return""},t}(sG);za.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Et},{name:"position",description:"The position at which to start",constraint:mn.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(e,t,n,i,o){return oG(void 0,void 0,void 0,(function(){var r,s;return rG(this,(function(a){switch(a.label){case 0:return wa(Et.isUri(t)),wa(mn.isIPosition(n)),wa(Array.isArray(i)),wa("undefined"===typeof o||"string"===typeof o),r=e.get(kn),[4,r.openCodeEditor({resource:t},r.getFocusedCodeEditor())];case 1:return s=a.sent(),sA(s)?(s.setPosition(n),s.revealPositionInCenterIfOutsideViewport(n,0),[2,s.invokeWithinContext((function(e){var t=new AG(i,o);e.get(xn).invokeFunction(t.run.bind(t),s)}))]):[2]}}))}))}}),za.registerCommand({id:"editor.action.findReferences",handler:function(e,t,n){wa(Et.isUri(t)),wa(mn.isIPosition(n));var i=e.get(kn);return i.openCodeEditor({resource:t},i.getFocusedCodeEditor()).then((function(e){if(sA(e)&&e.hasModel()){var t=Ij.get(e);if(t){var i=fi((function(t){return Qj(e.getModel(),mn.lift(n),!1,t).then((function(e){return new Tz(e,r("ref.title","References"))}))})),o=new vn(n.lineNumber,n.column,n.lineNumber,n.column);return Promise.resolve(t.toggleWidget(o,i,!1))}}}))}}),za.registerCommandAlias("editor.action.showReferences","editor.action.goToLocations");n("eb68");var pG=function(){function e(e,t){void 0===e&&(e=""),void 0===t&&(t=!1),this._value=e,this._isTrusted=t}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),e.prototype.appendText=function(e){return this._value+=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace("\n","\n\n"),this},e.prototype.appendMarkdown=function(e){return this._value+=e,this},e.prototype.appendCodeblock=function(e,t){return this._value+="\n```",this._value+=e,this._value+="\n",this._value+=t,this._value+="\n```\n",this},e}();function fG(e){return gG(e)?!e.value:!Array.isArray(e)||e.every(fG)}function gG(e){return e instanceof pG||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||void 0===e.isTrusted))}function mG(e,t){return!e&&!t||!(!e||!t)&&(Array.isArray(e)&&Array.isArray(t)?Di(e,t,vG):!(!gG(e)||!gG(t))&&vG(e,t))}function vG(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted)}function _G(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function yG(e){var t=[],n=e.split("|").map((function(e){return e.trim()}));e=n[0];var i=n[1];if(i){var o=/height=(\d+)/.exec(i),r=/width=(\d+)/.exec(i),s=o?o[1]:"",a=r?r[1]:"",u=isFinite(parseInt(a)),l=isFinite(parseInt(s));u&&t.push('width="'+a+'"'),l&&t.push('height="'+s+'"')}return{href:e,dimensions:t}}var wG=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 bG(e,t){return!!e[t]}var CG=function(){function e(e,t){this.target=e.target,this.hasTriggerModifier=bG(e.event,t.triggerModifier),this.hasSideBySideModifier=bG(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=Rn||e.event.detail<=1}return e}(),SG=function(){function e(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=bG(e,t.triggerModifier)}return e}(),BG=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 EG(e){return"altKey"===e?s["e"]?new BG(57,"metaKey",6,"altKey"):new BG(5,"ctrlKey",6,"altKey"):s["e"]?new BG(6,"altKey",57,"metaKey"):new BG(6,"altKey",5,"ctrlKey")}var xG=function(e){function t(t){var n=e.call(this)||this;return n._onMouseMoveOrRelevantKeyDown=n._register(new Ye),n.onMouseMoveOrRelevantKeyDown=n._onMouseMoveOrRelevantKeyDown.event,n._onExecute=n._register(new Ye),n.onExecute=n._onExecute.event,n._onCancel=n._register(new Ye),n.onCancel=n._onCancel.event,n._editor=t,n._opts=EG(n._editor.getOption(57)),n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._register(n._editor.onDidChangeConfiguration((function(e){if(e.hasChanged(57)){var t=EG(n._editor.getOption(57));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 CG(e,n._opts))}))),n._register(n._editor.onMouseDown((function(e){return n.onEditorMouseDown(new CG(e,n._opts))}))),n._register(n._editor.onMouseUp((function(e){return n.onEditorMouseUp(new CG(e,n._opts))}))),n._register(n._editor.onKeyDown((function(e){return n.onEditorKeyDown(new SG(e,n._opts))}))),n._register(n._editor.onKeyUp((function(e){return n.onEditorKeyUp(new SG(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 wG(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}(Ie),LG=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},DG=function(e,t){return function(n,i){t(n,i,e)}},NG=function(){function e(e,t,n){var i=this;this.textModelResolverService=t,this.modeService=n,this.toUnhook=new ke,this.toUnhookForKeyboard=new ke,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;var o=new xG(e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown((function(e){var t=e[0],n=e[1];i.startFindDefinitionFromMouse(t,Na(n))}))),this.toUnhook.add(o.onExecute((function(e){i.isEnabled(e)&&i.gotoDefinition(e.target.position,e.hasSideBySideModifier).then((function(){i.removeLinkDecorations()}),(function(e){i.removeLinkDecorations(),Ae(e)}))}))),this.toUnhook.add(o.onCancel((function(){i.removeLinkDecorations(),i.currentWordAtPosition=null})))}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.startFindDefinitionFromCursor=function(e){var t=this;return this.startFindDefinition(e).then((function(){t.toUnhookForKeyboard.add(t.editor.onDidChangeCursorPosition((function(){t.currentWordAtPosition=null,t.removeLinkDecorations(),t.toUnhookForKeyboard.clear()}))),t.toUnhookForKeyboard.add(t.editor.onKeyDown((function(e){e&&(t.currentWordAtPosition=null,t.removeLinkDecorations(),t.toUnhookForKeyboard.clear())})))}))},e.prototype.startFindDefinitionFromMouse=function(e,t){if(!(9===e.target.type&&this.linkDecorations.length>0)){if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();var n=e.target.position;this.startFindDefinition(n)}},e.prototype.startFindDefinition=function(e){var t,n=this;this.toUnhookForKeyboard.clear();var i=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return Promise.resolve(0);this.currentWordAtPosition=i;var o=new wL(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=fi((function(t){return n.findDefinition(e,t)})),this.previousPromise.then((function(t){if(t&&t.length&&o.validate(n.editor))if(t.length>1)n.addDecoration(new vn(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),(new pG).appendText(r("multipleResults","Click to show {0} definitions.",t.length)));else{var s=t[0];if(!s.uri)return;n.textModelResolverService.createModelReference(s.uri).then((function(t){if(t.object&&t.object.textEditorModel){var o=t.object.textEditorModel,r=s.range.startLineNumber;if(r<1||r>o.getLineCount())t.dispose();else{var a,u=n.getPreviewValue(o,r,s);a=s.originSelectionRange?vn.lift(s.originSelectionRange):new vn(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);var l=n.modeService.getModeIdByFilepathOrFirstLine(o.uri);n.addDecoration(a,(new pG).appendCodeblock(l||"",u)),t.dispose()}}else t.dispose()}))}else n.removeLinkDecorations()})).then(void 0,Ae)},e.prototype.getPreviewValue=function(t,n,i){var o=i.targetSelectionRange?i.range:this.getPreviewRangeBasedOnBrackets(t,n),r=o.endLineNumber-o.startLineNumber;r>=e.MAX_SOURCE_PREVIEW_LINES&&(o=this.getPreviewRangeBasedOnIndentation(t,n));var s=this.stripIndentationFromPreviewRange(t,n,o);return s},e.prototype.stripIndentationFromPreviewRange=function(e,t,n){for(var i=e.getLineFirstNonWhitespaceColumn(t),o=i,r=t+1;r<n.endLineNumber;r++){var s=e.getLineFirstNonWhitespaceColumn(r);o=Math.min(o,s)}var a=e.getValueInRange(n).replace(new RegExp("^\\s{"+(o-1)+"}","gm"),"").trim();return a},e.prototype.getPreviewRangeBasedOnIndentation=function(t,n){for(var i=t.getLineFirstNonWhitespaceColumn(n),o=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES),r=n+1;r<o;r++){var s=t.getLineFirstNonWhitespaceColumn(r);if(i===s)break}return new vn(n,1,r+1,1)},e.prototype.getPreviewRangeBasedOnBrackets=function(t,n){var i=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES),o=[],r=!0,s=t.findNextBracket(new mn(n,1));while(null!==s){if(0===o.length)o.push(s);else{var a=o[o.length-1];if(a.open[0]===s.open[0]&&a.isOpen&&!s.isOpen?o.pop():o.push(s),0===o.length){if(!r)return new vn(n,1,s.range.endLineNumber+1,1);r=!1}}var u=t.getLineMaxColumn(n),l=s.range.endLineNumber,c=s.range.endColumn;if(u===s.range.endColumn&&(l++,c=1),l>i)return new vn(n,1,i+1,1);s=t.findNextBracket(new mn(l,c))}return new vn(n,1,i+1,1)},e.prototype.addDecoration=function(e,t){var n={range:e,options:{inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[n])},e.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},e.prototype.isEnabled=function(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&kl.has(this.editor.getModel())},e.prototype.findDefinition=function(e,t){var n=this.editor.getModel();return n?Pj(n,e,t):Promise.resolve(null)},e.prototype.gotoDefinition=function(e,t){var n=this;this.editor.setPosition(e);var i=new aG({openToSide:t,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext((function(e){return i.run(e,n.editor)}))},e.prototype.dispose=function(){this.toUnhook.dispose()},e.ID="editor.contrib.gotodefinitionatposition",e.MAX_SOURCE_PREVIEW_LINES=8,e=LG([DG(1,ec),DG(2,ED)],e),e}();Bg(NG.ID,NG),gm((function(e,t){var n=e.getColor(eb);n&&t.addRule(".monaco-editor .goto-definition-link { color: "+n+" !important; }")}));var kG;n("fe86");(function(e){function t(e){switch(e){case rA.Ignore:return"severity-ignore codicon-info";case rA.Info:return"codicon-info";case rA.Warning:return"codicon-warning";case rA.Error:return"codicon-error"}return""}e.className=t})(kG||(kG={})),gm((function(e,t){var n=e.getColor(Vb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-error,\n\t\t\t.monaco-workbench .markers-panel .marker-icon.codicon-error,\n\t\t\t.monaco-workbench .extensions-viewlet > .extensions .codicon-error,\n\t\t\t.monaco-workbench .dialog-box .dialog-message-row .codicon-error {\n\t\t\t\tcolor: "+n+";\n\t\t\t}\n\t\t");var i=e.getColor(Wb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-warning,\n\t\t\t.monaco-workbench .markers-panel .marker-icon.codicon-warning,\n\t\t\t.monaco-workbench .extensions-viewlet > .extensions .codicon-warning,\n\t\t\t.monaco-workbench .extension-editor .codicon-warning,\n\t\t\t.monaco-workbench .dialog-box .dialog-message-row .codicon-warning {\n\t\t\t\tcolor: "+i+";\n\t\t\t}\n\t\t");var o=e.getColor(Kb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-info,\n\t\t\t.monaco-workbench .markers-panel .marker-icon.codicon-info,\n\t\t\t.monaco-workbench .extensions-viewlet > .extensions .codicon-info,\n\t\t\t.monaco-workbench .extension-editor .codicon-info,\n\t\t\t.monaco-workbench .dialog-box .dialog-message-row .codicon-info {\n\t\t\t\tcolor: "+o+";\n\t\t\t}\n\t\t")}));var IG=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)}}(),FG=function(){function e(e,t,n){var i=this;this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new ke,this._editor=t;var o=document.createElement("div");o.className="descriptioncontainer",o.setAttribute("aria-live","assertive"),o.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),ho(this._messageBlock,"message"),o.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),o.appendChild(this._relatedBlock),this._disposables.add(wo(this._relatedBlock,"click",(function(e){e.preventDefault();var t=i._relatedDiagnostics.get(e.target);t&&n(t)}))),this._scrollable=new PB(o,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((function(e){o.style.left="-"+e.scrollLeft+"px",o.style.top="-"+e.scrollTop+"px"}))),this._disposables.add(this._scrollable)}return e.prototype.dispose=function(){xe(this._disposables)},e.prototype.update=function(e){var t=e.source,n=e.message,i=e.relatedInformation,o=e.code,r=n.split(/\r\n|\r|\n/g);this._lines=r.length,this._longestLineLength=0;for(var s=0,a=r;s<a.length;s++){var u=a[s];this._longestLineLength=Math.max(u.length,this._longestLineLength)}oo(this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var l=this._messageBlock,c=0,d=r;c<d.length;c++){u=d[c];l=document.createElement("div"),l.innerText=u,""===u&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l)}if(t||o){var h=document.createElement("span");if(ho(h,"details"),l.appendChild(h),t){var A=document.createElement("span");A.innerText=t,ho(A,"source"),h.appendChild(A)}if(o){var p=document.createElement("span");p.innerText="("+o+")",ho(p,"code"),h.appendChild(p)}}if(oo(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Ri(i)){var f=this._relatedBlock.appendChild(document.createElement("div"));f.style.paddingTop=Math.floor(.66*this._editor.getOption(47))+"px",this._lines+=1;for(var g=0,m=i;g<m.length;g++){var v=m[g],_=document.createElement("div"),y=document.createElement("a");ho(y,"filename"),y.innerHTML=Gz(v.resource)+"("+v.startLineNumber+", "+v.startColumn+"): ",y.title=jz(v.resource,void 0),this._relatedDiagnostics.set(y,v);var w=document.createElement("span");w.innerText=v.message,_.appendChild(y),_.appendChild(w),this._lines+=1,f.appendChild(_)}}var b=this._editor.getOption(32),C=Math.ceil(b.typicalFullwidthCharacterWidth*this._longestLineLength*.75),S=b.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:C,scrollHeight:S})},e.prototype.layout=function(e,t){this._scrollable.getDomNode().style.height=e+"px",this._scrollable.getDomNode().style.width=t+"px",this._scrollable.setScrollDimensions({width:t,height:e})},e.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},e}(),MG=function(e){function t(t,n,i){var o=e.call(this,t,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return o.actions=n,o._themeService=i,o._callOnDispose=new ke,o._onDidSelectRelatedInformation=new Ye,o.onDidSelectRelatedInformation=o._onDidSelectRelatedInformation.event,o._severity=JO.Warning,o._backgroundColor=N_.white,o._applyTheme(i.getTheme()),o._callOnDispose.add(i.onThemeChange(o._applyTheme.bind(o))),o.create(),o}return IG(t,e),t.prototype._applyTheme=function(e){this._backgroundColor=e.getColor(QG);var t=RG;this._severity===JO.Warning?t=UG:this._severity===JO.Info&&(t=HG);var n=e.getColor(t);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:e.getColor(yz),secondaryHeadingColor:e.getColor(wz)})},t.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),e.prototype._applyStyles.call(this)},t.prototype.dispose=function(){this._callOnDispose.dispose(),e.prototype.dispose.call(this)},t.prototype._fillHead=function(t){e.prototype._fillHead.call(this,t),this._actionbarWidget.push(this.actions,{label:!1,icon:!0})},t.prototype._fillTitleIcon=function(e){this._icon=ar(e,dr(""))},t.prototype._getActionBarOptions=function(){return{orientation:1}},t.prototype._fillBody=function(e){var t=this;this._parentContainer=e,ho(e,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new FG(this._container,this.editor,(function(e){return t._onDidSelectRelatedInformation.fire(e)})),this._disposables.add(this._message)},t.prototype.show=function(e,t){throw new Error("call showAtMarker")},t.prototype.showAtMarker=function(t,n,i){this._container.classList.remove("stale"),this._message.update(t),this._severity=t.severity,this._applyTheme(this._themeService.getTheme());var o=vn.lift(t),s=this.editor.getPosition(),a=s&&o.containsPosition(s)?s:o.getStartPosition();e.prototype.show.call(this,a,this.computeRequiredHeight());var u=this.editor.getModel();if(u){var l=i>1?r("problems","{0} of {1} problems",n,i):r("change","{0} of {1} problem",n,i);this.setTitle(aa(u.uri),l)}this._icon.className="codicon "+kG.className(JO.toSeverity(this._severity)),this.editor.revealPositionInCenter(a,0)},t.prototype.updateMarker=function(e){this._container.classList.remove("stale"),this._message.update(e)},t.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},t.prototype._doLayoutBody=function(t,n){e.prototype._doLayoutBody.call(this,t,n),this._heightInPixel=t,this._message.layout(t,n),this._container.style.height=t+"px"},t.prototype._onWidth=function(e){this._message.layout(this._heightInPixel,e)},t.prototype._relayout=function(){e.prototype._relayout.call(this,this.computeRequiredHeight())},t.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},t}(vz),OG=qb(Sw,Bw),TG=qb(Ew,xw),PG=qb(Lw,Dw),RG=Ky("editorMarkerNavigationError.background",{dark:OG,light:OG,hc:OG},r("editorMarkerNavigationError","Editor marker navigation widget error color.")),UG=Ky("editorMarkerNavigationWarning.background",{dark:TG,light:TG,hc:TG},r("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),HG=Ky("editorMarkerNavigationInfo.background",{dark:PG,light:PG,hc:PG},r("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),QG=Ky("editorMarkerNavigation.background",{dark:"#2D2D30",light:N_.white,hc:"#0C141F"},r("editorMarkerNavigationBackground","Editor marker navigation widget background."));gm((function(e,t){var n=e.getColor(Xy);n&&t.addRule(".monaco-editor .marker-widget a { color: "+n+"; }")}));var VG=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)}}(),WG=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},KG=function(e,t){return function(n,i){t(n,i,e)}},zG=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},jG=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},GG=function(){function e(e,t){var n=this;this._toUnbind=new ke,this._editor=e,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new Ye,this._onMarkerSetChanged=new Ye,this.setMarkers(t),this._toUnbind.add(this._editor.onDidDispose((function(){return n.dispose()}))),this._toUnbind.add(this._editor.onDidChangeCursorPosition((function(){n._ignoreSelectionChange||n.currentMarker&&n._editor.getPosition()&&vn.containsPosition(n.currentMarker,n._editor.getPosition())||(n._nextIdx=-1)})))}return Object.defineProperty(e.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event},enumerable:!0,configurable:!0}),e.prototype.setMarkers=function(e){var t=this._nextIdx>=0?this._markers[this._nextIdx]:void 0;this._markers=e||[],this._markers.sort(YG.compareMarker),this._nextIdx=t?Math.max(-1,Ni(this._markers,t,YG.compareMarker)):-1,this._onMarkerSetChanged.fire(this)},e.prototype.withoutWatchingEditorPosition=function(e){this._ignoreSelectionChange=!0;try{e()}finally{this._ignoreSelectionChange=!1}},e.prototype._initIdx=function(e){for(var t=!1,n=this._editor.getPosition(),i=0;i<this._markers.length;i++){var o=vn.lift(this._markers[i]);if(o.isEmpty()&&this._editor.getModel()){var r=this._editor.getModel().getWordAtPosition(o.getStartPosition());r&&(o=new vn(o.startLineNumber,r.startColumn,o.startLineNumber,r.endColumn))}if(n&&(o.containsPosition(n)||n.isBeforeOrEqual(o.getStartPosition()))){this._nextIdx=i,t=!0;break}}t||(this._nextIdx=e?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)},Object.defineProperty(e.prototype,"currentMarker",{get:function(){return this.canNavigate()?this._markers[this._nextIdx]:void 0},set:function(e){var t=this._nextIdx;this._nextIdx=-1,e&&(this._nextIdx=this.indexOf(e)),this._nextIdx!==t&&this._onCurrentMarkerChanged.fire(e)},enumerable:!0,configurable:!0}),e.prototype.move=function(e,t){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!t;var n=this._nextIdx,i=!1;if(-1===this._nextIdx?this._initIdx(e):e?t||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:i=!0:e||(t||this._nextIdx>0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:i=!0),n!==this._nextIdx){var o=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(o)}return i},e.prototype.canNavigate=function(){return this._markers.length>0},e.prototype.findMarkerAtPosition=function(e){return Xi(this._markers,(function(t){return vn.containsPosition(t,e)}))},Object.defineProperty(e.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return 1+this._markers.indexOf(e)},e.prototype.dispose=function(){this._toUnbind.dispose()},e}(),qG=function(){function e(e,t,n,i,o,r){this._markerService=t,this._contextKeyService=n,this._themeService=i,this._editorService=o,this._keybindingService=r,this._model=null,this._widget=null,this._disposeOnClose=new ke,this._editor=e,this._widgetVisible=eq.bindTo(this._contextKeyService)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},e.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},e.prototype.getOrCreateModel=function(){var e=this;if(this._model)return this._model;var t=this._getMarkers();this._model=new GG(this._editor,t),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var n=this._keybindingService.lookupKeybinding(JG.ID),i=this._keybindingService.lookupKeybinding(XG.ID),o=[new ng(JG.ID,JG.LABEL+(n?" ("+n.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),(function(){return zG(e,void 0,void 0,(function(){return jG(this,(function(e){return this._model&&this._model.move(!1,!0),[2]}))}))})),new ng(XG.ID,XG.LABEL+(i?" ("+i.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),(function(){return zG(e,void 0,void 0,(function(){return jG(this,(function(e){return this._model&&this._model.move(!0,!0),[2]}))}))}))];this._widget=new MG(this._editor,o,this._themeService),this._widgetVisible.set(!0),this._widget.onDidClose((function(){return e.closeMarkersNavigation()}),this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var r=0,s=o;r<s.length;r++){var a=s[r];this._disposeOnClose.add(a)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation((function(t){e._editorService.openCodeEditor({resource:t.resource,options:{pinned:!0,revealIfOpened:!0,selection:vn.lift(t).collapseToStart()}},e._editor).then(void 0,Ae),e.closeMarkersNavigation(!1)}))),this._disposeOnClose.add(this._editor.onDidChangeModel((function(){return e._cleanUp()}))),this._disposeOnClose.add(this._model.onCurrentMarkerChanged((function(t){t&&e._model?e._model.withoutWatchingEditorPosition((function(){e._widget&&e._model&&e._widget.showAtMarker(t,e._model.indexOf(t),e._model.total)})):e._cleanUp()}))),this._disposeOnClose.add(this._model.onMarkerSetChanged((function(){if(e._widget&&e._widget.position&&e._model){var t=e._model.findMarkerAtPosition(e._widget.position);t?e._widget.updateMarker(t):e._widget.showStale()}}))),this._model},e.prototype.closeMarkersNavigation=function(e){void 0===e&&(e=!0),this._cleanUp(),e&&this._editor.focus()},e.prototype.show=function(e){var t=this.getOrCreateModel();t.currentMarker=e},e.prototype._onMarkerChanged=function(e){var t=this._editor.getModel();t&&this._model&&e.some((function(e){return sa(t.uri,e)}))&&this._model.setMarkers(this._getMarkers())},e.prototype._getMarkers=function(){var e=this._editor.getModel();return e?this._markerService.read({resource:e.uri,severities:JO.Error|JO.Warning|JO.Info}):[]},e.ID="editor.contrib.markerController",e=WG([KG(1,nT),KG(2,Mp),KG(3,um),KG(4,kn),KG(5,pD)],e),e}(),YG=function(e){function t(t,n,i){var o=e.call(this,i)||this;return o._isNext=t,o._multiFile=n,o}return VG(t,e),t.prototype.run=function(e,n){var i=this,o=e.get(nT),r=e.get(kn),s=qG.get(n);if(!s)return Promise.resolve(void 0);var a=s.getOrCreateModel(),u=a.move(this._isNext,!this._multiFile);if(!u||!this._multiFile)return Promise.resolve(void 0);var l=o.read({severities:JO.Error|JO.Warning|JO.Info}).sort(t.compareMarker);if(0===l.length)return Promise.resolve(void 0);var c=n.getModel();if(!c)return Promise.resolve(void 0);var d=a.currentMarker||{resource:c.uri,severity:JO.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},h=Ni(l,d,t.compareMarker);h<0?(h=~h,h%=l.length):h=this._isNext?(h+1)%l.length:(h+l.length-1)%l.length;var A=l[h];return sa(A.resource,c.uri)?(a.move(this._isNext,!0),Promise.resolve(void 0)):(s.closeMarkersNavigation(),r.openCodeEditor({resource:A.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:A}},n).then((function(e){if(e)return e.getAction(i.id).run()})))},t.compareMarker=function(e,t){var n=Vr(e.resource.toString(),t.resource.toString());return 0===n&&(n=JO.compare(e.severity,t.severity)),0===n&&(n=vn.compareRangesUsingStarts(e,t)),n},t}(_g),XG=function(e){function t(){return e.call(this,!0,!1,{id:t.ID,label:t.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:578,weight:100}})||this}return VG(t,e),t.ID="editor.action.marker.next",t.LABEL=r("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),t}(YG),JG=function(e){function t(){return e.call(this,!1,!1,{id:t.ID,label:t.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:1602,weight:100}})||this}return VG(t,e),t.ID="editor.action.marker.prev",t.LABEL=r("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),t}(YG),ZG=function(e){function t(){return e.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:r("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:_S.writable,kbOpts:{kbExpr:_S.focus,primary:66,weight:100}})||this}return VG(t,e),t}(YG),$G=function(e){function t(){return e.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:r("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:_S.writable,kbOpts:{kbExpr:_S.focus,primary:1090,weight:100}})||this}return VG(t,e),t}(YG);Bg(qG.ID,qG),Cg(XG),Cg(JG),Cg(ZG),Cg($G);var eq=new Fp("markersNavigationVisible",!1),tq=vg.bindToContribution(qG.get);bg(new tq({id:"closeMarkersNavigation",precondition:eq,handler:function(e){return e.closeMarkersNavigation()},kbOpts:{weight:150,kbExpr:_S.focus,primary:9,secondary:[1033]}})),dg.appendMenuItem(17,{group:"6_problem_nav",command:{id:"editor.action.marker.nextInFiles",title:r({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem")},order:1}),dg.appendMenuItem(17,{group:"6_problem_nav",command:{id:"editor.action.marker.prevInFiles",title:r({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem")},order:2});n("b805");var nq=function(){function e(e,t,n){this.presentationIndex=n,this._onColorFlushed=new Ye,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new Ye,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new Ye,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}return Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorPresentations",{get:function(){return this._colorPresentations},set:function(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),e.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},e.prototype.guessColorPresentation=function(e,t){for(var n=0;n<this.colorPresentations.length;n++)if(t===this.colorPresentations[n].label){this.presentationIndex=n,this._onDidChangePresentation.fire(this.presentation);break}},e.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},e}(),iq=(n("10f4"),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)}}()),oq=dr,rq=function(e){function t(t,n,i){var o=e.call(this)||this;o.model=n,o.domNode=oq(".colorpicker-header"),ar(t,o.domNode),o.pickedColorNode=ar(o.domNode,oq(".picked-color"));var r=ar(o.domNode,oq(".original-color"));return r.style.backgroundColor=N_.Format.CSS.format(o.model.originalColor)||"",o.backgroundColor=i.getTheme().getColor(Xw)||N_.white,o._register(gm((function(e,t){o.backgroundColor=e.getColor(Xw)||N_.white}))),o._register(vo(o.pickedColorNode,tr.CLICK,(function(){return o.model.selectNextColorPresentation()}))),o._register(vo(r,tr.CLICK,(function(){o.model.color=o.model.originalColor,o.model.flushColor()}))),o._register(n.onDidChangeColor(o.onDidChangeColor,o)),o._register(n.onDidChangePresentation(o.onDidChangePresentation,o)),o.pickedColorNode.style.backgroundColor=N_.Format.CSS.format(n.color)||"",go(o.pickedColorNode,"light",n.color.rgba.a<.5?o.backgroundColor.isLighter():n.color.isLighter()),o}return iq(t,e),t.prototype.onDidChangeColor=function(e){this.pickedColorNode.style.backgroundColor=N_.Format.CSS.format(e)||"",go(this.pickedColorNode,"light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()},t.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},t}(Ie),sq=function(e){function t(t,n,i){var o=e.call(this)||this;return o.model=n,o.pixelRatio=i,o.domNode=oq(".colorpicker-body"),ar(t,o.domNode),o.saturationBox=new aq(o.domNode,o.model,o.pixelRatio),o._register(o.saturationBox),o._register(o.saturationBox.onDidChange(o.onDidSaturationValueChange,o)),o._register(o.saturationBox.onColorFlushed(o.flushColor,o)),o.opacityStrip=new lq(o.domNode,o.model),o._register(o.opacityStrip),o._register(o.opacityStrip.onDidChange(o.onDidOpacityChange,o)),o._register(o.opacityStrip.onColorFlushed(o.flushColor,o)),o.hueStrip=new cq(o.domNode,o.model),o._register(o.hueStrip),o._register(o.hueStrip.onDidChange(o.onDidHueChange,o)),o._register(o.hueStrip.onColorFlushed(o.flushColor,o)),o}return iq(t,e),t.prototype.flushColor=function(){this.model.flushColor()},t.prototype.onDidSaturationValueChange=function(e){var t=e.s,n=e.v,i=this.model.color.hsva;this.model.color=new N_(new D_(i.h,t,n,i.a))},t.prototype.onDidOpacityChange=function(e){var t=this.model.color.hsva;this.model.color=new N_(new D_(t.h,t.s,t.v,e))},t.prototype.onDidHueChange=function(e){var t=this.model.color.hsva,n=360*(1-e);this.model.color=new N_(new D_(360===n?0:n,t.s,t.v,t.a))},t.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},t}(Ie),aq=function(e){function t(t,n,i){var o=e.call(this)||this;return o.model=n,o.pixelRatio=i,o._onDidChange=new Ye,o.onDidChange=o._onDidChange.event,o._onColorFlushed=new Ye,o.onColorFlushed=o._onColorFlushed.event,o.domNode=oq(".saturation-wrap"),ar(t,o.domNode),o.canvas=document.createElement("canvas"),o.canvas.className="saturation-box",ar(o.domNode,o.canvas),o.selection=oq(".saturation-selection"),ar(o.domNode,o.selection),o.layout(),o._register(Co(o.domNode,(function(e){return o.onMouseDown(e)}))),o._register(o.model.onDidChangeColor(o.onDidChangeColor,o)),o.monitor=null,o}return iq(t,e),t.prototype.onMouseDown=function(e){var t=this;this.monitor=this._register(new Rg);var n=Ho(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(Pg,(function(e){return t.onDidChangePosition(e.posx-n.left,e.posy-n.top)}),(function(){return null}));var i=So(document,(function(){t._onColorFlushed.fire(),i.dispose(),t.monitor&&(t.monitor.stopMonitoring(!0),t.monitor=null)}),!0)},t.prototype.onDidChangePosition=function(e,t){var n=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,i),this._onDidChange.fire({s:n,v:i})},t.prototype.layout=function(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();var e=this.model.color.hsva;this.paintSelection(e.s,e.v)},t.prototype.paint=function(){var e=this.model.color.hsva,t=new N_(new D_(e.h,1,1,1)),n=this.canvas.getContext("2d"),i=n.createLinearGradient(0,0,this.canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");var o=n.createLinearGradient(0,0,0,this.canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this.canvas.width,this.canvas.height),n.fillStyle=N_.Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=o,n.fill()},t.prototype.paintSelection=function(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"},t.prototype.onDidChangeColor=function(){this.monitor&&this.monitor.isMonitoring()||this.paint()},t}(Ie),uq=function(e){function t(t,n){var i=e.call(this)||this;return i.model=n,i._onDidChange=new Ye,i.onDidChange=i._onDidChange.event,i._onColorFlushed=new Ye,i.onColorFlushed=i._onColorFlushed.event,i.domNode=ar(t,oq(".strip")),i.overlay=ar(i.domNode,oq(".overlay")),i.slider=ar(i.domNode,oq(".slider")),i.slider.style.top="0px",i._register(Co(i.domNode,(function(e){return i.onMouseDown(e)}))),i.layout(),i}return iq(t,e),t.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var e=this.getValue(this.model.color);this.updateSliderPosition(e)},t.prototype.onMouseDown=function(e){var t=this,n=this._register(new Rg),i=Ho(this.domNode);ho(this.domNode,"grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),n.startMonitoring(Pg,(function(e){return t.onDidChangeTop(e.posy-i.top)}),(function(){return null}));var o=So(document,(function(){t._onColorFlushed.fire(),o.dispose(),n.stopMonitoring(!0),po(t.domNode,"grabbing")}),!0)},t.prototype.onDidChangeTop=function(e){var t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)},t.prototype.updateSliderPosition=function(e){this.slider.style.top=(1-e)*this.height+"px"},t}(Ie),lq=function(e){function t(t,n){var i=e.call(this,t,n)||this;return ho(i.domNode,"opacity-strip"),i._register(n.onDidChangeColor(i.onDidChangeColor,i)),i.onDidChangeColor(i.model.color),i}return iq(t,e),t.prototype.onDidChangeColor=function(e){var t=e.rgba,n=t.r,i=t.g,o=t.b,r=new N_(new x_(n,i,o,1)),s=new N_(new x_(n,i,o,0));this.overlay.style.background="linear-gradient(to bottom, "+r+" 0%, "+s+" 100%)"},t.prototype.getValue=function(e){return e.hsva.a},t}(uq),cq=function(e){function t(t,n){var i=e.call(this,t,n)||this;return ho(i.domNode,"hue-strip"),i}return iq(t,e),t.prototype.getValue=function(e){return 1-e.hsva.h/360},t}(uq),dq=function(e){function t(t,n,i,o){var r=e.call(this)||this;r.model=n,r.pixelRatio=i,r._register(On((function(){return r.layout()})));var s=oq(".colorpicker-widget");t.appendChild(s);var a=new rq(s,r.model,o);return r.body=new sq(s,r.model,r.pixelRatio),r._register(a),r._register(r.body),r}return iq(t,e),t.prototype.layout=function(){this.body.layout()},t}(sB);function hq(e,t,n){var i=Ll.ordered(e),o=i.map((function(i){return Promise.resolve(i.provideHover(e,t,n)).then((function(e){return e&&Aq(e)?e:void 0}),(function(e){pe(e)}))}));return Promise.all(o).then(Ti)}function Aq(e){var t="undefined"!==typeof e.range,n="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&n}wg("_executeHoverProvider",(function(e,t){return hq(e,t,je.None)}));var pq,fq=function(){function e(e,t,n,i,o){var r=this;this._computer=e,this._state=0,this._hoverTime=o,this._firstWaitScheduler=new Si((function(){return r._triggerAsyncComputation()}),0),this._secondWaitScheduler=new Si((function(){return r._triggerSyncComputation()}),0),this._loadingMessageScheduler=new Si((function(){return r._showLoadingMessage()}),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=i}return e.prototype.setHoverTime=function(e){this._hoverTime=e},e.prototype._firstWaitTime=function(){return this._hoverTime/2},e.prototype._secondWaitTime=function(){return this._hoverTime/2},e.prototype._loadingMessageTime=function(){return 3*this._hoverTime},e.prototype._triggerAsyncComputation=function(){var e=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=fi((function(t){return e._computer.computeAsync(t)})),this._asyncComputationPromise.then((function(t){e._asyncComputationPromiseDone=!0,e._withAsyncResult(t)}),(function(t){return e._onError(t)}))):this._asyncComputationPromiseDone=!0},e.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},e.prototype._showLoadingMessage=function(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())},e.prototype._withAsyncResult=function(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))},e.prototype._onComplete=function(e){this._completeCallback&&this._completeCallback(e)},e.prototype._onError=function(e){this._errorCallback?this._errorCallback(e):Ae(e)},e.prototype._onProgress=function(e){this._progressCallback&&this._progressCallback(e)},e.prototype.start=function(e){if(0===e)0===this._state&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}},e.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),1===this._state&&this._firstWaitScheduler.cancel(),2===this._state&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),3===this._state&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0},e}(),gq=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)}}(),mq=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},vq=function(e){function t(t,n){var i=e.call(this)||this;return i.allowEditorOverflow=!0,i._id=t,i._editor=n,i._isVisible=!1,i._stoleFocus=!1,i._containerDomNode=document.createElement("div"),i._containerDomNode.className="monaco-editor-hover hidden",i._containerDomNode.tabIndex=0,i._domNode=document.createElement("div"),i._domNode.className="monaco-editor-hover-content",i.scrollbar=new UB(i._domNode,{}),i._register(i.scrollbar),i._containerDomNode.appendChild(i.scrollbar.getDomNode()),i.onkeydown(i._containerDomNode,(function(e){e.equals(9)&&i.hide()})),i._register(i._editor.onDidChangeConfiguration((function(e){e.hasChanged(32)&&i.updateFont()}))),i._editor.onDidLayoutChange((function(e){return i.layout()})),i.layout(),i._editor.addContentWidget(i),i._showAtPosition=null,i._showAtRange=null,i._stoleFocus=!1,i}return gq(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,go(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this._id},t.prototype.getDomNode=function(){return this._containerDomNode},t.prototype.showAt=function(e,t,n){this._showAtPosition=e,this._showAtRange=t,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=n,n&&this._containerDomNode.focus()},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())},t.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null},t.prototype.dispose=function(){this._editor.removeContentWidget(this),e.prototype.dispose.call(this)},t.prototype.updateFont=function(){var e=this,t=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));t.forEach((function(t){return e._editor.applyFontInfo(t)}))},t.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},t.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},t.prototype.layout=function(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),t=this._editor.getOption(32),n=t.fontSize,i=t.lineHeight;this._domNode.style.fontSize=n+"px",this._domNode.style.lineHeight=i+"px",this._domNode.style.maxHeight=e+"px",this._domNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"},t}(sB),_q=function(e){function t(t,n){var i=e.call(this)||this;return i._id=t,i._editor=n,i._isVisible=!1,i._domNode=document.createElement("div"),i._domNode.className="monaco-editor-hover hidden",i._domNode.setAttribute("aria-hidden","true"),i._domNode.setAttribute("role","presentation"),i._showAtLineNumber=-1,i._register(i._editor.onDidChangeConfiguration((function(e){e.hasChanged(32)&&i.updateFont()}))),i._editor.addOverlayWidget(i),i}return gq(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,go(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this._id},t.prototype.getDomNode=function(){return this._domNode},t.prototype.showAt=function(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);var t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(this._showAtLineNumber),i=this._editor.getScrollTop(),o=this._editor.getOption(47),r=this._domNode.clientHeight,s=n-i-(r-o)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(s),0)+"px"},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.getPosition=function(){return null},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.updateFont=function(){var e=this,t=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),n=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));mq(t,n).forEach((function(t){return e._editor.applyFontInfo(t)}))},t.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()},t}(sB);(function(e){var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:g,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:g,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:g,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||w.defaults,this.rules=t.normal,this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,t.def=d(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d{1,9}\.)/,t.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,t.item=d(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=d(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",t._comment=/<!--(?!-?>)[\s\S]*?-->/,t.html=d(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t.paragraph=d(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag",t._tag).getRegex(),t.blockquote=d(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=m({},t),t.gfm=m({},t.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=d(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=m({},t.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=m({},t.normal,{html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),n.rules=t,n.lex=function(e,t){var i=new n(t);return i.lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,n){var i,o,r,s,a,u,l,c,d,h,A,p,f,g,m,y;e=e.replace(/^ +$/gm,"");while(e)if((r=this.rules.newline.exec(e))&&(e=e.substring(r[0].length),r[0].length>1&&this.tokens.push({type:"space"})),r=this.rules.code.exec(e))e=e.substring(r[0].length),r=r[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?r:_(r,"\n")});else if(r=this.rules.fences.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"code",lang:r[2]?r[2].trim():r[2],text:r[3]||""});else if(r=this.rules.heading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:r[1].length,text:r[2]});else if((r=this.rules.nptable.exec(e))&&(u={type:"table",header:v(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]},u.header.length===u.align.length)){for(e=e.substring(r[0].length),A=0;A<u.align.length;A++)/^ *-+: *$/.test(u.align[A])?u.align[A]="right":/^ *:-+: *$/.test(u.align[A])?u.align[A]="center":/^ *:-+ *$/.test(u.align[A])?u.align[A]="left":u.align[A]=null;for(A=0;A<u.cells.length;A++)u.cells[A]=v(u.cells[A],u.header.length);this.tokens.push(u)}else if(r=this.rules.hr.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"hr"});else if(r=this.rules.blockquote.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"blockquote_start"}),r=r[0].replace(/^ *> ?/gm,""),this.token(r,n),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),s=r[2],g=s.length>1,l={type:"list_start",ordered:g,start:g?+s:"",loose:!1},this.tokens.push(l),r=r[0].match(this.rules.item),c=[],i=!1,f=r.length,A=0;A<f;A++)u=r[A],h=u.length,u=u.replace(/^ *([*+-]|\d+\.) */,""),~u.indexOf("\n ")&&(h-=u.length,u=this.options.pedantic?u.replace(/^ {1,4}/gm,""):u.replace(new RegExp("^ {1,"+h+"}","gm"),"")),A!==f-1&&(a=t.bullet.exec(r[A+1])[0],(s.length>1?1===a.length:a.length>1||this.options.smartLists&&a!==s)&&(e=r.slice(A+1).join("\n")+e,A=f-1)),o=i||/\n\n(?!\s*$)/.test(u),A!==f-1&&(i="\n"===u.charAt(u.length-1),o||(o=i)),o&&(l.loose=!0),m=/^\[[ xX]\] /.test(u),y=void 0,m&&(y=" "!==u[1],u=u.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:m,checked:y,loose:o},c.push(d),this.tokens.push(d),this.token(u,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(f=c.length,A=0;A<f;A++)c[A].loose=!0;this.tokens.push({type:"list_end"})}else if(r=this.rules.html.exec(e))e=e.substring(r[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===r[1]||"script"===r[1]||"style"===r[1]),text:r[0]});else if(n&&(r=this.rules.def.exec(e)))e=e.substring(r[0].length),r[3]&&(r[3]=r[3].substring(1,r[3].length-1)),p=r[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[p]||(this.tokens.links[p]={href:r[2],title:r[3]});else if((r=this.rules.table.exec(e))&&(u={type:"table",header:v(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]},u.header.length===u.align.length)){for(e=e.substring(r[0].length),A=0;A<u.align.length;A++)/^ *-+: *$/.test(u.align[A])?u.align[A]="right":/^ *:-+: *$/.test(u.align[A])?u.align[A]="center":/^ *:-+ *$/.test(u.align[A])?u.align[A]="left":u.align[A]=null;for(A=0;A<u.cells.length;A++)u.cells[A]=v(u.cells[A].replace(/^ *\| *| *\| *$/g,""),u.header.length);this.tokens.push(u)}else if(r=this.rules.lheading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:"="===r[2]?1:2,text:r[1]});else if(n&&(r=this.rules.paragraph.exec(e)))e=e.substring(r[0].length),this.tokens.push({type:"paragraph",text:"\n"===r[1].charAt(r[1].length-1)?r[1].slice(0,-1):r[1]});else if(r=this.rules.text.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"text",text:r[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var i={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:g,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:g,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function o(e,t){if(this.options=t||w.defaults,this.links=e,this.rules=i.normal,this.renderer=this.options.renderer||new r,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}function r(e){this.options=e||w.defaults}function s(){}function a(e){this.tokens=[],this.token=null,this.options=e||w.defaults,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new u}function u(){this.seen={}}function l(e,t){if(t){if(l.escapeTest.test(e))return e.replace(l.escapeReplace,(function(e){return l.replacements[e]}))}else if(l.escapeTestNoEncode.test(e))return e.replace(l.escapeReplaceNoEncode,(function(e){return l.replacements[e]}));return e}function c(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function d(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=n.source||n,n=n.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function h(e,t,n){if(e){try{var i=decodeURIComponent(c(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(o){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!f.test(n)&&(n=A(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(o){return null}return n}function A(e,t){return p[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?p[" "+e]=e+"/":p[" "+e]=_(e,"/",!0)),e=p[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}i._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",i.em=d(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=d(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=d(i.tag).replace("comment",t._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,i._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=d(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=d(i.reflink).replace("label",i._label).getRegex(),i.normal=m({},i),i.pedantic=m({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=m({},i.normal,{escape:d(i.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),i.gfm.url=d(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=m({},i.gfm,{br:d(i.br).replace("{2,}","*").getRegex(),text:d(i.gfm.text).replace(/\{2,\}/g,"*").getRegex()}),o.rules=i,o.output=function(e,t,n){var i=new o(t,n);return i.output(e)},o.prototype.output=function(e){var t,n,i,r,s,a,u="";while(e)if(s=this.rules.escape.exec(e))e=e.substring(s[0].length),u+=l(s[1]);else if(s=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(s[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(s[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(s[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(s[0])&&(this.inRawBlock=!1),e=e.substring(s[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):l(s[0]):s[0];else if(s=this.rules.link.exec(e)){var c=y(s[2],"()");if(c>-1){var d=s[0].length-(s[2].length-c)-(s[3]||"").length;s[2]=s[2].substring(0,c),s[0]=s[0].substring(0,d).trim(),s[3]=""}e=e.substring(s[0].length),this.inLink=!0,i=s[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i),t?(i=t[1],r=t[3]):r=""):r=s[3]?s[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(s,{href:o.escapes(i),title:o.escapes(r)}),this.inLink=!1}else if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){if(e=e.substring(s[0].length),t=(s[2]||s[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){u+=s[0].charAt(0),e=s[0].substring(1)+e;continue}this.inLink=!0,u+=this.outputLink(s,t),this.inLink=!1}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length),u+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(e))e=e.substring(s[0].length),u+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(e))e=e.substring(s[0].length),u+=this.renderer.codespan(l(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),u+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),u+=this.renderer.del(this.output(s[1]));else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),"@"===s[2]?(n=l(this.mangle(s[1])),i="mailto:"+n):(n=l(s[1]),i=n),u+=this.renderer.link(i,null,n);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.text.exec(e))e=e.substring(s[0].length),this.inRawBlock?u+=this.renderer.text(s[0]):u+=this.renderer.text(l(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===s[2])n=l(s[0]),i="mailto:"+n;else{do{a=s[0],s[0]=this.rules._backpedal.exec(s[0])[0]}while(a!==s[0]);n=l(s[0]),i="www."===s[1]?"http://"+n:n}e=e.substring(s[0].length),u+=this.renderer.link(i,null,n)}return u},o.escapes=function(e){return e?e.replace(o.rules._escapes,"$1"):e},o.prototype.outputLink=function(e,t){var n=t.href,i=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,l(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1").replace(/'/g,"").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,o=0;o<i;o++)t=e.charCodeAt(o),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,i);null!=o&&o!==e&&(n=!0,e=o)}return i?'<pre><code class="'+this.options.langPrefix+l(i,!0)+'">'+(n?e:l(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:l(e,!0))+"</code></pre>"},r.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},r.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},r.prototype.list=function(e,t,n){var i=t?"ol":"ul",o=t&&1!==n?' start="'+n+'"':"";return"<"+i+o+">\n"+e+"</"+i+">\n"},r.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},r.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},r.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},r.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},r.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td",i=t.align?"<"+n+' align="'+t.align+'">':"<"+n+">";return i+e+"</"+n+">\n"},r.prototype.strong=function(e){return"<strong>"+e+"</strong>"},r.prototype.em=function(e){return"<em>"+e+"</em>"},r.prototype.codespan=function(e){return"<code>"+e+"</code>"},r.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},r.prototype.del=function(e){return"<del>"+e+"</del>"},r.prototype.link=function(e,t,n){if(e=h(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var i='<a href="'+l(e)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>",i},r.prototype.image=function(e,t,n){if(e=h(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var i='<img src="'+e+'" alt="'+n+'"';return t&&(i+=' title="'+t+'"'),i+=this.options.xhtml?"/>":">",i},r.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},a.parse=function(e,t){var n=new a(t);return n.parse(e)},a.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,m({},this.options,{renderer:new s})),this.tokens=e.reverse();var t="";while(this.next())t+=this.tok();return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){var e=this.token.text;while("text"===this.peek().type)e+="\n"+this.next().text;return this.inline.output(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,c(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,o="",r="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(o+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",i=0;i<t.length;i++)n+=this.renderer.tablecell(this.inline.output(t[i]),{header:!1,align:this.token.align[i]});r+=this.renderer.tablerow(n)}return this.renderer.table(o,r);case"blockquote_start":r="";while("blockquote_end"!==this.next().type)r+=this.tok();return this.renderer.blockquote(r);case"list_start":r="";var s=this.token.ordered,a=this.token.start;while("list_end"!==this.next().type)r+=this.tok();return this.renderer.list(r,s,a);case"list_item_start":r="";var u=this.token.loose,l=this.token.checked,d=this.token.task;this.token.task&&(r+=this.renderer.checkbox(l));while("list_item_end"!==this.next().type)r+=u||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(r,d,l);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var h='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(h);console.log(h)}},u.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},l.escapeTest=/[&<>"']/,l.escapeReplace=/[&<>"']/g,l.replacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},l.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,l.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var p={},f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(){}function m(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function v(e,t){var n=e.replace(/\|/g,(function(e,t,n){var i=!1,o=t;while(--o>=0&&"\\"===n[o])i=!i;return i?"|":" |"})),i=n.split(/ \|/),o=0;if(i.length>t)i.splice(t);else while(i.length<t)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(/\\\|/g,"|");return i}function _(e,t,n){if(0===e.length)return"";var i=0;while(i<e.length){var o=e.charAt(e.length-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.substr(0,e.length-i)}function y(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return-1}function w(e,t,i){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(i||"function"===typeof t){i||(i=t,t=null),t=m({},w.defaults,t||{});var o,r,s=t.highlight,u=0;try{o=n.lex(e,t)}catch(d){return i(d)}r=o.length;var c=function(e){if(e)return t.highlight=s,i(e);var n;try{n=a.parse(o,t)}catch(d){e=d}return t.highlight=s,e?i(e):i(null,n)};if(!s||s.length<3)return c();if(delete t.highlight,!r)return c();for(;u<o.length;u++)(function(e){"code"!==e.type?--r||c():s(e.text,e.lang,(function(t,n){return t?c(t):null==n||n===e.text?--r||c():(e.text=n,e.escaped=!0,void(--r||c()))}))})(o[u])}else try{return t&&(t=m({},w.defaults,t)),a.parse(n.lex(e,t),t)}catch(d){if(d.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||w.defaults).silent)return"<p>An error occurred:</p><pre>"+l(d.message+"",!0)+"</pre>";throw d}}g.exec=g,w.options=w.setOptions=function(e){return m(w.defaults,e),w},w.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new r,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},w.defaults=w.getDefaults(),w.Parser=a,w.parser=a.parse,w.Renderer=r,w.TextRenderer=s,w.Lexer=n,w.lexer=n.lex,w.InlineLexer=o,w.inlineLexer=o.output,w.Slugger=u,w.parse=w,pq=w}).call(void 0);pq.Parser,pq.parser;var yq,wq=pq.Renderer,bq=(pq.TextRenderer,pq.Lexer,pq.lexer,pq.InlineLexer,pq.inlineLexer,pq.parse);let Cq;(function(){function e(t,n,i){function o(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof yq&&yq;if(!a&&u)return yq(s,!0);if(r)return r(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};t[s][0].call(c.exports,(function(e){var n=t[s][1][e];return o(n||e)}),c,c.exports,e,t,n,i)}return n[s].exports}for(var r="function"==typeof yq&&yq,s=0;s<i.length;s++)o(i[s]);return o}return e})()({1:[function(e,t,n){var i=e("./toMap"),o=["background","base","cite","href","longdesc","src","usemap"];t.exports={uris:i(o)}},{"./toMap":10}],2:[function(e,t,n){var i={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null};t.exports=i},{}],3:[function(e,t,n){var i=e("./toMap"),o=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"];t.exports={voids:i(o)}},{"./toMap":10}],4:[function(e,t,n){e("he");var i=e("assignment"),o=e("./parser"),r=e("./sanitizer"),s=e("./defaults");function a(e,t,n){var a=[],u=!0===n?t:i({},s,t),l=r(a,u);return o(e,l),a.join("")}a.defaults=s,t.exports=a,Cq=a},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(e,t,n){t.exports=function(e){return"string"===typeof e?e.toLowerCase():e}},{}],6:[function(e,t,n){function i(e){var t,n,o=Array.prototype.slice.call(arguments,1);while(o.length)for(n in t=o.shift(),t)t.hasOwnProperty(n)&&("[object Object]"===Object.prototype.toString.call(e[n])?e[n]=i(e[n],t[n]):e[n]=t[n]);return e}t.exports=i},{}],7:[function(e,t,n){var i=e("he"),o=e("./lowercase"),r=(e("./attributes"),e("./elements")),s=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,a=/^<\s*\/\s*([\w:-]+)[^>]*>/,u=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,l=/^</,c=/^<\s*\//;function d(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}function h(e,t){var n,h=d(),A=e;while(e)p();function p(){n=!0,f();var t=e===A;A=e,t&&(e="")}function f(){"\x3c!--"===e.substr(0,4)?m():c.test(e)?g(a,y):l.test(e)&&g(s,_),v()}function g(t,i){var o=e.match(t);o&&(e=e.substring(o[0].length),o[0].replace(t,i),n=!1)}function m(){var i=e.indexOf("--\x3e");i>=0&&(t.comment&&t.comment(e.substring(4,i)),e=e.substring(i+3),n=!1)}function v(){if(n){var i,o=e.indexOf("<");o>=0?(i=e.substring(0,o),e=e.substring(o)):(i=e,e=""),t.chars&&t.chars(i)}}function _(e,n,s,a){var l={},c=o(n),d=r.voids[c]||!!a;function A(e,t,n,o,r){l[t]=void 0===n&&void 0===o&&void 0===r?void 0:i.decode(n||o||r||"")}s.replace(u,A),d||h.push(c),t.start&&t.start(c,l,d)}function y(e,n){var i,r=0,s=o(n);if(s)for(r=h.length-1;r>=0;r--)if(h[r]===s)break;if(r>=0){for(i=h.length-1;i>=r;i--)t.end&&t.end(h[i]);h.length=r}}y()}t.exports=h},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(e,t,n){var i=e("he"),o=e("./lowercase"),r=e("./attributes"),s=e("./elements");function a(e,t){var n,a=t||{};return f(),{start:l,end:c,chars:h};function u(t){e.push(t)}function l(e,t,s){var l=o(e);function c(e){var n,s=t[e],c=(a.allowedClasses||{})[l]||[],h=(a.allowedAttributes||{})[l]||[];h=h.concat((a.allowedAttributes||{})["*"]||[]);var A=o(e);function p(e){return c&&-1!==c.indexOf(e)}"class"===A&&-1===h.indexOf(A)?(s=s.split(" ").filter(p).join(" ").trim(),n=s.length):n=-1!==h.indexOf(A)&&(!0!==r.uris[A]||d(s)),n&&(u(" "),u(e),"string"===typeof s&&(u('="'),u(i.encode(s)),u('"')))}n.ignoring?A(l):-1!==(a.allowedTags||[]).indexOf(l)&&(!a.filter||a.filter({tag:l,attrs:t}))?(u("<"),u(l),Object.keys(t).forEach(c),u(s?"/>":">")):A(l)}function c(e){var t=o(e),i=-1!==(a.allowedTags||[]).indexOf(t);i&&!1===n.ignoring?(u("</"),u(t),u(">")):p(t)}function d(e){var t=e[0];if("#"===t||"/"===t)return!0;var n=e.indexOf(":");if(-1===n)return!0;var i=e.indexOf("?");if(-1!==i&&n>i)return!0;var o=e.indexOf("#");return-1!==o&&n>o||a.allowedSchemes.some(r);function r(t){return 0===e.indexOf(t+":")}}function h(e){!1===n.ignoring&&u(a.transformText?a.transformText(e):e)}function A(e){s.voids[e]||(!1===n.ignoring?n={ignoring:e,depth:1}:n.ignoring===e&&n.depth++)}function p(e){n.ignoring===e&&--n.depth<=0&&f()}function f(){n={ignoring:!1,depth:0}}}t.exports=a},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(e,t,n){var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},o={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},r=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,s=/[&<>"']/g;function a(e){return i[e]}function u(e){return o[e]}function l(e){return null==e?"":String(e).replace(s,a)}function c(e){return null==e?"":String(e).replace(r,u)}l.options=c.options={},t.exports={encode:l,escape:l,decode:c,unescape:c,version:"1.0.0-browser"}},{}],10:[function(e,t,n){function i(e){return e.reduce(o,{})}function o(e,t){return e[t]=!0,e}t.exports=i},{}]},{},[4]);var Sq=Cq;function Bq(e,t){void 0===t&&(t={});var n,i=sV(t),o=function(t){var n;try{n=br(decodeURIComponent(t))}catch(i){}return n?(n=lu(n,(function(t){return e.uris&&e.uris[t]?Et.revive(e.uris[t]):void 0})),encodeURIComponent(JSON.stringify(n))):t},r=function(t,n){var i=e.uris&&e.uris[t];if(!i)return t;var r=Et.revive(i);return Et.parse(t).toString()===r.toString()?t:(n&&(r=yr(r)),r.query&&(r=r.with({query:o(r.query)})),r.toString(!0))},s=new Promise((function(e){return n=e})),a=new wq;a.image=function(e,t,n){var i,o=[],s=[];return e&&(i=yG(e),e=i.href,o=i.dimensions,e=r(e,!0),s.push('src="'+e+'"')),n&&s.push('alt="'+n+'"'),t&&s.push('title="'+t+'"'),o.length&&(s=s.concat(o)),"<img "+s.join(" ")+">"},a.link=function(t,n,i){return t===i&&(i=_G(i)),t=r(t,!1),n=_G(n),t=_G(t),!t||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?i:(t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),'<a href="#" data-href="'+t+'" title="'+(n||t)+'">'+i+"</a>")},a.paragraph=function(e){return"<p>"+e+"</p>"},t.codeBlockRenderer&&(a.code=function(e,n){var o=t.codeBlockRenderer(n,e),r=iz.nextId(),a=Promise.all([o,s]).then((function(e){var t=e[0],n=i.querySelector('div[data-code="'+r+'"]');n&&(n.innerHTML=t)})).catch((function(e){}));return t.codeBlockRenderCallback&&a.then(t.codeBlockRenderCallback),'<div class="code" data-code="'+r+'">'+Lr(e)+"</div>"});var u=t.actionHandler;u&&u.disposeables.add(wo(i,"click",(function(e){var t=e.target;if("A"===t.tagName||(t=t.parentElement,t&&"A"===t.tagName))try{var n=t.dataset["href"];n&&u.callback(n,e)}catch(i){Ae(i)}finally{e.preventDefault()}})));var l={sanitize:!0,renderer:a},c=[Bi.http,Bi.https,Bi.mailto,Bi.data,Bi.file,Bi.vscodeRemote,Bi.vscodeRemoteResource];e.isTrusted&&c.push(Bi.command);var d=bq(e.value,l);return i.innerHTML=Sq(d,{allowedSchemes:c,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),n(),i}var Eq=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)}}(),xq=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},Lq=function(e,t){return function(n,i){t(n,i,e)}},Dq=function(e){function t(t,n,i){void 0===i&&(i=Ya);var o=e.call(this)||this;return o._editor=t,o._modeService=n,o._openerService=i,o._onDidRenderCodeBlock=o._register(new Ye),o.onDidRenderCodeBlock=o._onDidRenderCodeBlock.event,o}return Eq(t,e),t.prototype.getOptions=function(e){var t=this;return{codeBlockRenderer:function(e,n){var i=null;if(e)i=t._modeService.getModeIdForLanguageName(e);else{var o=t._editor.getModel();o&&(i=o.getLanguageIdentifier().language)}return t._modeService.triggerMode(i||""),Promise.resolve(!0).then((function(e){var t=zl.getPromise(i||"");return t?t.then((function(e){return gx(n,e)})):gx(n,void 0)})).then((function(e){return'<span style="font-family: '+t._editor.getOption(32).fontFamily+'">'+e+"</span>"}))},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){t._openerService.open(e,{fromUserGesture:!0}).catch(Ae)},disposeables:e}}},t.prototype.render=function(e){var t,n=new ke;return t=e?Bq(e,this.getOptions(n)):document.createElement("span"),{element:t,dispose:function(){return n.dispose()}}},t=xq([Lq(1,ED),Lq(2,Nn(qa))],t),t}(Ie),Nq=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)}}(),kq=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},Iq=dr,Fq=function(){function e(e,t,n){this.range=e,this.color=t,this.provider=n}return e}(),Mq=function(){function e(e,t){this.range=e,this.marker=t}return e}(),Oq=function(){function e(e,t){this._markerDecorationsService=t,this._editor=e,this._result=[]}return e.prototype.setRange=function(e){this._range=e,this._result=[]},e.prototype.clearResult=function(){this._result=[]},e.prototype.computeAsync=function(e){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);var t=this._editor.getModel();return Ll.has(t)?hq(t,new mn(this._range.startLineNumber,this._range.startColumn),e):Promise.resolve([])},e.prototype.computeSync=function(){var e=this;if(!this._editor.hasModel()||!this._range)return[];var t=this._editor.getModel(),n=this._range.startLineNumber;if(n>this._editor.getModel().getLineCount())return[];var i=XH.get(this._editor),o=t.getLineMaxColumn(n),r=this._editor.getLineDecorations(n),s=!1,a=this._range,u=r.map((function(r){var u=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:o;if(u>a.startColumn||a.endColumn>l)return null;var c=new vn(a.startLineNumber,u,a.startLineNumber,l),d=e._markerDecorationsService.getMarker(t,r);if(d)return new Mq(c,d);var h=i.getColorData(r.range.getStartPosition());if(!s&&h){s=!0;var A=h.colorInfo,p=A.color,f=A.range;return new Fq(f,p,h.provider)}if(fG(r.options.hoverMessage))return null;var g=r.options.hoverMessage?Ji(r.options.hoverMessage):[];return{contents:g,range:c}}));return Ti(u)},e.prototype.onResult=function(e,t){this._result=t?e.concat(this._result.sort((function(e,t){return e instanceof Fq?-1:t instanceof Fq?1:0}))):this._result.concat(e)},e.prototype.getResult=function(){return this._result.slice(0)},e.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},e.prototype._getLoadingMessage=function(){return{range:this._range,contents:[(new pG).appendText(r("modesContentHover.loading","Loading..."))]}},e}(),Tq=function(e){function t(n,i,o,r,s,a){void 0===a&&(a=Ya);var u=e.call(this,t.ID,n)||this;return u._themeService=o,u._keybindingService=r,u._modeService=s,u._openerService=a,u.renderDisposable=u._register(new Fe),u._messages=[],u._lastRange=null,u._computer=new Oq(u._editor,i),u._highlightDecorations=[],u._isChangingDecorations=!1,u._shouldFocus=!1,u._colorPicker=null,u._hoverOperation=new fq(u._computer,(function(e){return u._withResult(e,!0)}),null,(function(e){return u._withResult(e,!1)}),u._editor.getOption(42).delay),u._register(wo(u.getDomNode(),tr.FOCUS,(function(){u._colorPicker&&ho(u.getDomNode(),"colorpicker-hover")}))),u._register(wo(u.getDomNode(),tr.BLUR,(function(){po(u.getDomNode(),"colorpicker-hover")}))),u._register(n.onDidChangeConfiguration((function(e){u._hoverOperation.setHoverTime(u._editor.getOption(42).delay)}))),u._register(zl.onDidChange((function(e){u.isVisible&&u._lastRange&&u._messages.length>0&&(u._domNode.textContent="",u._renderMessages(u._lastRange,u._messages))}))),u}return Nq(t,e),t.prototype.dispose=function(){this._hoverOperation.cancel(),e.prototype.dispose.call(this)},t.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},t.prototype.startShowingAt=function(e,t,n){if(!this._lastRange||!this._lastRange.equalsRange(e)){if(this._hoverOperation.cancel(),this.isVisible)if(this._showAtPosition&&this._showAtPosition.lineNumber===e.startLineNumber){for(var i=[],o=0,r=this._messages.length;o<r;o++){var s=this._messages[o],a=s.range;a&&a.startColumn<=e.startColumn&&a.endColumn>=e.endColumn&&i.push(s)}if(i.length>0){if(Pq(i,this._messages))return;this._renderMessages(e,i)}else this.hide()}else this.hide();this._lastRange=e,this._computer.setRange(e),this._shouldFocus=n,this._hoverOperation.start(t)}},t.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),e.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},t.prototype.isColorPickerVisible=function(){return!!this._colorPicker},t.prototype._withResult=function(e,t){this._messages=e,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):t&&this.hide()},t.prototype._renderMessages=function(e,n){var i=this;this.renderDisposable.dispose(),this._colorPicker=null;var o=1073741824,r=n[0].range?vn.lift(n[0].range):null,s=document.createDocumentFragment(),a=!0,u=!1,l=new ke,c=[];if(n.forEach((function(e){if(e.range)if(o=Math.min(o,e.range.startColumn),r=r?vn.plusRange(r,e.range):vn.lift(e.range),e instanceof Fq){u=!0;var t=e.color,n=t.red,d=t.green,h=t.blue,A=t.alpha,p=new x_(Math.round(255*n),Math.round(255*d),Math.round(255*h),A),f=new N_(p);if(!i._editor.hasModel())return;var g=i._editor.getModel(),m=new vn(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn),v={range:e.range,color:e.color},_=new nq(f,[],0),y=new dq(s,_,i._editor.getOption(101),i._themeService);zH(g,v,e.provider,je.None).then((function(t){if(_.colorPresentations=t||[],i._editor.hasModel()){var n=i._editor.getModel().getValueInRange(e.range);_.guessColorPresentation(f,n);var o=function(){var e,t;_.presentation.textEdit?(e=[_.presentation.textEdit],t=new vn(_.presentation.textEdit.range.startLineNumber,_.presentation.textEdit.range.startColumn,_.presentation.textEdit.range.endLineNumber,_.presentation.textEdit.range.endColumn),t=t.setEndPosition(t.endLineNumber,t.startColumn+_.presentation.textEdit.text.length)):(e=[{identifier:null,range:m,text:_.presentation.label,forceMoveMarkers:!1}],t=m.setEndPosition(m.endLineNumber,m.startColumn+_.presentation.label.length)),i._editor.pushUndoStop(),i._editor.executeEdits("colorpicker",e),_.presentation.additionalTextEdits&&(e=kq(_.presentation.additionalTextEdits),i._editor.executeEdits("colorpicker",e),i.hide()),i._editor.pushUndoStop(),m=t},r=function(t){return zH(g,{range:m,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},e.provider,je.None).then((function(e){_.colorPresentations=e||[]}))},a=_.onColorFlushed((function(e){r(e).then(o)})),u=_.onDidChangeColor(r);i._colorPicker=y,i.showAt(m.getStartPosition(),m,i._shouldFocus),i.updateContents(s),i._colorPicker.layout(),i.renderDisposable.value=Le(a,u,y,l)}}))}else e instanceof Mq?(c.push(e),a=!1):e.contents.filter((function(e){return!fG(e)})).forEach((function(e){var t=Iq("div.hover-row.markdown-hover"),n=ar(t,Iq("div.hover-contents")),o=l.add(new Dq(i._editor,i._modeService,i._openerService));l.add(o.onDidRenderCodeBlock((function(){n.className="hover-contents code-hover-contents",i.onContentsChange()})));var r=l.add(o.render(e));n.appendChild(r.element),s.appendChild(t),a=!1}))})),c.length){c.forEach((function(e){return s.appendChild(i.renderMarkerHover(e))}));var d=1===c.length?c[0]:c.sort((function(e,t){return JO.compare(e.marker.severity,t.marker.severity)}))[0];s.appendChild(this.renderMarkerStatusbar(d))}u||a||(this.showAt(new mn(e.startLineNumber,o),r,this._shouldFocus),this.updateContents(s)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,r?[{range:r,options:t._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},t.prototype.renderMarkerHover=function(e){var t=this,n=Iq("div.hover-row"),i=ar(n,Iq("div.marker.hover-contents")),o=e.marker,r=o.source,s=o.message,a=o.code,u=o.relatedInformation;this._editor.applyFontInfo(i);var l=ar(i,Iq("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=s,r||a){var c=ar(i,Iq("span"));c.style.opacity="0.6",c.style.paddingLeft="6px",c.innerText=r&&a?r+"("+a+")":r||"("+a+")"}if(Ri(u))for(var d=function(e,n,o,r){var s=ar(i,Iq("div"));s.style.marginTop="8px";var a=ar(s,Iq("a"));a.innerText=aa(n)+"("+o+", "+r+"): ",a.style.cursor="pointer",a.onclick=function(e){e.stopPropagation(),e.preventDefault(),t._openerService&&t._openerService.open(n.with({fragment:o+","+r}),{fromUserGesture:!0}).catch(Ae)};var u=ar(s,Iq("span"));u.innerText=e,h._editor.applyFontInfo(u)},h=this,A=0,p=u;A<p.length;A++){var f=p[A],g=f.message,m=f.resource,v=f.startLineNumber,_=f.startColumn;d(g,m,v,_)}return n},t.prototype.renderMarkerStatusbar=function(e){var t=this,n=Iq("div.hover-row.status-bar"),i=new ke,o=ar(n,Iq("div.actions"));e.marker.severity!==JO.Error&&e.marker.severity!==JO.Warning&&e.marker.severity!==JO.Info||i.add(this.renderAction(o,{label:r("peek problem","Peek Problem"),commandId:XG.ID,run:function(){t.hide(),qG.get(t._editor).show(e.marker),t._editor.focus()}}));var s=ar(o,Iq("div"));s.style.opacity="0",s.style.transition="opacity 0.2s",setTimeout((function(){return s.style.opacity="1"}),200),s.textContent=r("checkingForQuickFixes","Checking for quick fixes..."),i.add(De((function(){return s.remove()})));var a=this.getCodeActions(e.marker);return i.add(De((function(){return a.cancel()}))),a.then((function(e){if(s.style.transition="",s.style.opacity="1",!e.validActions.length)return e.dispose(),void(s.textContent=r("noQuickFixes","No quick fixes available"));s.remove();var n=!1;i.add(De((function(){n||e.dispose()}))),i.add(t.renderAction(o,{label:r("quick fixes","Quick Fix..."),commandId:yH.Id,run:function(i){n=!0;var o=gH.get(t._editor),r=Ho(i);o.showCodeActions(e,{x:r.left+6,y:r.top+r.height+6})}}))})),this.renderDisposable.value=i,n},t.prototype.getCodeActions=function(e){var t=this;return fi((function(n){return DU(t._editor.getModel(),new vn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),{type:"manual",filter:{include:fU.QuickFix}},n)}))},t.prototype.renderAction=function(e,t){var n=ar(e,Iq("div.action-container")),i=ar(n,Iq("a.action"));t.iconClass&&ar(i,Iq("span.icon."+t.iconClass));var o=ar(i,Iq("span"));o.textContent=t.label;var r=this._keybindingService.lookupKeybinding(t.commandId);return r&&(o.title=t.label+" ("+r.getLabel()+")"),vo(n,tr.CLICK,(function(e){e.stopPropagation(),e.preventDefault(),t.run(n)}))},t.ID="editor.contrib.modesContentHoverWidget",t._DECORATION_OPTIONS=z_.register({className:"hoverHighlight"}),t}(vq);function Pq(e,t){if(!e&&t||e&&!t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var i=e[n],o=t[n];if(i instanceof Mq&&o instanceof Mq)return ZO.makeKey(i.marker)===ZO.makeKey(o.marker);if(i instanceof Fq||o instanceof Fq)return!1;if(i instanceof Mq||o instanceof Mq)return!1;if(!mG(i.contents,o.contents))return!1}return!0}var Rq=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)}}(),Uq=function(){function e(e){this._editor=e,this._lineNumber=-1,this._result=[]}return e.prototype.setLineNumber=function(e){this._lineNumber=e,this._result=[]},e.prototype.clearResult=function(){this._result=[]},e.prototype.computeSync=function(){var e=function(e){return{value:e}},t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.options.glyphMarginClassName){var s=r.options.glyphMarginHoverMessage;s&&!fG(s)&&n.push.apply(n,Ji(s).map(e))}}return n},e.prototype.onResult=function(e,t){this._result=this._result.concat(e)},e.prototype.getResult=function(){return this._result},e.prototype.getResultWithLoadingMessage=function(){return this.getResult()},e}(),Hq=function(e){function t(n,i,o){void 0===o&&(o=Ya);var r=e.call(this,t.ID,n)||this;return r._renderDisposeables=r._register(new ke),r._messages=[],r._lastLineNumber=-1,r._markdownRenderer=r._register(new Dq(r._editor,i,o)),r._computer=new Uq(r._editor),r._hoverOperation=new fq(r._computer,(function(e){return r._withResult(e)}),void 0,(function(e){return r._withResult(e)}),300),r}return Rq(t,e),t.prototype.dispose=function(){this._hoverOperation.cancel(),e.prototype.dispose.call(this)},t.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))},t.prototype.startShowingAt=function(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0))},t.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),e.prototype.hide.call(this)},t.prototype._withResult=function(e){this._messages=e,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},t.prototype._renderMessages=function(e,t){this._renderDisposeables.clear();for(var n=document.createDocumentFragment(),i=0,o=t;i<o.length;i++){var r=o[i],s=this._markdownRenderer.render(r.value);this._renderDisposeables.add(s),n.appendChild(dr("div.hover-row",void 0,s.element))}this.updateContents(n),this.showAt(e)},t.ID="editor.contrib.modesGlyphHoverWidget",t}(_q),Qq=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)}}(),Vq=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},Wq=function(e,t){return function(n,i){t(n,i,e)}},Kq=function(){function e(e,t,n,i,o,r){var s=this;this._editor=e,this._openerService=t,this._modeService=n,this._markerDecorationsService=i,this._keybindingService=o,this._themeService=r,this._toUnhook=new ke,this._contentWidget=new Fe,this._glyphWidget=new Fe,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration((function(e){e.hasChanged(42)&&(s._hideWidgets(),s._unhookEvents(),s._hookEvents())}))}return Object.defineProperty(e.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),e.get=function(t){return t.getContribution(e.ID)},e.prototype._hookEvents=function(){var e=this,t=function(){return e._hideWidgets()},n=this._editor.getOption(42);this._isHoverEnabled=n.enabled,this._isHoverSticky=n.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown((function(t){return e._onEditorMouseDown(t)}))),this._toUnhook.add(this._editor.onMouseUp((function(t){return e._onEditorMouseUp(t)}))),this._toUnhook.add(this._editor.onMouseMove((function(t){return e._onEditorMouseMove(t)}))),this._toUnhook.add(this._editor.onKeyDown((function(t){return e._onKeyDown(t)}))),this._toUnhook.add(this._editor.onDidChangeModelDecorations((function(){return e._onModelDecorationsChanged()})))):this._toUnhook.add(this._editor.onMouseMove(t)),this._toUnhook.add(this._editor.onMouseLeave(t)),this._toUnhook.add(this._editor.onDidChangeModel(t)),this._toUnhook.add(this._editor.onDidScrollChange((function(t){return e._onEditorScrollChanged(t)})))},e.prototype._unhookEvents=function(){this._toUnhook.clear()},e.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},e.prototype._onEditorScrollChanged=function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()},e.prototype._onEditorMouseDown=function(e){this._isMouseDown=!0;var t=e.target.type;9!==t||e.target.detail!==Tq.ID?12===t&&e.target.detail===Hq.ID||(12!==t&&e.target.detail!==Hq.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0},e.prototype._onEditorMouseUp=function(e){this._isMouseDown=!1},e.prototype._onEditorMouseMove=function(e){var t=e.target.type;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())&&(!this._isHoverSticky||9!==t||e.target.detail!==Tq.ID)&&(!this._isHoverSticky||12!==t||e.target.detail!==Hq.ID)){if(7===t){var n=this._editor.getOption(32).typicalHalfwidthCharacterWidth/2,i=e.target.detail;i&&!i.isAfterLines&&"number"===typeof i.horizontalDistanceToText&&i.horizontalDistanceToText<n&&(t=6)}6===t?(this.glyphWidget.hide(),this._isHoverEnabled&&e.target.range&&this.contentWidget.startShowingAt(e.target.range,0,!1)):2===t?(this.contentWidget.hide(),this._isHoverEnabled&&e.target.position&&this.glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets()}},e.prototype._onKeyDown=function(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()},e.prototype._hideWidgets=function(){!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible()||(this._glyphWidget.value.hide(),this._contentWidget.value.hide())},e.prototype._createHoverWidgets=function(){this._contentWidget.value=new Tq(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget.value=new Hq(this._editor,this._modeService,this._openerService)},e.prototype.showContentHover=function(e,t,n){this.contentWidget.startShowingAt(e,t,n)},e.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},e.ID="editor.contrib.hover",e=Vq([Wq(1,qa),Wq(2,ED),Wq(3,AT),Wq(4,pD),Wq(5,um)],e),e}(),zq=function(e){function t(){return e.call(this,{id:"editor.action.showHover",label:r({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2087),weight:100}})||this}return Qq(t,e),t.prototype.run=function(e,t){if(t.hasModel()){var n=Kq.get(t);if(n){var i=t.getPosition(),o=new vn(i.lineNumber,i.column,i.lineNumber,i.column),r=2===t.getOption(2);n.showContentHover(o,1,r)}}},t}(_g),jq=function(e){function t(){return e.call(this,{id:"editor.action.showDefinitionPreviewHover",label:r({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})||this}return Qq(t,e),t.prototype.run=function(e,t){var n=Kq.get(t);if(n){var i=t.getPosition();if(i){var o=new vn(i.lineNumber,i.column,i.lineNumber,i.column),r=NG.get(t),s=r.startFindDefinitionFromCursor(i);s?s.then((function(){n.showContentHover(o,1,!0)})):n.showContentHover(o,1,!0)}}},t}(_g);Bg(Kq.ID,Kq),Cg(zq),Cg(jq),gm((function(e,t){var n=e.getColor(Yw);n&&t.addRule(".monaco-editor .hoverHighlight { background-color: "+n+"; }");var i=e.getColor(Xw);i&&t.addRule(".monaco-editor .monaco-editor-hover { background-color: "+i+"; }");var o=e.getColor(Zw);o&&(t.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+o+"; }"),t.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+o.transparent(.5)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+o.transparent(.5)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+o.transparent(.5)+"; }"));var r=e.getColor(Xy);r&&t.addRule(".monaco-editor .monaco-editor-hover a { color: "+r+"; }");var s=e.getColor(Jw);s&&t.addRule(".monaco-editor .monaco-editor-hover { color: "+s+"; }");var a=e.getColor($w);a&&t.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+a+"; }");var u=e.getColor(Jy);u&&t.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+u+"; }")}));var Gq=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 yn(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new yn(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)},e}(),qq=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)}}(),Yq=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},Xq=function(e,t){return function(n,i){t(n,i,e)}},Jq=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.run=function(t,n){var i=this;this.currentRequest&&this.currentRequest.cancel();var o=this.editor.getSelection(),r=this.editor.getModel();if(r&&o){var s=o;if(s.startLineNumber===s.endLineNumber){var a=new wL(this.editor,5),u=r.uri;return this.editorWorkerService.canNavigateValueSet(u)?(this.currentRequest=fi((function(e){return i.editorWorkerService.navigateValueSet(u,s,n)})),this.currentRequest.then((function(n){if(n&&n.range&&n.value&&a.validate(i.editor)){var o=vn.lift(n.range),r=n.range,u=n.value.length-(s.endColumn-s.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+n.value.length},u>1&&(s=new yn(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn+u-1));var l=new Gq(o,s,n.value);i.editor.pushUndoStop(),i.editor.executeCommand(t,l),i.editor.pushUndoStop(),i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[{range:r,options:e.DECORATION}]),i.decorationRemover&&i.decorationRemover.cancel(),i.decorationRemover=vi(350),i.decorationRemover.then((function(){return i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[])})).catch(Ae)}})).catch(Ae)):Promise.resolve(void 0)}}},e.ID="editor.contrib.inPlaceReplaceController",e.DECORATION=z_.register({className:"valueSetReplacement"}),e=Yq([Xq(1,$l)],e),e}(),Zq=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.up",label:r("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:3154,weight:100}})||this}return qq(t,e),t.prototype.run=function(e,t){var n=Jq.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)},t}(_g),$q=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.down",label:r("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:3156,weight:100}})||this}return qq(t,e),t.prototype.run=function(e,t){var n=Jq.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)},t}(_g);Bg(Jq.ID,Jq),Cg(Zq),Cg($q),gm((function(e,t){var n=e.getColor(mC);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+n+"; }")}));var eY=function(){function e(e,t){this._selection=e,this._cursors=t,this._selectionId=null}return e.prototype.getEditOperations=function(e,t){for(var n=tY(e,this._cursors),i=0,o=n.length;i<o;i++){var r=n[i];t.addEditOperation(r.range,r.text)}this._selectionId=t.trackSelection(this._selection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},e}();function tY(e,t){t.sort((function(e,t){return e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber}));for(var n=t.length-2;n>=0;n--)t[n].lineNumber===t[n+1].lineNumber&&t.splice(n,1);for(var i=[],o=0,r=0,s=t.length,a=1,u=e.getLineCount();a<=u;a++){var l=e.getLineContent(a),c=l.length+1,d=0;if(!(r<s&&t[r].lineNumber===a&&(d=t[r].column,r++,d===c))&&0!==l.length){var h=Qr(l),A=0;if(-1===h)A=1;else{if(h===l.length-1)continue;A=h+2}A=Math.max(d,A),i[o++]=op.delete(new vn(a,A,a,c))}}return i}var nY=function(){function e(e,t){this._selection=e,this._isCopyingDown=t,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}return e.prototype.getEditOperations=function(e,t){var n=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._endLineNumberDelta=1,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));for(var i=[],o=n.startLineNumber;o<=n.endLineNumber;o++)i.push(e.getLineContent(o));var r=i.join("\n");""===r&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._isCopyingDown?t.addEditOperation(new vn(n.startLineNumber,1,n.startLineNumber,1),r+"\n"):t.addEditOperation(new vn(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+r),this._selectionId=t.trackSelection(n),this._selectionDirection=this._selection.getDirection()},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){var i=n.startLineNumber,o=n.startColumn,r=n.endLineNumber,s=n.endColumn;0!==this._startLineNumberDelta&&(i+=this._startLineNumberDelta,o=1),0!==this._endLineNumberDelta&&(r+=this._endLineNumberDelta,s=1),n=yn.createWithDirection(i,o,r,s,this._selectionDirection)}return n},e}();function iY(e,t){for(var n=0,i=0;i<e.length;i++)"\t"===e.charAt(i)?n+=t:n++;return n}function oY(e,t,n){e=e<0?0:e;var i="";if(!n){var o=Math.floor(e/t);e%=t;for(var r=0;r<o;r++)i+="\t"}for(r=0;r<e;r++)i+=" ";return i}var rY=function(){function e(e,t,n){this._selection=e,this._isMovingDown=t,this._autoIndent=n,this._selectionId=null,this._moveEndLineSelectionShrink=!1}return e.prototype.getEditOperations=function(e,t){var n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)this._selectionId=t.trackSelection(this._selection);else if(this._isMovingDown||1!==this._selection.startLineNumber){this._moveEndPositionDown=!1;var i=this._selection;i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));var o=e.getOptions(),r=o.tabSize,s=o.indentSize,a=o.insertSpaces,u=this.buildIndentConverter(r,s,a),l={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:null};if(i.startLineNumber===i.endLineNumber&&1===e.getLineMaxColumn(i.startLineNumber)){var c=i.startLineNumber,d=this._isMovingDown?c+1:c-1;1===e.getLineMaxColumn(d)?t.addEditOperation(new vn(1,1,1,1),null):(t.addEditOperation(new vn(c,1,c,1),e.getLineContent(d)),t.addEditOperation(new vn(d,1,d,e.getLineMaxColumn(d)),null)),i=new yn(d,1,d,1)}else{var h,A=void 0;if(this._isMovingDown){h=i.endLineNumber+1,A=e.getLineContent(h),t.addEditOperation(new vn(h-1,e.getLineMaxColumn(h-1),h,e.getLineMaxColumn(h)),null);var p=A;if(this.shouldAutoIndent(e,i)){var f=this.matchEnterRule(e,u,r,h,i.startLineNumber-1);if(null!==f){var g=Hr(e.getLineContent(h)),m=f+iY(g,r),v=oY(m,r,a);p=v+this.trimLeft(A)}else{l.getLineContent=function(t){return t===i.startLineNumber?e.getLineContent(h):e.getLineContent(t)};var _=Pc.getGoodIndentForLine(this._autoIndent,l,e.getLanguageIdAtPosition(h,1),i.startLineNumber,u);if(null!==_){g=Hr(e.getLineContent(h)),m=iY(_,r);var y=iY(g,r);if(m!==y){v=oY(m,r,a);p=v+this.trimLeft(A)}}}t.addEditOperation(new vn(i.startLineNumber,1,i.startLineNumber,1),p+"\n");var w=this.matchEnterRule(e,u,r,i.startLineNumber,i.startLineNumber,p);if(null!==w)0!==w&&this.getIndentEditsOfMovingBlock(e,t,i,r,a,w);else{l.getLineContent=function(t){return t===i.startLineNumber?p:t>=i.startLineNumber+1&&t<=i.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)};var b=Pc.getGoodIndentForLine(this._autoIndent,l,e.getLanguageIdAtPosition(h,1),i.startLineNumber+1,u);if(null!==b){g=Hr(e.getLineContent(i.startLineNumber)),m=iY(b,r),y=iY(g,r);if(m!==y){var C=m-y;this.getIndentEditsOfMovingBlock(e,t,i,r,a,C)}}}}else t.addEditOperation(new vn(i.startLineNumber,1,i.startLineNumber,1),p+"\n")}else if(h=i.startLineNumber-1,A=e.getLineContent(h),t.addEditOperation(new vn(h,1,h+1,1),null),t.addEditOperation(new vn(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+A),this.shouldAutoIndent(e,i)){l.getLineContent=function(t){return t===h?e.getLineContent(i.startLineNumber):e.getLineContent(t)};w=this.matchEnterRule(e,u,r,i.startLineNumber,i.startLineNumber-2);if(null!==w)0!==w&&this.getIndentEditsOfMovingBlock(e,t,i,r,a,w);else{var S=Pc.getGoodIndentForLine(this._autoIndent,l,e.getLanguageIdAtPosition(i.startLineNumber,1),h,u);if(null!==S){var B=Hr(e.getLineContent(i.startLineNumber));m=iY(S,r),y=iY(B,r);if(m!==y){C=m-y;this.getIndentEditsOfMovingBlock(e,t,i,r,a,C)}}}}}this._selectionId=t.trackSelection(i)}else this._selectionId=t.trackSelection(this._selection)},e.prototype.buildIndentConverter=function(e,t,n){return{shiftIndent:function(i){return yS.shiftIndent(i,i.length+1,e,t,n)},unshiftIndent:function(i){return yS.unshiftIndent(i,i.length+1,e,t,n)}}},e.prototype.matchEnterRule=function(e,t,n,i,o,r){var s=o;while(s>=1){var a=void 0;a=s===o&&void 0!==r?r:e.getLineContent(s);var u=Qr(a);if(u>=0)break;s--}if(s<1||i>e.getLineCount())return null;var l=e.getLineMaxColumn(s),c=Pc.getEnterAction(this._autoIndent,e,new vn(s,l,s,l));if(c){var d=c.indentation;c.indentAction===lc.None||c.indentAction===lc.Indent?d=c.indentation+c.appendText:c.indentAction===lc.IndentOutdent?d=c.indentation:c.indentAction===lc.Outdent&&(d=t.unshiftIndent(c.indentation)+c.appendText);var h=e.getLineContent(i);if(this.trimLeft(h).indexOf(this.trimLeft(d))>=0){var A=Hr(e.getLineContent(i)),p=Hr(d),f=Pc.getIndentMetadata(e,i);null!==f&&2&f&&(p=t.unshiftIndent(p));var g=iY(p,n),m=iY(A,n);return g-m}}return null},e.prototype.trimLeft=function(e){return e.replace(/^\s+/,"")},e.prototype.shouldAutoIndent=function(e,t){if(this._autoIndent<4)return!1;if(!e.isCheapToTokenize(t.startLineNumber))return!1;var n=e.getLanguageIdAtPosition(t.startLineNumber,1),i=e.getLanguageIdAtPosition(t.endLineNumber,1);return n===i&&null!==Pc.getIndentRulesSupport(n)},e.prototype.getIndentEditsOfMovingBlock=function(e,t,n,i,o,r){for(var s=n.startLineNumber;s<=n.endLineNumber;s++){var a=e.getLineContent(s),u=Hr(a),l=iY(u,i),c=l+r,d=oY(c,i,o);d!==u&&(t.addEditOperation(new vn(s,1,s,u.length+1),d),s===n.endLineNumber&&n.endColumn<=u.length+1&&""===d&&(this._moveEndLineSelectionShrink=!0))}},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumber<n.endLineNumber&&(n=n.setEndPosition(n.endLineNumber,2)),n},e}(),sY=function(){function e(e,t){this.selection=e,this.descending=t,this.selectionId=null}return e.getCollator=function(){return e._COLLATOR||(e._COLLATOR=new Intl.Collator),e._COLLATOR},e.prototype.getEditOperations=function(e,t){var n=uY(e,this.selection,this.descending);n&&t.addEditOperation(n.range,n.text),this.selectionId=t.trackSelection(this.selection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this.selectionId)},e.canRun=function(e,t,n){if(null===e)return!1;var i=aY(e,t,n);if(!i)return!1;for(var o=0,r=i.before.length;o<r;o++)if(i.before[o]!==i.after[o])return!0;return!1},e._COLLATOR=null,e}();function aY(e,t,n){var i=t.startLineNumber,o=t.endLineNumber;if(1===t.endColumn&&o--,i>=o)return null;for(var r=[],s=i;s<=o;s++)r.push(e.getLineContent(s));var a=r.slice(0);return a.sort(sY.getCollator().compare),!0===n&&(a=a.reverse()),{startLineNumber:i,endLineNumber:o,before:r,after:a}}function uY(e,t,n){var i=aY(e,t,n);return i?op.replace(new vn(i.startLineNumber,1,i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),i.after.join("\n")):null}var lY=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)}}(),cY=function(e){function t(t,n){var i=e.call(this,n)||this;return i.down=t,i}return lY(t,e),t.prototype.run=function(e,t){for(var n=[],i=t.getSelections()||[],o=0,r=i;o<r.length;o++){var s=r[o];n.push(new nY(s,this.down))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()},t}(_g),dY=function(e){function t(){return e.call(this,!1,{id:"editor.action.copyLinesUpAction",label:r("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:23,group:"2_line",title:r({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})||this}return lY(t,e),t}(cY),hY=function(e){function t(){return e.call(this,!0,{id:"editor.action.copyLinesDownAction",label:r("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:23,group:"2_line",title:r({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})||this}return lY(t,e),t}(cY),AY=function(e){function t(){return e.call(this,{id:"editor.action.duplicateSelection",label:r("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:_S.writable,menuOpts:{menuId:23,group:"2_line",title:r({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})||this}return lY(t,e),t.prototype.run=function(e,t,n){if(t.hasModel()){for(var i=[],o=t.getSelections(),r=t.getModel(),s=0,a=o;s<a.length;s++){var u=a[s];if(u.isEmpty())i.push(new nY(u,!0));else{var l=new yn(u.endLineNumber,u.endColumn,u.endLineNumber,u.endColumn);i.push(new oS(l,r.getValueInRange(u)))}}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}},t}(_g),pY=function(e){function t(t,n){var i=e.call(this,n)||this;return i.down=t,i}return lY(t,e),t.prototype.run=function(e,t){for(var n=[],i=t.getSelections()||[],o=t.getOption(8),r=0,s=i;r<s.length;r++){var a=s[r];n.push(new rY(a,this.down,o))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()},t}(_g),fY=function(e){function t(){return e.call(this,!1,{id:"editor.action.moveLinesUpAction",label:r("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:23,group:"2_line",title:r({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})||this}return lY(t,e),t}(pY),gY=function(e){function t(){return e.call(this,!0,{id:"editor.action.moveLinesDownAction",label:r("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:23,group:"2_line",title:r({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})||this}return lY(t,e),t}(pY),mY=function(e){function t(t,n){var i=e.call(this,n)||this;return i.descending=t,i}return lY(t,e),t.prototype.run=function(e,t){for(var n=t.getSelections()||[],i=0,o=n;i<o.length;i++){var r=o[i];if(!sY.canRun(t.getModel(),r,this.descending))return}for(var s=[],a=0,u=n.length;a<u;a++)s[a]=new sY(n[a],this.descending);t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()},t}(_g),vY=function(e){function t(){return e.call(this,!1,{id:"editor.action.sortLinesAscending",label:r("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:_S.writable})||this}return lY(t,e),t}(mY),_Y=function(e){function t(){return e.call(this,!0,{id:"editor.action.sortLinesDescending",label:r("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:_S.writable})||this}return lY(t,e),t}(mY),yY=function(e){function t(){return e.call(this,{id:t.ID,label:r("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:ut(2089,2102),weight:100}})||this}return lY(t,e),t.prototype.run=function(e,t,n){var i=[];"auto-save"===n.reason&&(i=(t.getSelections()||[]).map((function(e){return new mn(e.positionLineNumber,e.positionColumn)})));var o=t.getSelection();if(null!==o){var r=new eY(o,i);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop()}},t.ID="editor.action.trimTrailingWhitespace",t}(_g),wY=function(e){function t(){return e.call(this,{id:"editor.action.deleteLines",label:r("lines.delete","Delete Line"),alias:"Delete Line",precondition:_S.writable,kbOpts:{kbExpr:_S.textInputFocus,primary:3113,weight:100}})||this}return lY(t,e),t.prototype.run=function(e,t){if(t.hasModel()){var n=this._getLinesToRemove(t),i=t.getModel();if(1!==i.getLineCount()||1!==i.getLineMaxColumn(1)){for(var o=0,r=[],s=[],a=0,u=n.length;a<u;a++){var l=n[a],c=l.startLineNumber,d=l.endLineNumber,h=1,A=i.getLineMaxColumn(d);d<i.getLineCount()?(d+=1,A=1):c>1&&(c-=1,h=i.getLineMaxColumn(c)),r.push(op.replace(new yn(c,h,d,A),"")),s.push(new yn(c-o,l.positionColumn,c-o,l.positionColumn)),o+=l.endLineNumber-l.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,r,s),t.pushUndoStop()}}},t.prototype._getLinesToRemove=function(e){var t=e.getSelections().map((function(e){var t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort((function(e,t){return e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber}));for(var n=[],i=t[0],o=1;o<t.length;o++)i.endLineNumber+1>=t[o].startLineNumber?i.endLineNumber=t[o].endLineNumber:(n.push(i),i=t[o]);return n.push(i),n},t}(_g),bY=function(e){function t(){return e.call(this,{id:"editor.action.indentLines",label:r("lines.indent","Indent Line"),alias:"Indent Line",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:2137,weight:100}})||this}return lY(t,e),t.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,CS.indent(n.context.config,t.getModel(),t.getSelections())),t.pushUndoStop())},t}(_g),CY=function(e){function t(){return e.call(this,{id:"editor.action.outdentLines",label:r("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:2135,weight:100}})||this}return lY(t,e),t.prototype.run=function(e,t){LS.Outdent.runEditorCommand(e,t,null)},t}(_g),SY=function(e){function t(){return e.call(this,{id:"editor.action.insertLineBefore",label:r("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:3075,weight:100}})||this}return lY(t,e),t.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,CS.lineInsertBefore(n.context.config,t.getModel(),t.getSelections())))},t}(_g),BY=function(e){function t(){return e.call(this,{id:"editor.action.insertLineAfter",label:r("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:2051,weight:100}})||this}return lY(t,e),t.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,CS.lineInsertAfter(n.context.config,t.getModel(),t.getSelections())))},t}(_g),EY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lY(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelection(),i=this._getRangesToDelete(t),o=[],r=0,s=i.length-1;r<s;r++){var a=i[r],u=i[r+1];null===vn.intersectRanges(a,u)?o.push(a):i[r+1]=vn.plusRange(a,u)}o.push(i[i.length-1]);var l=this._getEndCursorState(n,o),c=o.map((function(e){return op.replace(e,"")}));t.pushUndoStop(),t.executeEdits(this.id,c,l),t.pushUndoStop()}},t}(_g),xY=function(e){function t(){return e.call(this,{id:"deleteAllLeft",label:r("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:_S.writable,kbOpts:{kbExpr:_S.textInputFocus,primary:0,mac:{primary:2049},weight:100}})||this}return lY(t,e),t.prototype._getEndCursorState=function(e,t){var n=null,i=[],o=0;return t.forEach((function(t){var r;if(1===t.endColumn&&o>0){var s=t.startLineNumber-o;r=new yn(s,t.startColumn,s,t.startColumn)}else r=new yn(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);o+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?n=r:i.push(r)})),n&&i.unshift(n),i},t.prototype._getRangesToDelete=function(e){var t=e.getSelections();if(null===t)return[];var n=t,i=e.getModel();return null===i?[]:(n.sort(vn.compareRangesUsingStarts),n=n.map((function(e){if(e.isEmpty()){if(1===e.startColumn){var t=Math.max(1,e.startLineNumber-1),n=1===e.startLineNumber?1:i.getLineContent(t).length+1;return new vn(t,n,e.startLineNumber,1)}return new vn(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new vn(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),n)},t}(EY),LY=function(e){function t(){return e.call(this,{id:"deleteAllRight",label:r("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:_S.writable,kbOpts:{kbExpr:_S.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})||this}return lY(t,e),t.prototype._getEndCursorState=function(e,t){for(var n=null,i=[],o=0,r=t.length,s=0;o<r;o++){var a=t[o],u=new yn(a.startLineNumber-s,a.startColumn,a.startLineNumber-s,a.startColumn);a.intersectRanges(e)?n=u:i.push(u)}return n&&i.unshift(n),i},t.prototype._getRangesToDelete=function(e){var t=e.getModel();if(null===t)return[];var n=e.getSelections();if(null===n)return[];var i=n.map((function(e){if(e.isEmpty()){var n=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===n?new vn(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new vn(e.startLineNumber,e.startColumn,e.startLineNumber,n)}return e}));return i.sort(vn.compareRangesUsingStarts),i},t}(EY),DY=function(e){function t(){return e.call(this,{id:"editor.action.joinLines",label:r("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:_S.writable,kbOpts:{kbExpr:_S.editorTextFocus,primary:0,mac:{primary:296},weight:100}})||this}return lY(t,e),t.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getSelection();if(null!==i){n.sort(vn.compareRangesUsingStarts);var o=[],r=n.reduce((function(e,t){return e.isEmpty()?e.endLineNumber===t.startLineNumber?(i.equalsSelection(e)&&(i=t),t):t.startLineNumber>e.endLineNumber+1?(o.push(e),t):new yn(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new yn(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)}));o.push(r);var s=t.getModel();if(null!==s){for(var a=[],u=[],l=i,c=0,d=0,h=o.length;d<h;d++){var A=o[d],p=A.startLineNumber,f=1,g=0,m=void 0,v=void 0,_=s.getLineContent(A.endLineNumber).length-A.endColumn;if(A.isEmpty()||A.startLineNumber===A.endLineNumber){var y=A.getStartPosition();y.lineNumber<s.getLineCount()?(m=p+1,v=s.getLineMaxColumn(m)):(m=y.lineNumber,v=s.getLineMaxColumn(y.lineNumber))}else m=A.endLineNumber,v=s.getLineMaxColumn(m);for(var w=s.getLineContent(p),b=p+1;b<=m;b++){var C=s.getLineContent(b),S=s.getLineFirstNonWhitespaceColumn(b);if(S>=1){var B=!0;""===w&&(B=!1),!B||" "!==w.charAt(w.length-1)&&"\t"!==w.charAt(w.length-1)||(B=!1,w=w.replace(/[\s\uFEFF\xA0]+$/g," "));var E=C.substr(S-1);w+=(B?" ":"")+E,g=B?E.length+1:E.length}else g=0}var x=new vn(p,f,m,v);if(!x.isEmpty()){var L=void 0;A.isEmpty()?(a.push(op.replace(x,w)),L=new yn(x.startLineNumber-c,w.length-g+1,p-c,w.length-g+1)):A.startLineNumber===A.endLineNumber?(a.push(op.replace(x,w)),L=new yn(A.startLineNumber-c,A.startColumn,A.endLineNumber-c,A.endColumn)):(a.push(op.replace(x,w)),L=new yn(A.startLineNumber-c,A.startColumn,A.startLineNumber-c,w.length-_)),null!==vn.intersectRanges(x,i)?l=L:u.push(L)}c+=x.endLineNumber-x.startLineNumber}u.unshift(l),t.pushUndoStop(),t.executeEdits(this.id,a,u),t.pushUndoStop()}}}},t}(_g),NY=function(e){function t(){return e.call(this,{id:"editor.action.transpose",label:r("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:_S.writable})||this}return lY(t,e),t.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getModel();if(null!==i){for(var o=[],r=0,s=n.length;r<s;r++){var a=n[r];if(a.isEmpty()){var u=a.getStartPosition(),l=i.getLineMaxColumn(u.lineNumber);if(u.column>=l){if(u.lineNumber===i.getLineCount())continue;var c=new vn(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),d=i.getValueInRange(c).split("").reverse().join("");o.push(new iS(new yn(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),d))}else{c=new vn(u.lineNumber,Math.max(1,u.column-1),u.lineNumber,u.column+1),d=i.getValueInRange(c).split("").reverse().join("");o.push(new aS(c,d,new yn(u.lineNumber,u.column+1,u.lineNumber,u.column+1)))}}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}},t}(_g),kY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lY(t,e),t.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getModel();if(null!==i){for(var o=t.getOption(92),r=[],s=0,a=n.length;s<a;s++){var u=n[s];if(u.isEmpty()){var l=u.getStartPosition(),c=i.getWordAtPosition(l);if(!c)continue;var d=new vn(l.lineNumber,c.startColumn,l.lineNumber,c.endColumn),h=i.getValueInRange(d);r.push(new aS(d,this._modifyText(h,o),new yn(l.lineNumber,l.column,l.lineNumber,l.column)))}else{h=i.getValueInRange(u);r.push(new aS(u,this._modifyText(h,o),u))}}t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}},t}(_g),IY=function(e){function t(){return e.call(this,{id:"editor.action.transformToUppercase",label:r("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:_S.writable})||this}return lY(t,e),t.prototype._modifyText=function(e,t){return e.toLocaleUpperCase()},t}(kY),FY=function(e){function t(){return e.call(this,{id:"editor.action.transformToLowercase",label:r("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:_S.writable})||this}return lY(t,e),t.prototype._modifyText=function(e,t){return e.toLocaleLowerCase()},t}(kY),MY=function(e){function t(){return e.call(this,{id:"editor.action.transformToTitlecase",label:r("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:_S.writable})||this}return lY(t,e),t.prototype._modifyText=function(e,t){for(var n="\r\n\t "+t,i=n.split(""),o="",r=!0,s=0;s<e.length;s++){var a=e[s];i.indexOf(a)>=0?(r=!0,o+=a):r?(r=!1,o+=a.toLocaleUpperCase()):o+=a.toLocaleLowerCase()}return o},t}(kY);Cg(dY),Cg(hY),Cg(AY),Cg(fY),Cg(gY),Cg(vY),Cg(_Y),Cg(yY),Cg(wY),Cg(bY),Cg(CY),Cg(SY),Cg(BY),Cg(xY),Cg(LY),Cg(DY),Cg(NY),Cg(IY),Cg(FY),Cg(MY);n("607c");var OY=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)}}(),TY=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},PY=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},RY=function(){function e(e,t){this._link=e,this._provider=t}return e.prototype.toJSON=function(){return{range:this.range,url:this.url,tooltip:this.tooltip}},Object.defineProperty(e.prototype,"range",{get:function(){return this._link.range},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._link.url},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._link.tooltip},enumerable:!0,configurable:!0}),e.prototype.resolve=function(e){return TY(this,void 0,void 0,(function(){var t=this;return PY(this,(function(n){return this._link.url?[2,this._link.url]:"function"===typeof this._provider.resolveLink?[2,Promise.resolve(this._provider.resolveLink(this._link,e)).then((function(n){return t._link=n||t._link,t._link.url?t.resolve(e):Promise.reject(new Error("missing"))}))]:[2,Promise.reject(new Error("missing"))]}))}))},e}(),UY=function(e){function t(n){for(var i=e.call(this)||this,o=[],r=function(e,n){var i=e.links.map((function(e){return new RY(e,n)}));o=t._union(o,i),Ee(n)&&s._register(n)},s=this,a=0,u=n;a<u.length;a++){var l=u[a],c=l[0],d=l[1];r(c,d)}return i.links=o,i}return OY(t,e),t._union=function(e,t){var n,i,o,r,s=[];for(n=0,o=0,i=e.length,r=t.length;n<i&&o<r;){var a=e[n],u=t[o];if(vn.areIntersectingOrTouching(a.range,u.range))n++;else{var l=vn.compareRangesUsingStarts(a.range,u.range);l<0?(s.push(a),n++):(s.push(u),o++)}}for(;n<i;n++)s.push(e[n]);for(;o<r;o++)s.push(t[o]);return s},t}(Ie);function HY(e,t){var n=[],i=Hl.ordered(e).reverse().map((function(i,o){return Promise.resolve(i.provideLinks(e,t)).then((function(e){e&&(n[o]=[e,i])}),pe)}));return Promise.all(i).then((function(){var e=new UY(Ti(n));return t.isCancellationRequested?(e.dispose(),new UY([])):e}))}za.registerCommand("_executeLinkProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return TY(void 0,void 0,void 0,(function(){var n,i,o,r;return PY(this,(function(s){switch(s.label){case 0:return n=t[0],n instanceof Et?(i=e.get(ll).getModel(n),i?[4,HY(i,je.None)]:[2,[]]):[2,[]];case 1:return o=s.sent(),o?(r=o.links.slice(0),o.dispose(),[2,r]):[2,[]]}}))}))}));var QY=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)}}(),VY=function(){return VY=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},VY.apply(this,arguments)},WY=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},KY=function(e,t){return function(n,i){t(n,i,e)}},zY=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},jY=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function GY(e,t){var n=e.url&&/^command:/i.test(e.url.toString()),i=e.tooltip?e.tooltip:n?r("links.navigate.executeCmd","Execute command"):r("links.navigate.follow","Follow link"),o=t?s["e"]?r("links.navigate.kb.meta.mac","cmd + click"):r("links.navigate.kb.meta","ctrl + click"):s["e"]?r("links.navigate.kb.alt.mac","option + click"):r("links.navigate.kb.alt","alt + click");if(e.url){var a=new pG("",!0).appendMarkdown("["+i+"]("+e.url.toString()+") ("+o+")");return a}return(new pG).appendText(i+" ("+o+")")}var qY={general:z_.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:z_.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},YY=function(){function e(e,t){this.link=e,this.decorationId=t}return e.decoration=function(t,n){return{range:t.range,options:e._getOptions(t,n,!1)}},e._getOptions=function(e,t,n){var i=VY({},n?qY.active:qY.general);return i.hoverMessage=GY(e,t),i},e.prototype.activate=function(t,n){t.changeDecorationOptions(this.decorationId,e._getOptions(this.link,n,!0))},e.prototype.deactivate=function(t,n){t.changeDecorationOptions(this.decorationId,e._getOptions(this.link,n,!1))},e}(),XY=function(){function e(e,t,n){var i=this;this.listenersToRemove=new ke,this.editor=e,this.openerService=t,this.notificationService=n;var o=new xG(e);this.listenersToRemove.add(o),this.listenersToRemove.add(o.onMouseMoveOrRelevantKeyDown((function(e){var t=e[0],n=e[1];i._onEditorMouseMove(t,n)}))),this.listenersToRemove.add(o.onExecute((function(e){i.onEditorMouseUp(e)}))),this.listenersToRemove.add(o.onCancel((function(e){i.cleanUpActiveLinkDecoration()}))),this.enabled=e.getOption(50),this.listenersToRemove.add(e.onDidChangeConfiguration((function(t){var n=e.getOption(50);i.enabled!==n&&(i.enabled=n,i.updateDecorations([]),i.stop(),i.beginCompute())}))),this.listenersToRemove.add(e.onDidChangeModelContent((function(e){return i.onChange()}))),this.listenersToRemove.add(e.onDidChangeModel((function(e){return i.onModelChanged()}))),this.listenersToRemove.add(e.onDidChangeModelLanguage((function(e){return i.onModelModeChanged()}))),this.listenersToRemove.add(Hl.onDidChange((function(e){return i.onModelModeChanged()}))),this.timeout=new bi,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.onModelChanged=function(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()},e.prototype.onModelModeChanged=function(){this.stop(),this.beginCompute()},e.prototype.onChange=function(){var t=this;this.timeout.setIfNotSet((function(){return t.beginCompute()}),e.RECOMPUTE_TIME)},e.prototype.beginCompute=function(){return zY(this,void 0,void 0,(function(){var e,t,n;return jY(this,(function(i){switch(i.label){case 0:if(!this.editor.hasModel()||!this.enabled)return[2];if(e=this.editor.getModel(),!Hl.has(e))return[2];this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=fi((function(t){return HY(e,t)})),i.label=1;case 1:return i.trys.push([1,3,4,5]),t=this,[4,this.computePromise];case 2:return t.activeLinksList=i.sent(),this.updateDecorations(this.activeLinksList.links),[3,5];case 3:return n=i.sent(),Ae(n),[3,5];case 4:return this.computePromise=null,[7];case 5:return[2]}}))}))},e.prototype.updateDecorations=function(e){for(var t="altKey"===this.editor.getOption(57),n=[],i=Object.keys(this.currentOccurrences),o=0,r=i.length;o<r;o++){var s=i[o],a=this.currentOccurrences[s];n.push(a.decorationId)}var u=[];if(e)for(var l=0,c=e;l<c.length;l++){var d=c[l];u.push(YY.decoration(d,t))}var h=this.editor.deltaDecorations(n,u);this.currentOccurrences={},this.activeLinkDecorationId=null;for(o=0,r=h.length;o<r;o++){a=new YY(e[o],h[o]);this.currentOccurrences[a.decorationId]=a}},e.prototype._onEditorMouseMove=function(e,t){var n=this,i="altKey"===this.editor.getOption(57);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();var o=this.getLinkOccurrence(e.target.position);o&&this.editor.changeDecorations((function(e){o.activate(e,i),n.activeLinkDecorationId=o.decorationId}))}else this.cleanUpActiveLinkDecoration()},e.prototype.cleanUpActiveLinkDecoration=function(){var e="altKey"===this.editor.getOption(57);if(this.activeLinkDecorationId){var t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((function(n){t.deactivate(n,e)})),this.activeLinkDecorationId=null}},e.prototype.onEditorMouseUp=function(e){if(this.isEnabled(e)){var t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}},e.prototype.openLinkOccurrence=function(e,t,n){var i=this;if(void 0===n&&(n=!1),this.openerService){var o=e.link;o.resolve(je.None).then((function(e){return i.openerService.open(e,{openToSide:t,fromUserGesture:n})}),(function(e){var t=e instanceof Error?e.message:e;"invalid"===t?i.notificationService.warn(r("invalid.url","Failed to open this link because it is not well-formed: {0}",o.url.toString())):"missing"===t?i.notificationService.warn(r("missing.url","Failed to open this link because its target is missing.")):Ae(e)}))}},e.prototype.getLinkOccurrence=function(e){if(!this.editor.hasModel()||!e)return null;for(var t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0),n=0,i=t;n<i.length;n++){var o=i[n],r=this.currentOccurrences[o.id];if(r)return r}return null},e.prototype.isEnabled=function(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))},e.prototype.stop=function(){this.timeout.cancel(),this.activeLinksList&&this.activeLinksList.dispose(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)},e.prototype.dispose=function(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()},e.ID="editor.linkDetector",e.RECOMPUTE_TIME=1e3,e=WY([KY(1,qa),KY(2,$p)],e),e}(),JY=function(e){function t(){return e.call(this,{id:"editor.action.openLink",label:r("label","Open Link"),alias:"Open Link",precondition:void 0})||this}return QY(t,e),t.prototype.run=function(e,t){var n=XY.get(t);if(n&&t.hasModel())for(var i=t.getSelections(),o=0,r=i;o<r.length;o++){var s=r[o],a=n.getLinkOccurrence(s.getEndPosition());a&&n.openLinkOccurrence(a,!1)}},t}(_g);Bg(XY.ID,XY),Cg(JY),gm((function(e,t){var n=e.getColor(eb);n&&t.addRule(".monaco-editor .detected-link-active { color: "+n+" !important; }")}));var ZY=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)}}(),$Y=function(e){function t(){return e.call(this,{id:"editor.action.insertCursorAbove",label:r("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:_S.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:23,group:"3_multi",title:r({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})||this}return ZY(t,e),t.prototype.run=function(e,t,n){if(t.hasModel()){var i=n&&!0===n.logicalLine,o=t._getCursors(),r=o.context;r.config.readOnly||(r.model.pushStackElement(),o.setStates(n.source,3,gS.addCursorUp(r,o.getAll(),i)),o.reveal(n.source,!0,1,0))}},t}(_g),eX=function(e){function t(){return e.call(this,{id:"editor.action.insertCursorBelow",label:r("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:_S.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:23,group:"3_multi",title:r({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})||this}return ZY(t,e),t.prototype.run=function(e,t,n){if(t.hasModel()){var i=n&&!0===n.logicalLine,o=t._getCursors(),r=o.context;r.config.readOnly||(r.model.pushStackElement(),o.setStates(n.source,3,gS.addCursorDown(r,o.getAll(),i)),o.reveal(n.source,!0,2,0))}},t}(_g),tX=function(e){function t(){return e.call(this,{id:"editor.action.insertCursorAtEndOfEachLineSelected",label:r("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:_S.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:23,group:"3_multi",title:r({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})||this}return ZY(t,e),t.prototype.getCursorsForSelection=function(e,t,n){if(!e.isEmpty()){for(var i=e.startLineNumber;i<e.endLineNumber;i++){var o=t.getLineMaxColumn(i);n.push(new yn(i,o,i,o))}e.endColumn>1&&n.push(new yn(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}},t.prototype.run=function(e,t){var n=this;if(t.hasModel()){var i=t.getModel(),o=t.getSelections(),r=[];o.forEach((function(e){return n.getCursorsForSelection(e,i,r)})),r.length>0&&t.setSelections(r)}},t}(_g),nX=function(e){function t(){return e.call(this,{id:"editor.action.addCursorsToBottom",label:r("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}return ZY(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=t.getModel().getLineCount(),o=[],r=n[0].startLineNumber;r<=i;r++)o.push(new yn(r,n[0].startColumn,r,n[0].endColumn));o.length>0&&t.setSelections(o)}},t}(_g),iX=function(e){function t(){return e.call(this,{id:"editor.action.addCursorsToTop",label:r("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}return ZY(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=[],o=n[0].startLineNumber;o>=1;o--)i.push(new yn(o,n[0].startColumn,o,n[0].endColumn));i.length>0&&t.setSelections(i)}},t}(_g),oX=function(){function e(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n}return e}(),rX=function(){function e(e,t,n,i,o,r,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=i,this.wholeWord=o,this.matchCase=r,this.currentMatch=s}return e.create=function(t,n){if(!t.hasModel())return null;var i=n.getState();if(!t.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new e(t,n,!1,i.searchString,i.wholeWord,i.matchCase,null);var o,r,s=!1,a=t.getSelections();1===a.length&&a[0].isEmpty()?(s=!0,o=!0,r=!0):(o=i.wholeWord,r=i.matchCase);var u,l=t.getSelection(),c=null;if(l.isEmpty()){var d=t.getModel().getWordAtPosition(l.getStartPosition());if(!d)return null;u=d.word,c=new yn(l.startLineNumber,d.startColumn,l.startLineNumber,d.endColumn)}else u=t.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new e(t,n,s,u,o,r,c)},e.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new oX(t.concat(e),e,0)},e.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new oX(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findNextMatch(this.searchText,n.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(92):null,!1);return i?new yn(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new oX(t.concat(e),e,0)},e.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new oX(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,n.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(92):null,!1);return i?new yn(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(92):null,!1,1073741824)):[]},e}(),sX=function(e){function t(t){var n=e.call(this)||this;return n._sessionDispose=n._register(new ke),n._editor=t,n._ignoreSelectionChange=!1,n._session=null,n}return ZY(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this._endSession(),e.prototype.dispose.call(this)},t.prototype._beginSessionIfNeeded=function(e){var t=this;if(!this._session){var n=rX.create(this._editor,e);if(!n)return;this._session=n;var i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((function(e){t._ignoreSelectionChange||t._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((function(){t._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((function(e){(e.matchCase||e.wholeWord)&&t._endSession()})))}},t.prototype._endSession=function(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){var e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null},t.prototype._setSelections=function(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1},t.prototype._expandEmptyToWord=function(e,t){if(!t.isEmpty())return t;var n=e.getWordAtPosition(t.getStartPosition());return n?new yn(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t},t.prototype._applySessionResult=function(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))},t.prototype.getSession=function(e){return this._session},t.prototype.addSelectionToNextFindMatch=function(e){if(this._editor.hasModel()){if(!this._session){var t=this._editor.getSelections();if(t.length>1){var n=e.getState(),i=n.matchCase,o=gX(this._editor.getModel(),t,i);if(!o){for(var r=this._editor.getModel(),s=[],a=0,u=t.length;a<u;a++)s[a]=this._expandEmptyToWord(r,t[a]);return void this._editor.setSelections(s)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}},t.prototype.addSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())},t.prototype.moveSelectionToNextFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())},t.prototype.moveSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())},t.prototype.selectAll=function(e){if(this._editor.hasModel()){var t=null,n=e.getState();if(n.isRevealed&&n.searchString.length>0&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(92):null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(n.searchScope){for(var i=n.searchScope,o=[],r=0;r<t.length;r++)t[r].range.endLineNumber<=i.endLineNumber&&t[r].range.startLineNumber>=i.startLineNumber&&o.push(t[r]);t=o}if(t.length>0){for(var s=this._editor.getSelection(),a=(r=0,t.length);r<a;r++){var u=t[r],l=u.range.intersectRanges(s);if(l){t[r]=t[0],t[0]=u;break}}this._setSelections(t.map((function(e){return new yn(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)})))}}},t.ID="editor.contrib.multiCursorController",t}(Ie),aX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ZY(t,e),t.prototype.run=function(e,t){var n=sX.get(t);if(n){var i=fW.get(t);i&&this._run(n,i)}},t}(_g),uX=function(e){function t(){return e.call(this,{id:"editor.action.addSelectionToNextFindMatch",label:r("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:2082,weight:100},menuOpts:{menuId:23,group:"3_multi",title:r({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})||this}return ZY(t,e),t.prototype._run=function(e,t){e.addSelectionToNextFindMatch(t)},t}(aX),lX=function(e){function t(){return e.call(this,{id:"editor.action.addSelectionToPreviousFindMatch",label:r("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:23,group:"3_multi",title:r({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})||this}return ZY(t,e),t.prototype._run=function(e,t){e.addSelectionToPreviousFindMatch(t)},t}(aX),cX=function(e){function t(){return e.call(this,{id:"editor.action.moveSelectionToNextFindMatch",label:r("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:ut(2089,2082),weight:100}})||this}return ZY(t,e),t.prototype._run=function(e,t){e.moveSelectionToNextFindMatch(t)},t}(aX),dX=function(e){function t(){return e.call(this,{id:"editor.action.moveSelectionToPreviousFindMatch",label:r("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})||this}return ZY(t,e),t.prototype._run=function(e,t){e.moveSelectionToPreviousFindMatch(t)},t}(aX),hX=function(e){function t(){return e.call(this,{id:"editor.action.selectHighlights",label:r("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:3114,weight:100},menuOpts:{menuId:23,group:"3_multi",title:r({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})||this}return ZY(t,e),t.prototype._run=function(e,t){e.selectAll(t)},t}(aX),AX=function(e){function t(){return e.call(this,{id:"editor.action.changeAll",label:r("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:Cp.and(_S.writable,_S.editorTextFocus),kbOpts:{kbExpr:_S.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})||this}return ZY(t,e),t.prototype._run=function(e,t){e.selectAll(t)},t}(aX),pX=function(){function e(e,t,n){this.searchText=e,this.matchCase=t,this.wordSeparators=n}return e.softEquals=function(e,t){return!e&&!t||!(!e||!t)&&(e.searchText===t.searchText&&e.matchCase===t.matchCase&&e.wordSeparators===t.wordSeparators)},e}(),fX=function(e){function t(t){var n=e.call(this)||this;return n.editor=t,n._isEnabled=t.getOption(78),n.decorations=[],n.updateSoon=n._register(new Si((function(){return n._update()}),300)),n.state=null,n._register(t.onDidChangeConfiguration((function(e){n._isEnabled=t.getOption(78)}))),n._register(t.onDidChangeCursorSelection((function(e){n._isEnabled&&(e.selection.isEmpty()?3===e.reason?(n.state&&n._setState(null),n.updateSoon.schedule()):n._setState(null):n._update())}))),n._register(t.onDidChangeModel((function(e){n._setState(null)}))),n._register(fW.get(t).getState().onFindReplaceStateChange((function(e){n._update()}))),n}return ZY(t,e),t.prototype._update=function(){this._setState(t._createState(this._isEnabled,this.editor))},t._createState=function(e,t){if(!e)return null;if(!t.hasModel())return null;var n=t.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;var i=sX.get(t);if(!i)return null;var o=fW.get(t);if(!o)return null;var r=i.getSession(o);if(!r){var s=t.getSelections();if(s.length>1){var a=o.getState(),u=a.matchCase,l=gX(t.getModel(),s,u);if(!l)return null}r=rX.create(t,o)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(r.searchText.length>200)return null;var c=o.getState(),d=c.matchCase;if(c.isRevealed){var h=c.searchString;d||(h=h.toLowerCase());var A=r.searchText;if(d||(A=A.toLowerCase()),h===A&&r.matchCase===c.matchCase&&r.wholeWord===c.wholeWord&&!c.isRegex)return null}return new pX(r.searchText,r.matchCase,r.wholeWord?t.getOption(92):null)},t.prototype._setState=function(e){if(pX.softEquals(this.state,e))this.state=e;else if(this.state=e,this.state){if(this.editor.hasModel()){var n=this.editor.getModel();if(!n.isTooLargeForTokenization()){var i=Nl.has(n),o=n.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map((function(e){return e.range}));o.sort(vn.compareRangesUsingStarts);var r=this.editor.getSelections();r.sort(vn.compareRangesUsingStarts);for(var s=[],a=0,u=0,l=o.length,c=r.length;a<l;){var d=o[a];if(u>=c)s.push(d),a++;else{var h=vn.compareRangesUsingStarts(d,r[u]);h<0?(!r[u].isEmpty()&&vn.areIntersecting(d,r[u])||s.push(d),a++):(h>0||a++,u++)}}var A=s.map((function(e){return{range:e,options:i?t._SELECTION_HIGHLIGHT:t._SELECTION_HIGHLIGHT_OVERVIEW}}));this.decorations=this.editor.deltaDecorations(this.decorations,A)}}}else this.decorations=this.editor.deltaDecorations(this.decorations,[])},t.prototype.dispose=function(){this._setState(null),e.prototype.dispose.call(this)},t.ID="editor.contrib.selectionHighlighter",t._SELECTION_HIGHLIGHT_OVERVIEW=z_.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:lm(Pb),position:Bu.Center}}),t._SELECTION_HIGHLIGHT=z_.register({stickiness:1,className:"selectionHighlight"}),t}(Ie);function gX(e,t,n){for(var i=mX(e,t[0],!n),o=1,r=t.length;o<r;o++){var s=t[o];if(s.isEmpty())return!1;var a=mX(e,s,!n);if(i!==a)return!1}return!0}function mX(e,t,n){var i=e.getValueInRange(t);return n?i.toLowerCase():i}Bg(sX.ID,sX),Bg(fX.ID,fX),Cg($Y),Cg(eX),Cg(tX),Cg(uX),Cg(lX),Cg(cX),Cg(dX),Cg(hX),Cg(AX),Cg(nX),Cg(iX);n("cab5");var vX=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},_X=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},yX={Visible:new Fp("parameterHintsVisible",!1),MultipleSignatures:new Fp("parameterHintsMultipleSignatures",!1)};function wX(e,t,n,i){var o=xl.ordered(e);return yi(o.map((function(o){return function(){return Promise.resolve(o.provideSignatureHelp(e,t,i,n)).catch((function(e){return pe(e)}))}})))}wg("_executeSignatureHelpProvider",(function(e,t,n){return vX(void 0,void 0,void 0,(function(){var i;return _X(this,(function(o){switch(o.label){case 0:return[4,wX(e,t,{triggerKind:hl.Invoke,isRetrigger:!1,triggerCharacter:n["triggerCharacter"]},je.None)];case 1:return i=o.sent(),i?(setTimeout((function(){return i.dispose()}),0),[2,i.value]):[2,void 0]}}))}))}));var bX,CX=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)}}(),SX=function(){return SX=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},SX.apply(this,arguments)},BX=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},EX=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};(function(e){e.Default={type:0};var t=function(){function e(e){this.request=e,this.type=2}return e}();e.Pending=t;var n=function(){function e(e){this.hints=e,this.type=1}return e}();e.Active=n})(bX||(bX={}));var xX=function(e){function t(n,i){void 0===i&&(i=t.DEFAULT_DELAY);var o=e.call(this)||this;return o._onChangedHints=o._register(new Ye),o.onChangedHints=o._onChangedHints.event,o.triggerOnType=!1,o._state=bX.Default,o._pendingTriggers=[],o._lastSignatureHelpResult=o._register(new Fe),o.triggerChars=new gd,o.retriggerChars=new gd,o.triggerId=0,o.editor=n,o.throttledDelayer=new mi(i),o._register(o.editor.onDidChangeConfiguration((function(){return o.onEditorConfigurationChange()}))),o._register(o.editor.onDidChangeModel((function(e){return o.onModelChanged()}))),o._register(o.editor.onDidChangeModelLanguage((function(e){return o.onModelChanged()}))),o._register(o.editor.onDidChangeCursorSelection((function(e){return o.onCursorChange(e)}))),o._register(o.editor.onDidChangeModelContent((function(e){return o.onModelContentChange()}))),o._register(xl.onDidChange(o.onModelChanged,o)),o._register(o.editor.onDidType((function(e){return o.onDidType(e)}))),o.onEditorConfigurationChange(),o.onModelChanged(),o}return CX(t,e),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){2===this._state.type&&this._state.request.cancel(),this._state=e},enumerable:!0,configurable:!0}),t.prototype.cancel=function(e){void 0===e&&(e=!1),this.state=bX.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)},t.prototype.trigger=function(e,t){var n=this,i=this.editor.getModel();if(i&&xl.has(i)){var o=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((function(){return n.doTrigger(o)}),t).catch(Ae)}},t.prototype.next=function(){if(1===this.state.type){var e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t%e===e-1,i=this.editor.getOption(62).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?0:t+1):this.cancel()}},t.prototype.previous=function(){if(1===this.state.type){var e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=0===t,i=this.editor.getOption(62).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?e-1:t-1):this.cancel()}},t.prototype.updateActiveSignature=function(e){1===this.state.type&&(this.state=new bX.Active(SX(SX({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))},t.prototype.doTrigger=function(e){var t,n;return BX(this,void 0,void 0,(function(){var i,o,r,s,a,u,l,c;return EX(this,(function(d){switch(d.label){case 0:if(i=1===this.state.type||2===this.state.type,o=1===this.state.type?this.state.hints:void 0,this.cancel(!0),0===this._pendingTriggers.length)return[2,!1];if(r=this._pendingTriggers.reduce(LX),this._pendingTriggers=[],s={triggerKind:r.triggerKind,triggerCharacter:r.triggerCharacter,isRetrigger:i,activeSignatureHelp:o},!this.editor.hasModel())return[2,!1];a=this.editor.getModel(),u=this.editor.getPosition(),this.state=new bX.Pending(fi((function(e){return wX(a,u,s,e)}))),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.state.request];case 2:return l=d.sent(),e!==this.triggerId?(null===(t=l)||void 0===t||t.dispose(),[2,!1]):l&&l.value.signatures&&0!==l.value.signatures.length?(this.state=new bX.Active(l.value),this._lastSignatureHelpResult.value=l,this._onChangedHints.fire(this.state.hints),[2,!0]):(null===(n=l)||void 0===n||n.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),[2,!1]);case 3:return c=d.sent(),e===this.triggerId&&(this.state=bX.Default),Ae(c),[2,!1];case 4:return[2]}}))}))},Object.defineProperty(t.prototype,"isTriggered",{get:function(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()},enumerable:!0,configurable:!0}),t.prototype.onModelChanged=function(){this.cancel(),this.triggerChars=new gd,this.retriggerChars=new gd;var e=this.editor.getModel();if(e)for(var t=0,n=xl.ordered(e);t<n.length;t++){for(var i=n[t],o=0,r=i.signatureHelpTriggerCharacters||[];o<r.length;o++){var s=r[o];this.triggerChars.add(s.charCodeAt(0)),this.retriggerChars.add(s.charCodeAt(0))}for(var a=0,u=i.signatureHelpRetriggerCharacters||[];a<u.length;a++){s=u[a];this.retriggerChars.add(s.charCodeAt(0))}}},t.prototype.onDidType=function(e){if(this.triggerOnType){var t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerKind:hl.TriggerCharacter,triggerCharacter:e.charAt(t)})}},t.prototype.onCursorChange=function(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:hl.ContentChange})},t.prototype.onModelContentChange=function(){this.isTriggered&&this.trigger({triggerKind:hl.ContentChange})},t.prototype.onEditorConfigurationChange=function(){this.triggerOnType=this.editor.getOption(62).enabled,this.triggerOnType||this.cancel()},t.prototype.dispose=function(){this.cancel(!0),e.prototype.dispose.call(this)},t.DEFAULT_DELAY=120,t}(Ie);function LX(e,t){switch(t.triggerKind){case hl.Invoke:return t;case hl.ContentChange:return e;case hl.TriggerCharacter:default:return t}}var DX=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)}}(),NX=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},kX=function(e,t){return function(n,i){t(n,i,e)}},IX=dr,FX=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.editor=t,r.renderDisposeables=r._register(new ke),r.visible=!1,r.announcedLabel=null,r.allowEditorOverflow=!0,r.markdownRenderer=r._register(new Dq(t,o,i)),r.model=r._register(new xX(t)),r.keyVisible=yX.Visible.bindTo(n),r.keyMultipleSignatures=yX.MultipleSignatures.bindTo(n),r._register(r.model.onChangedHints((function(e){e?(r.show(),r.render(e)):r.hide()}))),r}return DX(t,e),t.prototype.createParamaterHintDOMNodes=function(){var e=this,t=IX(".editor-widget.parameter-hints-widget"),n=ar(t,IX(".wrapper"));n.tabIndex=-1;var i=ar(n,IX(".controls")),o=ar(i,IX(".button.previous")),r=ar(i,IX(".overloads")),s=ar(i,IX(".button.next")),a=Xn(Yn(o,"click"));this._register(a(this.previous,this));var u=Xn(Yn(s,"click"));this._register(u(this.next,this));var l=IX(".body"),c=new UB(l,{});this._register(c),n.appendChild(c.getDomNode());var d=ar(l,IX(".signature")),h=ar(l,IX(".docs"));t.style.userSelect="text",this.domNodes={element:t,signature:d,overloads:r,docs:h,scrollbar:c},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((function(t){e.visible&&e.editor.layoutContentWidget(e)})));var A=function(){if(e.domNodes){var t=e.editor.getOption(32);e.domNodes.element.style.fontSize=t.fontSize+"px"}};A(),this._register(Ue.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(32)})).on(A,null)),this._register(this.editor.onDidLayoutChange((function(t){return e.updateMaxHeight()}))),this.updateMaxHeight()},t.prototype.show=function(){var e=this;this.visible||(this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((function(){e.domNodes&&ho(e.domNodes.element,"visible")}),100),this.editor.layoutContentWidget(this))},t.prototype.hide=function(){this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&po(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this))},t.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null},t.prototype.render=function(e){if(this.domNodes){var t=e.signatures.length>1;go(this.domNodes.element,"multiple",t),this.keyMultipleSignatures.set(t),this.domNodes.signature.innerHTML="",this.domNodes.docs.innerHTML="";var n=e.signatures[e.activeSignature];if(n){var i=ar(this.domNodes.signature,IX(".code")),o=n.parameters.length>0,s=this.editor.getOption(32);if(i.style.fontSize=s.fontSize+"px",i.style.fontFamily=s.fontFamily,o)this.renderParameters(i,n,e.activeParameter);else{var a=ar(i,IX("span"));a.textContent=n.label}this.renderDisposeables.clear();var u=n.parameters[e.activeParameter];if(u&&u.documentation){var l=IX("span.documentation");if("string"===typeof u.documentation)l.textContent=u.documentation;else{var c=this.markdownRenderer.render(u.documentation);ho(c.element,"markdown-docs"),this.renderDisposeables.add(c),l.appendChild(c.element)}ar(this.domNodes.docs,IX("p",{},l))}if(void 0===n.documentation);else if("string"===typeof n.documentation)ar(this.domNodes.docs,IX("p",{},n.documentation));else{c=this.markdownRenderer.render(n.documentation);ho(c.element,"markdown-docs"),this.renderDisposeables.add(c),ar(this.domNodes.docs,c.element)}var d=this.hasDocs(n,u);if(go(this.domNodes.signature,"has-docs",d),go(this.domNodes.docs,"empty",!d),this.domNodes.overloads.textContent=Br(e.activeSignature+1,e.signatures.length.toString().length)+"/"+e.signatures.length,u){var h=this.getParameterLabel(n,e.activeParameter);this.announcedLabel!==h&&(Rf(r("hint","{0}, hint",h)),this.announcedLabel=h)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}}},t.prototype.hasDocs=function(e,t){return!!(t&&"string"===typeof t.documentation&&t.documentation.length>0)||(!!(t&&"object"===typeof t.documentation&&t.documentation.value.length>0)||("string"===typeof e.documentation&&e.documentation.length>0||"object"===typeof e.documentation&&e.documentation.value.length>0))},t.prototype.renderParameters=function(e,t,n){var i=this.getParameterLabelOffsets(t,n),o=i[0],r=i[1],s=document.createElement("span");s.textContent=t.label.substring(0,o);var a=document.createElement("span");a.textContent=t.label.substring(o,r),a.className="parameter active";var u=document.createElement("span");u.textContent=t.label.substring(r),ar(e,s,a,u)},t.prototype.getParameterLabel=function(e,t){var n=e.parameters[t];return"string"===typeof n.label?n.label:e.label.substring(n.label[0],n.label[1])},t.prototype.getParameterLabelOffsets=function(e,t){var n=e.parameters[t];if(n){if(Array.isArray(n.label))return n.label;var i=e.label.lastIndexOf(n.label);return i>=0?[i,i+n.label.length]:[0,0]}return[0,0]},t.prototype.next=function(){this.editor.focus(),this.model.next()},t.prototype.previous=function(){this.editor.focus(),this.model.previous()},t.prototype.cancel=function(){this.model.cancel()},t.prototype.getDomNode=function(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element},t.prototype.getId=function(){return t.ID},t.prototype.trigger=function(e){this.model.trigger(e,0)},t.prototype.updateMaxHeight=function(){if(this.domNodes){var e=Math.max(this.editor.getLayoutInfo().height/4,250),t=e+"px";this.domNodes.element.style.maxHeight=t;var n=this.domNodes.element.getElementsByClassName("wrapper");n.length&&(n[0].style.maxHeight=t)}},t.ID="editor.widget.parameterHintsWidget",t=NX([kX(1,Mp),kX(2,qa),kX(3,ED)],t),t}(Ie);gm((function(e,t){var n=e.getColor(Zw);if(n){var i=e.type===dm?2:1;t.addRule(".monaco-editor .parameter-hints-widget { border: "+i+"px solid "+n+"; }"),t.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+n.transparent(.5)+"; }"),t.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+n.transparent(.5)+"; }")}var o=e.getColor(Xw);o&&t.addRule(".monaco-editor .parameter-hints-widget { background-color: "+o+"; }");var r=e.getColor(Xy);r&&t.addRule(".monaco-editor .parameter-hints-widget a { color: "+r+"; }");var s=e.getColor(Jw);s&&t.addRule(".monaco-editor .parameter-hints-widget { color: "+s+"; }");var a=e.getColor(Jy);a&&t.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+a+"; }")}));var MX=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)}}(),OX=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},TX=function(e,t){return function(n,i){t(n,i,e)}},PX=function(e){function t(t,n){var i=e.call(this)||this;return i.editor=t,i.widget=i._register(n.createInstance(FX,i.editor)),i}return MX(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.cancel=function(){this.widget.cancel()},t.prototype.previous=function(){this.widget.previous()},t.prototype.next=function(){this.widget.next()},t.prototype.trigger=function(e){this.widget.trigger(e)},t.ID="editor.controller.parameterHints",t=OX([TX(1,xn)],t),t}(Ie),RX=function(e){function t(){return e.call(this,{id:"editor.action.triggerParameterHints",label:r("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:_S.hasSignatureHelpProvider,kbOpts:{kbExpr:_S.editorTextFocus,primary:3082,weight:100}})||this}return MX(t,e),t.prototype.run=function(e,t){var n=PX.get(t);n&&n.trigger({triggerKind:hl.Invoke})},t}(_g);Bg(PX.ID,PX),Cg(RX);var UX=175,HX=vg.bindToContribution(PX.get);bg(new HX({id:"closeParameterHints",precondition:yX.Visible,handler:function(e){return e.cancel()},kbOpts:{weight:UX,kbExpr:_S.focus,primary:9,secondary:[1033]}})),bg(new HX({id:"showPrevParameterHint",precondition:Cp.and(yX.Visible,yX.MultipleSignatures),handler:function(e){return e.previous()},kbOpts:{weight:UX,kbExpr:_S.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),bg(new HX({id:"showNextParameterHint",precondition:Cp.and(yX.Visible,yX.MultipleSignatures),handler:function(e){return e.next()},kbOpts:{weight:UX,kbExpr:_S.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}));n("0632");var QX=new Fp("renameInputVisible",!1),VX=function(){function e(e,t,n){var i=this;this.themeService=t,this._disposables=new ke,this.allowEditorOverflow=!0,this._currentAcceptInput=null,this._currentCancelInput=null,this._visibleContextKey=QX.bindTo(n),this._editor=e,this._editor.addContentWidget(this),this._disposables.add(e.onDidChangeConfiguration((function(e){e.hasChanged(32)&&i.updateFont()}))),this._disposables.add(t.onThemeChange((function(e){return i.onThemeChange(e)})))}return e.prototype.onThemeChange=function(e){this.updateStyles(e)},e.prototype.dispose=function(){this._disposables.dispose(),this._editor.removeContentWidget(this)},e.prototype.getId=function(){return"__renameInputWidget"},e.prototype.getDomNode=function(){return this._domNode||(this._inputField=document.createElement("input"),this._inputField.className="rename-input",this._inputField.type="text",this._inputField.setAttribute("aria-label",r("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode=document.createElement("div"),this._domNode.style.height=this._editor.getOption(47)+"px",this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputField),this.updateFont(),this.updateStyles(this.themeService.getTheme())),this._domNode},e.prototype.updateStyles=function(e){if(this._inputField){var t=e.getColor($y),n=e.getColor(ew),i=e.getColor(Zy),o=e.getColor(tw);this._inputField.style.backgroundColor=t?t.toString():"",this._inputField.style.color=n?n.toString():null,this._inputField.style.borderWidth=o?"1px":"0px",this._inputField.style.borderStyle=o?"solid":"none",this._inputField.style.borderColor=o?o.toString():"none",this._domNode.style.boxShadow=i?" 0 2px 8px "+i:""}},e.prototype.updateFont=function(){if(this._inputField){var e=this._editor.getOption(32);this._inputField.style.fontFamily=e.fontFamily,this._inputField.style.fontWeight=e.fontWeight,this._inputField.style.fontSize=e.fontSize+"px"}},e.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null},e.prototype.acceptInput=function(){this._currentAcceptInput&&this._currentAcceptInput()},e.prototype.cancelInput=function(e){this._currentCancelInput&&this._currentCancelInput(e)},e.prototype.getInput=function(e,t,n,i){var o=this;this._position=new mn(e.startLineNumber,e.startColumn),this._inputField.value=t,this._inputField.setAttribute("selectionStart",n.toString()),this._inputField.setAttribute("selectionEnd",i.toString()),this._inputField.size=Math.max(1.1*(e.endColumn-e.startColumn),20);var r=new ke,s=function(){r.dispose(),o._hide()};return new Promise((function(n){o._currentCancelInput=function(e){return o._currentAcceptInput=null,o._currentCancelInput=null,n(e),!0},o._currentAcceptInput=function(){0!==o._inputField.value.trim().length&&o._inputField.value!==t?(o._currentAcceptInput=null,o._currentCancelInput=null,n(o._inputField.value)):o.cancelInput(!0)};var i=function(){var t=o._editor.getPosition();t&&vn.containsPosition(e,t)||o.cancelInput(!0)};r.add(o._editor.onDidChangeCursorSelection(i)),r.add(o._editor.onDidBlurEditorWidget((function(){return o.cancelInput(!1)}))),o._show()})).then((function(e){return s(),e}),(function(e){return s(),Promise.reject(e)}))},e.prototype._show=function(){var e=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((function(){e._inputField.focus(),e._inputField.setSelectionRange(parseInt(e._inputField.getAttribute("selectionStart")),parseInt(e._inputField.getAttribute("selectionEnd")))}),100)},e.prototype._hide=function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)},e}(),WX=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)}}(),KX=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},zX=function(e,t){return function(n,i){t(n,i,e)}},jX=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},GX=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},qX=function(){function e(e,t){this.model=e,this.position=t,this._providers=Bl.ordered(e)}return e.prototype.hasProvider=function(){return this._providers.length>0},e.prototype.resolveRenameLocation=function(e){return jX(this,void 0,void 0,(function(){var t,n,i,o;return GX(this,(function(r){switch(r.label){case 0:return t=this._providers[0],t?t.resolveRenameLocation?(i=Na,[4,t.resolveRenameLocation(this.model,this.position,e)]):[3,2]:[2,void 0];case 1:n=i.apply(void 0,[r.sent()]),r.label=2;case 2:return!n&&(o=this.model.getWordAtPosition(this.position),o)?[2,{range:new vn(this.position.lineNumber,o.startColumn,this.position.lineNumber,o.endColumn),text:o.word}]:[2,n]}}))}))},e.prototype.provideRenameEdits=function(e,t,n,i){return jX(this,void 0,void 0,(function(){var o,s;return GX(this,(function(a){switch(a.label){case 0:return o=this._providers[t],o?[4,o.provideRenameEdits(this.model,this.position,e,i)]:[2,{edits:[],rejectReason:n.join("\n")}];case 1:return s=a.sent(),s?s.rejectReason?[2,this.provideRenameEdits(e,t+1,n.concat(s.rejectReason),i)]:[2,s]:[2,this.provideRenameEdits(e,t+1,n.concat(r("no result","No result.")),i)]}}))}))},e}();function YX(e,t,n){return jX(this,void 0,void 0,(function(){return GX(this,(function(i){return[2,new qX(e,t).provideRenameEdits(n,0,[],je.None)]}))}))}var XX=function(){function e(e,t,n,i,o,r){var s=this;this.editor=e,this._notificationService=t,this._bulkEditService=n,this._progressService=i,this._contextKeyService=o,this._themeService=r,this._dispoableStore=new ke,this._cts=new it,this._renameInputField=new Ei((function(){return s._dispoableStore.add(new VX(s.editor,s._themeService,s._contextKeyService))}))}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._dispoableStore.dispose(),this._cts.dispose(!0)},e.prototype.run=function(){return jX(this,void 0,void 0,(function(){var e,t,n,i,o,s,a,u,l,c,d=this;return GX(this,(function(h){switch(h.label){case 0:if(this._cts.dispose(!0),!this.editor.hasModel())return[2,void 0];if(e=this.editor.getPosition(),t=new qX(this.editor.getModel(),e),!t.hasProvider())return[2,void 0];this._cts=new bL(this.editor,5),h.label=1;case 1:return h.trys.push([1,3,,4]),i=t.resolveRenameLocation(this._cts.token),this._progressService.showWhile(i,250),[4,i];case 2:return n=h.sent(),[3,4];case 3:return o=h.sent(),MU.get(this.editor).showMessage(o||r("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),e),[2,void 0];case 4:return n?n.rejectReason?(MU.get(this.editor).showMessage(n.rejectReason,e),[2,void 0]):this._cts.token.isCancellationRequested?[2,void 0]:(s=this.editor.getSelection(),a=0,u=n.text.length,vn.isEmpty(s)||vn.spansMultipleLines(s)||!vn.containsRange(n.range,s)||(a=Math.max(0,s.startColumn-n.range.startColumn),u=Math.min(n.range.endColumn,s.endColumn)-n.range.startColumn),[4,this._renameInputField.getValue().getInput(n.range,n.text,a,u)]):[2,void 0];case 5:return l=h.sent(),"boolean"===typeof l?(l&&this.editor.focus(),[2,void 0]):(this.editor.focus(),c=gi(t.provideRenameEdits(l,0,[],this._cts.token),this._cts.token).then((function(e){return jX(d,void 0,void 0,(function(){var t;return GX(this,(function(i){switch(i.label){case 0:return e&&this.editor.hasModel()?e.rejectReason?(this._notificationService.info(e.rejectReason),[2]):[4,this._bulkEditService.apply(e,{editor:this.editor})]:[2];case 1:return t=i.sent(),t.ariaSummary&&Rf(r("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",n.text,l,t.ariaSummary)),[2]}}))}))}),(function(e){return d._notificationService.error(r("rename.failed","Rename failed to execute.")),Promise.reject(e)})),this._progressService.showWhile(c,250),[2,c])}}))}))},e.prototype.acceptRenameInput=function(){this._renameInputField.getValue().acceptInput()},e.prototype.cancelRenameInput=function(){this._renameInputField.getValue().cancelInput(!0)},e.ID="editor.contrib.renameController",e=KX([zX(1,$p),zX(2,BD),zX(3,qL),zX(4,Mp),zX(5,um)],e),e}(),JX=function(e){function t(){return e.call(this,{id:"editor.action.rename",label:r("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:Cp.and(_S.writable,_S.hasRenameProvider),kbOpts:{kbExpr:_S.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})||this}return WX(t,e),t.prototype.runCommand=function(t,n){var i=this,o=t.get(kn),r=Array.isArray(n)&&n||[void 0,void 0],s=r[0],a=r[1];return Et.isUri(s)&&mn.isIPosition(a)?o.openCodeEditor({resource:s},o.getActiveCodeEditor()).then((function(e){e&&(e.setPosition(a),e.invokeWithinContext((function(t){return i.reportTelemetry(t,e),i.run(t,e)})))}),Ae):e.prototype.runCommand.call(this,t,n)},t.prototype.run=function(e,t){var n=XX.get(t);return n?n.run():Promise.resolve()},t}(_g);Bg(XX.ID,XX),Cg(JX);var ZX=vg.bindToContribution(XX.get);bg(new ZX({id:"acceptRenameInput",precondition:QX,handler:function(e){return e.acceptRenameInput()},kbOpts:{weight:199,kbExpr:_S.focus,primary:3}})),bg(new ZX({id:"cancelRenameInput",precondition:QX,handler:function(e){return e.cancelRenameInput()},kbOpts:{weight:199,kbExpr:_S.focus,primary:9,secondary:[1033]}})),wg("_executeDocumentRenameProvider",(function(e,t,n){var i=n.newName;if("string"!==typeof i)throw _e("newName");return YX(e,t,i)}));var $X=function(){function e(){}return e.prototype.provideSelectionRanges=function(e,t){for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i],s=[];n.push(s),this._addInWordRanges(s,e,r),this._addWordRanges(s,e,r),this._addWhitespaceLine(s,e,r),s.push({range:e.getFullModelRange()})}return n},e.prototype._addInWordRanges=function(e,t,n){var i=t.getWordAtPosition(n);if(i){for(var o=i.word,r=i.startColumn,s=n.column-r,a=s,u=s,l=0;a>=0;a--){var c=o.charCodeAt(a);if(95===c||45===c)break;if(Kr(c)&&zr(l))break;l=c}for(a+=1;u<o.length;u++){c=o.charCodeAt(u);if(zr(c)&&Kr(l))break;if(95===c||45===c)break;l=c}a<u&&e.push({range:new vn(n.lineNumber,r+a,n.lineNumber,r+u)})}},e.prototype._addWordRanges=function(e,t,n){var i=t.getWordAtPosition(n);i&&e.push({range:new vn(n.lineNumber,i.startColumn,n.lineNumber,i.endColumn)})},e.prototype._addWhitespaceLine=function(e,t,n){t.getLineLength(n.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new vn(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})},e}(),eJ=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},tJ=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},nJ=function(){function e(){}return e.prototype.provideSelectionRanges=function(t,n){return eJ(this,void 0,void 0,(function(){var i,o,r,s,a;return tJ(this,(function(u){switch(u.label){case 0:i=[],o=function(n){var o,r;return tJ(this,(function(s){switch(s.label){case 0:return o=[],i.push(o),r=new Map,[4,new Promise((function(i){return e._bracketsRightYield(i,0,t,n,r)}))];case 1:return s.sent(),[4,new Promise((function(i){return e._bracketsLeftYield(i,0,t,n,r,o)}))];case 2:return s.sent(),[2]}}))},r=0,s=n,u.label=1;case 1:return r<s.length?(a=s[r],[5,o(a)]):[3,4];case 2:u.sent(),u.label=3;case 3:return r++,[3,1];case 4:return[2,i]}}))}))},e._bracketsRightYield=function(t,n,i,o,r){var s=new Map,a=Date.now();while(1){if(n>=e._maxRounds){t();break}if(!o){t();break}var u=i.findNextBracket(o);if(!u){t();break}var l=Date.now()-a;if(l>e._maxDuration){setTimeout((function(){return e._bracketsRightYield(t,n+1,i,o,r)}));break}var c=u.close[0];if(u.isOpen){var d=s.has(c)?s.get(c):0;s.set(c,d+1)}else{d=s.has(c)?s.get(c):0;if(d-=1,s.set(c,Math.max(0,d)),d<0){var h=r.get(c);h||(h=new Ke,r.set(c,h)),h.push(u.range)}}o=u.range.getEndPosition()}},e._bracketsLeftYield=function(t,n,i,o,r,s){var a=new Map,u=Date.now();while(1){if(n>=e._maxRounds&&0===r.size){t();break}if(!o){t();break}var l=i.findPrevBracket(o);if(!l){t();break}var c=Date.now()-u;if(c>e._maxDuration){setTimeout((function(){return e._bracketsLeftYield(t,n+1,i,o,r,s)}));break}var d=l.close[0];if(l.isOpen){g=a.has(d)?a.get(d):0;if(g-=1,a.set(d,Math.max(0,g)),g<0){var h=r.get(d);if(h){var A=h.shift();0===h.size&&r.delete(d);var p=vn.fromPositions(l.range.getEndPosition(),A.getStartPosition()),f=vn.fromPositions(l.range.getStartPosition(),A.getEndPosition());s.push({range:p}),s.push({range:f}),e._addBracketLeading(i,f,s)}}}else{var g=a.has(d)?a.get(d):0;a.set(d,g+1)}o=l.range.getStartPosition()}},e._addBracketLeading=function(e,t,n){if(t.startLineNumber!==t.endLineNumber){var i=t.startLineNumber,o=e.getLineFirstNonWhitespaceColumn(i);0!==o&&o!==t.startColumn&&(n.push({range:vn.fromPositions(new mn(i,o),t.getEndPosition())}),n.push({range:vn.fromPositions(new mn(i,1),t.getEndPosition())}));var r=i-1;if(r>0){var s=e.getLineFirstNonWhitespaceColumn(r);s===t.startColumn&&s!==e.getLineLastNonWhitespaceColumn(r)&&(n.push({range:vn.fromPositions(new mn(r,s),t.getEndPosition())}),n.push({range:vn.fromPositions(new mn(r,1),t.getEndPosition())}))}}},e._maxDuration=30,e._maxRounds=2,e}(),iJ=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)}}(),oJ=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},rJ=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},sJ=function(){function e(e,t){this.index=e,this.ranges=t}return e.prototype.mov=function(t){var n=this.index+(t?1:-1);if(n<0||n>=this.ranges.length)return this;var i=new e(n,this.ranges);return i.ranges[n].equalsRange(this.ranges[this.index])?i.mov(t):i},e}(),aJ=function(){function e(e){this._ignoreSelection=!1,this._editor=e}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){xe(this._selectionListener)},e.prototype.run=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getSelections(),i=this._editor.getModel();if(Vl.has(i)){var o=Promise.resolve(void 0);return this._state||(o=dJ(i,n.map((function(e){return e.getPosition()})),je.None).then((function(e){if(Ri(e)&&e.length===n.length&&t._editor.hasModel()&&Di(t._editor.getSelections(),n,(function(e,t){return e.equalsSelection(t)}))){for(var i=function(t){e[t]=e[t].filter((function(e){return e.containsPosition(n[t].getStartPosition())&&e.containsPosition(n[t].getEndPosition())})),e[t].unshift(n[t])},o=0;o<e.length;o++)i(o);t._state=e.map((function(e){return new sJ(0,e)})),xe(t._selectionListener),t._selectionListener=t._editor.onDidChangeCursorPosition((function(){t._ignoreSelection||(xe(t._selectionListener),t._state=void 0)}))}}))),o.then((function(){if(t._state){t._state=t._state.map((function(t){return t.mov(e)}));var n=t._state.map((function(e){return yn.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())}));t._ignoreSelection=!0;try{t._editor.setSelections(n)}finally{t._ignoreSelection=!1}}}))}}},e.ID="editor.contrib.smartSelectController",e}(),uJ=function(e){function t(t,n){var i=e.call(this,n)||this;return i._forward=t,i}return iJ(t,e),t.prototype.run=function(e,t){return oJ(this,void 0,void 0,(function(){var e;return rJ(this,(function(n){switch(n.label){case 0:return e=aJ.get(t),e?[4,e.run(this._forward)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t}(_g),lJ=function(e){function t(){return e.call(this,!0,{id:"editor.action.smartSelect.expand",label:r("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:_S.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:23,group:"1_basic",title:r({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})||this}return iJ(t,e),t}(uJ);za.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");var cJ=function(e){function t(){return e.call(this,!1,{id:"editor.action.smartSelect.shrink",label:r("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:_S.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:23,group:"1_basic",title:r({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})||this}return iJ(t,e),t}(uJ);function dJ(e,t,n){var i=Vl.all(e);1===i.length&&i.unshift(new nJ);for(var o=[],r=[],s=0,a=i;s<a.length;s++){var u=a[s];o.push(Promise.resolve(u.provideSelectionRanges(e,t,n)).then((function(e){if(Ri(e)&&e.length===t.length)for(var n=0;n<t.length;n++){r[n]||(r[n]=[]);for(var i=0,o=e[n];i<o.length;i++){var s=o[i];vn.isIRange(s.range)&&vn.containsPosition(s.range,t[n])&&r[n].push(vn.lift(s.range))}}}),pe))}return Promise.all(o).then((function(){return r.map((function(t){if(0===t.length)return[];t.sort((function(e,t){return mn.isBefore(e.getStartPosition(),t.getStartPosition())?1:mn.isBefore(t.getStartPosition(),e.getStartPosition())||mn.isBefore(e.getEndPosition(),t.getEndPosition())?-1:mn.isBefore(t.getEndPosition(),e.getEndPosition())?1:0}));for(var n,i=[],o=0,r=t;o<r.length;o++){var s=r[o];(!n||vn.containsRange(s,n)&&!vn.equalsRange(s,n))&&(i.push(s),n=s)}for(var a=[i[0]],u=1;u<i.length;u++){var l=i[u-1],c=i[u];if(c.startLineNumber!==l.startLineNumber||c.endLineNumber!==l.endLineNumber){var d=new vn(l.startLineNumber,e.getLineFirstNonWhitespaceColumn(l.startLineNumber),l.endLineNumber,e.getLineLastNonWhitespaceColumn(l.endLineNumber));d.containsRange(l)&&!d.equalsRange(l)&&c.containsRange(d)&&!c.equalsRange(d)&&a.push(d);var h=new vn(l.startLineNumber,1,l.endLineNumber,e.getLineMaxColumn(l.endLineNumber));h.containsRange(l)&&!h.equalsRange(d)&&c.containsRange(h)&&!c.equalsRange(h)&&a.push(h)}a.push(c)}return a}))}))}Bg(aJ.ID,aJ),Cg(lJ),Cg(cJ),Vl.register("*",new $X),wg("_executeSelectionRangeProvider",(function(e,t,n){return dJ(e,n.positions,je.None)}));var hJ,AJ=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},pJ=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},fJ={Visible:new Fp("suggestWidgetVisible",!1),MultipleSuggestions:new Fp("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new Fp("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new Fp("acceptSuggestionOnEnter",!0)},gJ=function(){function e(e,t,n,i,o){this.position=e,this.completion=t,this.container=n,this.provider=i,this.score=JI.Default,this.distance=0,this.labelLow=t.label.toLowerCase(),this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),vn.isIRange(t.range)?(this.editStart=new mn(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new mn(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new mn(t.range.endLineNumber,t.range.endColumn)):(this.editStart=new mn(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new mn(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new mn(t.range.replace.endLineNumber,t.range.replace.endColumn));var r,s=i.resolveCompletionItem;"function"!==typeof s?this.resolve=function(){return Promise.resolve()}:this.resolve=function(n){if(!r){var a=!1;r=Promise.resolve(s.call(i,o,e,t,n)).then((function(e){hu(t,e),a=!0}),(function(e){me(e)&&(r=void 0)})),n.onCancellationRequested((function(){a||(r=void 0)}))}return r}}return e}(),mJ=function(){function e(e,t,n){void 0===e&&(e=2),void 0===t&&(t=new Set),void 0===n&&(n=new Set),this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=n}return e.default=new e,e}();function vJ(){return hJ}function _J(e,t,n,i,o){void 0===n&&(n=mJ.default),void 0===i&&(i={triggerKind:0}),void 0===o&&(o=je.None);var r=e.getWordAtPosition(t),s=r?new vn(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):vn.fromPositions(t),a=s.setEndPosition(t.lineNumber,t.column);t=t.clone();var u=El.orderedGroups(e);!n.kindFilter.has(25)&&hJ&&u.unshift([hJ]);var l=[],c=new ke,d=!1,h=u.map((function(r){return function(){return Promise.all(r.map((function(r){if(!(n.providerFilter.size>0)||n.providerFilter.has(r))return Promise.resolve(r.provideCompletionItems(e,t,i,o)).then((function(i){var o=l.length;if(i){for(var u=0,h=i.suggestions||[];u<h.length;u++){var A=h[u];n.kindFilter.has(A.kind)||(A.range||(A.range={insert:a,replace:s}),A.sortText||(A.sortText=A.label),l.push(new gJ(t,A,i,r,e)))}Ee(i)&&c.add(i)}o!==l.length&&r!==hJ&&(d=!0)}),pe)})))}})),A=yi(h,(function(){return d||o.isCancellationRequested})).then((function(){return o.isCancellationRequested?(c.dispose(),Promise.reject(ve())):l.sort(SJ(n.snippetSortOrder))}));return A}function yJ(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.completion.label<t.completion.label?-1:e.completion.label>t.completion.label?1:e.completion.kind-t.completion.kind}function wJ(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return-1;if(25===t.completion.kind)return 1}return yJ(e,t)}function bJ(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return 1;if(25===t.completion.kind)return-1}return yJ(e,t)}var CJ=new Map;function SJ(e){return CJ.get(e)}CJ.set(0,wJ),CJ.set(2,bJ),CJ.set(1,yJ),wg("_executeCompletionItemProvider",(function(e,t,n){return AJ(void 0,void 0,void 0,(function(){var i,o,r,s,a,u,l,c;return pJ(this,(function(d){switch(d.label){case 0:return i={incomplete:!1,suggestions:[]},o=new ke,r=[],s=n["maxItemsToResolve"]||0,[4,_J(e,t)];case 1:for(a=d.sent(),u=0,l=a;u<l.length;u++)c=l[u],r.length<s&&r.push(c.resolve(je.None)),i.incomplete=i.incomplete||c.container.incomplete,i.suggestions.push(c.completion),Ee(c.container)&&o.add(c.container);d.label=2;case 2:return d.trys.push([2,,4,5]),[4,Promise.all(r)];case 3:return d.sent(),[2,i];case 4:return setTimeout((function(){return o.dispose()}),100),[7];case 5:return[2]}}))}))}));var BJ=new(function(){function e(){this.onlyOnceSuggestions=[]}return e.prototype.provideCompletionItems=function(){var e=this.onlyOnceSuggestions.slice(0),t={suggestions:e};return this.onlyOnceSuggestions.length=0,t},e}());function EJ(e,t){setTimeout((function(){var n;(n=BJ.onlyOnceSuggestions).push.apply(n,t),e.getContribution("editor.contrib.suggestController").triggerSuggest((new Set).add(BJ))}),0)}El.register("*",BJ);n("7457");var xJ,LJ=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)}}(),DJ=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},NJ=function(){function e(){this.value="",this.pos=0}return e.isDigitCharacter=function(e){return e>=48&&e<=57},e.isVariableCharacter=function(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90},e.prototype.text=function(e){this.value=e,this.pos=0},e.prototype.tokenText=function(e){return this.value.substr(e.pos,e.len)},e.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var t,n=this.pos,i=0,o=this.value.charCodeAt(n);if(t=e._table[o],"number"===typeof t)return this.pos+=1,{type:t,pos:n,len:1};if(e.isDigitCharacter(o)){t=8;do{i+=1,o=this.value.charCodeAt(n+i)}while(e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}}if(e.isVariableCharacter(o)){t=9;do{o=this.value.charCodeAt(n+ ++i)}while(e.isVariableCharacter(o)||e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}}t=10;do{i+=1,o=this.value.charCodeAt(n+i)}while(!isNaN(o)&&"undefined"===typeof e._table[o]&&!e.isDigitCharacter(o)&&!e.isVariableCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}},e._table=(xJ={},xJ[36]=0,xJ[58]=1,xJ[44]=2,xJ[123]=3,xJ[125]=4,xJ[92]=5,xJ[47]=6,xJ[124]=7,xJ[43]=11,xJ[45]=12,xJ[63]=13,xJ),e}(),kJ=function(){function e(){this._children=[]}return e.prototype.appendChild=function(e){return e instanceof IJ&&this._children[this._children.length-1]instanceof IJ?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this},e.prototype.replace=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.slice(0);o.splice.apply(o,DJ([i,1],t)),n._children=o,function e(t,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];r.parent=n,e(r.children,r)}}(t,n)},Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snippet",{get:function(){var e=this;while(1){if(!e)return;if(e instanceof HJ)return e;e=e.parent}},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.children.reduce((function(e,t){return e+t.toString()}),"")},e.prototype.len=function(){return 0},e}(),IJ=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return LJ(t,e),t.prototype.toString=function(){return this.value},t.prototype.len=function(){return this.value.length},t.prototype.clone=function(){return new t(this.value)},t}(kJ),FJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return LJ(t,e),t}(kJ),MJ=function(e){function t(t){var n=e.call(this)||this;return n.index=t,n}return LJ(t,e),t.compareByIndex=function(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0},Object.defineProperty(t.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof OJ?this._children[0]:void 0},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e},t}(FJ),OJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=[],t}return LJ(t,e),t.prototype.appendChild=function(e){return e instanceof IJ&&(e.parent=this,this.options.push(e)),this},t.prototype.toString=function(){return this.options[0].value},t.prototype.len=function(){return this.options[0].len()},t.prototype.clone=function(){var e=new t;return this.options.forEach(e.appendChild,e),e},t}(kJ),TJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.regexp=new RegExp(""),t}return LJ(t,e),t.prototype.resolve=function(e){var t=this,n=!1,i=e.replace(this.regexp,(function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!n&&this._children.some((function(e){return e instanceof PJ&&Boolean(e.elseValue)}))&&(i=this._replace([])),i},t.prototype._replace=function(e){for(var t="",n=0,i=this._children;n<i.length;n++){var o=i[n];if(o instanceof PJ){var r=e[o.index]||"";r=o.resolve(r),t+=r}else t+=o.toString()}return t},t.prototype.toString=function(){return""},t.prototype.clone=function(){var e=new t;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((function(e){return e.clone()})),e},t}(kJ),PJ=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.index=t,r.shorthandName=n,r.ifValue=i,r.elseValue=o,r}return LJ(t,e),t.prototype.resolve=function(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue},t.prototype._toPascalCase=function(e){var t=e.match(/[a-z]+/gi);return t?t.map((function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})).join(""):e},t.prototype.clone=function(){var e=new t(this.index,this.shorthandName,this.ifValue,this.elseValue);return e},t}(kJ),RJ=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n}return LJ(t,e),t.prototype.resolve=function(e){var t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new IJ(t)],!0)},t.prototype.clone=function(){var e=new t(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e},t}(FJ);function UJ(e,t){var n=DJ(e);while(n.length>0){var i=n.shift(),o=t(i);if(!o)break;n.unshift.apply(n,i.children)}}var HJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return LJ(t,e),Object.defineProperty(t.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk((function(n){return n instanceof MJ&&(t.push(n),e=!e||e.index<n.index?n:e),!0})),this._placeholders={all:t,last:e}}return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholders",{get:function(){var e=this.placeholderInfo.all;return e},enumerable:!0,configurable:!0}),t.prototype.offset=function(e){var t=0,n=!1;return this.walk((function(i){return i===e?(n=!0,!1):(t+=i.len(),!0)})),n?t:-1},t.prototype.fullLen=function(e){var t=0;return UJ([e],(function(e){return t+=e.len(),!0})),t},t.prototype.enclosingPlaceholders=function(e){var t=[],n=e.parent;while(n)n instanceof MJ&&t.push(n),n=n.parent;return t},t.prototype.resolveVariables=function(e){var t=this;return this.walk((function(n){return n instanceof RJ&&n.resolve(e)&&(t._placeholders=void 0),!0})),this},t.prototype.appendChild=function(t){return this._placeholders=void 0,e.prototype.appendChild.call(this,t)},t.prototype.replace=function(t,n){return this._placeholders=void 0,e.prototype.replace.call(this,t,n)},t.prototype.clone=function(){var e=new t;return this._children=this.children.map((function(e){return e.clone()})),e},t.prototype.walk=function(e){UJ(this.children,e)},t}(kJ),QJ=function(){function e(){this._scanner=new NJ,this._token={type:14,pos:0,len:0}}return e.escape=function(e){return e.replace(/\$|}|\\/g,"\\$&")},e.prototype.parse=function(e,t,n){this._scanner.text(e),this._token=this._scanner.next();var i=new HJ;while(this._parse(i));var o=new Map,r=[],s=0;i.walk((function(e){return e instanceof MJ&&(s+=1,e.isFinalTabstop?o.set(0,void 0):!o.has(e.index)&&e.children.length>0?o.set(e.index,e.children):r.push(e)),!0}));for(var a=0,u=r;a<u.length;a++){var l=u[a],c=o.get(l.index);if(c){var d=new MJ(l.index);d.transform=l.transform;for(var h=0,A=c;h<A.length;h++){var p=A[h];d.appendChild(p.clone())}i.replace(l,[d])}}return n||(n=s>0&&t),!o.has(0)&&n&&i.appendChild(new MJ(0)),i},e.prototype._accept=function(e,t){if(void 0===e||this._token.type===e){var n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n}return!1},e.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1},e.prototype._until=function(e){var t=this._token;while(this._token.type!==e){if(14===this._token.type)return!1;if(5===this._token.type){var n=this._scanner.next();if(0!==n.type&&4!==n.type&&5!==n.type)return!1}this._token=this._scanner.next()}var i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i},e.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)},e.prototype._parseEscaped=function(e){var t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new IJ(t)),!0)},e.prototype._parseTabstopOrVariableName=function(e){var t,n=this._token,i=this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0));return i?(e.appendChild(/^\d+$/.test(t)?new MJ(Number(t)):new RJ(t)),!0):this._backTo(n)},e.prototype._parseComplexPlaceholder=function(e){var t,n=this._token,i=this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0));if(!i)return this._backTo(n);var o=new MJ(Number(t));if(this._accept(1))while(1){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new IJ("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else{if(!(o.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(n);var r=new OJ;while(1){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(r),this._accept(4)))return e.appendChild(o),!0}return this._backTo(n),!1}}},e.prototype._parseChoiceElement=function(e){var t=this._token,n=[];while(1){if(2===this._token.type||7===this._token.type)break;var i=void 0;if(i=(i=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||i:this._accept(void 0,!0),!i)return this._backTo(t),!1;n.push(i)}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new IJ(n.join(""))),!0)},e.prototype._parseComplexVariable=function(e){var t,n=this._token,i=this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0));if(!i)return this._backTo(n);var o=new RJ(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(n);while(1){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new IJ("${"+t+":")),o.children.forEach(e.appendChild,e),!0}},e.prototype._parseTransform=function(e){var t=new TJ,n="",i="";while(1){if(this._accept(6))break;var o=void 0;if(o=this._accept(5,!0))o=this._accept(6,!0)||o,n+=o;else{if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}}while(1){if(this._accept(6))break;o=void 0;if(o=this._accept(5,!0))o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new IJ(o));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}while(1){if(this._accept(4))break;if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,i)}catch(r){return!1}return e.transform=t,!0},e.prototype._parseFormatString=function(e){var t=this._token;if(!this._accept(0))return!1;var n=!1;this._accept(3)&&(n=!0);var i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!n)return e.appendChild(new PJ(Number(i))),!0;if(this._accept(4))return e.appendChild(new PJ(Number(i))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){var o=this._accept(9,!0);return o&&this._accept(4)?(e.appendChild(new PJ(Number(i),o)),!0):(this._backTo(t),!1)}if(this._accept(11)){var r=this._until(4);if(r)return e.appendChild(new PJ(Number(i),void 0,r,void 0)),!0}else if(this._accept(12)){var s=this._until(4);if(s)return e.appendChild(new PJ(Number(i),void 0,void 0,s)),!0}else if(this._accept(13)){r=this._until(1);if(r){s=this._until(4);if(s)return e.appendChild(new PJ(Number(i),void 0,r,s)),!0}}else{s=this._until(4);if(s)return e.appendChild(new PJ(Number(i),void 0,void 0,s)),!0}return this._backTo(t),!1},e.prototype._parseAnything=function(e){return 14!==this._token.type&&(e.appendChild(new IJ(this._scanner.tokenText(this._token))),this._accept(void 0),!0)},e}(),VJ="code-workspace";function WJ(e){return e instanceof Et}function KJ(e){return e.configuration?{configPath:e.configuration,id:e.id}:1===e.folders.length?e.folders[0].uri:void 0}var zJ=function(){function e(e){this._delegates=e}return e.prototype.resolve=function(e){for(var t=0,n=this._delegates;t<n.length;t++){var i=n[t],o=i.resolve(e);if(void 0!==o)return o}},e}(),jJ=function(){function e(e,t){this._model=e,this._selection=t}return e.prototype.resolve=function(e){var t=e.name;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){var n=this._model.getValueInRange(this._selection)||void 0;if(n&&this._selection.startLineNumber!==this._selection.endLineNumber&&e.snippet){var i=this._model.getLineContent(this._selection.startLineNumber),o=Hr(i,0,this._selection.startColumn-1),r=o;e.snippet.walk((function(t){return t!==e&&(t instanceof IJ&&(r=Hr(t.value.split(/\r\n|\r|\n/).pop())),!0)}));var s=Xr(r,o);n=n.replace(/(\r\n|\r|\n)(.*)/g,(function(e,t,n){return""+t+r.substr(s)+n}))}return n}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){var a=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return a&&a.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):void 0},e}(),GJ=function(){function e(e,t){this._labelService=e,this._model=t}return e.prototype.resolve=function(e){var t=e.name;if("TM_FILENAME"===t)return Ys(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){var n=Ys(this._model.uri.fsPath),i=n.lastIndexOf(".");return i<=0?n:n.slice(0,i)}return"TM_DIRECTORY"===t&&this._labelService?"."===qs(this._model.uri.fsPath)?"":this._labelService.getUriLabel(ua(this._model.uri)):"TM_FILEPATH"===t&&this._labelService?this._labelService.getUriLabel(this._model.uri):void 0},e}(),qJ=function(){function e(e,t,n,i){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=n,this._spread=i}return e.prototype.resolve=function(e){if("CLIPBOARD"===e.name){var t=this._readClipboardText();if(t){if(this._spread){var n=t.split(/\r\n|\n|\r/).filter((function(e){return!Sr(e)}));if(n.length===this._selectionCount)return n[this._selectionIdx]}return t}}},e}(),YJ=function(){function e(e){this._model=e}return e.prototype.resolve=function(e){var t=e.name,n=this._model.getLanguageIdentifier(),i=Pc.getComments(n.id);if(i)return"LINE_COMMENT"===t?i.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?i.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&i.blockCommentEndToken||void 0},e}(),XJ=function(){function e(){}return e.prototype.resolve=function(t){var n=t.name;return"CURRENT_YEAR"===n?String((new Date).getFullYear()):"CURRENT_YEAR_SHORT"===n?String((new Date).getFullYear()).slice(-2):"CURRENT_MONTH"===n?Br((new Date).getMonth().valueOf()+1,2):"CURRENT_DATE"===n?Br((new Date).getDate().valueOf(),2):"CURRENT_HOUR"===n?Br((new Date).getHours().valueOf(),2):"CURRENT_MINUTE"===n?Br((new Date).getMinutes().valueOf(),2):"CURRENT_SECOND"===n?Br((new Date).getSeconds().valueOf(),2):"CURRENT_DAY_NAME"===n?e.dayNames[(new Date).getDay()]:"CURRENT_DAY_NAME_SHORT"===n?e.dayNamesShort[(new Date).getDay()]:"CURRENT_MONTH_NAME"===n?e.monthNames[(new Date).getMonth()]:"CURRENT_MONTH_NAME_SHORT"===n?e.monthNamesShort[(new Date).getMonth()]:"CURRENT_SECONDS_UNIX"===n?String(Math.floor(Date.now()/1e3)):void 0},e.dayNames=[r("Sunday","Sunday"),r("Monday","Monday"),r("Tuesday","Tuesday"),r("Wednesday","Wednesday"),r("Thursday","Thursday"),r("Friday","Friday"),r("Saturday","Saturday")],e.dayNamesShort=[r("SundayShort","Sun"),r("MondayShort","Mon"),r("TuesdayShort","Tue"),r("WednesdayShort","Wed"),r("ThursdayShort","Thu"),r("FridayShort","Fri"),r("SaturdayShort","Sat")],e.monthNames=[r("January","January"),r("February","February"),r("March","March"),r("April","April"),r("May","May"),r("June","June"),r("July","July"),r("August","August"),r("September","September"),r("October","October"),r("November","November"),r("December","December")],e.monthNamesShort=[r("JanuaryShort","Jan"),r("FebruaryShort","Feb"),r("MarchShort","Mar"),r("AprilShort","Apr"),r("MayShort","May"),r("JuneShort","Jun"),r("JulyShort","Jul"),r("AugustShort","Aug"),r("SeptemberShort","Sep"),r("OctoberShort","Oct"),r("NovemberShort","Nov"),r("DecemberShort","Dec")],e}(),JJ=function(){function e(e){this._workspaceService=e}return e.prototype.resolve=function(e){if(this._workspaceService){var t=KJ(this._workspaceService.getWorkspace());if(t)return"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}},e.prototype._resolveWorkspaceName=function(e){if(WJ(e))return Ys(e.path);var t=Ys(e.configPath.path);return Or(t,VJ)&&(t=t.substr(0,t.length-VJ.length-1)),t},e.prototype._resoveWorkspacePath=function(e){if(WJ(e))return Yz(e.fsPath);var t=Ys(e.configPath.path),n=e.configPath.fsPath;return Or(n,t)&&(n=n.substr(0,n.length-t.length-1)),n?Yz(n):"/"},e}(),ZJ=function(){function e(){}return e.prototype.resolve=function(e){var t=e.name;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):void 0},e}();gm((function(e,t){function n(t){var n=e.getColor(t);return n?n.toString():"transparent"}t.addRule(".monaco-editor .snippet-placeholder { background-color: "+n(Ib)+"; outline-color: "+n(Fb)+"; }"),t.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+n(Mb)+"; outline-color: "+n(Ob)+"; }")}));var $J=function(){function e(e,t,n){this._nestingLevel=1,this._editor=e,this._snippet=t,this._offset=n,this._placeholderGroups=Oi(t.placeholders,MJ.compareByIndex),this._placeholderGroupsIdx=-1}return e.prototype.dispose=function(){if(this._placeholderDecorations){var e=[];this._placeholderDecorations.forEach((function(t){return e.push(t)})),this._editor.deltaDecorations(e,[])}this._placeholderGroups.length=0},e.prototype._initDecorations=function(){var t=this;if(!this._placeholderDecorations){this._placeholderDecorations=new Map;var n=this._editor.getModel();this._editor.changeDecorations((function(i){for(var o=0,r=t._snippet.placeholders;o<r.length;o++){var s=r[o],a=t._snippet.offset(s),u=t._snippet.fullLen(s),l=vn.fromPositions(n.getPositionAt(t._offset+a),n.getPositionAt(t._offset+a+u)),c=s.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive,d=i.addDecoration(l,c);t._placeholderDecorations.set(s,d)}}))}},e.prototype.move=function(t){var n=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){for(var i=[],o=0,r=this._placeholderGroups[this._placeholderGroupsIdx];o<r.length;o++){var s=r[o];if(s.transform){var a=this._placeholderDecorations.get(s),u=this._editor.getModel().getDecorationRange(a),l=this._editor.getModel().getValueInRange(u);i.push(op.replaceMove(u,s.transform.resolve(l)))}}i.length>0&&this._editor.executeEdits("snippet.placeholderTransform",i)}var c=!1;!0===t&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,c=!0):!1===t&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,c=!0);var d=this._editor.getModel().changeDecorations((function(t){for(var i=new Set,o=[],r=0,s=n._placeholderGroups[n._placeholderGroupsIdx];r<s.length;r++){var a=s[r],u=n._placeholderDecorations.get(a),l=n._editor.getModel().getDecorationRange(u);o.push(new yn(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn)),c=c&&n._hasPlaceholderBeenCollapsed(a),t.changeDecorationOptions(u,a.isFinalTabstop?e._decor.activeFinal:e._decor.active),i.add(a);for(var d=0,h=n._snippet.enclosingPlaceholders(a);d<h.length;d++){var A=h[d],p=n._placeholderDecorations.get(A);t.changeDecorationOptions(p,A.isFinalTabstop?e._decor.activeFinal:e._decor.active),i.add(A)}}return n._placeholderDecorations.forEach((function(n,o){i.has(o)||t.changeDecorationOptions(n,o.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive)})),o}));return c?this.move(t):d},e.prototype._hasPlaceholderBeenCollapsed=function(e){var t=e;while(t){if(t instanceof MJ){var n=this._placeholderDecorations.get(t),i=this._editor.getModel().getDecorationRange(n);if(i.isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1},Object.defineProperty(e.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),e.prototype.computePossibleSelections=function(){for(var e=new Map,t=0,n=this._placeholderGroups;t<n.length;t++)for(var i=n[t],o=void 0,r=0,s=i;r<s.length;r++){var a=s[r];if(a.isFinalTabstop)break;o||(o=[],e.set(a.index,o));var u=this._placeholderDecorations.get(a),l=this._editor.getModel().getDecorationRange(u);if(!l){e.delete(a.index);break}o.push(l)}return e},Object.defineProperty(e.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),e.prototype.merge=function(t){var n=this,i=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((function(o){for(var r=0,s=n._placeholderGroups[n._placeholderGroupsIdx];r<s.length;r++){var a=s[r],u=t.shift();console.assert(!u._placeholderDecorations);for(var l=u._snippet.placeholderInfo.last.index,c=0,d=u._snippet.placeholderInfo.all;c<d.length;c++){var h=d[c];h.isFinalTabstop?h.index=a.index+(l+1)/n._nestingLevel:h.index=a.index+h.index/n._nestingLevel}n._snippet.replace(a,u._snippet.children);var A=n._placeholderDecorations.get(a);o.removeDecoration(A),n._placeholderDecorations.delete(a);for(var p=0,f=u._snippet.placeholders;p<f.length;p++){var g=f[p],m=u._snippet.offset(g),v=u._snippet.fullLen(g),_=vn.fromPositions(i.getPositionAt(u._offset+m),i.getPositionAt(u._offset+m+v)),y=o.addDecoration(_,e._decor.inactive);n._placeholderDecorations.set(g,y)}}n._placeholderGroups=Oi(n._snippet.placeholders,MJ.compareByIndex)}))},e._decor={active:z_.register({stickiness:0,className:"snippet-placeholder"}),inactive:z_.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:z_.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:z_.register({stickiness:1,className:"finish-snippet-placeholder"})},e}(),eZ={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},tZ=function(){function e(e,t,n){void 0===n&&(n=eZ),this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=n}return e.adjustWhitespace=function(e,t,n,i,o){var r=e.getLineContent(t.lineNumber),s=Hr(r,0,t.column-1);n.walk((function(t){if(t instanceof IJ&&!(t.parent instanceof OJ)){var n=t.value.split(/\r\n|\r|\n/);if(i)for(var r=1;r<n.length;r++){var a=Hr(n[r]);n[r]=e.normalizeIndentation(s+a)+n[r].substr(a.length)}if(o){var u=n.join(e.getEOL());u!==t.value&&t.parent.replace(t,[new IJ(u)])}}return!0}))},e.adjustSelection=function(e,t,n,i){if(0!==n||0!==i){var o=t.positionLineNumber,r=t.positionColumn,s=r-n,a=r+i,u=e.validateRange({startLineNumber:o,startColumn:s,endLineNumber:o,endColumn:a});t=yn.createWithDirection(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn,t.getDirection())}return t},e.createEditsAndSnippets=function(t,n,i,o,r,s,a){var u=[],l=[];if(!t.hasModel())return{edits:u,snippets:l};for(var c=t.getModel(),d=t.invokeWithinContext((function(e){return e.get(tf,Nn)})),h=t.invokeWithinContext((function(e){return new GJ(e.get(iI,Nn),c)})),A=t.invokeWithinContext((function(e){return e.get(fD,Nn)})),p=function(){return a||A&&A.readTextSync()},f=0,g=c.getValueInRange(e.adjustSelection(c,t.getSelection(),i,0)),m=c.getValueInRange(e.adjustSelection(c,t.getSelection(),0,o)),v=c.getLineFirstNonWhitespaceColumn(t.getSelection().positionLineNumber),_=t.getSelections().map((function(e,t){return{selection:e,idx:t}})).sort((function(e,t){return vn.compareRangesUsingStarts(e.selection,t.selection)})),y=0,w=_;y<w.length;y++){var b=w[y],C=b.selection,S=b.idx,B=e.adjustSelection(c,C,i,0),E=e.adjustSelection(c,C,0,o);g!==c.getValueInRange(B)&&(B=C),m!==c.getValueInRange(E)&&(E=C);var x=C.setStartPosition(B.startLineNumber,B.startColumn).setEndPosition(E.endLineNumber,E.endColumn),L=(new QJ).parse(n,!0,r),D=x.getStartPosition();e.adjustWhitespace(c,D,L,s||S>0&&v!==c.getLineFirstNonWhitespaceColumn(C.positionLineNumber),!0),L.resolveVariables(new zJ([h,new qJ(p,S,_.length,"spread"===t.getOption(58)),new jJ(c,C),new YJ(c),new XJ,new JJ(d),new ZJ]));var N=c.getOffsetAt(D)+f;f+=L.toString().length-c.getValueLengthInRange(x),u[S]=op.replace(x,L.toString()),l[S]=new $J(t,L,N)}return{edits:u,snippets:l}},e.prototype.dispose=function(){xe(this._snippets)},e.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},e.prototype.insert=function(){var t=this;if(this._editor.hasModel()){var n=e.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),i=n.edits,o=n.snippets;this._snippets=o,this._editor.executeEdits("snippet",i,(function(e){return t._snippets[0].hasPlaceholder?t._move(!0):e.map((function(e){return yn.fromPositions(e.range.getEndPosition())}))})),this._editor.revealRange(this._editor.getSelections()[0])}},e.prototype.merge=function(t,n){var i=this;if(void 0===n&&(n=eZ),this._editor.hasModel()){this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,t]);var o=e.createEditsAndSnippets(this._editor,t,n.overwriteBefore,n.overwriteAfter,!0,n.adjustWhitespace,n.clipboardText),r=o.edits,s=o.snippets;this._editor.executeEdits("snippet",r,(function(e){for(var t=0,n=i._snippets;t<n.length;t++){var o=n[t];o.merge(s)}return console.assert(0===s.length),i._snippets[0].hasPlaceholder?i._move(void 0):e.map((function(e){return yn.fromPositions(e.range.getEndPosition())}))}))}},e.prototype.next=function(){var e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},e.prototype.prev=function(){var e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},e.prototype._move=function(e){for(var t=[],n=0,i=this._snippets;n<i.length;n++){var o=i[n],r=o.move(e);t.push.apply(t,r)}return t},Object.defineProperty(e.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),e.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;for(var t=new Map,n=function(n){var i=n.computePossibleSelections();if(0===t.size&&i.forEach((function(n,i){n.sort(vn.compareRangesUsingStarts);for(var o=0,r=e;o<r.length;o++){var s=r[o];if(n[0].containsRange(s)){t.set(i,[]);break}}})),0===t.size)return{value:!1};t.forEach((function(e,t){e.push.apply(e,i.get(t))}))},i=0,o=this._snippets;i<o.length;i++){var r=o[i],s=n(r);if("object"===typeof s)return s.value}return e.sort(vn.compareRangesUsingStarts),t.forEach((function(n,i){if(n.length===e.length){n.sort(vn.compareRangesUsingStarts);for(var o=0;o<n.length;o++)if(!n[o].containsRange(e[o]))return void t.delete(i)}else t.delete(i)})),t.size>0},e}(),nZ=function(){return nZ=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nZ.apply(this,arguments)},iZ=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},oZ=function(e,t){return function(n,i){t(n,i,e)}},rZ={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},sZ=function(){function e(t,n,i){this._editor=t,this._logService=n,this._snippetListener=new ke,this._modelVersionId=-1,this._inSnippet=e.InSnippetMode.bindTo(i),this._hasNextTabstop=e.HasNextTabstop.bindTo(i),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(i)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),xe(this._session),this._snippetListener.dispose()},e.prototype.insert=function(e,t){try{this._doInsert(e,"undefined"===typeof t?rZ:nZ(nZ({},rZ),t))}catch(n){this.cancel(),this._logService.error(n),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},e.prototype._doInsert=function(e,t){var n=this;this._editor.hasModel()&&(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new tZ(this._editor,e,t),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((function(e){return e.isFlush&&n.cancel()}))),this._snippetListener.add(this._editor.onDidChangeModel((function(){return n.cancel()}))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((function(){return n._updateState()}))))},e.prototype._updateState=function(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}},e.prototype._handleChoice=function(){var e=this;if(this._session&&this._editor.hasModel()){var t=this._session.choice;if(t){if(this._currentChoice!==t){this._currentChoice=t,this._editor.setSelections(this._editor.getSelections().map((function(e){return yn.fromPositions(e.getStartPosition())})));var n=t.options[0];EJ(this._editor,t.options.map((function(t,i){return{kind:13,label:t.value,insertText:t.value,sortText:vs("a",i+1),range:vn.fromPositions(e._editor.getPosition(),e._editor.getPosition().delta(0,n.value.length))}})))}}else this._currentChoice=void 0}else this._currentChoice=void 0},e.prototype.finish=function(){while(this._inSnippet.get())this.next()},e.prototype.cancel=function(e){void 0===e&&(e=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),xe(this._session),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])},e.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},e.prototype.next=function(){this._session&&this._session.next(),this._updateState()},e.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},e.ID="snippetController2",e.InSnippetMode=new Fp("inSnippetMode",!1),e.HasNextTabstop=new Fp("hasNextTabstop",!1),e.HasPrevTabstop=new Fp("hasPrevTabstop",!1),e=iZ([oZ(1,Fd),oZ(2,Mp)],e),e}();Bg(sZ.ID,sZ);var aZ=vg.bindToContribution(sZ.get);bg(new aZ({id:"jumpToNextSnippetPlaceholder",precondition:Cp.and(sZ.InSnippetMode,sZ.HasNextTabstop),handler:function(e){return e.next()},kbOpts:{weight:130,kbExpr:_S.editorTextFocus,primary:2}})),bg(new aZ({id:"jumpToPrevSnippetPlaceholder",precondition:Cp.and(sZ.InSnippetMode,sZ.HasPrevTabstop),handler:function(e){return e.prev()},kbOpts:{weight:130,kbExpr:_S.editorTextFocus,primary:1026}})),bg(new aZ({id:"leaveSnippet",precondition:sZ.InSnippetMode,handler:function(e){return e.cancel(!0)},kbOpts:{weight:130,kbExpr:_S.editorTextFocus,primary:9,secondary:[1033]}})),bg(new aZ({id:"acceptSnippet",precondition:sZ.InSnippetMode,handler:function(e){return e.finish()}}));var uZ=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)}}(),lZ=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},cZ=function(e,t){return function(n,i){t(n,i,e)}},dZ=function(){function e(){}return e.prototype.select=function(e,t,n){if(0===n.length)return 0;for(var i=n[0].score[0],o=1;o<n.length;o++){var r=n[o],s=r.score,a=r.completion;if(s[0]!==i)break;if(a.preselect)return o}return 0},e}(),hZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return uZ(t,e),t.prototype.memorize=function(e,t,n){},t.prototype.toJSON=function(){},t.prototype.fromJSON=function(){},t}(dZ),AZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._cache=new Va(300,.66),t._seq=0,t}return uZ(t,e),t.prototype.memorize=function(e,t,n){var i=n.completion.label,o=e.getLanguageIdentifier().language+"/"+i;this._cache.set(o,{touch:this._seq++,type:n.completion.kind,insertText:n.completion.insertText})},t.prototype.select=function(t,n,i){if(0===i.length)return 0;var o=t.getLineContent(n.lineNumber).substr(n.column-10,n.column-1);if(/\s$/.test(o))return e.prototype.select.call(this,t,n,i);for(var r=i[0].score[0],s=-1,a=-1,u=-1,l=0;l<i.length;l++){if(i[l].score[0]!==r)break;var c=t.getLanguageIdentifier().language+"/"+i[l].completion.label,d=this._cache.peek(c);if(d&&d.touch>u&&d.type===i[l].completion.kind&&d.insertText===i[l].completion.insertText&&(u=d.touch,a=l),i[l].completion.preselect&&-1===s)return l}return-1!==a?a:-1!==s?s:0},t.prototype.toJSON=function(){var e=[];return this._cache.forEach((function(t,n){e.push([n,t])})),e},t.prototype.fromJSON=function(e){this._cache.clear();for(var t=0,n=0,i=e;n<i.length;n++){var o=i[n],r=o[0],s=o[1];s.touch=t,s.type="number"===typeof s.type?s.type:yl(s.type),this._cache.set(r,s)}this._seq=this._cache.size},t}(dZ),pZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._trie=Ua.forStrings(),t._seq=0,t}return uZ(t,e),t.prototype.memorize=function(e,t,n){var i=e.getWordUntilPosition(t).word,o=e.getLanguageIdentifier().language+"/"+i;this._trie.set(o,{type:n.completion.kind,insertText:n.completion.insertText,touch:this._seq++})},t.prototype.select=function(t,n,i){var o=t.getWordUntilPosition(n).word;if(!o)return e.prototype.select.call(this,t,n,i);var r=t.getLanguageIdentifier().language+"/"+o,s=this._trie.get(r);if(s||(s=this._trie.findSubstr(r)),s)for(var a=0;a<i.length;a++){var u=i[a].completion,l=u.kind,c=u.insertText;if(l===s.type&&c===s.insertText)return a}return e.prototype.select.call(this,t,n,i)},t.prototype.toJSON=function(){var e=[];return this._trie.forEach((function(t,n){return e.push([n,t])})),e.sort((function(e,t){return-(e[1].touch-t[1].touch)})).forEach((function(e,t){return e[1].touch=t})),e.slice(0,200)},t.prototype.fromJSON=function(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i[0],r=i[1];r.type="number"===typeof r.type?r.type:yl(r.type),this._trie.set(o,r)}}},t}(dZ),fZ=function(e){function t(t,n){var i=e.call(this)||this;i._storageService=t,i._configService=n,i._storagePrefix="suggest/memories";var o=function(){var e=i._configService.getValue("editor.suggestSelection"),t=i._configService.getValue("editor.suggest.shareSuggestSelections");i._update(e,t,!1)};return i._persistSoon=i._register(new Si((function(){return i._saveState()}),500)),i._register(t.onWillSaveState((function(e){e.reason===iT.SHUTDOWN&&i._saveState()}))),i._register(i._configService.onDidChangeConfiguration((function(e){(e.affectsConfiguration("editor.suggestSelection")||e.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&o()}))),i._register(i._storageService.onDidChangeStorage((function(e){0===e.scope&&0===e.key.indexOf(i._storagePrefix)&&(document.hasFocus()||i._update(i._mode,i._shareMem,!0))}))),o(),i}return uZ(t,e),t.prototype._update=function(e,t,n){if(n||this._mode!==e||this._shareMem!==t){this._shareMem=t,this._mode=e,this._strategy="recentlyUsedByPrefix"===e?new pZ:"recentlyUsed"===e?new AZ:new hZ;try{var i=t?0:1,o=this._storageService.get(this._storagePrefix+"/"+this._mode,i);o&&this._strategy.fromJSON(JSON.parse(o))}catch(r){}}},t.prototype.memorize=function(e,t,n){this._strategy.memorize(e,t,n),this._persistSoon.schedule()},t.prototype.select=function(e,t,n){return this._strategy.select(e,t,n)},t.prototype._saveState=function(){var e=JSON.stringify(this._strategy),t=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,e,t)},t=lZ([cZ(0,aT),cZ(1,rp)],t),t}(Ie),gZ=Dn("ISuggestMemories");pL(gZ,fZ,!0);var mZ,vZ=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},_Z=function(e,t){return function(n,i){t(n,i,e)}},yZ=function(){function e(t,n){this._editor=t,this._index=0,this._ckOtherSuggestions=e.OtherSuggestions.bindTo(n)}return e.prototype.dispose=function(){this.reset()},e.prototype.reset=function(){this._ckOtherSuggestions.reset(),xe(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},e.prototype.set=function(t,n){var i=this,o=t.model,r=t.index;if(0!==o.items.length){var s=e._moveIndex(!0,o,r);s!==r?(this._acceptNext=n,this._model=o,this._index=r,this._listener=this._editor.onDidChangeCursorPosition((function(){i._ignore||i.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}else this.reset()},e._moveIndex=function(e,t,n){var i=n;while(1){if(i=(i+t.items.length+(e?1:-1))%t.items.length,i===n)break;if(!t.items[i].completion.additionalTextEdits)break}return i},e.prototype.next=function(){this._move(!0)},e.prototype.prev=function(){this._move(!1)},e.prototype._move=function(t){if(this._model)try{this._ignore=!0,this._index=e._moveIndex(t,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},e.OtherSuggestions=new Fp("hasOtherSuggestions",!1),e=vZ([_Z(1,Mp)],e),e}(),wZ=(function(){function e(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}(),function(){function e(t,n,i,o,r,s){this._snippetCompareFn=e._compareCompletionItems,this._items=t,this._column=n,this._wordDistance=o,this._options=r,this._refilterKind=1,this._lineContext=i,"top"===s?this._snippetCompareFn=e._compareCompletionItemsSnippetsUp:"bottom"===s&&(this._snippetCompareFn=e._compareCompletionItemsSnippetsDown)}return Object.defineProperty(e.prototype,"lineContext",{get:function(){return this._lineContext},set:function(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),e.prototype.adopt=function(e){for(var t=new Array,n=0;n<this._items.length;)e.has(this._items[n].provider)?n++:(t.push(this._items[n]),this._items[n]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t},Object.defineProperty(e.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),e.prototype._ensureCachedState=function(){0!==this._refilterKind&&this._createCachedState()},e.prototype._createCachedState=function(){this._isIncomplete=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};for(var e=this._lineContext,t=e.leadingLineContent,n=e.characterCountDelta,i="",o="",r=1===this._refilterKind?this._items:this._filteredItems,s=[],a=!this._options.filterGraceful||r.length>2e3?uF:gF,u=0;u<r.length;u++){var l=r[u];l.container.incomplete&&this._isIncomplete.add(l.provider);var c=l.position.column-l.editStart.column,d=c+n-(l.position.column-this._column);if(i.length!==d&&(i=0===d?"":t.slice(-d),o=i.toLowerCase()),l.word=i,0===d)l.score=JI.Default;else{var h=0;while(h<c){var A=i.charCodeAt(h);if(32!==A&&9!==A)break;h+=1}if(h>=d)l.score=JI.Default;else if("string"===typeof l.completion.filterText){var p=a(i,o,h,l.completion.filterText,l.filterTextLow,0,!1);if(!p)continue;0===Wr(l.completion.filterText,l.completion.label)?l.score=p:(l.score=GI(i,o,h,l.completion.label,l.labelLow,0),l.score[0]=p[0])}else{p=a(i,o,h,l.completion.label,l.labelLow,0,!1);if(!p)continue;l.score=p}}switch(l.idx=u,l.distance=this._wordDistance.distance(l.position,l.completion),s.push(l),this._stats.suggestionCount++,l.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=s.sort(this._snippetCompareFn),this._refilterKind=0},e._compareCompletionItems=function(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0},e._compareCompletionItemsSnippetsDown=function(t,n){if(t.completion.kind!==n.completion.kind){if(25===t.completion.kind)return 1;if(25===n.completion.kind)return-1}return e._compareCompletionItems(t,n)},e._compareCompletionItemsSnippetsUp=function(t,n){if(t.completion.kind!==n.completion.kind){if(25===t.completion.kind)return-1;if(25===n.completion.kind)return 1}return e._compareCompletionItems(t,n)},e}()),bZ=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)}}(),CZ=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},SZ=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},BZ=function(){function e(){}return e.create=function(t,n){return CZ(this,void 0,void 0,(function(){var i,o,r,s;return SZ(this,(function(a){switch(a.label){case 0:return n.getOption(85).localityBonus&&n.hasModel()?(i=n.getModel(),o=n.getPosition(),t.canComputeWordRanges(i.uri)?[4,(new nJ).provideSelectionRanges(i,[o])]:[2,e.None]):[2,e.None];case 1:return r=a.sent(),r&&0!==r.length&&0!==r[0].length?[4,t.computeWordRanges(i.uri,r[0][0].range)]:[2,e.None];case 2:return s=a.sent(),[2,new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bZ(t,e),t.prototype.distance=function(e,t){if(!s||!o.equals(n.getPosition()))return 0;if(17===t.kind)return 2<<20;var i=t.label,a=s[i];if(Pi(a))return 2<<20;for(var u=Ni(a,vn.fromPositions(e),vn.compareRangesUsingStarts),l=u>=0?a[u]:a[Math.max(0,~u-1)],c=r.length,d=0,h=r[0];d<h.length;d++){var A=h[d];if(!vn.containsRange(A.range,l))break;c-=1}return c},t}(e))]}}))}))},e.None=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bZ(t,e),t.prototype.distance=function(){return 0},t}(e)),e}(),EZ=function(){function e(e,t,n,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=n,this.shy=i}return e.shouldAutoTrigger=function(e){if(!e.hasModel())return!1;var t=e.getModel(),n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);var i=t.getWordAtPosition(n);return!!i&&(i.endColumn===n.column&&!!isNaN(Number(i.word)))},e}(),xZ=function(){function e(e,t){var n=this;this._editor=e,this._editorWorker=t,this._toDispose=new ke,this._quickSuggestDelay=10,this._triggerQuickSuggest=new bi,this._state=0,this._completionDisposables=new ke,this._onDidCancel=new Ye,this._onDidTrigger=new Ye,this._onDidSuggest=new Ye,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new yn(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((function(){n._updateTriggerCharacters(),n.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((function(){n._updateTriggerCharacters(),n.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((function(){n._updateTriggerCharacters(),n._updateQuickSuggest()}))),this._toDispose.add(El.onDidChange((function(){n._updateTriggerCharacters(),n._updateActiveSuggestSession()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((function(e){n._onCursorChange(e)})));var i=!1;this._toDispose.add(this._editor.onCompositionStart((function(){i=!0}))),this._toDispose.add(this._editor.onCompositionEnd((function(){i=!1,n._refilterCompletionItems()}))),this._toDispose.add(this._editor.onDidChangeModelContent((function(){i||n._refilterCompletionItems()}))),this._updateTriggerCharacters(),this._updateQuickSuggest()}return e.prototype.dispose=function(){xe(this._triggerCharacterListener),xe([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},e.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getOption(64),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},e.prototype._updateTriggerCharacters=function(){var e=this;if(xe(this._triggerCharacterListener),!this._editor.getOption(65)&&this._editor.hasModel()&&this._editor.getOption(88)){for(var t=Object.create(null),n=0,i=El.all(this._editor.getModel());n<i.length;n++)for(var o=i[n],r=0,s=o.triggerCharacters||[];r<s.length;r++){var a=s[r],u=t[a];u||(u=t[a]=new Set,u.add(vJ())),u.add(o)}this._triggerCharacterListener=this._editor.onDidType((function(n){var i=n.charAt(n.length-1),o=t[i];if(o){var r=e._completionModel?e._completionModel.adopt(o):void 0;e.trigger({auto:!0,shy:!1,triggerCharacter:i},Boolean(e._completionModel),o,r)}}))}},Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){void 0===e&&(e=!1),0!==this._state&&(this._triggerQuickSuggest.cancel(),this._requestToken&&(this._requestToken.cancel(),this._requestToken=void 0),this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))},e.prototype.clear=function(){this._completionDisposables.clear()},e.prototype._updateActiveSuggestSession=function(){0!==this._state&&(this._editor.hasModel()&&El.has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1},!0):this.cancel())},e.prototype._onCursorChange=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getModel(),i=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source)0!==this._state&&this.cancel();else if(El.has(n)&&0===this._state){if(!1===this._editor.getOption(63))return;if(!i.containsRange(this._currentSelection)&&!i.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(85).snippetsPreventQuickSuggestions&&sZ.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet((function(){if(0===t._state&&EZ.shouldAutoTrigger(t._editor)&&t._editor.hasModel()){var e=t._editor.getModel(),n=t._editor.getPosition(),i=t._editor.getOption(63);if(!1!==i){if(!0===i);else{e.tokenizeIfCheap(n.lineNumber);var o=e.getLineTokens(n.lineNumber),r=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(n.column-1-1,0))),s=i.other&&0===r||i.comments&&1===r||i.strings&&2===r;if(!s)return}t.trigger({auto:!0,shy:!1})}}}),this._quickSuggestDelay)}}},e.prototype._refilterCompletionItems=function(){var e=this;Promise.resolve().then((function(){if(0!==e._state&&e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getPosition(),i=new EZ(t,n,2===e._state,!1);e._onNewContext(i)}}))},e.prototype.trigger=function(t,n,i,o){var r=this;if(void 0===n&&(n=!1),this._editor.hasModel()){var s,a=this._editor.getModel(),u=t.auto,l=new EZ(a,this._editor.getPosition(),u,t.shy);this.cancel(n),this._state=u?2:1,this._onDidTrigger.fire({auto:u,shy:t.shy,position:this._editor.getPosition()}),this._context=l,s=t.triggerCharacter?{triggerKind:1,triggerCharacter:t.triggerCharacter}:i&&i.size>0?{triggerKind:2}:{triggerKind:0},this._requestToken=new it;var c=this._editor.getOption(82),d=1;switch(c){case"top":d=0;break;case"bottom":d=2;break}var h=e._createItemKindFilter(this._editor),A=BZ.create(this._editorWorker,this._editor),p=_J(a,this._editor.getPosition(),new mJ(d,h,i),s,this._requestToken.token);Promise.all([p,A]).then((function(e){var n=e[0],i=e[1];if(xe(r._requestToken),0!==r._state&&r._editor.hasModel()){var s=r._editor.getModel();if(Ri(o)){var a=SJ(d);n=n.concat(o).sort(a)}var l=new EZ(s,r._editor.getPosition(),u,t.shy);r._completionModel=new wZ(n,r._context.column,{leadingLineContent:l.leadingLineContent,characterCountDelta:l.column-r._context.column},i,r._editor.getOption(85),r._editor.getOption(82));for(var c=0,h=n;c<h.length;c++){var A=h[c];Ee(A.container)&&r._completionDisposables.add(A.container)}r._onNewContext(l)}})).catch(Ae)}},e._createItemKindFilter=function(e){var t=new Set,n=e.getOption(82);"none"===n&&t.add(25);var i=e.getOption(85);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(25),t},e.prototype._onNewContext=function(e){if(this._context)if(e.lineNumber===this._context.lineNumber){if(e.leadingWord.startColumn<this._context.leadingWord.startColumn)this.cancel();else if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();else if(this._completionModel)if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&0!==e.leadingWord.word.length){var t=this._completionModel.incomplete,n=this._completionModel.adopt(t);this.trigger({auto:2===this._state,shy:!1},!0,t,n)}else{var i=this._completionModel.lineContext,o=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(EZ.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto,shy:!1},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=i,o=this._completionModel.items.length>0,o&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:o})}}else this.cancel()},e}(),LZ=(n("0829"),n("c88e"),n("ba3c"),Ky("symbolIcon.arrayForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))),DZ=Ky("symbolIcon.booleanForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),NZ=Ky("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},r("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),kZ=Ky("symbolIcon.colorForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),IZ=Ky("symbolIcon.constantForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),FZ=Ky("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},r("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),MZ=Ky("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},r("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),OZ=Ky("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},r("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),TZ=Ky("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},r("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),PZ=Ky("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},r("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),RZ=Ky("symbolIcon.fileForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),UZ=Ky("symbolIcon.folderForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),HZ=Ky("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},r("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),QZ=Ky("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},r("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),VZ=Ky("symbolIcon.keyForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),WZ=Ky("symbolIcon.keywordForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),KZ=Ky("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},r("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),zZ=Ky("symbolIcon.moduleForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),jZ=Ky("symbolIcon.namespaceForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),GZ=Ky("symbolIcon.nullForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),qZ=Ky("symbolIcon.numberForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),YZ=Ky("symbolIcon.objectForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),XZ=Ky("symbolIcon.operatorForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),JZ=Ky("symbolIcon.packageForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ZZ=Ky("symbolIcon.propertyForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$Z=Ky("symbolIcon.referenceForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),e$=Ky("symbolIcon.snippetForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),t$=Ky("symbolIcon.stringForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),n$=Ky("symbolIcon.structForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),i$=Ky("symbolIcon.textForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),o$=Ky("symbolIcon.typeParameterForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),r$=Ky("symbolIcon.unitForeground",{dark:zy,light:zy,hc:zy},r("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),s$=Ky("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},r("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));function a$(e,t,n,i){var o=i===mZ.ROOT_FOLDER?["rootfolder-icon"]:i===mZ.FOLDER?["folder-icon"]:["file-icon"];if(n){var r;if(n.scheme===Bi.data){var s=ta.parseMetaData(n);r=s.get(ta.META_DATA_LABEL)}else r=l$(oa(n).toLowerCase());if(i===mZ.FOLDER)o.push(r+"-name-folder-icon");else{if(r){o.push(r+"-name-file-icon");for(var a=r.split("."),u=1;u<a.length;u++)o.push(a.slice(u).join(".")+"-ext-file-icon");o.push("ext-file-icon")}var l=u$(e,t,n);l&&o.push(l$(l)+"-lang-file-icon")}}return o}function u$(e,t,n){if(!n)return null;var i=null;if(n.scheme===Bi.data){var o=ta.parseMetaData(n),r=o.get(ta.META_DATA_MIME);r&&(i=t.getModeId(r))}else{var s=e.getModel(n);s&&(i=s.getModeId())}return i&&i!==QD?i:t.getModeIdByFilepathOrFirstLine(n)}function l$(e){return e.replace(/\s/g,"\\$&")}gm((function(e,t){var n=e.getColor(LZ);n&&t.addRule(".codicon-symbol-array { color: "+n+" !important; }");var i=e.getColor(DZ);i&&t.addRule(".codicon-symbol-boolean { color: "+i+" !important; }");var o=e.getColor(NZ);o&&t.addRule(".codicon-symbol-class { color: "+o+" !important; }");var r=e.getColor(KZ);r&&t.addRule(".codicon-symbol-method { color: "+r+" !important; }");var s=e.getColor(kZ);s&&t.addRule(".codicon-symbol-color { color: "+s+" !important; }");var a=e.getColor(IZ);a&&t.addRule(".codicon-symbol-constant { color: "+a+" !important; }");var u=e.getColor(FZ);u&&t.addRule(".codicon-symbol-constructor { color: "+u+" !important; }");var l=e.getColor(MZ);l&&t.addRule("\n\t\t\t.codicon-symbol-value,.codicon-symbol-enum { color: "+l+" !important; }");var c=e.getColor(OZ);c&&t.addRule(".codicon-symbol-enum-member { color: "+c+" !important; }");var d=e.getColor(TZ);d&&t.addRule(".codicon-symbol-event { color: "+d+" !important; }");var h=e.getColor(PZ);h&&t.addRule(".codicon-symbol-field { color: "+h+" !important; }");var A=e.getColor(RZ);A&&t.addRule(".codicon-symbol-file { color: "+A+" !important; }");var p=e.getColor(UZ);p&&t.addRule(".codicon-symbol-folder { color: "+p+" !important; }");var f=e.getColor(HZ);f&&t.addRule(".codicon-symbol-function { color: "+f+" !important; }");var g=e.getColor(QZ);g&&t.addRule(".codicon-symbol-interface { color: "+g+" !important; }");var m=e.getColor(VZ);m&&t.addRule(".codicon-symbol-key { color: "+m+" !important; }");var v=e.getColor(WZ);v&&t.addRule(".codicon-symbol-keyword { color: "+v+" !important; }");var _=e.getColor(zZ);_&&t.addRule(".codicon-symbol-module { color: "+_+" !important; }");var y=e.getColor(jZ);y&&t.addRule(".codicon-symbol-namespace { color: "+y+" !important; }");var w=e.getColor(GZ);w&&t.addRule(".codicon-symbol-null { color: "+w+" !important; }");var b=e.getColor(qZ);b&&t.addRule(".codicon-symbol-number { color: "+b+" !important; }");var C=e.getColor(YZ);C&&t.addRule(".codicon-symbol-object { color: "+C+" !important; }");var S=e.getColor(XZ);S&&t.addRule(".codicon-symbol-operator { color: "+S+" !important; }");var B=e.getColor(JZ);B&&t.addRule(".codicon-symbol-package { color: "+B+" !important; }");var E=e.getColor(ZZ);E&&t.addRule(".codicon-symbol-property { color: "+E+" !important; }");var x=e.getColor($Z);x&&t.addRule(".codicon-symbol-reference { color: "+x+" !important; }");var L=e.getColor(e$);L&&t.addRule(".codicon-symbol-snippet { color: "+L+" !important; }");var D=e.getColor(t$);D&&t.addRule(".codicon-symbol-string { color: "+D+" !important; }");var N=e.getColor(n$);N&&t.addRule(".codicon-symbol-struct { color: "+N+" !important; }");var k=e.getColor(i$);k&&t.addRule(".codicon-symbol-text { color: "+k+" !important; }");var I=e.getColor(o$);I&&t.addRule(".codicon-symbol-type-parameter { color: "+I+" !important; }");var F=e.getColor(r$);F&&t.addRule(".codicon-symbol-unit { color: "+F+" !important; }");var M=e.getColor(s$);M&&t.addRule(".codicon-symbol-variable { color: "+M+" !important; }")})),function(e){e[e["FILE"]=0]="FILE",e[e["FOLDER"]=1]="FOLDER",e[e["ROOT_FOLDER"]=2]="ROOT_FOLDER"}(mZ||(mZ={}));var c$=function(){return c$=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c$.apply(this,arguments)},d$=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},h$=function(e,t){return function(n,i){t(n,i,e)}},A$=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},p$=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},f$=!1,g$=Ky("editorSuggestWidget.background",{dark:Mw,light:Mw,hc:Mw},r("editorSuggestWidgetBackground","Background color of the suggest widget.")),m$=Ky("editorSuggestWidget.border",{dark:Tw,light:Tw,hc:Tw},r("editorSuggestWidgetBorder","Border color of the suggest widget.")),v$=Ky("editorSuggestWidget.foreground",{dark:Fw,light:Fw,hc:Fw},r("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),_$=Ky("editorSuggestWidget.selectedBackground",{dark:cb,light:cb,hc:cb},r("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),y$=Ky("editorSuggestWidget.highlightForeground",{dark:yb,light:yb,hc:yb},r("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),w$=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i;function b$(e,t){return e.completion.label.match(w$)?(t[0]=e.completion.label,!0):!("string"!==typeof e.completion.documentation||!e.completion.documentation.match(w$))&&(t[0]=e.completion.documentation,!0)}function C$(e){if(!e)return!1;var t=e.completion;return!!t.documentation||t.detail&&t.detail!==t.label}var S$=function(){function e(e,t,n,i,o,r){this.widget=e,this.editor=t,this.triggerKeybindingLabel=n,this._modelService=i,this._modeService=o,this._themeService=r}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=this,n=Object.create(null);n.disposables=new ke,n.root=e,ho(n.root,"show-file-icons"),n.icon=ar(e,dr(".icon")),n.colorspan=ar(n.icon,dr("span.colorspan"));var i=ar(e,dr(".contents")),o=ar(i,dr(".main"));n.iconContainer=ar(o,dr(".icon-label.codicon")),n.iconLabel=new Hz(o,{supportHighlights:!0,supportCodicons:!0}),n.disposables.add(n.iconLabel),n.typeLabel=ar(o,dr("span.type-label")),n.readMore=ar(o,dr("span.readMore.codicon.codicon-info")),n.readMore.title=r("readMore","Read More...{0}",this.triggerKeybindingLabel);var s=function(){var e=t.editor.getOptions(),i=e.get(32),r=i.fontFamily,s=e.get(86)||i.fontSize,a=e.get(87)||i.lineHeight,u=i.fontWeight,l=s+"px",c=a+"px";n.root.style.fontSize=l,n.root.style.fontWeight=u,o.style.fontFamily=r,o.style.lineHeight=c,n.icon.style.height=c,n.icon.style.width=c,n.readMore.style.height=c,n.readMore.style.width=c};return s(),n.disposables.add(Ue.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(32)||e.hasChanged(86)||e.hasChanged(87)})).on(s,null)),n},e.prototype.renderElement=function(e,t,n){var i=this,o=n,r=e.completion;o.icon.className="icon "+_l(r.kind),o.colorspan.style.backgroundColor="";var s={labelEscapeNewLines:!0,matches:qI(e.score)},a=[];if(19===r.kind&&b$(e,a))o.icon.className="icon customcolor",o.iconContainer.className="icon hide",o.colorspan.style.backgroundColor=a[0];else if(20===r.kind&&this._themeService.getIconTheme().hasFileIcons){o.icon.className="icon hide",o.iconContainer.className="icon hide";var u=a$(this._modelService,this._modeService,Et.from({scheme:"fake",path:r.label}),mZ.FILE),l=a$(this._modelService,this._modeService,Et.from({scheme:"fake",path:r.detail}),mZ.FILE);s.extraClasses=u.length>l.length?u:l}else 23===r.kind&&this._themeService.getIconTheme().hasFolderIcons?(o.icon.className="icon hide",o.iconContainer.className="icon hide",s.extraClasses=zi([a$(this._modelService,this._modeService,Et.from({scheme:"fake",path:r.label}),mZ.FOLDER),a$(this._modelService,this._modeService,Et.from({scheme:"fake",path:r.detail}),mZ.FOLDER)])):(o.icon.className="icon hide",o.iconContainer.className="",Ao(o.iconContainer,"suggest-icon codicon codicon-symbol-"+_l(r.kind)));r.tags&&r.tags.indexOf(1)>=0&&(s.extraClasses=(s.extraClasses||[]).concat(["deprecated"]),s.matches=[]),o.iconLabel.setLabel(r.label,void 0,s),o.typeLabel.textContent=(r.detail||"").replace(/\n.*$/m,""),C$(e)?(hr(o.readMore),o.readMore.onmousedown=function(e){e.stopPropagation(),e.preventDefault()},o.readMore.onclick=function(e){e.stopPropagation(),e.preventDefault(),i.widget.toggleDetails()}):(Ar(o.readMore),o.readMore.onmousedown=null,o.readMore.onclick=null)},e.prototype.disposeTemplate=function(e){e.disposables.dispose()},e=d$([h$(3,ll),h$(4,ED),h$(5,um)],e),e}(),B$=function(){function e(e,t,n,i,o){var s=this;this.widget=t,this.editor=n,this.markdownRenderer=i,this.triggerKeybindingLabel=o,this.borderWidth=1,this.disposables=new ke,this.el=ar(e,dr(".details")),this.disposables.add(De((function(){return e.removeChild(s.el)}))),this.body=dr(".body"),this.scrollbar=new UB(this.body,{}),ar(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=ar(this.body,dr(".header")),this.close=ar(this.header,dr("span.codicon.codicon-close")),this.close.title=r("readLess","Read less...{0}",this.triggerKeybindingLabel),this.type=ar(this.header,dr("p.type")),this.docs=ar(this.body,dr("p.docs")),this.ariaLabel=null,this.configureFont(),Ue.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(32)})).on(this.configureFont,this,this.disposables),i.onDidRenderCodeBlock((function(){return s.scrollbar.scanDomNode()}),this,this.disposables)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),e.prototype.renderLoading=function(){this.type.textContent=r("loading","Loading..."),this.docs.textContent=""},e.prototype.renderItem=function(e,t){var n=this;this.renderDisposeable=xe(this.renderDisposeable);var i=e.completion,o=i.documentation,r=i.detail;if(t){var s="";s+="score: "+e.score[0]+(e.word?", compared '"+(e.completion.filterText&&e.completion.filterText+" (filterText)"||e.completion.label)+"' with '"+e.word+"'":" (no prefix)")+"\n",s+="distance: "+e.distance+", see localityBonus-setting\n",s+="index: "+e.idx+", based on "+(e.completion.sortText&&'sortText: "'+e.completion.sortText+'"'||"label")+"\n",o=(new pG).appendCodeblock("empty",s),r="Provider: "+e.provider._debugDisplayName}if(!t&&!C$(e))return this.type.textContent="",this.docs.textContent="",ho(this.el,"no-docs"),void(this.ariaLabel=null);if(po(this.el,"no-docs"),"string"===typeof o)po(this.docs,"markdown-docs"),this.docs.textContent=o;else{ho(this.docs,"markdown-docs"),this.docs.innerHTML="";var a=this.markdownRenderer.render(o);this.renderDisposeable=a,this.docs.appendChild(a.element)}r?(this.type.innerText=r,hr(this.type)):(this.type.innerText="",Ar(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+2*this.borderWidth+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=function(e){e.preventDefault(),e.stopPropagation()},this.close.onclick=function(e){e.preventDefault(),e.stopPropagation(),n.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode(),this.ariaLabel=xr("{0}{1}",r||"",o?"string"===typeof o?o:o.value:"")},e.prototype.getAriaLabel=function(){return this.ariaLabel},e.prototype.scrollDown=function(e){void 0===e&&(e=8),this.body.scrollTop+=e},e.prototype.scrollUp=function(e){void 0===e&&(e=8),this.body.scrollTop-=e},e.prototype.scrollTop=function(){this.body.scrollTop=0},e.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},e.prototype.pageDown=function(){this.scrollDown(80)},e.prototype.pageUp=function(){this.scrollUp(80)},e.prototype.setBorderWidth=function(e){this.borderWidth=e},e.prototype.configureFont=function(){var e=this.editor.getOptions(),t=e.get(32),n=t.fontFamily,i=e.get(86)||t.fontSize,o=e.get(87)||t.lineHeight,r=t.fontWeight,s=i+"px",a=o+"px";this.el.style.fontSize=s,this.el.style.fontWeight=r,this.type.style.fontFamily=n,this.close.style.height=a,this.close.style.width=a},e.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=xe(this.renderDisposeable)},e}(),E$=function(){function e(e,t,n,i,o,r,s,a,u){var l=this;this.editor=e,this.telemetryService=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=Ie.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new bi,this.toDispose=new ke,this.onDidSelectEmitter=new Ye,this.onDidFocusEmitter=new Ye,this.onDidHideEmitter=new Ye,this.onDidShowEmitter=new Ye,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new Ye,this.onDetailsKeyDown=this._onDetailsKeydown.event,this._lastAriaAlertLabel=null;var c=r.lookupKeybinding("editor.action.triggerSuggest"),d=c?" ("+c.getLabel()+")":"",h=this.toDispose.add(new Dq(e,s,a));this.isAuto=!1,this.focusedItem=null,this.storageService=o,this.element=dr(".editor-widget.suggest-widget"),this.toDispose.add(vo(this.element,"click",(function(e){e.target===l.element&&l.hideWidget()}))),this.messageElement=ar(this.element,dr(".message")),this.listElement=ar(this.element,dr(".tree")),this.details=u.createInstance(B$,this.element,this,this.editor,h,d);var A=function(){return go(l.element,"no-icons",!l.editor.getOption(85).showIcons)};A();var p=u.createInstance(S$,this,this.editor,d);this.list=new YF("SuggestWidget",this.listElement,this,[p],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1}),this.toDispose.add(xk(this.list,i,{listInactiveFocusBackground:_$,listInactiveFocusOutline:Yy})),this.toDispose.add(i.onThemeChange((function(e){return l.onThemeChange(e)}))),this.toDispose.add(e.onDidLayoutChange((function(){return l.onEditorLayoutChange()}))),this.toDispose.add(this.list.onMouseDown((function(e){return l.onListMouseDownOrTap(e)}))),this.toDispose.add(this.list.onTap((function(e){return l.onListMouseDownOrTap(e)}))),this.toDispose.add(this.list.onSelectionChange((function(e){return l.onListSelection(e)}))),this.toDispose.add(this.list.onFocusChange((function(e){return l.onListFocus(e)}))),this.toDispose.add(this.editor.onDidChangeCursorSelection((function(){return l.onCursorSelectionChanged()}))),this.toDispose.add(this.editor.onDidChangeConfiguration((function(e){return e.hasChanged(85)&&A()}))),this.suggestWidgetVisible=fJ.Visible.bindTo(n),this.suggestWidgetMultipleSuggestions=fJ.MultipleSuggestions.bindTo(n),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(i.getTheme()),this.toDispose.add(wo(this.details.element,"keydown",(function(e){l._onDetailsKeydown.fire(e)}))),this.toDispose.add(this.editor.onMouseDown((function(e){return l.onEditorMouseDown(e)})))}return e.prototype.onEditorMouseDown=function(e){this.details.element.contains(e.target.element)?this.details.element.focus():this.element.contains(e.target.element)&&this.editor.focus()},e.prototype.onCursorSelectionChanged=function(){0!==this.state&&this.editor.layoutContentWidget(this)},e.prototype.onEditorLayoutChange=function(){3!==this.state&&5!==this.state||!this.expandDocsSettingFromStorage()||this.expandSideOrBelow()},e.prototype.onListMouseDownOrTap=function(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this.select(e.element,e.index))},e.prototype.onListSelection=function(e){e.elements.length&&this.select(e.elements[0],e.indexes[0])},e.prototype.select=function(e,t){var n=this.completionModel;n&&(this.onDidSelectEmitter.fire({item:e,index:t,model:n}),this.editor.focus())},e.prototype._getSuggestionAriaAlertLabel=function(e){return this.expandDocsSettingFromStorage()?r("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",e.completion.label,this.details.getAriaLabel()):e.completion.label},e.prototype._ariaAlert=function(e){this._lastAriaAlertLabel!==e&&(this._lastAriaAlertLabel=e,this._lastAriaAlertLabel&&Rf(this._lastAriaAlertLabel,!0))},e.prototype.onThemeChange=function(e){var t=e.getColor(g$);t&&(this.listElement.style.backgroundColor=t.toString(),this.details.element.style.backgroundColor=t.toString(),this.messageElement.style.backgroundColor=t.toString());var n=e.getColor(m$);n&&(this.listElement.style.borderColor=n.toString(),this.details.element.style.borderColor=n.toString(),this.messageElement.style.borderColor=n.toString(),this.detailsBorderColor=n.toString());var i=e.getColor(Gy);i&&(this.detailsFocusBorderColor=i.toString()),this.details.setBorderWidth("hc"===e.type?2:1)},e.prototype.onListFocus=function(e){var t=this;if(!this.ignoreFocusEvents){if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this._ariaAlert(null);if(this.completionModel){var n=e.elements[0],i=e.indexes[0];this.firstFocusInCurrentList=!this.focusedItem,n!==this.focusedItem&&(this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=n,this.list.reveal(i),this.currentSuggestionDetails=fi((function(e){return A$(t,void 0,void 0,(function(){var t,i,o=this;return p$(this,(function(r){switch(r.label){case 0:return t=_i((function(){return o.showDetails(!0)}),250),e.onCancellationRequested((function(){return t.dispose()})),[4,n.resolve(e)];case 1:return i=r.sent(),t.dispose(),[2,i]}}))}))})),this.currentSuggestionDetails.then((function(){i>=t.list.length||n!==t.list.element(i)||(t.ignoreFocusEvents=!0,t.list.splice(i,1,[n]),t.list.setFocus([i]),t.ignoreFocusEvents=!1,t.expandDocsSettingFromStorage()?t.showDetails(!1):po(t.element,"docs-side"),t._ariaAlert(t._getSuggestionAriaAlertLabel(n)))})).catch(Ae)),this.onDidFocusEmitter.fire({item:n,index:i,model:this.completionModel})}}},e.prototype.setState=function(t){if(this.element){var n=this.state!==t;switch(this.state=t,go(this.element,"frozen",4===t),t){case 0:Ar(this.messageElement,this.details.element,this.listElement),this.hide(),this.listHeight=0,n&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=e.LOADING_MESSAGE,Ar(this.listElement,this.details.element),hr(this.messageElement),po(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,Ar(this.listElement,this.details.element),hr(this.messageElement),po(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Ar(this.messageElement),hr(this.listElement),this.show();break;case 4:Ar(this.messageElement),hr(this.listElement),this.show();break;case 5:Ar(this.messageElement),hr(this.details.element,this.listElement),this.show(),this._ariaAlert(this.details.getAriaLabel());break}}},e.prototype.showTriggered=function(e,t){var n=this;0===this.state&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=_i((function(){return n.setState(1)}),t)))},e.prototype.showSuggestions=function(e,t,n,i){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==e&&(this.completionModel=e),n&&2!==this.state&&0!==this.state)this.setState(4);else{var o=this.completionModel.items.length,r=0===o;if(this.suggestWidgetMultipleSuggestions.set(o>1),r)i?this.setState(0):this.setState(2),this.completionModel=null;else{if(3!==this.state){var s=this.completionModel.stats;s["wasAutomaticallyTriggered"]=!!i,this.telemetryService.publicLog("suggestWidget",c$({},s))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),n?this.setState(4):this.setState(3),this.list.reveal(t,0),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}}},e.prototype.selectNextPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}},e.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},e.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}},e.prototype.selectPreviousPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}},e.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},e.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},e.prototype.getFocusedItem=function(){if(0!==this.state&&2!==this.state&&1!==this.state&&this.completionModel)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}},e.prototype.toggleDetailsFocus=function(){5===this.state?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):3===this.state&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")},e.prototype.toggleDetails=function(){if(C$(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Ar(this.details.element),po(this.element,"docs-side"),po(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(3!==this.state&&5!==this.state&&4!==this.state)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this._ariaAlert(this.details.getAriaLabel()),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},e.prototype.showDetails=function(e){this.expandSideOrBelow(),hr(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",e?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},e.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},e.prototype.show=function(){var e=this,t=this.updateListHeight();t!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=t),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet((function(){ho(e.element,"visible"),e.onDidShowEmitter.fire(e)}),100)},e.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),po(this.element,"visible")},e.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},e.prototype.getPosition=function(){if(0===this.state)return null;var e=[2,1];return this.preferDocPositionTop&&(e=[1]),{position:this.editor.getPosition(),preference:e}},e.prototype.getDomNode=function(){return this.element},e.prototype.getId=function(){return e.ID},e.prototype.isFrozen=function(){return 4===this.state},e.prototype.updateListHeight=function(){var e=0;if(2===this.state||1===this.state)e=this.unfocusedHeight;else{var t=this.list.contentHeight/this.unfocusedHeight,n=this.editor.getOption(85).maxVisibleSuggestions;e=Math.min(t,n)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.list.layout(e),e},e.prototype.adjustDocsPosition=function(){if(this.editor.hasModel()){var e=this.editor.getOption(47),t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=Ho(this.editor.getDomNode()),i=n.left+t.left,o=n.top+t.top+t.height,r=Ho(this.element),s=r.left,a=r.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<a&&!this.preferDocPositionTop)return this.preferDocPositionTop=!0,void this.adjustDocsPosition();this.docsPositionPreviousWidgetY=a,s<i-this.listWidth?ho(this.element,"list-right"):po(this.element,"list-right"),co(this.element,"docs-side")&&o-e>a&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")}},e.prototype.expandSideOrBelow=function(){if(!C$(this.focusedItem)&&this.firstFocusInCurrentList)return po(this.element,"docs-side"),void po(this.element,"docs-below");var e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])<this.maxWidgetWidth?(ho(this.element,"docs-below"),po(this.element,"docs-side")):C$(this.focusedItem)&&(ho(this.element,"docs-side"),po(this.element,"docs-below"))},Object.defineProperty(e.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getOption(85).maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unfocusedHeight",{get:function(){var e=this.editor.getOptions();return e.get(87)||e.get(32).lineHeight},enumerable:!0,configurable:!0}),e.prototype.getHeight=function(e){return this.unfocusedHeight},e.prototype.getTemplateId=function(e){return"suggestion"},e.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,f$)},e.prototype.updateExpandDocsSetting=function(e){this.storageService.store("expandSuggestionDocs",e,0)},e.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},e.ID="editor.widget.suggestWidget",e.LOADING_MESSAGE=r("suggestWidget.loading","Loading..."),e.NO_SUGGESTIONS_MESSAGE=r("suggestWidget.noSuggestions","No suggestions."),e=d$([h$(1,fg),h$(2,Mp),h$(3,um),h$(4,aT),h$(5,pD),h$(6,ED),h$(7,qa),h$(8,xn)],e),e}();gm((function(e,t){var n=e.getColor(y$);n&&t.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+n+"; }");var i=e.getColor(v$);i&&t.addRule(".monaco-editor .suggest-widget { color: "+i+"; }");var o=e.getColor(Xy);o&&t.addRule(".monaco-editor .suggest-widget a { color: "+o+"; }");var r=e.getColor(Jy);r&&t.addRule(".monaco-editor .suggest-widget code { background-color: "+r+"; }")}));var x$=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,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},D$=function(e,t){return function(n,i){t(n,i,e)}},N$=function(e){function t(n,i){var o=e.call(this)||this;return o._editor=n,o._enabled=!1,o._ckAtEnd=t.AtEnd.bindTo(i),o._register(o._editor.onDidChangeConfiguration((function(e){return e.hasChanged(90)&&o._update()}))),o._update(),o}return x$(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),xe(this._selectionListener),this._ckAtEnd.reset()},t.prototype._update=function(){var e=this,t="on"===this._editor.getOption(90);if(this._enabled!==t)if(this._enabled=t,this._enabled){var n=function(){if(e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getSelection(),i=t.getWordAtPosition(n.getStartPosition());i?e._ckAtEnd.set(i.endColumn===n.getStartPosition().column):e._ckAtEnd.set(!1)}else e._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(n),n()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},t.AtEnd=new Fp("atEndOfWord",!1),t=L$([D$(1,Mp)],t),t}(Ie),k$=function(){function e(e,t,n){var i=this;this._disposables=new ke,this._disposables.add(t.onDidShow((function(){return i._onItem(t.getFocusedItem())}))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((function(o){if(i._active&&!t.isFrozen()){var r=o.charCodeAt(o.length-1);i._active.acceptCharacters.has(r)&&e.getOption(0)&&n(i._active.item)}})))}return e.prototype._onItem=function(e){if(e&&Ri(e.item.completion.commitCharacters)){if(!this._active||this._active.item.item!==e.item){for(var t=new gd,n=0,i=e.item.completion.commitCharacters;n<i.length;n++){var o=i[n];o.length>0&&t.add(o.charCodeAt(0))}this._active={acceptCharacters:t,item:e}}}else this.reset()},e.prototype.reset=function(){this._active=void 0},e.prototype.dispose=function(){this._disposables.dispose()},e}(),I$=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)}}(),F$=function(){function e(e){var t=this;this._controller=e,this._disposables=new ke,this._decorations=[],this._disposables.add(e.model.onDidSuggest((function(e){if(!e.shy){var n=t._controller.widget.getValue(),i=n.getFocusedItem();i&&t._highlight(i.item),t._widgetListener||(t._widgetListener=n.onDidFocus((function(e){return t._highlight(e.item)})))}}))),this._disposables.add(e.model.onDidCancel((function(){t._reset()})))}return e.prototype.dispose=function(){this._reset(),this._disposables.dispose(),xe(this._widgetListener),xe(this._shiftKeyListener)},e.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},e.prototype._highlight=function(e){var t,n=this;this._currentItem=e;var i=this._controller.editor.getOption(85),o=[];if(i.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=M$.event((function(){return n._highlight(n._currentItem)})));var r=this._controller.getOverwriteInfo(e,M$.isPressed),s=this._controller.editor.getPosition();if("insert"===i.insertMode&&r.overwriteAfter>0)o=[{range:new vn(s.lineNumber,s.column,s.lineNumber,s.column+r.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if("replace"===i.insertMode&&0===r.overwriteAfter){var a=null===(t=this._controller.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(s);a&&a.endColumn>s.column&&(o=[{range:new vn(s.lineNumber,s.column,s.lineNumber,a.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,o)},e}(),M$=new(function(e){function t(){var t=e.call(this)||this;return t._subscriptions=new ke,t._isPressed=!1,t._subscriptions.add(Yn(document.body,"keydown")((function(e){return t.isPressed=e.shiftKey}))),t._subscriptions.add(Yn(document.body,"keyup")((function(){return t.isPressed=!1}))),t._subscriptions.add(Yn(document.body,"mouseleave")((function(){return t.isPressed=!1}))),t._subscriptions.add(Yn(document.body,"blur")((function(){return t.isPressed=!1}))),t}return I$(t,e),Object.defineProperty(t.prototype,"isPressed",{get:function(){return this._isPressed},set:function(e){this._isPressed!==e&&(this._isPressed=e,this.fire(e))},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this._subscriptions.dispose(),e.prototype.dispose.call(this)},t}(Ye)),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)}}(),T$=function(){return T$=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},T$.apply(this,arguments)},P$=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},R$=function(e,t){return function(n,i){t(n,i,e)}},U$=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},H$=!1,Q$=function(){function e(e,t){this._model=e,this._position=t;var n=e.getLineMaxColumn(t.lineNumber);if(n!==t.column){var i=e.getOffsetAt(t),o=e.getPositionAt(i+1);this._marker=e.deltaDecorations([],[{range:vn.fromPositions(t,o),options:{stickiness:1}}])}}return e.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},e.prototype.delta=function(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){var t=this._model.getDecorationRange(this._marker[0]),n=this._model.getOffsetAt(t.getStartPosition());return n-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column},e}(),V$=function(){function e(e,t,n,i,o,r){var a=this;this._memoryService=n,this._commandService=i,this._contextKeyService=o,this._instantiationService=r,this._lineSuffix=new Fe,this._toDispose=new ke,this.editor=e,this.model=new xZ(this.editor,t),this.widget=new Ei((function(){var e=a._instantiationService.createInstance(E$,a.editor);a._toDispose.add(e),a._toDispose.add(e.onDidSelect((function(e){return a._insertSuggestion(e,0)}),a));var t=new k$(a.editor,e,(function(e){return a._insertSuggestion(e,2)}));a._toDispose.add(t),a._toDispose.add(a.model.onDidSuggest((function(e){0===e.completionModel.items.length&&t.reset()})));var n=fJ.MakesTextEdit.bindTo(a._contextKeyService);return a._toDispose.add(e.onDidFocus((function(e){var t=e.item,i=a.editor.getPosition(),o=t.editStart.column,r=i.column,s=!0;if("smart"===a.editor.getOption(1)&&2===a.model.state&&!t.completion.command&&!t.completion.additionalTextEdits&&!(4&t.completion.insertTextRules)&&r-o===t.completion.insertText.length){var u=a.editor.getModel().getValueInRange({startLineNumber:i.lineNumber,startColumn:o,endLineNumber:i.lineNumber,endColumn:r});s=u!==t.completion.insertText}n.set(s)}))),a._toDispose.add(De((function(){return n.reset()}))),e})),this._alternatives=new Ei((function(){return a._toDispose.add(new yZ(a.editor,a._contextKeyService))})),this._toDispose.add(r.createInstance(N$,e)),this._toDispose.add(this.model.onDidTrigger((function(e){a.widget.getValue().showTriggered(e.auto,e.shy?250:50),a._lineSuffix.value=new Q$(a.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((function(e){if(!e.shy){var t=a._memoryService.select(a.editor.getModel(),a.editor.getPosition(),e.completionModel.items);a.widget.getValue().showSuggestions(e.completionModel,t,e.isFrozen,e.auto)}}))),this._toDispose.add(this.model.onDidCancel((function(e){e.retrigger||a.widget.getValue().hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((function(){H$||(a.model.cancel(),a.model.clear())}))),this._toDispose.add(this.widget.getValue().onDetailsKeyDown((function(e){e.toKeybinding().equals(new ht(!0,!1,!1,!1,33))||s["e"]&&e.toKeybinding().equals(new ht(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeybinding().isModifierKey()||a.editor.focus()})));var u=fJ.AcceptSuggestionsOnEnter.bindTo(o),l=function(){var e=a.editor.getOption(1);u.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((function(){return l()}))),l(),this._toDispose.add(new F$(this))}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()},e.prototype._insertSuggestion=function(e,t){var n,i=this;if(!e||!e.item)return this._alternatives.getValue().reset(),this.model.cancel(),void this.model.clear();if(this.editor.hasModel()){var o=this.editor.getModel(),r=o.getAlternativeVersionId(),s=e.item,a=s.completion;1&t||this.editor.pushUndoStop();var u=this.getOverwriteInfo(s,Boolean(8&t));this._memoryService.memorize(o,this.editor.getPosition(),s),Array.isArray(a.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",a.additionalTextEdits.map((function(e){return op.replace(vn.lift(e.range),e.text)})));var l=a.insertText;4&a.insertTextRules||(l=QJ.escape(l)),sZ.get(this.editor).insert(l,{overwriteBefore:u.overwriteBefore,overwriteAfter:u.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&a.insertTextRules)}),2&t||this.editor.pushUndoStop(),a.command?a.command.id===W$.id?this.model.trigger({auto:!0,shy:!1},!0):((n=this._commandService).executeCommand.apply(n,U$([a.command.id],a.command.arguments?U$(a.command.arguments):[])).catch(Ae).finally((function(){return i.model.clear()})),this.model.cancel()):(this.model.cancel(),this.model.clear()),4&t&&this._alternatives.getValue().set(e,(function(e){while(o.canUndo()){r!==o.getAlternativeVersionId()&&o.undo(),i._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(e.item)}},e.prototype.getOverwriteInfo=function(e,t){wa(this.editor.hasModel());var n="replace"===this.editor.getOption(85).insertMode;t&&(n=!n);var i=e.position.column-e.editStart.column,o=(n?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,r=this.editor.getPosition().column-e.position.column,s=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:i+r,overwriteAfter:o+s}},e.prototype._alertCompletionItem=function(e){var t=e.completion;if(Ri(t.additionalTextEdits)){var n=r("arai.alert.snippet","Accepting '{0}' made {1} additional edits",t.label,t.additionalTextEdits.length);Rf(n)}},e.prototype.triggerSuggest=function(e){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,e),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())},e.prototype.triggerSuggestAndAcceptBest=function(e){var t=this;if(this.editor.hasModel()){var n=this.editor.getPosition(),i=function(){n.equals(t.editor.getPosition())&&t._commandService.executeCommand(e.fallback)},o=function(e){if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;var n=t.editor.getPosition(),i=e.editStart.column,o=n.column;if(o-i!==e.completion.insertText.length)return!0;var r=t.editor.getModel().getValueInRange({startLineNumber:n.lineNumber,startColumn:i,endLineNumber:n.lineNumber,endColumn:o});return r!==e.completion.insertText};Ue.once(this.model.onDidTrigger)((function(e){var n=[];Ue.any(t.model.onDidTrigger,t.model.onDidCancel)((function(){xe(n),i()}),void 0,n),t.model.onDidSuggest((function(e){var r=e.completionModel;if(xe(n),0!==r.items.length){var s=t._memoryService.select(t.editor.getModel(),t.editor.getPosition(),r.items),a=r.items[s];o(a)?(t.editor.pushUndoStop(),t._insertSuggestion({index:s,item:a,model:r},7)):i()}else i()}),void 0,n)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(n.lineNumber,0),this.editor.focus()}},e.prototype.acceptSelectedSuggestion=function(e,t){var n=this.widget.getValue().getFocusedItem(),i=0;e&&(i|=4),t&&(i|=8),this._insertSuggestion(n,i)},e.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},e.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},e.prototype.cancelSuggestWidget=function(){this.model.cancel(),this.model.clear(),this.widget.getValue().hideWidget()},e.prototype.selectNextSuggestion=function(){this.widget.getValue().selectNext()},e.prototype.selectNextPageSuggestion=function(){this.widget.getValue().selectNextPage()},e.prototype.selectLastSuggestion=function(){this.widget.getValue().selectLast()},e.prototype.selectPrevSuggestion=function(){this.widget.getValue().selectPrevious()},e.prototype.selectPrevPageSuggestion=function(){this.widget.getValue().selectPreviousPage()},e.prototype.selectFirstSuggestion=function(){this.widget.getValue().selectFirst()},e.prototype.toggleSuggestionDetails=function(){this.widget.getValue().toggleDetails()},e.prototype.toggleExplainMode=function(){this.widget.getValue().toggleExplainMode()},e.prototype.toggleSuggestionFocus=function(){this.widget.getValue().toggleDetailsFocus()},e.ID="editor.contrib.suggestController",e=P$([R$(1,$l),R$(2,gZ),R$(3,Ka),R$(4,Mp),R$(5,xn)],e),e}(),W$=function(e){function t(){return e.call(this,{id:t.id,label:r("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:Cp.and(_S.writable,_S.hasCompletionItemProvider),kbOpts:{kbExpr:_S.textInputFocus,primary:2058,mac:{primary:266,secondary:[521]},weight:100}})||this}return O$(t,e),t.prototype.run=function(e,t){var n=V$.get(t);n&&n.triggerSuggest()},t.id="editor.action.triggerSuggest",t}(_g);Bg(V$.ID,V$),Cg(W$);var K$=190,z$=vg.bindToContribution(V$.get);bg(new z$({id:"acceptSelectedSuggestion",precondition:fJ.Visible,handler:function(e,t){var n="object"===typeof t&&"boolean"===typeof t.alternative&&t.alternative;e.acceptSelectedSuggestion(!0,n)}})),Rp.registerKeybindingRule({id:"acceptSelectedSuggestion",when:Cp.and(fJ.Visible,_S.textInputFocus),primary:2,weight:K$}),Rp.registerKeybindingRule({id:"acceptSelectedSuggestion",when:Cp.and(fJ.Visible,_S.textInputFocus,fJ.AcceptSuggestionsOnEnter,fJ.MakesTextEdit),primary:3,weight:K$}),Rp.registerKeybindingRule({id:"acceptSelectedSuggestion",when:Cp.and(fJ.Visible,_S.textInputFocus),primary:1026,secondary:[1027],args:{alternative:!0},weight:K$}),za.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),bg(new z$({id:"hideSuggestWidget",precondition:fJ.Visible,handler:function(e){return e.cancelSuggestWidget()},kbOpts:{weight:K$,kbExpr:_S.textInputFocus,primary:9,secondary:[1033]}})),bg(new z$({id:"selectNextSuggestion",precondition:Cp.and(fJ.Visible,fJ.MultipleSuggestions),handler:function(e){return e.selectNextSuggestion()},kbOpts:{weight:K$,kbExpr:_S.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),bg(new z$({id:"selectNextPageSuggestion",precondition:Cp.and(fJ.Visible,fJ.MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion()},kbOpts:{weight:K$,kbExpr:_S.textInputFocus,primary:12,secondary:[2060]}})),bg(new z$({id:"selectLastSuggestion",precondition:Cp.and(fJ.Visible,fJ.MultipleSuggestions),handler:function(e){return e.selectLastSuggestion()}})),bg(new z$({id:"selectPrevSuggestion",precondition:Cp.and(fJ.Visible,fJ.MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion()},kbOpts:{weight:K$,kbExpr:_S.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),bg(new z$({id:"selectPrevPageSuggestion",precondition:Cp.and(fJ.Visible,fJ.MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion()},kbOpts:{weight:K$,kbExpr:_S.textInputFocus,primary:11,secondary:[2059]}})),bg(new z$({id:"selectFirstSuggestion",precondition:Cp.and(fJ.Visible,fJ.MultipleSuggestions),handler:function(e){return e.selectFirstSuggestion()}})),bg(new z$({id:"toggleSuggestionDetails",precondition:fJ.Visible,handler:function(e){return e.toggleSuggestionDetails()},kbOpts:{weight:K$,kbExpr:_S.textInputFocus,primary:2058,mac:{primary:266}}})),bg(new z$({id:"toggleExplainMode",precondition:fJ.Visible,handler:function(e){return e.toggleExplainMode()},kbOpts:{weight:100,primary:2133}})),bg(new z$({id:"toggleSuggestionFocus",precondition:fJ.Visible,handler:function(e){return e.toggleSuggestionFocus()},kbOpts:{weight:K$,kbExpr:_S.textInputFocus,primary:2570,mac:{primary:778}}})),bg(new z$({id:"insertBestCompletion",precondition:Cp.and(Cp.equals("config.editor.tabCompletion","on"),N$.AtEnd,fJ.Visible.toNegated(),yZ.OtherSuggestions.toNegated(),sZ.InSnippetMode.toNegated()),handler:function(e,t){e.triggerSuggestAndAcceptBest(ga(t)?T$({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:K$,primary:2}})),bg(new z$({id:"insertNextSuggestion",precondition:Cp.and(Cp.equals("config.editor.tabCompletion","on"),yZ.OtherSuggestions,fJ.Visible.toNegated(),sZ.InSnippetMode.toNegated()),handler:function(e){return e.acceptNextSuggestion()},kbOpts:{weight:K$,kbExpr:_S.textInputFocus,primary:2}})),bg(new z$({id:"insertPrevSuggestion",precondition:Cp.and(Cp.equals("config.editor.tabCompletion","on"),yZ.OtherSuggestions,fJ.Visible.toNegated(),sZ.InSnippetMode.toNegated()),handler:function(e){return e.acceptPrevSuggestion()},kbOpts:{weight:K$,kbExpr:_S.textInputFocus,primary:1026}}));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)}}(),G$=function(e){function t(){return e.call(this,{id:"editor.action.forceRetokenize",label:r("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})||this}return j$(t,e),t.prototype.run=function(e,t){if(t.hasModel()){var n=t.getModel();n.resetTokenization();var i=new Td(!0);n.forceTokenization(n.getLineCount()),i.stop(),console.log("tokenization took "+i.elapsed())}},t}(_g);Cg(G$);var q$=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)}}(),Y$=function(e){function t(){return e.call(this,{id:t.ID,label:r({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})||this}return q$(t,e),t.prototype.run=function(e,t){var n=PA.getTabFocusMode(),i=!n;PA.setTabFocusMode(i),Rf(i?r("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element"):r("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))},t.ID="editor.action.toggleTabFocusMode",t}(_g);Cg(Y$);var X$=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)}}(),J$=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},Z$=function(e,t){return function(n,i){t(n,i,e)}},$$=Ky("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},r("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),e0=Ky("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},r("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),t0=Ky("editor.wordHighlightBorder",{light:null,dark:null,hc:Yy},r("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),n0=Ky("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:Yy},r("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),i0=Ky("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},r("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),o0=Ky("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},r("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),r0=new Fp("hasWordHighlights",!1);function s0(e,t,n){var i=Nl.ordered(e);return yi(i.map((function(i){return function(){return Promise.resolve(i.provideDocumentHighlights(e,t,n)).then(void 0,pe)}})),Ri)}var a0=function(){function e(e,t,n){var i=this;this._wordRange=this._getCurrentWordRange(e,t),this.result=fi((function(o){return i._compute(e,t,n,o)}))}return e.prototype._getCurrentWordRange=function(e,t){var n=e.getWordAtPosition(t.getPosition());return n?new vn(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null},e.prototype.isValid=function(e,t,n){for(var i=t.startLineNumber,o=t.startColumn,r=t.endColumn,s=this._getCurrentWordRange(e,t),a=Boolean(this._wordRange&&this._wordRange.equalsRange(s)),u=0,l=n.length;!a&&u<l;u++){var c=e.getDecorationRange(n[u]);c&&c.startLineNumber===i&&c.startColumn<=o&&c.endColumn>=r&&(a=!0)}return a},e.prototype.cancel=function(){this.result.cancel()},e}(),u0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X$(t,e),t.prototype._compute=function(e,t,n,i){return s0(e,t.getPosition(),i).then((function(e){return e||[]}))},t}(a0),l0=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o._selectionIsEmpty=n.isEmpty(),o}return X$(t,e),t.prototype._compute=function(e,t,n,i){return vi(250,i).then((function(){if(!t.isEmpty())return[];var i=e.getWordAtPosition(t.getPosition());if(!i)return[];var o=e.findMatches(i.word,!0,!1,!0,n,!1);return o.map((function(e){return{range:e.range,kind:Al.Text}}))}))},t.prototype.isValid=function(t,n,i){var o=n.isEmpty();return this._selectionIsEmpty===o&&e.prototype.isValid.call(this,t,n,i)},t}(a0);function c0(e,t,n){return Nl.has(e)?new u0(e,t,n):new l0(e,t,n)}wg("_executeDocumentHighlights",(function(e,t){return s0(e,t,je.None)}));var d0=function(){function e(e,t){var n=this;this.toUnhook=new ke,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=r0.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(59),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((function(e){n._ignorePositionChangeEvent||n.occurrencesHighlight&&n._onPositionChanged(e)}))),this.toUnhook.add(e.onDidChangeModelContent((function(e){n._stopAll()}))),this.toUnhook.add(e.onDidChangeConfiguration((function(e){var t=n.editor.getOption(59);n.occurrencesHighlight!==t&&(n.occurrencesHighlight=t,n._stopAll())}))),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return e.prototype.hasDecorations=function(){return this._decorationIds.length>0},e.prototype.restore=function(){this.occurrencesHighlight&&this._run()},e.prototype._getSortedHighlights=function(){var e=this;return Ti(this._decorationIds.map((function(t){return e.model.getDecorationRange(t)})).sort(vn.compareRangesUsingStarts))},e.prototype.moveNext=function(){var e=this,t=this._getSortedHighlights(),n=Vi(t,(function(t){return t.containsPosition(e.editor.getPosition())})),i=(n+1)%t.length,o=t[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(o.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(o)}finally{this._ignorePositionChangeEvent=!1}},e.prototype.moveBack=function(){var e=this,t=this._getSortedHighlights(),n=Vi(t,(function(t){return t.containsPosition(e.editor.getPosition())})),i=(n-1+t.length)%t.length,o=t[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(o.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(o)}finally{this._ignorePositionChangeEvent=!1}},e.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},e.prototype._stopAll=function(){this._removeDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)},e.prototype._onPositionChanged=function(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll()},e.prototype._run=function(){var e=this,t=this.editor.getSelection();if(t.startLineNumber===t.endLineNumber){var n=t.startLineNumber,i=t.startColumn,o=t.endColumn,r=this.model.getWordAtPosition({lineNumber:n,column:i});if(!r||r.startColumn>i||r.endColumn<o)this._stopAll();else{var s=this.workerRequest&&this.workerRequest.isValid(this.model,t,this._decorationIds);if(this.lastCursorPositionChangeTime=(new Date).getTime(),s)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var a=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=c0(this.model,this.editor.getSelection(),this.editor.getOption(92)),this.workerRequest.result.then((function(t){a===e.workerRequestTokenId&&(e.workerRequestCompleted=!0,e.workerRequestValue=t||[],e._beginRenderDecorations())}),Ae)}}}else this._stopAll()},e.prototype._beginRenderDecorations=function(){var e=this,t=(new Date).getTime(),n=this.lastCursorPositionChangeTime+250;t>=n?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((function(){e.renderDecorations()}),n-t)},e.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var t=[],n=0,i=this.workerRequestValue.length;n<i;n++){var o=this.workerRequestValue[n];t.push({range:o.range,options:e._getDecorationOptions(o.kind)})}this._decorationIds=this.editor.deltaDecorations(this._decorationIds,t),this._hasWordHighlights.set(this.hasDecorations())},e._getDecorationOptions=function(e){return e===Al.Write?this._WRITE_OPTIONS:e===Al.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS},e.prototype.dispose=function(){this._stopAll(),this.toUnhook.dispose()},e._WRITE_OPTIONS=z_.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:lm(o0),position:Bu.Center}}),e._TEXT_OPTIONS=z_.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:lm(Pb),position:Bu.Center}}),e._REGULAR_OPTIONS=z_.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:lm(i0),position:Bu.Center}}),e}(),h0=function(e){function t(t,n){var i=e.call(this)||this;i.wordHighligher=null;var o=function(){t.hasModel()&&(i.wordHighligher=new d0(t,n))};return i._register(t.onDidChangeModel((function(e){i.wordHighligher&&(i.wordHighligher.dispose(),i.wordHighligher=null),o()}))),o(),i}return X$(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.saveViewState=function(){return!(!this.wordHighligher||!this.wordHighligher.hasDecorations())},t.prototype.moveNext=function(){this.wordHighligher&&this.wordHighligher.moveNext()},t.prototype.moveBack=function(){this.wordHighligher&&this.wordHighligher.moveBack()},t.prototype.restoreViewState=function(e){this.wordHighligher&&e&&this.wordHighligher.restore()},t.prototype.dispose=function(){this.wordHighligher&&(this.wordHighligher.dispose(),this.wordHighligher=null),e.prototype.dispose.call(this)},t.ID="editor.contrib.wordHighlighter",t=J$([Z$(1,Mp)],t),t}(Ie),A0=function(e){function t(t,n){var i=e.call(this,n)||this;return i._isNext=t,i}return X$(t,e),t.prototype.run=function(e,t){var n=h0.get(t);n&&(this._isNext?n.moveNext():n.moveBack())},t}(_g),p0=function(e){function t(){return e.call(this,!0,{id:"editor.action.wordHighlight.next",label:r("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:r0,kbOpts:{kbExpr:_S.editorTextFocus,primary:65,weight:100}})||this}return X$(t,e),t}(A0),f0=function(e){function t(){return e.call(this,!1,{id:"editor.action.wordHighlight.prev",label:r("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:r0,kbOpts:{kbExpr:_S.editorTextFocus,primary:1089,weight:100}})||this}return X$(t,e),t}(A0),g0=function(e){function t(){return e.call(this,{id:"editor.action.wordHighlight.trigger",label:r("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:r0.toNegated(),kbOpts:{kbExpr:_S.editorTextFocus,primary:0,weight:100}})||this}return X$(t,e),t.prototype.run=function(e,t,n){var i=h0.get(t);i&&i.restoreViewState(!0)},t}(_g);Bg(h0.ID,h0),Cg(p0),Cg(f0),Cg(g0),gm((function(e,t){var n=e.getColor(Qw);n&&(t.addRule(".monaco-editor .focused .selectionHighlight { background-color: "+n+"; }"),t.addRule(".monaco-editor .selectionHighlight { background-color: "+n.transparent(.5)+"; }"));var i=e.getColor($$);i&&t.addRule(".monaco-editor .wordHighlight { background-color: "+i+"; }");var o=e.getColor(e0);o&&t.addRule(".monaco-editor .wordHighlightStrong { background-color: "+o+"; }");var r=e.getColor(Vw);r&&t.addRule(".monaco-editor .selectionHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+r+"; box-sizing: border-box; }");var s=e.getColor(t0);s&&t.addRule(".monaco-editor .wordHighlight { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; box-sizing: border-box; }");var a=e.getColor(n0);a&&t.addRule(".monaco-editor .wordHighlightStrong { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+a+"; box-sizing: border-box; }")}));var m0=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)}}(),v0=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n._wordNavigationType=t.wordNavigationType,n}return m0(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this;if(t.hasModel()){var o=Fv(t.getOption(92)),r=t.getModel(),s=t.getSelections(),a=s.map((function(e){var t=new mn(e.positionLineNumber,e.positionColumn),n=i._move(o,r,t,i._wordNavigationType);return i._moveTo(e,n,i._inSelectionMode)}));if(t._getCursors().setStates("moveWordCommand",0,a.map((function(e){return ry.fromModelSelection(e)}))),1===a.length){var u=new mn(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(u,0)}}},t.prototype._moveTo=function(e,t,n){return n?new yn(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new yn(t.lineNumber,t.column,t.lineNumber,t.column)},t}(vg),_0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m0(t,e),t.prototype._move=function(e,t,n,i){return hS.moveWordLeft(e,t,n,i)},t}(v0),y0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m0(t,e),t.prototype._move=function(e,t,n,i){return hS.moveWordRight(e,t,n,i)},t}(v0),w0=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:_S.textInputFocus,primary:2063,mac:{primary:527},weight:100}})||this}return m0(t,e),t}(_0),b0=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}return m0(t,e),t}(_0),C0=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}return m0(t,e),t}(_0),S0=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:_S.textInputFocus,primary:3087,mac:{primary:1551},weight:100}})||this}return m0(t,e),t}(_0),B0=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}return m0(t,e),t}(_0),E0=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}return m0(t,e),t}(_0),x0=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:Cp.and(_S.textInputFocus,zx),primary:2063,mac:{primary:527},weight:101}})||this}return m0(t,e),t.prototype._move=function(t,n,i,o){return e.prototype._move.call(this,Fv(ce.wordSeparators.defaultValue),n,i,o)},t}(_0),L0=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:Cp.and(_S.textInputFocus,zx),primary:3087,mac:{primary:1551},weight:101}})||this}return m0(t,e),t.prototype._move=function(t,n,i,o){return e.prototype._move.call(this,Fv(ce.wordSeparators.defaultValue),n,i,o)},t}(_0),D0=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}return m0(t,e),t}(y0),N0=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:_S.textInputFocus,primary:2065,mac:{primary:529},weight:100}})||this}return m0(t,e),t}(y0),k0=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}return m0(t,e),t}(y0),I0=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}return m0(t,e),t}(y0),F0=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:_S.textInputFocus,primary:3089,mac:{primary:1553},weight:100}})||this}return m0(t,e),t}(y0),M0=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}return m0(t,e),t}(y0),O0=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:Cp.and(_S.textInputFocus,zx),primary:2065,mac:{primary:529},weight:101}})||this}return m0(t,e),t.prototype._move=function(t,n,i,o){return e.prototype._move.call(this,Fv(ce.wordSeparators.defaultValue),n,i,o)},t}(y0),T0=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:Cp.and(_S.textInputFocus,zx),primary:3089,mac:{primary:1553},weight:101}})||this}return m0(t,e),t.prototype._move=function(t,n,i,o){return e.prototype._move.call(this,Fv(ce.wordSeparators.defaultValue),n,i,o)},t}(y0),P0=function(e){function t(t){var n=e.call(this,t)||this;return n._whitespaceHeuristics=t.whitespaceHeuristics,n._wordNavigationType=t.wordNavigationType,n}return m0(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this;if(t.hasModel()){var o=Fv(t.getOption(92)),r=t.getModel(),s=t.getSelections(),a=s.map((function(e){var t=i._delete(o,r,e,i._whitespaceHeuristics,i._wordNavigationType);return new iS(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}},t}(vg),R0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m0(t,e),t.prototype._delete=function(e,t,n,i,o){var r=hS.deleteWordLeft(e,t,n,i,o);return r||new vn(1,1,1,1)},t}(P0),U0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m0(t,e),t.prototype._delete=function(e,t,n,i,o){var r=hS.deleteWordRight(e,t,n,i,o);if(r)return r;var s=t.getLineCount(),a=t.getLineMaxColumn(s);return new vn(s,a,s,a)},t}(P0),H0=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:_S.writable})||this}return m0(t,e),t}(R0),Q0=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:_S.writable})||this}return m0(t,e),t}(R0),V0=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:_S.writable,kbOpts:{kbExpr:_S.textInputFocus,primary:2049,mac:{primary:513},weight:100}})||this}return m0(t,e),t}(R0),W0=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:_S.writable})||this}return m0(t,e),t}(U0),K0=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:_S.writable})||this}return m0(t,e),t}(U0),z0=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:_S.writable,kbOpts:{kbExpr:_S.textInputFocus,primary:2068,mac:{primary:532},weight:100}})||this}return m0(t,e),t}(U0);bg(new w0),bg(new b0),bg(new C0),bg(new S0),bg(new B0),bg(new E0),bg(new D0),bg(new N0),bg(new k0),bg(new I0),bg(new F0),bg(new M0),bg(new x0),bg(new L0),bg(new O0),bg(new T0),bg(new H0),bg(new Q0),bg(new V0),bg(new W0),bg(new K0),bg(new z0);var j0=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)}}(),G0=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:_S.writable,kbOpts:{kbExpr:_S.textInputFocus,primary:0,mac:{primary:769},weight:100}})||this}return j0(t,e),t.prototype._delete=function(e,t,n,i,o){var r=AS.deleteWordPartLeft(e,t,n,i);return r||new vn(1,1,1,1)},t}(P0),q0=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:_S.writable,kbOpts:{kbExpr:_S.textInputFocus,primary:0,mac:{primary:788},weight:100}})||this}return j0(t,e),t.prototype._delete=function(e,t,n,i,o){var r=AS.deleteWordPartRight(e,t,n,i);if(r)return r;var s=t.getLineCount(),a=t.getLineMaxColumn(s);return new vn(s,a,s,a)},t}(P0),Y0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j0(t,e),t.prototype._move=function(e,t,n,i){return AS.moveWordPartLeft(e,t,n)},t}(v0),X0=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:_S.textInputFocus,primary:0,mac:{primary:783},weight:100}})||this}return j0(t,e),t}(Y0);za.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var J0=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:_S.textInputFocus,primary:0,mac:{primary:1807},weight:100}})||this}return j0(t,e),t}(Y0);za.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var Z0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j0(t,e),t.prototype._move=function(e,t,n,i){return AS.moveWordPartRight(e,t,n)},t}(v0),$0=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:_S.textInputFocus,primary:0,mac:{primary:785},weight:100}})||this}return j0(t,e),t}(Z0),e1=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:_S.textInputFocus,primary:0,mac:{primary:1809},weight:100}})||this}return j0(t,e),t}(Z0);bg(new G0),bg(new q0),bg(new X0),bg(new J0),bg(new $0),bg(new e1);n("41a01");var t1=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)}}(),n1=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},i1=function(e,t){return function(n,i){t(n,i,e)}},o1=new Fp("accessibilityHelpWidgetVisible",!1),r1=function(e){function t(t,n){var i=e.call(this)||this;return i._editor=t,i._widget=i._register(n.createInstance(a1,i._editor)),i}return t1(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.show=function(){this._widget.show()},t.prototype.hide=function(){this._widget.hide()},t.ID="editor.contrib.accessibilityHelpController",t=n1([i1(1,xn)],t),t}(Ie);function s1(e,t){return e&&0!==e.length?1===e.length?t?xr(nf.singleSelectionRange,e[0].positionLineNumber,e[0].positionColumn,t):xr(nf.singleSelection,e[0].positionLineNumber,e[0].positionColumn):t?xr(nf.multiSelectionRange,e.length,t):e.length>0?xr(nf.multiSelection,e.length):"":nf.noSelection}var a1=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._contextKeyService=n,r._keybindingService=i,r._openerService=o,r._editor=t,r._isVisibleKey=o1.bindTo(r._contextKeyService),r._domNode=Dg(document.createElement("div")),r._domNode.setClassName("accessibilityHelpWidget"),r._domNode.setDisplay("none"),r._domNode.setAttribute("role","dialog"),r._domNode.setAttribute("aria-hidden","true"),r._contentDomNode=Dg(document.createElement("div")),r._contentDomNode.setAttribute("role","document"),r._domNode.appendChild(r._contentDomNode),r._isVisible=!1,r._register(r._editor.onDidLayoutChange((function(){r._isVisible&&r._layout()}))),r._register(wo(r._contentDomNode.domNode,"keydown",(function(e){if(r._isVisible&&(e.equals(2083)&&(Rf(nf.emergencyConfOn),r._editor.updateOptions({accessibilitySupport:"on"}),oo(r._contentDomNode.domNode),r._buildContent(),r._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){Rf(nf.openingDocs);var t=r._editor.getRawOptions().accessibilityHelpUrl;"undefined"===typeof t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),r._openerService.open(Et.parse(t)),e.preventDefault(),e.stopPropagation()}}))),r.onblur(r._contentDomNode.domNode,(function(){r.hide()})),r._editor.addOverlayWidget(r),r}return t1(t,e),t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.getPosition=function(){return{preference:null}},t.prototype.show=function(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())},t.prototype._descriptionForCommand=function(e,t,n){var i=this._keybindingService.lookupKeybinding(e);return i?xr(t,i.getAriaLabel()):xr(n,e)},t.prototype._buildContent=function(){var e=this._editor.getOptions(),t=this._editor.getSelections(),n=0;if(t){var i=this._editor.getModel();i&&t.forEach((function(e){n+=i.getValueLengthInRange(e)}))}var o=s1(t,n);e.get(43)?e.get(65)?o+=nf.readonlyDiffEditor:o+=nf.editableDiffEditor:e.get(65)?o+=nf.readonlyEditor:o+=nf.editableEditor;var r=s["e"]?nf.changeConfigToOnMac:nf.changeConfigToOnWinLinux;switch(e.get(2)){case 0:o+="\n\n - "+r;break;case 2:o+="\n\n - "+nf.auto_on;break;case 1:o+="\n\n - "+nf.auto_off,o+=" "+r;break}e.get(102)?o+="\n\n - "+this._descriptionForCommand(Y$.ID,nf.tabFocusModeOnMsg,nf.tabFocusModeOnMsgNoKb):o+="\n\n - "+this._descriptionForCommand(Y$.ID,nf.tabFocusModeOffMsg,nf.tabFocusModeOffMsgNoKb);var a=s["e"]?nf.openDocMac:nf.openDocWinLinux;o+="\n\n - "+a,o+="\n\n"+nf.outroMsg,this._contentDomNode.domNode.appendChild(rV(o)),this._contentDomNode.domNode.setAttribute("aria-label",o)},t.prototype.hide=function(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,oo(this._contentDomNode.domNode),this._editor.focus())},t.prototype._layout=function(){var e=this._editor.getLayoutInfo(),n=Math.max(5,Math.min(t.WIDTH,e.width-40)),i=Math.max(5,Math.min(t.HEIGHT,e.height-40));this._domNode.setWidth(n),this._domNode.setHeight(i);var o=Math.round((e.height-i)/2);this._domNode.setTop(o);var r=Math.round((e.width-n)/2);this._domNode.setLeft(r)},t.ID="editor.contrib.accessibilityHelpWidget",t.WIDTH=500,t.HEIGHT=300,t=n1([i1(1,Mp),i1(2,pD),i1(3,qa)],t),t}(sB),u1=function(e){function t(){return e.call(this,{id:"editor.action.showAccessibilityHelp",label:nf.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:Rn?2107:571,weight:100}})||this}return t1(t,e),t.prototype.run=function(e,t){var n=r1.get(t);n&&n.show()},t}(_g);Bg(r1.ID,r1),Cg(u1);var l1=vg.bindToContribution(r1.get);bg(new l1({id:"closeAccessibilityHelp",precondition:o1,handler:function(e){return e.hide()},kbOpts:{weight:200,kbExpr:_S.focus,primary:9,secondary:[1033]}})),gm((function(e,t){var n=e.getColor(Mw);n&&t.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+n+"; }");var i=e.getColor(Ow);i&&t.addRule(".monaco-editor .accessibilityHelpWidget { color: "+i+"; }");var o=e.getColor(Zy);o&&t.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+o+"; }");var r=e.getColor(qy);r&&t.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+r+"; }")}));n("722f9");var c1=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)}}(),d1=function(e){function t(t){var n=e.call(this)||this;return n.editor=t,n.widget=null,jn&&(n._register(t.onDidChangeConfiguration((function(){return n.update()}))),n.update()),n}return c1(t,e),t.prototype.update=function(){var e=!this.editor.getOption(65);!this.widget&&e?this.widget=new h1(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},t.ID="editor.contrib.iPadShowKeyboard",t}(Ie),h1=function(e){function t(t){var n=e.call(this)||this;return n.editor=t,n._domNode=document.createElement("textarea"),n._domNode.className="iPadShowKeyboard",n._register(vo(n._domNode,"touchstart",(function(e){n.editor.focus()}))),n._register(vo(n._domNode,"focus",(function(e){n.editor.focus()}))),n.editor.addOverlayWidget(n),n}return c1(t,e),t.prototype.dispose=function(){this.editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return{preference:1}},t.ID="editor.contrib.ShowKeyboardWidget",t}(Ie);Bg(d1.ID,d1);n("133b");var A1=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)}}(),p1=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},f1=function(e,t){return function(n,i){t(n,i,e)}},g1=function(e){function t(t,n,i){var o=e.call(this)||this;return o._editor=t,o._modeService=i,o._widget=null,o._register(o._editor.onDidChangeModel((function(e){return o.stop()}))),o._register(o._editor.onDidChangeModelLanguage((function(e){return o.stop()}))),o._register(zl.onDidChange((function(e){return o.stop()}))),o}return A1(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this.stop(),e.prototype.dispose.call(this)},t.prototype.launch=function(){this._widget||this._editor.hasModel()&&(this._widget=new y1(this._editor,this._modeService))},t.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},t.ID="editor.contrib.inspectTokens",t=p1([f1(1,AD),f1(2,ED)],t),t}(Ie),m1=function(e){function t(){return e.call(this,{id:"editor.action.inspectTokens",label:of.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})||this}return A1(t,e),t.prototype.run=function(e,t){var n=g1.get(t);n&&n.launch()},t}(_g);function v1(e){for(var t="",n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);switch(o){case 9:t+="&rarr;";break;case 32:t+="&middot;";break;case 60:t+="&lt;";break;case 62:t+="&gt;";break;case 38:t+="&amp;";break;default:t+=String.fromCharCode(o)}}return t}function _1(e){var t=zl.get(e.language);return t||{getInitialState:function(){return Gl},tokenize:function(t,n,i){return Xl(e.language,t,n,i)},tokenize2:function(t,n,i){return Jl(e.id,t,n,i)}}}var y1=function(e){function t(t,n){var i=e.call(this)||this;return i.allowEditorOverflow=!0,i._editor=t,i._modeService=n,i._model=i._editor.getModel(),i._domNode=document.createElement("div"),i._domNode.className="tokens-inspect-widget",i._tokenizationSupport=_1(i._model.getLanguageIdentifier()),i._compute(i._editor.getPosition()),i._register(i._editor.onDidChangeCursorPosition((function(e){return i._compute(i._editor.getPosition())}))),i._editor.addContentWidget(i),i}return A1(t,e),t.prototype.dispose=function(){this._editor.removeContentWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t._ID},t.prototype._compute=function(e){for(var t=this._getTokensAtLine(e.lineNumber),n=0,i=t.tokens1.length-1;i>=0;i--){var o=t.tokens1[i];if(e.column-1>=o.offset){n=i;break}}var r=0;for(i=t.tokens2.length>>>1;i>=0;i--)if(e.column-1>=t.tokens2[i<<1]){r=i;break}var s="",a=this._model.getLineContent(e.lineNumber),u="";if(n<t.tokens1.length){var l=t.tokens1[n].offset,c=n+1<t.tokens1.length?t.tokens1[n+1].offset:a.length;u=a.substring(l,c)}s+='<h2 class="tm-token">'+v1(u)+'<span class="tm-token-length">('+u.length+" "+(1===u.length?"char":"chars")+")</span></h2>",s+='<hr class="tokens-inspect-separator" style="clear:both"/>';var d=this._decodeMetadata(t.tokens2[1+(r<<1)]);s+='<table class="tm-metadata-table"><tbody>',s+='<tr><td class="tm-metadata-key">language</td><td class="tm-metadata-value">'+Lr(d.languageIdentifier.language)+"</td>",s+='<tr><td class="tm-metadata-key">token type</td><td class="tm-metadata-value">'+this._tokenTypeToString(d.tokenType)+"</td>",s+='<tr><td class="tm-metadata-key">font style</td><td class="tm-metadata-value">'+this._fontStyleToString(d.fontStyle)+"</td>",s+='<tr><td class="tm-metadata-key">foreground</td><td class="tm-metadata-value">'+N_.Format.CSS.formatHex(d.foreground)+"</td>",s+='<tr><td class="tm-metadata-key">background</td><td class="tm-metadata-value">'+N_.Format.CSS.formatHex(d.background)+"</td>",s+="</tbody></table>",s+='<hr class="tokens-inspect-separator"/>',n<t.tokens1.length&&(s+='<span class="tm-token-type">'+Lr(t.tokens1[n].type)+"</span>"),this._domNode.innerHTML=s,this._editor.layoutContentWidget(this)},t.prototype._decodeMetadata=function(e){var t=zl.getColorMap(),n=vl.getLanguageId(e),i=vl.getTokenType(e),o=vl.getFontStyle(e),r=vl.getForeground(e),s=vl.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:i,fontStyle:o,foreground:t[r],background:t[s]}},t.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},t.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t},t.prototype._getTokensAtLine=function(e){var t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),i=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:i.tokens,endState:n.endState}},t.prototype._getStateBeforeLine=function(e){for(var t=this._tokenizationSupport.getInitialState(),n=1;n<e;n++){var i=this._tokenizationSupport.tokenize(this._model.getLineContent(n),t,0);t=i.endState}return t},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return{position:this._editor.getPosition(),preference:[2,1]}},t._ID="editor.contrib.inspectTokensWidget",t}(Ie);Bg(g1.ID,g1),Cg(m1),gm((function(e,t){var n=e.getColor(Zw);if(n){var i=e.type===dm?2:1;t.addRule(".monaco-editor .tokens-inspect-widget { border: "+i+"px solid "+n+"; }"),t.addRule(".monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: "+n+"; }")}var o=e.getColor(Xw);o&&t.addRule(".monaco-editor .tokens-inspect-widget { background-color: "+o+"; }");var r=e.getColor(Jw);r&&t.addRule(".monaco-editor .tokens-inspect-widget { color: "+r+"; }")}));n("0bda"),n("abf2");var w1=dr,b1=function(){function e(e,t,n){this.os=t,this.options=n,this.domNode=ar(e,w1(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}return e.prototype.set=function(t,n){this.didEverRender&&this.keybinding===t&&e.areSame(this.matches,n)||(this.keybinding=t,this.matches=n,this.render())},e.prototype.render=function(){if(oo(this.domNode),this.keybinding){var e=this.keybinding.getParts(),t=e[0],n=e[1];t&&this.renderPart(this.domNode,t,this.matches?this.matches.firstPart:null),n&&(ar(this.domNode,w1("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,n,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0},e.prototype.renderPart=function(e,t,n){var i,o,r,s,a,u=Kp.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,u.ctrlKey,Boolean(null===(i=n)||void 0===i?void 0:i.ctrlKey),u.separator),t.shiftKey&&this.renderKey(e,u.shiftKey,Boolean(null===(o=n)||void 0===o?void 0:o.shiftKey),u.separator),t.altKey&&this.renderKey(e,u.altKey,Boolean(null===(r=n)||void 0===r?void 0:r.altKey),u.separator),t.metaKey&&this.renderKey(e,u.metaKey,Boolean(null===(s=n)||void 0===s?void 0:s.metaKey),u.separator);var l=t.keyLabel;l&&this.renderKey(e,l,Boolean(null===(a=n)||void 0===a?void 0:a.keyCode),"")},e.prototype.renderKey=function(e,t,n,i){ar(e,w1("span.monaco-keybinding-key"+(n?".highlight":""),void 0,t)),i&&ar(e,w1("span.monaco-keybinding-key-separator",void 0,i))},e.prototype.renderUnbound=function(e){ar(e,w1("span.monaco-keybinding-key",void 0,r("unbound","Unbound")))},e.areSame=function(e,t){return e===t||!e&&!t||!!e&&!!t&&Au(e.firstPart,t.firstPart)&&Au(e.chordPart,t.chordPart)},e}(),C1=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)}}(),S1=0,B1=function(){function e(e){void 0===e&&(e=[]),this.id=(S1++).toString(),this.labelHighlights=e,this.descriptionHighlights=[]}return e.prototype.getId=function(){return this.id},e.prototype.getLabel=function(){},e.prototype.getLabelOptions=function(){},e.prototype.getAriaLabel=function(){return Ti([this.getLabel(),this.getDescription(),this.getDetail()]).join(", ")},e.prototype.getDetail=function(){},e.prototype.getIcon=function(){},e.prototype.getDescription=function(){},e.prototype.getTooltip=function(){},e.prototype.getDescriptionTooltip=function(){},e.prototype.getKeybinding=function(){},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setHighlights=function(e,t,n){this.labelHighlights=e,this.descriptionHighlights=t,this.detailHighlights=n},e.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},e.prototype.run=function(e,t){return!1},e}(),E1=function(e){function t(t,n,i){var o=e.call(this)||this;return o.entry=t,o.groupLabel=n,o.withBorder=i,o}return C1(t,e),t.prototype.getGroupLabel=function(){return this.groupLabel},t.prototype.setGroupLabel=function(e){this.groupLabel=e},t.prototype.showBorder=function(){return!!this.withBorder},t.prototype.setShowBorder=function(e){this.withBorder=e},t.prototype.getLabel=function(){return this.entry?this.entry.getLabel():e.prototype.getLabel.call(this)},t.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():e.prototype.getLabelOptions.call(this)},t.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():e.prototype.getAriaLabel.call(this)},t.prototype.getDetail=function(){return this.entry?this.entry.getDetail():e.prototype.getDetail.call(this)},t.prototype.getIcon=function(){return this.entry?this.entry.getIcon():e.prototype.getIcon.call(this)},t.prototype.getDescription=function(){return this.entry?this.entry.getDescription():e.prototype.getDescription.call(this)},t.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():e.prototype.getHighlights.call(this)},t.prototype.isHidden=function(){return this.entry?this.entry.isHidden():e.prototype.isHidden.call(this)},t.prototype.setHighlights=function(t,n,i){this.entry?this.entry.setHighlights(t,n,i):e.prototype.setHighlights.call(this,t,n,i)},t.prototype.run=function(t,n){return this.entry?this.entry.run(t,n):e.prototype.run.call(this,t,n)},t}(B1),x1=function(){function e(){}return e.prototype.hasActions=function(e,t){return!1},e.prototype.getActions=function(e,t){return null},e}(),L1="quickOpenEntry",D1="quickOpenEntryGroup",N1=function(){function e(e,t){void 0===e&&(e=new x1),this.actionProvider=e,this.actionRunner=t}return e.prototype.getHeight=function(e){return e.getDetail()?44:22},e.prototype.getTemplateId=function(e){return e instanceof E1?D1:L1},e.prototype.renderTemplate=function(e,t,n){var i=document.createElement("div");ho(i,"sub-content"),t.appendChild(i);var o=dr(".quick-open-row"),r=dr(".quick-open-row"),a=dr(".quick-open-entry",void 0,o,r);i.appendChild(a);var u=document.createElement("span");o.appendChild(u);var l=new Hz(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0}),c=document.createElement("span");o.appendChild(c),ho(c,"quick-open-entry-keybinding");var d=new b1(c,s["a"]),h=document.createElement("div");r.appendChild(h),ho(h,"quick-open-entry-meta");var A,p=new Pz(h,!0);e===D1&&(A=document.createElement("div"),ho(A,"results-group"),t.appendChild(A)),ho(t,"actions");var f=document.createElement("div");ho(f,"primary-action-bar"),t.appendChild(f);var g=new FL(f,{actionRunner:this.actionRunner});return{container:t,entry:a,icon:u,label:l,detail:p,keybinding:d,group:A,actionBar:g}},e.prototype.renderElement=function(e,t,n,i){this.actionProvider.hasActions(null,e)?ho(n.container,"has-actions"):po(n.container,"has-actions"),n.actionBar.context=e;var o=this.actionProvider.getActions(null,e);if(n.actionBar.isEmpty()&&o&&o.length>0?n.actionBar.push(o,{icon:!0,label:!1}):n.actionBar.isEmpty()||o&&0!==o.length||n.actionBar.clear(),e instanceof E1&&e.getGroupLabel()?ho(n.container,"has-group-label"):po(n.container,"has-group-label"),e instanceof E1){var r=e,s=n;r.showBorder()?(ho(s.container,"results-group-separator"),i.pickerGroupBorder&&(s.container.style.borderTopColor=i.pickerGroupBorder.toString())):(po(s.container,"results-group-separator"),s.container.style.borderTopColor="");var a=r.getGroupLabel()||"";s.group&&(s.group.textContent=a,i.pickerGroupForeground&&(s.group.style.color=i.pickerGroupForeground.toString()))}if(e instanceof B1){var u=e.getHighlights(),l=u[0],c=u[1],d=u[2],h=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=h;var A=e.getLabelOptions()||Object.create(null);A.matches=l||[],A.title=e.getTooltip(),A.descriptionTitle=e.getDescriptionTooltip()||e.getDescription(),A.descriptionMatches=c||[],n.label.setLabel(e.getLabel()||"",e.getDescription(),A),n.detail.set(e.getDetail(),d),n.keybinding.set(e.getKeybinding())}},e.prototype.disposeTemplate=function(e,t){t.actionBar.dispose(),t.actionBar=null,t.container=null,t.entry=null,t.keybinding=null,t.detail=null,t.group=null,t.icon=null,t.label.dispose(),t.label=null},e}(),k1=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=new x1),this._entries=e,this._dataSource=this,this._renderer=new N1(t),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(e.prototype,"entries",{get:function(){return this._entries},set:function(e){this._entries=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),e.prototype.getId=function(e){return e.getId()},e.prototype.getLabel=function(e){return ka(e.getLabel())},e.prototype.getAriaLabel=function(e){var t=e.getAriaLabel();return t?r("quickOpenAriaLabelEntry","{0}, picker",e.getAriaLabel()):r("quickOpenAriaLabel","picker")},e.prototype.isVisible=function(e){return!e.isHidden()},e.prototype.run=function(e,t,n){return e.run(t,n)},e}(),I1=(n("a87d9"),n("52c8"),function(){function e(e){this.modelProvider=Sa(e.getModel)?e:{getModel:function(){return e}}}return e.prototype.getId=function(e,t){if(!t)return null;var n=this.modelProvider.getModel();return n===t?"__root__":n.dataSource.getId(t)},e.prototype.hasChildren=function(e,t){var n=this.modelProvider.getModel();return!!(n&&n===t&&n.entries.length>0)},e.prototype.getChildren=function(e,t){var n=this.modelProvider.getModel();return Promise.resolve(n===t?n.entries:[])},e.prototype.getParent=function(e,t){return Promise.resolve(null)},e}()),F1=function(){function e(e){this.modelProvider=e}return e.prototype.getAriaLabel=function(e,t){var n=this.modelProvider.getModel();return n.accessibilityProvider?n.accessibilityProvider.getAriaLabel(t):null},e.prototype.getPosInSet=function(e,t){var n=this.modelProvider.getModel(),i=0;if(n.filter)for(var o=0,r=n.entries;o<r.length;o++){var s=r[o];if(n.filter.isVisible(s)&&i++,s===t)break}else i=n.entries.indexOf(t)+1;return String(i)},e.prototype.getSetSize=function(){var e=this.modelProvider.getModel(),t=0;if(e.filter)for(var n=0,i=e.entries;n<i.length;n++){var o=i[n];e.filter.isVisible(o)&&t++}else t=e.entries.length;return String(t)},e}(),M1=function(){function e(e){this.modelProvider=e}return e.prototype.isVisible=function(e,t){var n=this.modelProvider.getModel();return!n.filter||n.filter.isVisible(t)},e}(),O1=function(){function e(e,t){this.modelProvider=e,this.styles=t}return e.prototype.updateStyles=function(e){this.styles=e},e.prototype.getHeight=function(e,t){var n=this.modelProvider.getModel();return n.renderer.getHeight(t)},e.prototype.getTemplateId=function(e,t){var n=this.modelProvider.getModel();return n.renderer.getTemplateId(t)},e.prototype.renderTemplate=function(e,t,n){var i=this.modelProvider.getModel();return i.renderer.renderTemplate(t,n,this.styles)},e.prototype.renderElement=function(e,t,n,i){var o=this.modelProvider.getModel();o.renderer.renderElement(t,n,i,this.styles)},e.prototype.disposeTemplate=function(e,t,n){var i=this.modelProvider.getModel();i.renderer.disposeTemplate(t,n)},e}(),T1=(n("bcc1"),function(){function e(){this._arr=[]}return e.prototype.set=function(e,t){this._arr.push({keybinding:lt(e,s["a"]),callback:t})},e.prototype.dispatch=function(e){for(var t=this._arr.length-1;t>=0;t--){var n=this._arr[t];if(e.toChord().equals(n.keybinding))return n.callback}return null},e}()),P1=function(){function e(e){var t=this;void 0===e&&(e={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=e,this.downKeyBindingDispatcher=new T1,this.upKeyBindingDispatcher=new T1,("boolean"!==typeof e.keyboardSupport||e.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,(function(e,n){return t.onUp(e,n)})),this.downKeyBindingDispatcher.set(18,(function(e,n){return t.onDown(e,n)})),this.downKeyBindingDispatcher.set(15,(function(e,n){return t.onLeft(e,n)})),this.downKeyBindingDispatcher.set(17,(function(e,n){return t.onRight(e,n)})),s["e"]&&(this.downKeyBindingDispatcher.set(2064,(function(e,n){return t.onLeft(e,n)})),this.downKeyBindingDispatcher.set(300,(function(e,n){return t.onDown(e,n)})),this.downKeyBindingDispatcher.set(302,(function(e,n){return t.onUp(e,n)}))),this.downKeyBindingDispatcher.set(11,(function(e,n){return t.onPageUp(e,n)})),this.downKeyBindingDispatcher.set(12,(function(e,n){return t.onPageDown(e,n)})),this.downKeyBindingDispatcher.set(14,(function(e,n){return t.onHome(e,n)})),this.downKeyBindingDispatcher.set(13,(function(e,n){return t.onEnd(e,n)})),this.downKeyBindingDispatcher.set(10,(function(e,n){return t.onSpace(e,n)})),this.downKeyBindingDispatcher.set(9,(function(e,n){return t.onEscape(e,n)})),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2051,this.onEnter.bind(this)))}return e.prototype.onMouseDown=function(e,t,n,i){if(void 0===i&&(i="mouse"),0===this.options.clickBehavior&&(n.leftButton||n.middleButton)){if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(Go(n.target,"scrollbar","monaco-tree"))return!1;if(Go(n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,i)}return!1},e.prototype.onClick=function(e,t,n){var i=s["e"];return i&&n.ctrlKey?(n.preventDefault(),n.stopPropagation(),!1):(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&((0!==this.options.clickBehavior||!n.leftButton&&!n.middleButton)&&this.onLeftClick(e,t,n))},e.prototype.onLeftClick=function(e,t,n,i){void 0===i&&(i="mouse");var o=n,r={origin:i,originalEvent:n,didClickOnTwistie:this.isClickOnTwistie(o)};if(e.getInput()===t)e.clearFocus(r),e.clearSelection(r);else{var s=n&&o.browserEvent&&"mousedown"===o.browserEvent.type&&1===o.browserEvent.detail;s||n.preventDefault(),n.stopPropagation(),e.domFocus(),e.setSelection([t],r),e.setFocus(t,r),this.shouldToggleExpansion(t,o,i)&&(e.isExpanded(t)?e.collapse(t).then(void 0,Ae):e.expand(t).then(void 0,Ae))}return!0},e.prototype.shouldToggleExpansion=function(e,t,n){var i="mouse"===n&&2===t.detail;return this.openOnSingleClick||i||this.isClickOnTwistie(t)},Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return 0===this.options.openMode},enumerable:!0,configurable:!0}),e.prototype.isClickOnTwistie=function(e){var t=e.target;if(!co(t,"content"))return!1;var n=window.getComputedStyle(t,":before");if("none"===n.backgroundImage||"none"===n.display)return!1;var i=parseInt(n.width)+parseInt(n.paddingRight);return e.browserEvent.offsetX<=i},e.prototype.onContextMenu=function(e,t,n){return n.target&&n.target.tagName&&"input"===n.target.tagName.toLowerCase()||n&&(n.preventDefault(),n.stopPropagation()),!1},e.prototype.onTap=function(e,t,n){var i=n.initialTarget;return(!i||!i.tagName||"input"!==i.tagName.toLowerCase())&&this.onLeftClick(e,t,n,"touch")},e.prototype.onKeyDown=function(e,t){return this.onKey(this.downKeyBindingDispatcher,e,t)},e.prototype.onKeyUp=function(e,t){return this.onKey(this.upKeyBindingDispatcher,e,t)},e.prototype.onKey=function(e,t,n){var i=e.dispatch(n.toKeybinding());return!(!i||!i(t,n))&&(n.preventDefault(),n.stopPropagation(),!0)},e.prototype.onUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPrevious(1,n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onPageUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPreviousPage(n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNext(1,n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onPageDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNextPage(n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onHome=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusFirst(n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onEnd=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusLast(n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onLeft=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.collapse(i).then((function(t){if(i&&!t)return e.focusParent(n),e.reveal(e.getFocus())})).then(void 0,Ae)}return!0},e.prototype.onRight=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.expand(i).then((function(t){if(i&&!t)return e.focusFirstChild(n),e.reveal(e.getFocus())})).then(void 0,Ae)}return!0},e.prototype.onEnter=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())return!1;var i=e.getFocus();return i&&e.setSelection([i],n),!0},e.prototype.onSpace=function(e,t){if(e.getHighlight())return!1;var n=e.getFocus();return n&&e.toggleExpansion(n),!0},e.prototype.onEscape=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?(e.clearHighlight(n),!0):e.getSelection().length?(e.clearSelection(n),!0):!!e.getFocus()&&(e.clearFocus(n),!0)},e}(),R1=function(){function e(){}return e.prototype.getDragURI=function(e,t){return null},e.prototype.onDragStart=function(e,t,n){},e.prototype.onDragOver=function(e,t,n,i){return null},e.prototype.drop=function(e,t,n,i){},e}(),U1=function(){function e(){}return e.prototype.isVisible=function(e,t){return!0},e}(),H1=function(){function e(){}return e.prototype.getAriaLabel=function(e,t){return null},e}(),Q1=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t}return e.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"",n=[];e.listFocusBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+e.listFocusBackground+"; }"),e.listFocusForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listActiveSelectionBackground+"; }"),e.listActiveSelectionForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveSelectionBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listInactiveSelectionBackground+"; }"),e.listInactiveSelectionForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-tree-drag-image\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; background: #000; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row \t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid transparent; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) \t\t\t\t\t\t{ border: 1px dotted "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) \t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},e}(),V1=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)}}(),W1=function(){function e(e){this._onDispose=new Ye,this.onDispose=this._onDispose.event,this._item=e}return Object.defineProperty(e.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},e}(),K1=function(){function e(){this.locks=Object.create({})}return e.prototype.isLocked=function(e){return!!this.locks[e.id]},e.prototype.run=function(e,t){var n,i=this,o=this.getLock(e);return new Promise(o?function(n,r){Ue.once(o.onDispose)((function(){return i.run(e,t).then(n,r)}))}:function(o,r){if(e.isDisposed())return r(new Error("Item is disposed."));var s=i.locks[e.id]=new W1(e);return n=t().then((function(t){return delete i.locks[e.id],s.dispose(),t})).then(o,r),n})},e.prototype.getLock=function(e){var t;for(t in this.locks){var n=this.locks[t];if(e.intersects(n.item))return n}return null},e}(),z1=function(){function e(){this._isDisposed=!1,this._onDidRevealItem=new Je,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new Je,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new Je,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new Je,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new Je,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new Je,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new Je,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new Je,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new Je,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new Je,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new Je,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return e.prototype.register=function(e){ru(!this.isRegistered(e.id),"item already registered: "+e.id);var t=Le(this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose));this.items[e.id]={item:e,disposable:t}},e.prototype.deregister=function(e){ru(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},e.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},e.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},e.prototype.dispose=function(){this.items={},this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},e.prototype.isDisposed=function(){return this._isDisposed},e}(),j1=function(){function e(e,t,n,i,o){this._onDidCreate=new Ye,this._onDidReveal=new Ye,this.onDidReveal=this._onDidReveal.event,this._onExpand=new Ye,this.onExpand=this._onExpand.event,this._onDidExpand=new Ye,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new Ye,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new Ye,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new Ye,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new Ye,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new Ye,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new Ye,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new Ye,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new Ye,this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=n,this.lock=i,this.element=o,this.id=e,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=!(!this.context.dataSource.shouldAutoexpand||!this.context.dataSource.shouldAutoexpand(this.context.tree,o)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return e.prototype.getElement=function(){return this.element},e.prototype.hasChildren=function(){return this.doesHaveChildren},e.prototype.getDepth=function(){return this.depth},e.prototype.isVisible=function(){return this.visible},e.prototype.setVisible=function(e){this.visible=e},e.prototype.isExpanded=function(){return this.expanded},e.prototype._setExpanded=function(e){this.expanded=e},e.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)},e.prototype.expand=function(){var e=this;if(this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this))return Promise.resolve(!1);var t=this.lock.run(this,(function(){if(e.isExpanded()||!e.doesHaveChildren)return Promise.resolve(!1);var t,n={item:e};return e._onExpand.fire(n),t=e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Promise.resolve(null),t.then((function(){return e._setExpanded(!0),e._onDidExpand.fire(n),!0}))}));return t.then((function(t){return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then((function(){return!0})):t)}))},e.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=Promise.resolve(null);return this.forEachChild((function(e){n=n.then((function(){return e.collapse(!0)}))})),n.then((function(){return t.collapse(!1)}))}return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,(function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),Promise.resolve(!0)}))},e.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},e.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},e.prototype.hasTrait=function(e){return this.traits[e]||!1},e.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},e.prototype.getHeight=function(){return this.height},e.prototype.refreshChildren=function(t,n,i){var o=this;if(void 0===n&&(n=!1),void 0===i&&(i=!1),!i&&!this.isExpanded()){var r=function(e){e.needsChildrenRefresh=!0,e.forEachChild(r)};return r(this),Promise.resolve(this)}this.needsChildrenRefresh=!1;var s=function(){var i,r={item:o,isNested:n};o._onRefreshChildren.fire(r),i=o.doesHaveChildren?o.context.dataSource.getChildren(o.context.tree,o.element):Promise.resolve([]);var s=i.then((function(n){if(o.isDisposed()||o.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(n))return Promise.reject(new Error("Please return an array of children."));n=n?n.slice(0):[],n=o.sort(n);var i={};while(null!==o.firstChild)i[o.firstChild.id]=o.firstChild,o.removeChild(o.firstChild);for(var r=0,s=n.length;r<s;r++){var a=n[r],u=o.context.dataSource.getId(o.context.tree,a),l=i[u]||new e(u,o.registry,o.context,o.lock,a);l.element=a,t&&(l.needsChildrenRefresh=t),delete i[u],o.addChild(l)}for(var c in i)i.hasOwnProperty(c)&&i[c].dispose();return t?Promise.all(o.mapEachChild((function(e){return e.doRefresh(t,!0)}))):Promise.all(o.mapEachChild((function(e){return e.isExpanded()&&e.needsChildrenRefresh?e.doRefresh(t,!0):(e.updateVisibility(),Promise.resolve(null))})))}));return s.then(void 0,Ae).then((function(){return o._onDidRefreshChildren.fire(r)}))};return n?s():this.lock.run(this,s)},e.prototype.doRefresh=function(e,t){return void 0===t&&(t=!1),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.height=this._getHeight(),this.updateVisibility(),this._onDidRefresh.fire(this),this.refreshChildren(e,t)},e.prototype.updateVisibility=function(){this.setVisible(this._isVisible())},e.prototype.refresh=function(e){return this.doRefresh(e)},e.prototype.getNavigator=function(){return new q1(this)},e.prototype.intersects=function(e){return this.isAncestorOf(e)||e.isAncestorOf(this)},e.prototype.isAncestorOf=function(e){var t=e;while(t){if(t.id===this.id)return!0;t=t.parent}return!1},e.prototype.addChild=function(e,t){void 0===t&&(t=this.lastChild);var n=null===this.firstChild,i=null===t,o=t===this.lastChild;if(n)this.firstChild=this.lastChild=e,e.next=e.previous=null;else if(i){if(!this.firstChild)throw new Error("Invalid tree state");this.firstChild.previous=e,e.next=this.firstChild,e.previous=null,this.firstChild=e}else if(o){if(!this.lastChild)throw new Error("Invalid tree state");this.lastChild.next=e,e.next=null,e.previous=this.lastChild,this.lastChild=e}else{if(e.previous=t,!t)throw new Error("Invalid tree state");if(e.next=t.next,!t.next)throw new Error("Invalid tree state");t.next.previous=e,t.next=e}e.parent=this,e.depth=this.depth+1},e.prototype.removeChild=function(e){var t=this.firstChild===e,n=this.lastChild===e;if(t&&n)this.firstChild=this.lastChild=null;else if(t){if(!e.next)throw new Error("Invalid tree state");e.next.previous=null,this.firstChild=e.next}else if(n){if(!e.previous)throw new Error("Invalid tree state");e.previous.next=null,this.lastChild=e.previous}else{if(!e.next)throw new Error("Invalid tree state");if(e.next.previous=e.previous,!e.previous)throw new Error("Invalid tree state");e.previous.next=e.next}e.parent=null,e.depth=NaN},e.prototype.forEachChild=function(e){var t,n=this.firstChild;while(n)t=n.next,e(n),n=t},e.prototype.mapEachChild=function(e){var t=[];return this.forEachChild((function(n){t.push(e(n))})),t},e.prototype.sort=function(e){var t=this,n=this.context.sorter;return n?e.sort((function(e,i){return n.compare(t.context.tree,e,i)})):e},e.prototype._getHeight=function(){return this.context.renderer?this.context.renderer.getHeight(this.context.tree,this.element):0},e.prototype._isVisible=function(){return!!this.context.filter&&this.context.filter.isVisible(this.context.tree,this.element)},e.prototype.isDisposed=function(){return this._isDisposed},e.prototype.dispose=function(){this.forEachChild((function(e){return e.dispose()})),this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this._onDidDispose.fire(this),this.registry.deregister(this),this._onDidCreate.dispose(),this._onDidReveal.dispose(),this._onExpand.dispose(),this._onDidExpand.dispose(),this._onCollapse.dispose(),this._onDidCollapse.dispose(),this._onDidAddTrait.dispose(),this._onDidRemoveTrait.dispose(),this._onDidRefresh.dispose(),this._onRefreshChildren.dispose(),this._onDidRefreshChildren.dispose(),this._onDidDispose.dispose(),this._isDisposed=!0},e}(),G1=function(e){function t(t,n,i,o,r){return e.call(this,t,n,i,o,r)||this}return V1(t,e),t.prototype.isVisible=function(){return!1},t.prototype.setVisible=function(e){},t.prototype.isExpanded=function(){return!0},t.prototype._setExpanded=function(e){},t.prototype._getHeight=function(){return 0},t.prototype._isVisible=function(){return!1},t}(j1),q1=function(){function e(e,t){void 0===t&&(t=!0),this.item=e,this.start=t?e:null}return e.lastDescendantOf=function(t){return t?t instanceof G1?e.lastDescendantOf(t.lastChild):t.isVisible()?t.isExpanded()&&null!==t.lastChild?e.lastDescendantOf(t.lastChild):t:e.lastDescendantOf(t.previous):null},e.prototype.current=function(){return this.item||null},e.prototype.next=function(){if(this.item)do{if((this.item instanceof G1||this.item.isVisible()&&this.item.isExpanded())&&this.item.firstChild)this.item=this.item.firstChild;else if(this.item===this.start)this.item=null;else{while(this.item&&this.item!==this.start&&!this.item.next)this.item=this.item.parent;this.item===this.start&&(this.item=null),this.item=this.item?this.item.next:null}}while(this.item&&!this.item.isVisible());return this.item||null},e.prototype.previous=function(){if(this.item)do{var t=e.lastDescendantOf(this.item.previous);t?this.item=t:this.item.parent&&this.item.parent!==this.start&&this.item.parent.isVisible()?this.item=this.item.parent:this.item=null}while(this.item&&!this.item.isVisible());return this.item||null},e.prototype.parent=function(){if(this.item){var e=this.item.parent;e&&e!==this.start&&e.isVisible()?this.item=e:this.item=null}return this.item||null},e.prototype.first=function(){return this.item=this.start,this.next(),this.item||null},e.prototype.last=function(){return e.lastDescendantOf(this.start)},e}(),Y1=function(){function e(e){this.registry=new z1,this.registryDisposable=Ie.None,this._onSetInput=new Ye,this.onSetInput=this._onSetInput.event,this._onDidSetInput=new Ye,this.onDidSetInput=this._onDidSetInput.event,this._onRefresh=new Ye,this.onRefresh=this._onRefresh.event,this._onDidRefresh=new Ye,this.onDidRefresh=this._onDidRefresh.event,this._onDidHighlight=new Ye,this.onDidHighlight=this._onDidHighlight.event,this._onDidSelect=new Ye,this.onDidSelect=this._onDidSelect.event,this._onDidFocus=new Ye,this.onDidFocus=this._onDidFocus.event,this._onDidRevealItem=new $e,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new $e,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new $e,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new $e,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new $e,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new $e,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new $e,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new $e,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new $e,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new $e,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new $e,this.context=e,this.input=null,this.traitsToItems={}}return e.prototype.setInput=function(e){var t=this,n={item:this.input};this._onSetInput.fire(n),this.setSelection([]),this.setFocus(),this.setHighlight(),this.lock=new K1,this.input&&this.input.dispose(),this.registry&&(this.registry.dispose(),this.registryDisposable.dispose()),this.registry=new z1,this._onDidRevealItem.input=this.registry.onDidRevealItem,this._onExpandItem.input=this.registry.onExpandItem,this._onDidExpandItem.input=this.registry.onDidExpandItem,this._onCollapseItem.input=this.registry.onCollapseItem,this._onDidCollapseItem.input=this.registry.onDidCollapseItem,this._onDidAddTraitItem.input=this.registry.onDidAddTraitItem,this._onDidRemoveTraitItem.input=this.registry.onDidRemoveTraitItem,this._onDidRefreshItem.input=this.registry.onDidRefreshItem,this._onRefreshItemChildren.input=this.registry.onRefreshItemChildren,this._onDidRefreshItemChildren.input=this.registry.onDidRefreshItemChildren,this._onDidDisposeItem.input=this.registry.onDidDisposeItem,this.registryDisposable=this.registry.onDidDisposeItem((function(e){return e.getAllTraits().forEach((function(n){return delete t.traitsToItems[n][e.id]}))}));var i=this.context.dataSource.getId(this.context.tree,e);return this.input=new G1(i,this.registry,this.context,this.lock,e),n={item:this.input},this._onDidSetInput.fire(n),this.refresh(this.input)},e.prototype.getInput=function(){return this.input?this.input.getElement():null},e.prototype.refresh=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=!0);var i=this.getItem(e);if(!i)return Promise.resolve(null);var o={item:i,recursive:t};return this._onRefresh.fire(o),i.refresh(t).then((function(){n._onDidRefresh.fire(o)}))},e.prototype.expand=function(e){var t=this.getItem(e);return t?t.expand():Promise.resolve(!1)},e.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getItem(e);return n?n.collapse(t):Promise.resolve(!1)},e.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.isExpanded(e)?this.collapse(e,t):this.expand(e)},e.prototype.isExpanded=function(e){var t=this.getItem(e);return!!t&&t.isExpanded()},e.prototype.reveal=function(e,t){var n=this;return void 0===t&&(t=null),this.resolveUnknownParentChain(e).then((function(e){var t=Promise.resolve(null);return e.forEach((function(e){t=t.then((function(){return n.expand(e)}))})),t})).then((function(){var i=n.getItem(e);if(i)return i.reveal(t)}))},e.prototype.resolveUnknownParentChain=function(e){var t=this;return this.context.dataSource.getParent(this.context.tree,e).then((function(e){return e?t.resolveUnknownParentChain(e).then((function(t){return t.push(e),t})):Promise.resolve([])}))},e.prototype.setHighlight=function(e,t){this.setTraits("highlighted",e?[e]:[]);var n={highlight:this.getHighlight(),payload:t};this._onDidHighlight.fire(n)},e.prototype.getHighlight=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("highlighted",e);return 0===t.length?null:t[0]},e.prototype.setSelection=function(e,t){this.setTraits("selected",e);var n={selection:this.getSelection(),payload:t};this._onDidSelect.fire(n)},e.prototype.getSelection=function(e){return void 0===e&&(e=!1),this.getElementsWithTrait("selected",e)},e.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var n={focus:this.getFocus(),payload:t};this._onDidFocus.fire(n)},e.prototype.getFocus=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0]},e.prototype.focusNext=function(e,t){void 0===e&&(e=1);for(var n,i=this.getFocus()||this.input,o=this.getNavigator(i,!1),r=0;r<e;r++){if(n=o.next(),!n)break;i=n}this.setFocus(i,t)},e.prototype.focusPrevious=function(e,t){void 0===e&&(e=1);for(var n,i=this.getFocus()||this.input,o=this.getNavigator(i,!1),r=0;r<e;r++){if(n=o.previous(),!n)break;i=n}this.setFocus(i,t)},e.prototype.focusParent=function(e){var t=this.getFocus()||this.input,n=this.getNavigator(t,!1),i=n.parent();i&&this.setFocus(i,e)},e.prototype.focusFirstChild=function(e){var t=this.getItem(this.getFocus()||this.input),n=this.getNavigator(t,!1),i=n.next(),o=n.parent();o===t&&this.setFocus(i,e)},e.prototype.focusFirst=function(e,t){this.focusNth(0,e,t)},e.prototype.focusNth=function(e,t,n){for(var i=this.getParent(n),o=this.getNavigator(i),r=o.first(),s=0;s<e;s++)r=o.next();r&&this.setFocus(r,t)},e.prototype.focusLast=function(e,t){var n,i=this.getParent(t);if(t&&i)n=i.lastChild;else{var o=this.getNavigator(i);n=o.last()}n&&this.setFocus(n,e)},e.prototype.getParent=function(e){if(e){var t=this.getItem(e);if(t&&t.parent)return t.parent}return this.getItem(this.input)},e.prototype.getNavigator=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!0),new q1(this.getItem(e),t)},e.prototype.getItem=function(e){return void 0===e&&(e=null),null===e?this.input:e instanceof j1?e:"string"===typeof e?this.registry.getItem(e):this.registry.getItem(this.context.dataSource.getId(this.context.tree,e))},e.prototype.removeTraits=function(e,t){var n,i,o=this.traitsToItems[e]||{};if(0===t.length){for(i in o)o.hasOwnProperty(i)&&(n=o[i],n.removeTrait(e));delete this.traitsToItems[e]}else for(var r=0,s=t.length;r<s;r++)n=this.getItem(t[r]),n&&(n.removeTrait(e),delete o[n.id])},e.prototype.setTraits=function(e,t){if(0===t.length)this.removeTraits(e,t);else{for(var n={},i=void 0,o=0,r=t.length;o<r;o++)i=this.getItem(t[o]),i&&(n[i.id]=i);var s=this.traitsToItems[e]||{},a=[],u=void 0;for(u in s)s.hasOwnProperty(u)&&(n.hasOwnProperty(u)?delete n[u]:a.push(s[u]));for(o=0,r=a.length;o<r;o++)i=a[o],i.removeTrait(e),delete s[i.id];for(u in n)n.hasOwnProperty(u)&&(i=n[u],i.addTrait(e),s[u]=i);this.traitsToItems[e]=s}},e.prototype.getElementsWithTrait=function(e,t){var n,i=[],o=this.traitsToItems[e]||{};for(n in o)o.hasOwnProperty(n)&&(o[n].isVisible()||t)&&i.push(o[n].getElement());return i},e.prototype.dispose=function(){this.registry.dispose(),this._onSetInput.dispose(),this._onDidSetInput.dispose(),this._onRefresh.dispose(),this._onDidRefresh.dispose(),this._onDidHighlight.dispose(),this._onDidSelect.dispose(),this._onDidFocus.dispose(),this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._onDidDisposeItem.dispose()},e}(),X1=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e.prototype.getData=function(){return this.elements},e}(),J1=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e.prototype.getData=function(){return this.elements},e}(),Z1=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){e.types&&(this.types=[],Array.prototype.push.apply(this.types,e.types)),e.files&&(this.files=[],Array.prototype.push.apply(this.files,e.files),this.files=this.files.filter((function(e){return e.size||e.type})))},e.prototype.getData=function(){return{types:this.types,files:this.files}},e}(),$1=function(){function e(){this.heightMap=[],this.indexes={}}return e.prototype.getContentHeight=function(){var e=this.heightMap[this.heightMap.length-1];return e?e.top+e.height:0},e.prototype.onInsertItems=function(e,t){void 0===t&&(t=null);var n,i,o,r,s=null,a=0;if(null===t)i=0,r=0;else{if(i=this.indexes[t]+1,n=this.heightMap[i-1],!n)return void console.error("view item doesnt exist");r=n.top+n.height}var u=this.heightMap.splice.bind(this.heightMap,i,0),l=[];while(s=e.next())n=this.createViewItem(s),n.top=r+a,this.indexes[s.id]=i++,l.push(n),a+=n.height;for(u.apply(this.heightMap,l),o=i;o<this.heightMap.length;o++)n=this.heightMap[o],n.top+=a,this.indexes[n.model.id]=o;for(o=l.length-1;o>=0;o--)this.onInsertItem(l[o]);for(o=this.heightMap.length-1;o>=i;o--)this.onRefreshItem(this.heightMap[o]);return a},e.prototype.onInsertItem=function(e){},e.prototype.onRemoveItems=function(e){var t,n=null,i=null,o=0,r=0;while(n=e.next()){if(o=this.indexes[n],t=this.heightMap[o],!t)return void console.error("view item doesnt exist");r-=t.height,delete this.indexes[n],this.onRemoveItem(t),null===i&&(i=o)}if(0!==r&&null!==i)for(this.heightMap.splice(i,o-i+1),o=i;o<this.heightMap.length;o++)t=this.heightMap[o],t.top+=r,this.indexes[t.model.id]=o,this.onRefreshItem(t)},e.prototype.onRemoveItem=function(e){},e.prototype.onRefreshItemSet=function(e){var t=this,n=e.sort((function(e,n){return t.indexes[e.id]-t.indexes[n.id]}));this.onRefreshItems(new He(n))},e.prototype.onRefreshItems=function(e){var t,n,i,o=null,r=null,s=0;while(o=e.next()){for(i=this.indexes[o.id];0!==s&&null!==r&&r<i;r++)t=this.heightMap[r],t.top+=s,this.onRefreshItem(t);t=this.heightMap[i],n=o.getHeight(),t.top+=s,s+=n-t.height,t.height=n,this.onRefreshItem(t,!0),r=i+1}if(0!==s&&null!==r)for(;r<this.heightMap.length;r++)t=this.heightMap[r],t.top+=s,this.onRefreshItem(t)},e.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1)},e.prototype.indexAt=function(e){var t,n,i=0,o=this.heightMap.length;while(i<o)if(t=Math.floor((i+o)/2),n=this.heightMap[t],e<n.top)o=t;else{if(!(e>=n.top+n.height))return t;if(i===t)break;i=t}return this.heightMap.length},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},e.prototype.itemAtIndex=function(e){return this.heightMap[e]},e.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},e.prototype.createViewItem=function(e){throw new Error("not implemented")},e.prototype.dispose=function(){this.heightMap=[],this.indexes={}},e}(),e2=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)}}(),t2=function(){function e(e,t,n){this._posx=e,this._posy=t,this._target=n}return e.prototype.preventDefault=function(){},e.prototype.stopPropagation=function(){},Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),e}(),n2=function(e){function t(t){var n=e.call(this,t.posx,t.posy,t.target)||this;return n.originalEvent=t,n}return e2(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(t2),i2=function(e){function t(t,n,i){var o=e.call(this,t,n,i.target)||this;return o.originalEvent=i,o}return e2(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(t2),o2=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 r2(e){try{e.parentElement.removeChild(e)}catch(t){}}var s2=function(){function e(e){this.context=e,this._cache={"":[]}}return e.prototype.alloc=function(e){var t=this.cache(e).pop();if(!t){var n=document.createElement("div");n.className="content";var i=document.createElement("div");i.appendChild(n);var o=null;try{o=this.context.renderer.renderTemplate(this.context.tree,e,n)}catch(r){console.error("Tree usage error: exception while rendering template"),console.error(r)}t={element:i,templateId:e,templateData:o}}return t},e.prototype.release=function(e,t){r2(t.element),this.cache(e).push(t)},e.prototype.cache=function(e){return this._cache[e]||(this._cache[e]=[])},e.prototype.garbageCollect=function(){var e=this;this._cache&&Object.keys(this._cache).forEach((function(t){e._cache[t].forEach((function(n){e.context.renderer.disposeTemplate(e.context.tree,t,n.templateData),n.element=null,n.templateData=null})),delete e._cache[t]}))},e.prototype.dispose=function(){this.garbageCollect(),this._cache=null},e}(),a2=function(){function e(e,t){var n=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=Ie.None,this._draggable=!1,this.context=e,this.model=t,this.id=this.model.id,this.row=null,this.top=0,this.height=t.getHeight(),this._styles={},t.getAllTraits().forEach((function(e){return n._styles[e]=!0})),t.isExpanded()&&this.addClass("expanded")}return Object.defineProperty(e.prototype,"expanded",{set:function(e){e?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loading",{set:function(e){e?this.addClass("codicon-loading"):this.removeClass("codicon-loading")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable=e,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropTarget",{set:function(e){e?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),e.prototype.addClass=function(e){this._styles[e]=!0,this.render(!0)},e.prototype.removeClass=function(e){delete this._styles[e],this.render(!0)},e.prototype.render=function(e){var t=this;if(void 0===e&&(e=!1),this.model&&this.element){var n=["monaco-tree-row"];n.push.apply(n,Object.keys(this._styles)),this.model.hasChildren()&&n.push("has-children"),this.element.className=n.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var i=this.context.accessibilityProvider,o=i.getAriaLabel(this.context.tree,this.model.getElement());if(o&&this.element.setAttribute("aria-label",o),i.getPosInSet&&i.getSetSize&&(this.element.setAttribute("aria-setsize",i.getSetSize()),this.element.setAttribute("aria-posinset",i.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var r=ms(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",r)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles["expanded"])):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var s=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(s!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),s?(this.uri=s,this.draggable=!0,this.unbindDragStart=vo(this.element,"dragstart",(function(e){t.onDragStart(e)}))):this.uri=null),!e&&this.element){var a=0;if(this.context.horizontalScrolling){var u=window.getComputedStyle(this.element);a=parseFloat(u.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width=Qn?"-moz-fit-content":"fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(l){console.error("Tree usage error: exception while rendering element"),console.error(l)}this.context.horizontalScrolling&&(this.width=Wo(this.element)+a,this.element.style.width="")}}},e.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[c2.BINDING]=this),!this.element.parentElement){if(null===t)e.appendChild(this.element);else try{e.insertBefore(this.element,t)}catch(n){console.warn("Failed to locate previous tree element"),e.appendChild(this.element)}this.render()}},e.prototype.removeFromDOM=function(){this.row&&(this.unbindDragStart.dispose(),this.uri=null,this.element[c2.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null)},e.prototype.dispose=function(){this.row=null},e}(),u2=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.row={element:i,templateData:null,templateId:null},o}return o2(t,e),t.prototype.render=function(){if(this.model&&this.element){var e=["monaco-tree-wrapper"];e.push.apply(e,Object.keys(this._styles)),this.model.hasChildren()&&e.push("has-children"),this.element.className=e.join(" ")}},t.prototype.insertInDOM=function(e,t){},t.prototype.removeFromDOM=function(){},t}(a2);function l2(e,t){return!e&&!t||!(!e||!t)&&(e.accept===t.accept&&(e.bubble===t.bubble&&e.effect===t.effect))}var c2=function(e){function t(n,i){var o=e.call(this)||this;o.model=null,o.lastPointerType="",o.lastClickTimeStamp=0,o.contentWidthUpdateDelayer=new mi(50),o.isRefreshing=!1,o.refreshingPreviousChildrenIds={},o.currentDragAndDropData=null,o.currentDropTarget=null,o.currentDropTargets=null,o.currentDropDisposable=Ie.None,o.gestureDisposable=Ie.None,o.dragAndDropScrollInterval=null,o.dragAndDropScrollTimeout=null,o.dragAndDropMouseY=null,o.highlightedItemWasDraggable=!1,o.onHiddenScrollTop=null,o._onDOMFocus=new Ye,o.onDOMFocus=o._onDOMFocus.event,o._onDOMBlur=new Ye,o._onDidScroll=new Ye,t.counter++,o.instance=t.counter;var r="undefined"===typeof n.options.horizontalScrollMode?2:n.options.horizontalScrollMode;o.horizontalScrolling=2!==r,o.context={dataSource:n.dataSource,renderer:n.renderer,controller:n.controller,dnd:n.dnd,filter:n.filter,sorter:n.sorter,tree:n.tree,accessibilityProvider:n.accessibilityProvider,options:n.options,cache:new s2(n),horizontalScrolling:o.horizontalScrolling},o.modelListeners=[],o.viewListeners=[],o.items={},o.domNode=document.createElement("div"),o.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+o.instance,o.domNode.tabIndex=n.options.preventRootFocus?-1:0,o.styleElement=qo(o.domNode),o.treeStyler=n.styler||new Q1(o.styleElement,"monaco-tree-instance-"+o.instance),o.domNode.setAttribute("role","tree"),o.context.options.ariaLabel&&o.domNode.setAttribute("aria-label",o.context.options.ariaLabel),o.context.options.alwaysFocused&&ho(o.domNode,"focused"),o.context.options.paddingOnRow||ho(o.domNode,"no-row-padding"),o.wrapper=document.createElement("div"),o.wrapper.className="monaco-tree-wrapper",o.scrollableElement=new PB(o.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:r,vertical:"undefined"!==typeof n.options.verticalScrollMode?n.options.verticalScrollMode:1,useShadows:n.options.useShadows}),o.scrollableElement.onScroll((function(e){o.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth),o._onDidScroll.fire()})),Rn?(o.wrapper.style.msTouchAction="none",o.wrapper.style.msContentZooming="none"):o.gestureDisposable=Tg.addTarget(o.wrapper),o.rowsContainer=document.createElement("div"),o.rowsContainer.className="monaco-tree-rows",n.options.showTwistie&&(o.rowsContainer.className+=" show-twisties");var s=sr(o.domNode);return o.viewListeners.push(s.onDidFocus((function(){return o.onFocus()}))),o.viewListeners.push(s.onDidBlur((function(){return o.onBlur()}))),o.viewListeners.push(s),o.viewListeners.push(vo(o.domNode,"keydown",(function(e){return o.onKeyDown(e)}))),o.viewListeners.push(vo(o.domNode,"keyup",(function(e){return o.onKeyUp(e)}))),o.viewListeners.push(vo(o.domNode,"mousedown",(function(e){return o.onMouseDown(e)}))),o.viewListeners.push(vo(o.domNode,"mouseup",(function(e){return o.onMouseUp(e)}))),o.viewListeners.push(vo(o.wrapper,"auxclick",(function(e){e&&1===e.button&&o.onMouseMiddleClick(e)}))),o.viewListeners.push(vo(o.wrapper,"click",(function(e){return o.onClick(e)}))),o.viewListeners.push(vo(o.domNode,"contextmenu",(function(e){return o.onContextMenu(e)}))),o.viewListeners.push(vo(o.wrapper,Fg.Tap,(function(e){return o.onTap(e)}))),o.viewListeners.push(vo(o.wrapper,Fg.Change,(function(e){return o.onTouchChange(e)}))),Rn&&(o.viewListeners.push(vo(o.wrapper,"MSPointerDown",(function(e){return o.onMsPointerDown(e)}))),o.viewListeners.push(vo(o.wrapper,"MSGestureTap",(function(e){return o.onMsGestureTap(e)}))),o.viewListeners.push(Oo(o.wrapper,"MSGestureChange",(function(e){return o.onThrottledMsGestureChange(e)}),(function(e,t){t.stopPropagation(),t.preventDefault();var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n})))),o.viewListeners.push(vo(window,"dragover",(function(e){return o.onDragOver(e)}))),o.viewListeners.push(vo(o.wrapper,"drop",(function(e){return o.onDrop(e)}))),o.viewListeners.push(vo(window,"dragend",(function(e){return o.onDragEnd(e)}))),o.viewListeners.push(vo(window,"dragleave",(function(e){return o.onDragOver(e)}))),o.wrapper.appendChild(o.rowsContainer),o.domNode.appendChild(o.scrollableElement.getDomNode()),i.appendChild(o.domNode),o.lastRenderTop=0,o.lastRenderHeight=0,o.didJustPressContextMenuKey=!1,o.currentDropTarget=null,o.currentDropTargets=[],o.shouldInvalidateDropReaction=!1,o.dragAndDropScrollInterval=null,o.dragAndDropScrollTimeout=null,o.onRowsChanged(),o.layout(),o.setupMSGesture(),o.applyStyles(n.options),o}return o2(t,e),t.prototype.applyStyles=function(e){this.treeStyler.style(e)},t.prototype.createViewItem=function(e){return new a2(this.context,e)},t.prototype.getHTMLElement=function(){return this.domNode},t.prototype.focus=function(){this.domNode.focus()},t.prototype.isFocused=function(){return document.activeElement===this.domNode},t.prototype.blur=function(){this.domNode.blur()},t.prototype.setupMSGesture=function(){var e=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout((function(){return e.msGesture.target=e.wrapper}),100))},t.prototype.isTreeVisible=function(){return null===this.onHiddenScrollTop},t.prototype.layout=function(e,t){this.isTreeVisible()&&(this.viewHeight=e||Ko(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=t||Wo(this.wrapper)))},t.prototype.render=function(e,t,n,i,o){var r,s,a=e,u=e+t,l=this.lastRenderTop+this.lastRenderHeight;for(r=this.indexAfter(u)-1,s=this.indexAt(Math.max(l,a));r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(u))-1,s=this.indexAt(a);r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=this.indexAt(this.lastRenderTop),s=Math.min(this.indexAt(a),this.indexAfter(l));r<s;r++)this.removeItemFromDOM(this.itemAtIndex(r));for(r=Math.max(this.indexAfter(u),this.indexAt(this.lastRenderTop)),s=this.indexAfter(l);r<s;r++)this.removeItemFromDOM(this.itemAtIndex(r));var c=this.itemAtIndex(this.indexAt(a));c&&(this.rowsContainer.style.top=c.top-a+"px"),this.horizontalScrolling&&(this.rowsContainer.style.left=-n+"px",this.rowsContainer.style.width=Math.max(o,i)+"px"),this.lastRenderTop=a,this.lastRenderHeight=u-a},t.prototype.setModel=function(e){this.releaseModel(),this.model=e,this.model.onRefresh(this.onRefreshing,this,this.modelListeners),this.model.onDidRefresh(this.onRefreshed,this,this.modelListeners),this.model.onSetInput(this.onClearingInput,this,this.modelListeners),this.model.onDidSetInput(this.onSetInput,this,this.modelListeners),this.model.onDidFocus(this.onModelFocusChange,this,this.modelListeners),this.model.onRefreshItemChildren(this.onItemChildrenRefreshing,this,this.modelListeners),this.model.onDidRefreshItemChildren(this.onItemChildrenRefreshed,this,this.modelListeners),this.model.onDidRefreshItem(this.onItemRefresh,this,this.modelListeners),this.model.onExpandItem(this.onItemExpanding,this,this.modelListeners),this.model.onDidExpandItem(this.onItemExpanded,this,this.modelListeners),this.model.onCollapseItem(this.onItemCollapsing,this,this.modelListeners),this.model.onDidRevealItem(this.onItemReveal,this,this.modelListeners),this.model.onDidAddTraitItem(this.onItemAddTrait,this,this.modelListeners),this.model.onDidRemoveTraitItem(this.onItemRemoveTrait,this,this.modelListeners)},t.prototype.onRefreshing=function(){this.isRefreshing=!0},t.prototype.onRefreshed=function(){this.isRefreshing=!1,this.onRowsChanged()},t.prototype.onRowsChanged=function(e){void 0===e&&(e=this.scrollTop),this.isRefreshing||(this.scrollTop=e,this.updateScrollWidth())},t.prototype.updateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.contentWidthUpdateDelayer.trigger((function(){for(var t=Object.keys(e.items),n=0,i=0,o=t;i<o.length;i++){var r=o[i];n=Math.max(n,e.items[r].width)}e.scrollWidth=n+10}))},t.prototype.focusNextPage=function(e){var t=this,n=this.indexAt(this.scrollTop+this.viewHeight);n=0===n?0:n-1;var i=this.itemAtIndex(n).model.getElement(),o=this.model.getFocus();if(o!==i)this.model.setFocus(i,e);else{var r=this.scrollTop;this.scrollTop+=this.viewHeight,this.scrollTop!==r&&setTimeout((function(){t.focusNextPage(e)}),0)}},t.prototype.focusPreviousPage=function(e){var t,n=this;t=0===this.scrollTop?this.indexAt(this.scrollTop):this.indexAfter(this.scrollTop-1);var i=this.itemAtIndex(t).model.getElement(),o=this.model.getFocus();if(o!==i)this.model.setFocus(i,e);else{var r=this.scrollTop;this.scrollTop-=this.viewHeight,this.scrollTop!==r&&setTimeout((function(){n.focusPreviousPage(e)}),0)}},Object.defineProperty(t.prototype,"viewHeight",{get:function(){var e=this.scrollableElement.getScrollDimensions();return e.height},set:function(e){this.scrollableElement.setScrollDimensions({height:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollHeight",{set:function(e){e+=this.horizontalScrolling?10:0,this.scrollableElement.setScrollDimensions({scrollHeight:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWidth",{get:function(){var e=this.scrollableElement.getScrollDimensions();return e.width},set:function(e){this.scrollableElement.setScrollDimensions({width:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollWidth",{set:function(e){this.scrollableElement.setScrollDimensions({scrollWidth:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollTop",{get:function(){var e=this.scrollableElement.getScrollPosition();return e.scrollTop},set:function(e){var t=this.getContentHeight()+(this.horizontalScrolling?10:0);this.scrollableElement.setScrollDimensions({scrollHeight:t}),this.scrollableElement.setScrollPosition({scrollTop:e})},enumerable:!0,configurable:!0}),t.prototype.onClearingInput=function(e){var t=e.item;t&&(this.onRemoveItems(new Ve(t.getNavigator(),(function(e){return e&&e.id}))),this.onRowsChanged())},t.prototype.onSetInput=function(e){this.context.cache.garbageCollect(),this.inputItem=new u2(this.context,e.item,this.wrapper)},t.prototype.onItemChildrenRefreshing=function(e){var n=e.item,i=this.items[n.id];if(i&&this.context.options.showLoading&&(i.loadingTimer=setTimeout((function(){i.loadingTimer=0,i.loading=!0}),t.LOADING_DECORATION_DELAY)),!e.isNested){var o=[],r=n.getNavigator(),s=void 0;while(s=r.next())o.push(s.id);this.refreshingPreviousChildrenIds[n.id]=o}},t.prototype.onItemChildrenRefreshed=function(e){var t=this,n=e.item,i=this.items[n.id];if(i&&(i.loadingTimer&&(clearTimeout(i.loadingTimer),i.loadingTimer=0),i.loading=!1),!e.isNested){var o=this.refreshingPreviousChildrenIds[n.id],r=[],s=n.getNavigator(),a=void 0;while(a=s.next())r.push(a);var u=Math.abs(o.length-r.length)>1e3,l=[],c=!1;if(!u){var d=new Xc({getElements:function(){return o}},{getElements:function(){return r.map((function(e){return e.id}))}},null);l=d.ComputeDiff(!1).changes,c=l.some((function(e){if(e.modifiedLength>0)for(var n=e.modifiedStart,i=e.modifiedStart+e.modifiedLength;n<i;n++)if(t.items.hasOwnProperty(r[n].id))return!0;return!1}))}if(!u&&!c&&l.length<50)for(var h=0,A=l;h<A.length;h++){var p=A[h];if(p.originalLength>0&&this.onRemoveItems(new He(o,p.originalStart,p.originalStart+p.originalLength)),p.modifiedLength>0){var f=r[p.modifiedStart-1]||n;f=f.getDepth()>0?f:null,this.onInsertItems(new He(r,p.modifiedStart,p.modifiedStart+p.modifiedLength),f?f.id:null)}}else(u||l.length)&&(this.onRemoveItems(new He(o)),this.onInsertItems(new He(r),n.getDepth()>0?n.id:null));(u||l.length)&&this.onRowsChanged()}},t.prototype.onItemRefresh=function(e){this.onItemsRefresh([e])},t.prototype.onItemsRefresh=function(e){var t=this;this.onRefreshItemSet(e.filter((function(e){return t.items.hasOwnProperty(e.id)}))),this.onRowsChanged()},t.prototype.onItemExpanding=function(e){var t=this.items[e.item.id];t&&(t.expanded=!0)},t.prototype.onItemExpanded=function(e){var t=e.item,n=this.items[t.id];if(n){n.expanded=!0;var i=this.onInsertItems(t.getNavigator(),t.id)||0,o=this.scrollTop;n.top+n.height<=this.scrollTop&&(o+=i),this.onRowsChanged(o)}},t.prototype.onItemCollapsing=function(e){var t=e.item,n=this.items[t.id];n&&(n.expanded=!1,this.onRemoveItems(new Ve(t.getNavigator(),(function(e){return e&&e.id}))),this.onRowsChanged())},t.prototype.onItemReveal=function(e){var t=e.item,n=e.relativeTop,i=this.items[t.id];if(i)if(null!==n){n=n<0?0:n,n=n>1?1:n;var o=i.height-this.viewHeight;this.scrollTop=o*n+i.top}else{var r=i.top+i.height,s=this.scrollTop+this.viewHeight;i.top<this.scrollTop?this.scrollTop=i.top:r>=s&&(this.scrollTop=r-this.viewHeight)}},t.prototype.onItemAddTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.addClass(n),"highlighted"===n&&(ho(this.domNode,n),i&&(this.highlightedItemWasDraggable=!!i.draggable,i.draggable&&(i.draggable=!1)))},t.prototype.onItemRemoveTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.removeClass(n),"highlighted"===n&&(po(this.domNode,n),this.highlightedItemWasDraggable&&(i.draggable=!0),this.highlightedItemWasDraggable=!1)},t.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();go(this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",ms(this.context.dataSource.getId(this.context.tree,e))):this.domNode.removeAttribute("aria-activedescendant")},t.prototype.onInsertItem=function(e){var t=this;e.onDragStart=function(n){t.onDragStart(e,n)},e.needsRender=!0,this.refreshViewItem(e),this.items[e.id]=e},t.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1),e.needsRender=e.needsRender||t,this.refreshViewItem(e)},t.prototype.onRemoveItem=function(e){this.removeItemFromDOM(e),e.dispose(),delete this.items[e.id]},t.prototype.refreshViewItem=function(e){e.render(),this.shouldBeRendered(e)?this.insertItemInDOM(e):this.removeItemFromDOM(e)},t.prototype.onClick=function(e){if(!this.lastPointerType||"mouse"===this.lastPointerType){var t=new di(e),n=this.getItemAround(t.target);n&&(Rn&&Date.now()-this.lastClickTimeStamp<300&&(t.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,n.model.getElement(),t))}},t.prototype.onMouseMiddleClick=function(e){if(this.context.controller.onMouseMiddleClick){var t=new di(e),n=this.getItemAround(t.target);n&&this.context.controller.onMouseMiddleClick(this.context.tree,n.model.getElement(),t)}},t.prototype.onMouseDown=function(e){if(this.didJustPressContextMenuKey=!1,this.context.controller.onMouseDown&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new di(e);if(!(t.ctrlKey&&s["f"]&&s["e"])){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseDown(this.context.tree,n.model.getElement(),t)}}},t.prototype.onMouseUp=function(e){if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new di(e);if(!(t.ctrlKey&&s["f"]&&s["e"])){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseUp(this.context.tree,n.model.getElement(),t)}}},t.prototype.onTap=function(e){var t=this.getItemAround(e.initialTarget);t&&this.context.controller.onTap(this.context.tree,t.model.getElement(),e)},t.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},t.prototype.onContextMenu=function(e){var t,n;if(e instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var i=new oi(e);n=this.model.getFocus();var o=void 0;if(n){var r=this.context.dataSource.getId(this.context.tree,n),s=this.items[r];o=Ho(s.element)}else n=this.model.getInput(),o=Ho(this.inputItem.element);t=new i2(o.left+o.width,o.top,i)}else{var a=new di(e),u=this.getItemAround(a.target);if(!u)return;n=u.model.getElement(),t=new n2(a)}this.context.controller.onContextMenu(this.context.tree,n,t)},t.prototype.onKeyDown=function(e){var t=new oi(e);this.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode,t.target&&t.target.tagName&&"input"===t.target.tagName.toLowerCase()||(this.didJustPressContextMenuKey&&(t.preventDefault(),t.stopPropagation()),this.context.controller.onKeyDown(this.context.tree,t))},t.prototype.onKeyUp=function(e){this.didJustPressContextMenuKey&&this.onContextMenu(e),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new oi(e))},t.prototype.onDragStart=function(e,t){if(!this.model.getHighlight()){var n,i=e.model.getElement(),o=this.model.getSelection();if(n=o.indexOf(i)>-1?o:[i],t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setData(BL.RESOURCES,JSON.stringify([e.uri])),t.dataTransfer.setDragImage){var r=void 0;r=this.context.dnd.getDragLabel?this.context.dnd.getDragLabel(this.context.tree,n):String(n.length);var s=document.createElement("div");s.className="monaco-tree-drag-image",s.textContent=r,document.body.appendChild(s),t.dataTransfer.setDragImage(s,-10,-10),setTimeout((function(){return document.body.removeChild(s)}),0)}this.currentDragAndDropData=new X1(n),xL.CurrentDragAndDropData=new J1(n),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new hi(t))}},t.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=Uo(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval((function(){if(null!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.viewHeight-35;n<35?i=Math.max(-14,.2*(n-35)):n>o&&(i=Math.min(14,.2*(n-o))),e.scrollTop+=i}}),10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout((function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null}),1e3))},t.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},t.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},t.prototype.onDragOver=function(e){var t=this;e.preventDefault();var n,i=new hi(e),o=this.getItemAround(i.target);if(!o||0===i.posx&&0===i.posy&&i.browserEvent.type===tr.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach((function(e){return e.dropTarget=!1})),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=i.posy,!this.currentDragAndDropData)if(xL.CurrentDragAndDropData)this.currentDragAndDropData=xL.CurrentDragAndDropData;else{if(!i.dataTransfer.types)return!1;this.currentDragAndDropData=new Z1}this.currentDragAndDropData.update(i.browserEvent.dataTransfer);var r,s=o.model;do{if(n=s?s.getElement():this.model.getInput(),r=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,n,i),!r||1!==r.bubble)break;s=s&&s.parent}while(s);if(!s)return this.currentDropElement=null,!1;var a=r&&r.accept;a?(this.currentDropElement=s.getElement(),i.preventDefault(),i.dataTransfer.dropEffect=0===r.effect?"copy":"move"):this.currentDropElement=null;var u=s.id===this.inputItem.id?this.inputItem:this.items[s.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==u||!l2(this.currentDropElementReaction,r))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach((function(e){return e.dropTarget=!1})),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=u,this.currentDropElementReaction=r,a)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),0===r.bubble){var l=s.getNavigator(),c=void 0;while(c=l.next())o=this.items[c.id],o&&(o.dropTarget=!0,this.currentDropTargets.push(o))}if(r.autoExpand){var d=vi(500);this.currentDropDisposable=De((function(){return d.cancel()})),d.then((function(){return t.context.tree.expand(t.currentDropElement)})).then((function(){return t.shouldInvalidateDropReaction=!0}))}}return!0},t.prototype.onDrop=function(e){if(this.currentDropElement){var t=new hi(e);t.preventDefault(),this.currentDragAndDropData.update(t.browserEvent.dataTransfer),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,t),this.onDragEnd(e)}this.cancelDragAndDropScrollInterval()},t.prototype.onDragEnd=function(e){this.currentDropTarget&&(this.currentDropTargets.forEach((function(e){return e.dropTarget=!1})),this.currentDropTargets=[]),this.currentDropDisposable.dispose(),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,xL.CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},t.prototype.onFocus=function(){this.context.options.alwaysFocused||ho(this.domNode,"focused"),this._onDOMFocus.fire()},t.prototype.onBlur=function(){this.context.options.alwaysFocused||po(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},t.prototype.onMsPointerDown=function(e){if(this.msGesture){var t=e.pointerType;t!==(e.MSPOINTER_TYPE_MOUSE||"mouse")?t===(e.MSPOINTER_TYPE_TOUCH||"touch")&&(this.lastPointerType="touch",e.stopPropagation(),e.preventDefault(),this.msGesture.addPointer(e.pointerId)):this.lastPointerType="mouse"}},t.prototype.onThrottledMsGestureChange=function(e){this.scrollTop-=e.translationY},t.prototype.onMsGestureTap=function(e){e.initialTarget=document.elementFromPoint(e.clientX,e.clientY),this.onTap(e)},t.prototype.insertItemInDOM=function(e){var t=null,n=this.itemAfter(e);n&&n.element&&(t=n.element),e.insertInDOM(this.rowsContainer,t)},t.prototype.removeItemFromDOM=function(e){e&&e.removeFromDOM()},t.prototype.shouldBeRendered=function(e){return e.top<this.lastRenderTop+this.lastRenderHeight&&e.top+e.height>this.lastRenderTop},t.prototype.getItemAround=function(e){var n=this.inputItem,i=e;do{if(i[t.BINDING]&&(n=i[t.BINDING]),i===this.wrapper||i===this.domNode)return n;if(i===this.scrollableElement.getDomNode()||i===document.body)return}while(i=i.parentElement)},t.prototype.releaseModel=function(){this.model&&(this.modelListeners=xe(this.modelListeners),this.model=null)},t.prototype.dispose=function(){var t=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=xe(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach((function(e){return t.items[e].removeFromDOM()})),this.context.cache&&this.context.cache.dispose(),this.gestureDisposable.dispose(),e.prototype.dispose.call(this)},t.BINDING="monaco-tree-row",t.LOADING_DECORATION_DELAY=800,t.counter=0,t}($1),d2=function(){function e(e,t,n){if(void 0===n&&(n={}),this.tree=e,this.configuration=t,this.options=n,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer,this.controller=t.controller||new P1({clickBehavior:1,keyboardSupport:"boolean"!==typeof n.keyboardSupport||n.keyboardSupport}),this.dnd=t.dnd||new R1,this.filter=t.filter||new U1,this.sorter=t.sorter,this.accessibilityProvider=t.accessibilityProvider||new H1,this.styler=t.styler}return e}(),h2={listFocusBackground:N_.fromHex("#073655"),listActiveSelectionBackground:N_.fromHex("#0E639C"),listActiveSelectionForeground:N_.fromHex("#FFFFFF"),listFocusAndSelectionBackground:N_.fromHex("#094771"),listFocusAndSelectionForeground:N_.fromHex("#FFFFFF"),listInactiveSelectionBackground:N_.fromHex("#3F3F46"),listHoverBackground:N_.fromHex("#2A2D2E"),listDropBackground:N_.fromHex("#383B3D")},A2=function(){function e(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new $e,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new $e,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new $e,this._onDidExpandItem=new $e,this._onDidCollapseItem=new $e,this._onDispose=new Ye,this.onDidDispose=this._onDispose.event,this.container=e,du(n,h2,!1),n.twistiePixels="number"===typeof n.twistiePixels?n.twistiePixels:32,n.showTwistie=!1!==n.showTwistie,n.indentPixels="number"===typeof n.indentPixels?n.indentPixels:12,n.alwaysFocused=!0===n.alwaysFocused,n.useShadows=!1!==n.useShadows,n.paddingOnRow=!1!==n.paddingOnRow,n.showLoading=!1!==n.showLoading,this.context=new d2(this,t,n),this.model=new Y1(this.context),this.view=new c2(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}return e.prototype.style=function(e){this.view.applyStyles(e)},Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view.onDOMFocus},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.domFocus=function(){this.view.focus()},e.prototype.isDOMFocused=function(){return this.view.isFocused()},e.prototype.domBlur=function(){this.view.blur()},e.prototype.setInput=function(e){return this.model.setInput(e)},e.prototype.getInput=function(){return this.model.getInput()},e.prototype.expand=function(e){return this.model.expand(e)},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t)},e.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t)},e.prototype.isExpanded=function(e){return this.model.isExpanded(e)},e.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},e.prototype.getHighlight=function(){return this.model.getHighlight()},e.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},e.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},e.prototype.getSelection=function(){return this.model.getSelection()},e.prototype.clearSelection=function(e){this.model.setSelection([],e)},e.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},e.prototype.getFocus=function(){return this.model.getFocus()},e.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},e.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},e.prototype.focusParent=function(e){this.model.focusParent(e)},e.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)},e.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)},e.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},e.prototype.focusLast=function(e,t){this.model.focusLast(e,t)},e.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},e.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},e.prototype.clearFocus=function(e){this.model.setFocus(null,e)},e.prototype.dispose=function(){this._onDispose.fire(),this.model.dispose(),this.view.dispose(),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},e}(),p2=(n("1f26"),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)}}()),f2="done",g2="active",m2="infinite",v2="discrete",_2="monaco-progress-container",y2="progress-bit",w2={progressBarBackground:N_.fromHex("#0E70C0")},b2=function(e){function t(t,n){var i=e.call(this)||this;return i.options=n||Object.create(null),du(i.options,w2,!1),i.workedVal=0,i.progressBarBackground=i.options.progressBarBackground,i._register(i.showDelayedScheduler=new Si((function(){return hr(i.element)}),0)),i.create(t),i}return p2(t,e),t.prototype.create=function(e){this.element=document.createElement("div"),ho(this.element,_2),e.appendChild(this.element),this.bit=document.createElement("div"),ho(this.bit,y2),this.element.appendChild(this.bit),this.applyStyles()},t.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",fo(this.element,g2,m2,v2),this.workedVal=0,this.totalWork=void 0},t.prototype.stop=function(){return this.doDone(!1)},t.prototype.doDone=function(e){var t=this;return ho(this.element,f2),co(this.element,m2)?(this.bit.style.opacity="0",e?setTimeout((function(){return t.off()}),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((function(){return t.off()}),200):this.off()),this},t.prototype.hide=function(){Ar(this.element),this.showDelayedScheduler.cancel()},t.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},t.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}},t}(Ie),C2=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)}}(),S2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return C2(t,e),t.prototype.onContextMenu=function(t,n,i){return s["e"]?this.onLeftClick(t,n,i):e.prototype.onContextMenu.call(this,t,n,i)},t}(P1),B2={background:N_.fromHex("#1E1E1E"),foreground:N_.fromHex("#CCCCCC"),pickerGroupForeground:N_.fromHex("#0097FB"),pickerGroupBorder:N_.fromHex("#3F3F46"),widgetShadow:N_.fromHex("#000000"),progressBarBackground:N_.fromHex("#0E70C0")},E2=r("quickOpenAriaLabel","Quick picker. Type to narrow down results."),x2=function(e){function t(t,n,i){var o=e.call(this)||this;return o.isDisposed=!1,o.container=t,o.callbacks=n,o.options=i,o.styles=i||Object.create(null),du(o.styles,B2,!1),o.model=null,o}return C2(t,e),t.prototype.getModel=function(){return this.model},t.prototype.create=function(){var e=this;this.element=document.createElement("div"),ho(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(vo(this.element,tr.CONTEXT_MENU,(function(e){return nr.stop(e,!0)}))),this._register(vo(this.element,tr.FOCUS,(function(t){return e.gainingFocus()}),!0)),this._register(vo(this.element,tr.BLUR,(function(t){return e.loosingFocus(t)}),!0)),this._register(vo(this.element,tr.KEY_DOWN,(function(t){var n=new oi(t);if(9===n.keyCode)nr.stop(t,!0),e.hide(2);else if(2===n.keyCode&&!n.altKey&&!n.ctrlKey&&!n.metaKey){var i=t.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");n.shiftKey&&n.target===i[0]?(nr.stop(t,!0),i[i.length-1].focus()):n.shiftKey||n.target!==i[i.length-1]||(nr.stop(t,!0),i[0].focus())}}))),this.progressBar=this._register(new b2(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),ho(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new gV(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:E2,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(vo(this.inputBox.inputElement,tr.INPUT,(function(t){return e.onType()}))),this._register(vo(this.inputBox.inputElement,tr.KEY_DOWN,(function(t){var n=new oi(t),i=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)nr.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart===e.inputBox.inputElement.selectionEnd&&(e.inputBox.inputElement.selectionStart=e.inputBox.value.length);else if(3===n.keyCode||i){nr.stop(t,!0);var o=e.tree.getFocus();o&&e.elementSelected(o,t,i?2:1)}}))),this.resultCount=document.createElement("div"),ho(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),ho(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var t=this.options.treeCreator||function(e,t,n){return new A2(e,t,n)};return this.tree=this._register(t(this.treeContainer,{dataSource:new I1(this),controller:new S2({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new O1(this,this.styles),filter:new M1(this),accessibilityProvider:new F1(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:r("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus((function(t){e.elementFocused(t.focus,t)}))),this._register(this.tree.onDidChangeSelection((function(t){if(t.selection&&t.selection.length>0){var n=t.payload&&t.payload.originalEvent instanceof di?t.payload.originalEvent:void 0,i=!!n&&e.shouldOpenInBackground(n);e.elementSelected(t.selection[0],t,i?2:1)}}))),this._register(vo(this.treeContainer,tr.KEY_DOWN,(function(t){var n=new oi(t);if(e.quickNavigateConfiguration)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)nr.stop(t,!0),e.navigateInTree(n.keyCode);else if(3===n.keyCode){nr.stop(t,!0);var i=e.tree.getFocus();i&&e.elementSelected(i,t)}}))),this._register(vo(this.treeContainer,tr.KEY_UP,(function(t){var n=new oi(t),i=n.keyCode;if(e.quickNavigateConfiguration){var o=e.quickNavigateConfiguration.keybindings,r=o.some((function(e){var t=e.getParts(),o=t[0],r=t[1];return!r&&(o.shiftKey&&4===i?!(n.ctrlKey||n.altKey||n.metaKey):!(!o.altKey||6!==i)||(!(!o.ctrlKey||5!==i)||!(!o.metaKey||57!==i)))}));if(r){var s=e.tree.getFocus();s&&e.elementSelected(s,t)}}}))),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(vo(this.treeContainer,tr.KEY_DOWN,(function(t){var n=new oi(t);e.quickNavigateConfiguration||18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(nr.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.treeElement.focus())}))),this.element},t.prototype.style=function(e){this.styles=e,this.applyStyles()},t.prototype.applyStyles=function(){if(this.element){var e=this.styles.foreground?this.styles.foreground.toString():null,t=this.styles.background?this.styles.background.toString():"",n=this.styles.borderColor?this.styles.borderColor.toString():"",i=this.styles.widgetShadow?this.styles.widgetShadow.toString():"";this.element.style.color=e,this.element.style.backgroundColor=t,this.element.style.borderColor=n,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.boxShadow=i?"0 5px 8px "+i:""}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},t.prototype.shouldOpenInBackground=function(e){if(e instanceof oi){if(17!==e.keyCode)return!1;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;var t=this.inputBox.inputElement;return t.selectionEnd===this.inputBox.value.length&&t.selectionStart===t.selectionEnd}return e.middleButton},t.prototype.onType=function(){var e=this.inputBox.value;this.helpText&&(e?Ar(this.helpText):hr(this.helpText)),this.callbacks.onType(e)},t.prototype.navigateInTree=function(e,t){var n=this.tree.getInput(),i=n?n.entries:[],o=this.tree.getFocus();switch(e){case 18:this.tree.focusNext();break;case 16:this.tree.focusPrevious();break;case 12:this.tree.focusNextPage();break;case 11:this.tree.focusPreviousPage();break;case 2:t?this.tree.focusPrevious():this.tree.focusNext();break}var r=this.tree.getFocus();i.length>1&&o===r&&(16===e||2===e&&t?this.tree.focusLast():(18===e||2===e&&!t)&&this.tree.focusFirst()),r=this.tree.getFocus(),r&&this.tree.reveal(r)},t.prototype.elementFocused=function(e,t){if(e&&this.isVisible()){var n=this.treeElement.getAttribute("aria-activedescendant");n?this.inputElement.setAttribute("aria-activedescendant",n):this.inputElement.removeAttribute("aria-activedescendant");var i={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(e,0,i)}},t.prototype.elementSelected=function(e,t,n){var i=!0;if(this.isVisible()){var o=n||1,r={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};i=this.model.runner.run(e,o,r)}i&&this.hide(0)},t.prototype.extractKeyMods=function(e){return{ctrlCmd:e&&(e.ctrlKey||e.metaKey||e.payload&&e.payload.originalEvent&&(e.payload.originalEvent.ctrlKey||e.payload.originalEvent.metaKey)),alt:e&&(e.altKey||e.payload&&e.payload.originalEvent&&e.payload.originalEvent.altKey)}},t.prototype.show=function(e,t){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=t?t.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(Ar(this.inputContainer),hr(this.element),this.tree.domFocus()):(hr(this.inputContainer),hr(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||fa(e)?Ar(this.helpText):hr(this.helpText)),fa(e)?this.doShowWithPrefix(e):(t&&t.value&&this.restoreLastInput(t.value),this.doShowWithInput(e,t&&t.autoFocus?t.autoFocus:{})),t&&t.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(t.inputSelection),this.callbacks.onShow&&this.callbacks.onShow()},t.prototype.restoreLastInput=function(e){this.inputBox.value=e,this.inputBox.select(),this.callbacks.onType(e)},t.prototype.doShowWithPrefix=function(e){this.inputBox.value=e,this.callbacks.onType(e)},t.prototype.doShowWithInput=function(e,t){this.setInput(e,t)},t.prototype.setInputAndLayout=function(e,t){var n=this;this.treeContainer.style.height=this.getHeight(e)+"px",this.tree.setInput(null).then((function(){return n.model=e,n.inputElement.setAttribute("aria-haspopup",String(e&&e.entries&&e.entries.length>0)),n.tree.setInput(e)})).then((function(){n.tree.layout();var i=e?e.entries.filter((function(t){return n.isElementVisible(e,t)})):[];n.updateResultCount(i.length),i.length&&n.autoFocus(e,i,t)}))},t.prototype.isElementVisible=function(e,t){return!e.filter||e.filter.isVisible(t)},t.prototype.autoFocus=function(e,t,n){if(void 0===n&&(n={}),n.autoFocusPrefixMatch){for(var i=void 0,o=void 0,r=n.autoFocusPrefixMatch,s=r.toLowerCase(),a=0,u=t;a<u.length;a++){var l=u[a],c=e.dataSource.getLabel(l)||"";if(i||0!==c.indexOf(r)?o||0!==c.toLowerCase().indexOf(s)||(o=l):i=l,i&&o)break}var d=i||o;if(d)return this.tree.setFocus(d),void this.tree.reveal(d,.5)}n.autoFocusFirstEntry?(this.tree.focusFirst(),this.tree.reveal(this.tree.getFocus())):"number"===typeof n.autoFocusIndex?t.length>n.autoFocusIndex&&(this.tree.focusNth(n.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):n.autoFocusSecondEntry?t.length>1&&this.tree.focusNth(1):n.autoFocusLastEntry&&t.length>1&&this.tree.focusLast()},t.prototype.getHeight=function(e){var n=this,i=e.renderer;if(!e){var o=i.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*o:0}var r,s=0;this.layoutDimensions&&this.layoutDimensions.height&&(r=.4*(this.layoutDimensions.height-50)),(!r||r>t.MAX_ITEMS_HEIGHT)&&(r=t.MAX_ITEMS_HEIGHT);for(var a=e.entries.filter((function(t){return n.isElementVisible(e,t)})),u=this.options.maxItemsToShow||a.length,l=0;l<u&&l<a.length;l++){var c=i.getHeight(a[l]);if(!(s+c<=r))break;s+=c}return s},t.prototype.updateResultCount=function(e){this.resultCount.textContent=r({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results",e)},t.prototype.hide=function(e){this.isVisible()&&(this.visible=!1,Ar(this.element),this.element.blur(),this.inputBox.value="",this.tree.setInput(null),this.inputElement.setAttribute("aria-haspopup","false"),this.treeContainer.style.height=(this.options.minItemsToShow?22*this.options.minItemsToShow:0)+"px",this.progressBar.stop().hide(),this.tree.isDOMFocused()?this.tree.domBlur():this.inputBox.hasFocus()&&this.inputBox.blur(),0===e?this.callbacks.onOk():this.callbacks.onCancel(),this.callbacks.onHide&&this.callbacks.onHide(e))},t.prototype.setInput=function(e,t,n){this.isVisible()&&(this.getInput()&&this.onInputChanging(),this.setInputAndLayout(e,t),this.inputBox&&this.inputBox.setAriaLabel(n||E2))},t.prototype.onInputChanging=function(){var e=this;this.inputChangingTimeoutHandle&&(clearTimeout(this.inputChangingTimeoutHandle),this.inputChangingTimeoutHandle=null),ho(this.element,"content-changing"),this.inputChangingTimeoutHandle=setTimeout((function(){po(e.element,"content-changing")}),500)},t.prototype.getInput=function(){return this.tree.getInput()},t.prototype.isVisible=function(){return this.visible},t.prototype.layout=function(e){this.layoutDimensions=e;var n=Math.min(.62*this.layoutDimensions.width,t.MAX_WIDTH);this.element&&(this.element.style.width=n+"px",this.element.style.marginLeft="-"+n/2+"px",this.inputContainer.style.width=n-12+"px")},t.prototype.gainingFocus=function(){this.isLoosingFocus=!1},t.prototype.loosingFocus=function(e){var t=this;if(this.isVisible()){var n=e.relatedTarget;!this.quickNavigateConfiguration&&jo(n,this.element)||(this.isLoosingFocus=!0,setTimeout((function(){if(t.isLoosingFocus&&!t.isDisposed){var e=t.callbacks.onFocusLost&&t.callbacks.onFocusLost();e||t.hide(1)}}),0))}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.isDisposed=!0},t.MAX_WIDTH=600,t.MAX_ITEMS_HEIGHT=440,t}(Ie),L2=function(){function e(e,t,n,i,o,r){this.codeEditor=e,this.themeService=r,this.visible=!1,this.domNode=document.createElement("div"),this.quickOpenWidget=new x2(this.domNode,{onOk:t,onCancel:n,onType:i},{inputPlaceHolder:void 0,inputAriaLabel:o.inputAriaLabel,keyboardSupport:!0}),this.styler=Ek(this.quickOpenWidget,this.themeService,{pickerGroupForeground:zy}),this.quickOpenWidget.create(),this.codeEditor.addOverlayWidget(this)}return e.prototype.setInput=function(e,t){this.quickOpenWidget.setInput(e,t)},e.prototype.getId=function(){return e.ID},e.prototype.getDomNode=function(){return this.domNode},e.prototype.destroy=function(){this.codeEditor.removeOverlayWidget(this),this.quickOpenWidget.dispose(),this.styler.dispose()},e.prototype.show=function(e){this.visible=!0;var t=this.codeEditor.getLayoutInfo();t&&this.quickOpenWidget.layout(new Ro(t.width,t.height)),this.quickOpenWidget.show(e),this.codeEditor.layoutOverlayWidget(this)},e.prototype.getPosition=function(){return this.visible?{preference:2}:null},e.ID="editor.contrib.quickOpenEditorWidget",e}(),D2=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)}}(),N2=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},k2=function(e,t){return function(n,i){t(n,i,e)}},I2=function(){function e(e,t){this.themeService=t,this.widget=null,this.rangeHighlightDecorationId=null,this.lastKnownEditorSelection=null,this.editor=e}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},e.prototype.run=function(e){var t=this;this.widget&&(this.widget.destroy(),this.widget=null);var n=function(e){t.clearDecorations(),e&&t.lastKnownEditorSelection&&(t.editor.setSelection(t.lastKnownEditorSelection),t.editor.revealRangeInCenterIfOutsideViewport(t.lastKnownEditorSelection,0)),t.lastKnownEditorSelection=null,document.activeElement!==document.body&&e||t.editor.focus()};this.widget=new L2(this.editor,(function(){return n(!1)}),(function(){return n(!0)}),(function(n){t.widget.setInput(e.getModel(n),e.getAutoFocus(n))}),{inputAriaLabel:e.inputAriaLabel},this.themeService),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("")},e.prototype.decorateLine=function(t,n){var i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var o=[{range:t,options:e._RANGE_HIGHLIGHT_DECORATION}],r=n.deltaDecorations(i,o);this.rangeHighlightDecorationId=r[0]},e.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},e.ID="editor.controller.quickOpenController",e._RANGE_HIGHLIGHT_DECORATION=z_.register({className:"rangeHighlight",isWholeLine:!0}),e=N2([k2(1,um)],e),e}(),F2=function(e){function t(t,n){var i=e.call(this,n)||this;return i._inputAriaLabel=t,i}return D2(t,e),t.prototype.getController=function(e){return I2.get(e)},t.prototype._show=function(e,t){e.run({inputAriaLabel:this._inputAriaLabel,getModel:function(e){return t.getModel(e)},getAutoFocus:function(e){return t.getAutoFocus(e)}})},t}(_g);Bg(I2.ID,I2);var M2=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)}}(),O2=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 M2(t,e),t.prototype.parseInput=function(e){var t,n,i=e.split(",").map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)}));if(t=0===i.length?new mn(-1,-1):1===i.length?new mn(i[0],1):new mn(i[0],i[1]),sA(this.editor))n=this.editor.getModel();else{var o=this.editor.getModel();n=o?o.modified:null}var r,s=!!n&&n.validatePosition(t).equals(t);return r=s?t.column&&t.column>1?xr(rf.gotoLineLabelValidLineAndColumn,t.lineNumber,t.column):xr(rf.gotoLineLabelValidLine,t.lineNumber):t.lineNumber<1||t.lineNumber>(n?n.getLineCount():0)?xr(rf.gotoLineLabelEmptyWithLineLimit,n?n.getLineCount():0):xr(rf.gotoLineLabelEmptyWithLineAndColumnLimit,n?n.getLineMaxColumn(t.lineNumber):0),{position:t,isValid:s,label:r}},t.prototype.getLabel=function(){return this.parseResult.label},t.prototype.getAriaLabel=function(){var e=this.editor.getPosition(),t=e?e.lineNumber:0;return xr(rf.gotoLineAriaLabel,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 vn(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},t}(B1),T2=function(e){function t(){return e.call(this,rf.gotoLineActionInput,{id:"editor.action.gotoLine",label:rf.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:2085,mac:{primary:293},weight:100}})||this}return M2(t,e),t.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new k1([new O2(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:e.length>0}}})},t}(F2);Cg(T2);var P2=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)}}(),R2=function(e){function t(t,n,i,o,r){var s=e.call(this)||this;return s.key=t,s.keyAriaLabel=n,s.setHighlights(i),s.action=o,s.editor=r,s}return P2(t,e),t.prototype.getLabel=function(){return this.action.label},t.prototype.getAriaLabel=function(){return this.keyAriaLabel?xr(sf.ariaLabelEntryWithKey,this.getLabel(),this.keyAriaLabel):xr(sf.ariaLabelEntry,this.getLabel())},t.prototype.getGroupLabel=function(){return this.key},t.prototype.run=function(e,t){var n=this;return 1===e&&(setTimeout((function(){n.editor.focus();try{var e=n.action.run()||Promise.resolve();e.then(void 0,Ae)}catch(t){Ae(t)}}),50),!0)},t}(E1),U2=function(e){function t(){return e.call(this,sf.quickCommandActionInput,{id:"editor.action.quickCommand",label:sf.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:Rn?571:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})||this}return P2(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(pD);this._show(this.getController(t),{getModel:function(e){return new k1(n._editorActionsToEntries(i,t,e))},getAutoFocus:function(e){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:e}}})},t.prototype._sort=function(e,t){var n=(e.getLabel()||"").toLowerCase(),i=(t.getLabel()||"").toLowerCase();return n.localeCompare(i)},t.prototype._editorActionsToEntries=function(e,t,n){for(var i=t.getSupportedActions(),o=[],r=0,s=i;r<s.length;r++){var a=s[r],u=e.lookupKeybinding(a.id);if(a.label){var l=jI(n,a.label);l&&o.push(new R2(u&&u.getLabel()||"",u&&u.getAriaLabel()||"",l,a,t))}}return o=o.sort(this._sort),o},t}(F2);Cg(U2);n("42f0");var H2=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)}}(),Q2=function(){function e(){}return e.prototype.remove=function(){this.parent&&delete this.parent.children[this.id]},e.findId=function(e,t){var n;"string"===typeof e?n=t.id+"/"+e:(n=t.id+"/"+e.name,void 0!==t.children[n]&&(n=t.id+"/"+e.name+"_"+e.range.startLineNumber+"_"+e.range.startColumn));for(var i=n,o=0;void 0!==t.children[i];o++)i=n+"_"+o;return i},e.empty=function(e){for(var t in e.children)return!1;return!0},e}(),V2=function(e){function t(t,n,i){var o=e.call(this)||this;return o.id=t,o.parent=n,o.symbol=i,o.children=Object.create(null),o}return H2(t,e),t}(Q2),W2=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.id=t,r.parent=n,r.provider=i,r.providerIndex=o,r.children=Object.create(null),r}return H2(t,e),t}(Q2),K2=function(){function e(){this._n=1,this._val=0}return e.prototype.update=function(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this},e}(),z2=function(e){function t(t){var n=e.call(this)||this;return n.textModel=t,n.id="root",n.parent=void 0,n._groups=Object.create(null),n.children=Object.create(null),n.id="root",n.parent=void 0,n}return H2(t,e),t.create=function(e,n){var i=this,o=this._keys.for(e,!0),r=t._requests.get(o);if(!r){var s=new it;r={promiseCnt:0,source:s,promise:t._create(e,s.token),model:void 0},t._requests.set(o,r);var a=Date.now();r.promise.then((function(){var t=i._keys.for(e,!1),n=i._requestDurations.get(t);n||(n=new K2,i._requestDurations.set(t,n)),n.update(Date.now()-a)}))}return r.model?Promise.resolve(r.model):(r.promiseCnt+=1,n.onCancellationRequested((function(){0===--r.promiseCnt&&(r.source.cancel(),t._requests.delete(o))})),new Promise((function(e,n){r.promise.then((function(t){r.model=t,e(t)}),(function(e){t._requests.delete(o),n(e)}))})))},t._create=function(e,n){var i=new it(n),o=new t(e),r=Dl.ordered(e),s=r.map((function(e,n){var r=Q2.findId("provider_"+n,o),s=new W2(r,o,e,n);return Promise.resolve(e.provideDocumentSymbols(o.textModel,i.token)).then((function(e){for(var n=0,i=e||[];n<i.length;n++){var o=i[n];t._makeOutlineElement(o,s)}return s}),(function(e){return pe(e),s})).then((function(e){Q2.empty(e)?e.remove():o._groups[r]=e}))})),a=Dl.onDidChange((function(){var t=Dl.ordered(e);Di(t,r)||i.cancel()}));return Promise.all(s).then((function(){return i.token.isCancellationRequested&&!n.isCancellationRequested?t._create(e,n):o._compact()})).finally((function(){a.dispose()}))},t._makeOutlineElement=function(e,n){var i=Q2.findId(e,n),o=new V2(i,n,e);if(e.children)for(var r=0,s=e.children;r<s.length;r++){var a=s[r];t._makeOutlineElement(a,o)}n.children[o.id]=o},t.prototype._compact=function(){var e=0;for(var t in this._groups){var n=this._groups[t];void 0===IA(n.children)?delete this._groups[t]:e+=1}if(1!==e)this.children=this._groups;else{n=IA(this._groups);for(var t in n.children){var i=n.children[t];i.parent=this,this.children[i.id]=i}}return this},t._requestDurations=new Va(50,.7),t._requests=new Va(9,.75),t._keys=new(function(){function e(){this._counter=1,this._data=new WeakMap}return e.prototype.for=function(e,t){return e.id+"/"+(t?e.getVersionId():"")+"/"+this._hash(Dl.all(e))},e.prototype._hash=function(e){for(var t="",n=0,i=e;n<i.length;n++){var o=i[n],r=this._data.get(o);"undefined"===typeof r&&(r=this._counter++,this._data.set(o,r)),t+=r}return t},e}()),t}(Q2),j2=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},G2=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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function q2(e,t,n){return j2(this,void 0,void 0,(function(){var i,o,r,s,a,u;return G2(this,(function(l){switch(l.label){case 0:return[4,z2.create(e,n)];case 1:for(i=l.sent(),o=[],r=0,s=kA(i.children);r<s.length;r++)a=s[r],a instanceof V2?o.push(a.symbol):o.push.apply(o,kA(a.children).map((function(e){return e.symbol})));return u=[],n.isCancellationRequested?[2,u]:(t?X2(u,o,""):u=o,[2,u.sort(Y2)])}}))}))}function Y2(e,t){return vn.compareRangesUsingStarts(e.range,t.range)}function X2(e,t,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];e.push({kind:r.kind,tags:r.tags,name:r.name,detail:r.detail,containerName:r.containerName||n,range:r.range,selectionRange:r.selectionRange,children:void 0}),r.children&&X2(e,r.children,r.name)}}yg("_executeDocumentSymbolProvider",(function(e,t){var n=t.resource;if(!(n instanceof Et))throw _e("resource");var i=e.get(ll).getModel(n);return i?q2(i,!1,je.None):e.get(ec).createModelReference(n).then((function(e){return new Promise((function(t,n){try{var i=q2(e.object.textEditorModel,!1,je.None);t(i)}catch(o){n(o)}})).finally((function(){e.dispose()}))}))}));var J2=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)}}(),Z2=":",$2=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this)||this;return u.name=t,u.type=n,u.description=i,u.range=o,u.setHighlights(r),u.editor=s,u.decorator=a,u}return J2(t,e),t.prototype.getLabel=function(){return this.name},t.prototype.getAriaLabel=function(){return xr(af.entryAriaLabel,this.name)},t.prototype.getIcon=function(){return this.type},t.prototype.getDescription=function(){return this.description},t.prototype.getType=function(){return this.type},t.prototype.getRange=function(){return this.range},t.prototype.run=function(e,t){return 1===e?this.runOpen(t):this.runPreview()},t.prototype.runOpen=function(e){var t=this.toSelection();return this.editor.setSelection(t),this.editor.revealRangeInCenter(t,0),this.editor.focus(),!0},t.prototype.runPreview=function(){var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(this.range,this.editor),!1},t.prototype.toSelection=function(){return new vn(this.range.startLineNumber,this.range.startColumn||1,this.range.startLineNumber,this.range.startColumn||1)},t}(E1),e4=function(e){function t(){return e.call(this,af.quickOutlineActionInput,{id:"editor.action.quickOutline",label:af.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:_S.hasDocumentSymbolProvider,kbOpts:{kbExpr:_S.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})||this}return J2(t,e),t.prototype.run=function(e,t){var n=this;if(t.hasModel()){var i=t.getModel();if(Dl.has(i))return q2(i,!0,je.None).then((function(e){0!==e.length&&n._run(t,e)}))}},t.prototype._run=function(e,t){var n=this;this._show(this.getController(e),{getModel:function(i){return new k1(n.toQuickOpenEntries(e,t,i))},getAutoFocus:function(e){return 0===e.indexOf(Z2)&&(e=e.substr(Z2.length)),{autoFocusPrefixMatch:e,autoFocusFirstEntry:!!e}}})},t.prototype.symbolEntry=function(e,t,n,i,o,r,s){return new $2(e,t,n,vn.lift(i),o,r,s)},t.prototype.toQuickOpenEntries=function(e,t,n){var i=this.getController(e),o=[],r=n;0===n.indexOf(Z2)&&(r=r.substr(Z2.length));for(var s=0,a=t;s<a.length;s++){var u=a[s],l=Nr(u.name),c=jI(r,l);if(c){var d=void 0;u.containerName&&(d=u.containerName),o.push(this.symbolEntry(l,pl.toCssClassName(u.kind),d,u.range,c,e,i))}}if(n&&(o=0===n.indexOf(Z2)?o.sort(this.sortScoped.bind(this,n.toLowerCase())):o.sort(this.sortNormal.bind(this,n.toLowerCase()))),o.length>0&&0===n.indexOf(Z2)){for(var h=null,A=null,p=0,f=0;f<o.length;f++){var g=o[f];h!==g.getType()?(A&&A.setGroupLabel(this.typeToLabel(h||"",p)),h=g.getType(),A=g,p=1,g.setShowBorder(f>0)):p++}A&&A.setGroupLabel(this.typeToLabel(h||"",p))}else o.length>0&&o[0].setGroupLabel(xr(af._symbols_,o.length));return o},t.prototype.typeToLabel=function(e,t){switch(e){case"module":return xr(af._modules_,t);case"class":return xr(af._class_,t);case"interface":return xr(af._interface_,t);case"method":return xr(af._method_,t);case"function":return xr(af._function_,t);case"property":return xr(af._property_,t);case"variable":return xr(af._variable_,t);case"var":return xr(af._variable2_,t);case"constructor":return xr(af._constructor_,t);case"call":return xr(af._call_,t)}return e},t.prototype.sortNormal=function(e,t,n){var i=t.getLabel().toLowerCase(),o=n.getLabel().toLowerCase(),r=i.localeCompare(o);if(0!==r)return r;var s=t.getRange(),a=n.getRange();return s.startLineNumber-a.startLineNumber},t.prototype.sortScoped=function(e,t,n){e=e.substr(Z2.length);var i=t.getType(),o=n.getType(),r=i.localeCompare(o);if(0!==r)return r;if(e){var s=t.getLabel().toLowerCase(),a=n.getLabel().toLowerCase(),u=s.localeCompare(a);if(0!==u)return u}var l=t.getRange(),c=n.getRange();return l.startLineNumber-c.startLineNumber},t}(F2);Cg(e4);var t4=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)}}(),n4=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},i4=function(e,t){return function(n,i){t(n,i,e)}},o4=function(e){function t(t,n,i,o,r,s,a){return e.call(this,!0,t,n,i,o,r,s,a)||this}return t4(t,e),t=n4([i4(1,Mp),i4(2,kn),i4(3,$p),i4(4,xn),i4(5,aT),i4(6,rp)],t),t}(Ij);Bg(Ij.ID,o4);var r4=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)}}(),s4=function(e){function t(){var t=e.call(this,{id:"editor.action.toggleHighContrast",label:lf.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0})||this;return t._originalThemeName=null,t}return r4(t,e),t.prototype.run=function(e,t){var n=e.get(AD);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getTheme().themeName,n.setTheme("hc-black"))},t}(_g);Cg(s4),n.d(t,"a",(function(){return GP}))},"930f":function(e,t,n){},"94a7":function(e,t,n){},"96b9":function(e,t,n){},a87d9:function(e,t,n){},aa28:function(e,t,n){n("733c"),e.exports=n("584a").Reflect.construct},abf2:function(e,t,n){},b0b4:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("454f"),o=n.n(i),r=n("a6fa");function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),o()(e,Object(r["a"])(i.key),i)}}function a(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),o()(e,"prototype",{writable:!1}),e}},b223:function(e,t,n){},b23e:function(e,t,n){"use strict";var i=n("aa28"),o=n.n(i),r=n("25b0"),s=n.n(r),a=n("fa99"),u=n.n(a);function l(e){return l=s.a?u.a.bind():function(e){return e.__proto__||u()(e)},l(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(o()(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var d=n("7618");function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t){if(t&&("object"===Object(d["a"])(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function p(e,t,n){return t=l(t),A(e,c()?o()(t,n||[],l(e).constructor):t.apply(e,n))}n.d(t,"a",(function(){return p}))},b329:function(e,t,n){},b54a:function(e,t,n){"use strict";n("386b")("link",(function(e){return function(t){return e(this,"a","href",t)}}))},b805:function(e,t,n){},b968:function(e,t,n){},ba3c:function(e,t,n){},ba77:function(e,t,n){},bcc1:function(e,t,n){},c0e9:function(e,t,n){
/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/
(function(t,n){e.exports=n()})(0,(function(){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function i(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{u(i.next(e))}catch(zt){r(zt)}}function a(e){try{u(i["throw"](e))}catch(zt){r(zt)}}function u(e){e.done?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))}function o(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]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(zt){r=[6,zt],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}function r(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||t)}for(var s=function(){function e(e,t,n,i){this.left=e,this.top=t,this.width=n,this.height=i}return e.prototype.add=function(t,n,i,o){return new e(this.left+t,this.top+n,this.width+i,this.height+o)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var i=Array.from(n).find((function(e){return 0!==e.width}));return i?new e(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),a=function(e,t){return s.fromClientRect(e,t.getBoundingClientRect())},u=function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),o=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new s(0,0,i,o)},l=function(e){var t=[],n=0,i=e.length;while(n<i){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<i){var r=e.charCodeAt(n++);56320===(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";var i=[],o=-1,r="";while(++o<n){var s=e[o];s<=65535?i.push(s):(s-=65536,i.push(55296+(s>>10),s%1024+56320)),(o+1===n||i.length>16384)&&(r+=String.fromCharCode.apply(String,i),i.length=0)}return r},d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"===typeof Uint8Array?[]:new Uint8Array(256),A=0;A<d.length;A++)h[d.charCodeAt(A)]=A;for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"===typeof Uint8Array?[]:new Uint8Array(256),g=0;g<p.length;g++)f[p.charCodeAt(g)]=g;for(var m=function(e){var t,n,i,o,r,s=.75*e.length,a=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<a;t+=4)n=f[e.charCodeAt(t)],i=f[e.charCodeAt(t+1)],o=f[e.charCodeAt(t+2)],r=f[e.charCodeAt(t+3)],c[u++]=n<<2|i>>4,c[u++]=(15&i)<<4|o>>2,c[u++]=(3&o)<<6|63&r;return l},v=function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n.push(e[i+1]<<8|e[i]);return n},_=function(e){for(var t=e.length,n=[],i=0;i<t;i+=4)n.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return n},y=5,w=11,b=2,C=w-y,S=65536>>y,B=1<<y,E=B-1,x=1024>>y,L=S+x,D=L,N=32,k=D+N,I=65536>>w,F=1<<C,M=F-1,O=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},T=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},P=function(e,t){var n=m(e),i=Array.isArray(n)?_(n):new Uint32Array(n),o=Array.isArray(n)?v(n):new Uint16Array(n),r=24,s=O(o,r/2,i[4]/2),a=2===i[5]?O(o,(r+i[4])/2):T(i,Math.ceil((r+i[4])/4));return new R(i[0],i[1],i[2],i[3],s,a)},R=function(){function e(e,t,n,i,o,r){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=o,this.data=r}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>y],t=(t<<b)+(e&E),this.data[t];if(e<=65535)return t=this.index[S+(e-55296>>y)],t=(t<<b)+(e&E),this.data[t];if(e<this.highStart)return t=k-I+(e>>w),t=this.index[t],t+=e>>y&M,t=this.index[t],t=(t<<b)+(e&E),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Q=0;Q<U.length;Q++)H[U.charCodeAt(Q)]=Q;var V="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",W=50,K=1,z=2,j=3,G=4,q=5,Y=7,X=8,J=9,Z=10,$=11,ee=12,te=13,ne=14,ie=15,oe=16,re=17,se=18,ae=19,ue=20,le=21,ce=22,de=23,he=24,Ae=25,pe=26,fe=27,ge=28,me=29,ve=30,_e=31,ye=32,we=33,be=34,Ce=35,Se=36,Be=37,Ee=38,xe=39,Le=40,De=41,Ne=42,ke=43,Ie=[9001,65288],Fe="!",Me="×",Oe="÷",Te=P(V),Pe=[ve,Se],Re=[K,z,j,q],Ue=[Z,X],He=[fe,pe],Qe=Re.concat(Ue),Ve=[Ee,xe,Le,be,Ce],We=[ie,te],Ke=function(e,t){void 0===t&&(t="strict");var n=[],i=[],o=[];return e.forEach((function(e,r){var s=Te.get(e);if(s>W?(o.push(!0),s-=W):o.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return i.push(r),n.push(oe);if(s===G||s===$){if(0===r)return i.push(r),n.push(ve);var a=n[r-1];return-1===Qe.indexOf(a)?(i.push(i[r-1]),n.push(a)):(i.push(r),n.push(ve))}return i.push(r),s===_e?n.push("strict"===t?le:Be):s===Ne||s===me?n.push(ve):s===ke?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(Be):n.push(ve):void n.push(s)})),[i,n,o]},ze=function(e,t,n,i){var o=i[n];if(Array.isArray(e)?-1!==e.indexOf(o):e===o){var r=n;while(r<=i.length){r++;var s=i[r];if(s===t)return!0;if(s!==Z)break}}if(o===Z){r=n;while(r>0){r--;var a=i[r];if(Array.isArray(e)?-1!==e.indexOf(a):e===a){var u=n;while(u<=i.length){u++;s=i[u];if(s===t)return!0;if(s!==Z)break}}if(a!==Z)break}}return!1},je=function(e,t){var n=e;while(n>=0){var i=t[n];if(i!==Z)return i;n--}return 0},Ge=function(e,t,n,i,o){if(0===n[i])return Me;var r=i-1;if(Array.isArray(o)&&!0===o[r])return Me;var s=r-1,a=r+1,u=t[r],l=s>=0?t[s]:0,c=t[a];if(u===z&&c===j)return Me;if(-1!==Re.indexOf(u))return Fe;if(-1!==Re.indexOf(c))return Me;if(-1!==Ue.indexOf(c))return Me;if(je(r,t)===X)return Oe;if(Te.get(e[r])===$)return Me;if((u===ye||u===we)&&Te.get(e[a])===$)return Me;if(u===Y||c===Y)return Me;if(u===J)return Me;if(-1===[Z,te,ie].indexOf(u)&&c===J)return Me;if(-1!==[re,se,ae,he,ge].indexOf(c))return Me;if(je(r,t)===ce)return Me;if(ze(de,ce,r,t))return Me;if(ze([re,se],le,r,t))return Me;if(ze(ee,ee,r,t))return Me;if(u===Z)return Oe;if(u===de||c===de)return Me;if(c===oe||u===oe)return Oe;if(-1!==[te,ie,le].indexOf(c)||u===ne)return Me;if(l===Se&&-1!==We.indexOf(u))return Me;if(u===ge&&c===Se)return Me;if(c===ue)return Me;if(-1!==Pe.indexOf(c)&&u===Ae||-1!==Pe.indexOf(u)&&c===Ae)return Me;if(u===fe&&-1!==[Be,ye,we].indexOf(c)||-1!==[Be,ye,we].indexOf(u)&&c===pe)return Me;if(-1!==Pe.indexOf(u)&&-1!==He.indexOf(c)||-1!==He.indexOf(u)&&-1!==Pe.indexOf(c))return Me;if(-1!==[fe,pe].indexOf(u)&&(c===Ae||-1!==[ce,ie].indexOf(c)&&t[a+1]===Ae)||-1!==[ce,ie].indexOf(u)&&c===Ae||u===Ae&&-1!==[Ae,ge,he].indexOf(c))return Me;if(-1!==[Ae,ge,he,re,se].indexOf(c)){var d=r;while(d>=0){var h=t[d];if(h===Ae)return Me;if(-1===[ge,he].indexOf(h))break;d--}}if(-1!==[fe,pe].indexOf(c)){d=-1!==[re,se].indexOf(u)?s:r;while(d>=0){h=t[d];if(h===Ae)return Me;if(-1===[ge,he].indexOf(h))break;d--}}if(Ee===u&&-1!==[Ee,xe,be,Ce].indexOf(c)||-1!==[xe,be].indexOf(u)&&-1!==[xe,Le].indexOf(c)||-1!==[Le,Ce].indexOf(u)&&c===Le)return Me;if(-1!==Ve.indexOf(u)&&-1!==[ue,pe].indexOf(c)||-1!==Ve.indexOf(c)&&u===fe)return Me;if(-1!==Pe.indexOf(u)&&-1!==Pe.indexOf(c))return Me;if(u===he&&-1!==Pe.indexOf(c))return Me;if(-1!==Pe.concat(Ae).indexOf(u)&&c===ce&&-1===Ie.indexOf(e[a])||-1!==Pe.concat(Ae).indexOf(c)&&u===se)return Me;if(u===De&&c===De){var A=n[r],p=1;while(A>0){if(A--,t[A]!==De)break;p++}if(p%2!==0)return Me}return u===ye&&c===we?Me:Oe},qe=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=Ke(e,t.lineBreak),i=n[0],o=n[1],r=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(o=o.map((function(e){return-1!==[Ae,ve,Ne].indexOf(e)?Be:e})));var s="keep-all"===t.wordBreak?r.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0;return[i,o,s]},Ye=function(){function e(e,t,n,i){this.codePoints=e,this.required=t===Fe,this.start=n,this.end=i}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Xe=function(e,t){var n=l(e),i=qe(n,t),o=i[0],r=i[1],s=i[2],a=n.length,u=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};var e=Me;while(c<a&&(e=Ge(n,r,o,++c,s))===Me);if(e!==Me||c===a){var t=new Ye(n,e,u,c);return u=c,{value:t,done:!1}}return{done:!0,value:null}}}},Je=1,Ze=2,$e=4,et=8,tt=10,nt=47,it=92,ot=9,rt=32,st=34,at=61,ut=35,lt=36,ct=37,dt=39,ht=40,At=41,pt=95,ft=45,gt=33,mt=60,vt=62,_t=64,yt=91,wt=93,bt=61,Ct=123,St=63,Bt=125,Et=124,xt=126,Lt=128,Dt=65533,Nt=42,kt=43,It=44,Ft=58,Mt=59,Ot=46,Tt=0,Pt=8,Rt=11,Ut=14,Ht=31,Qt=127,Vt=-1,Wt=48,Kt=97,zt=101,jt=102,Gt=117,qt=122,Yt=65,Xt=69,Jt=70,Zt=85,$t=90,en=function(e){return e>=Wt&&e<=57},tn=function(e){return e>=55296&&e<=57343},nn=function(e){return en(e)||e>=Yt&&e<=Jt||e>=Kt&&e<=jt},on=function(e){return e>=Kt&&e<=qt},rn=function(e){return e>=Yt&&e<=$t},sn=function(e){return on(e)||rn(e)},an=function(e){return e>=Lt},un=function(e){return e===tt||e===ot||e===rt},ln=function(e){return sn(e)||an(e)||e===pt},cn=function(e){return ln(e)||en(e)||e===ft},dn=function(e){return e>=Tt&&e<=Pt||e===Rt||e>=Ut&&e<=Ht||e===Qt},hn=function(e,t){return e===it&&t!==tt},An=function(e,t,n){return e===ft?ln(t)||hn(t,n):!!ln(e)||!(e!==it||!hn(e,t))},pn=function(e,t,n){return e===kt||e===ft?!!en(t)||t===Ot&&en(n):en(e===Ot?t:e)},fn=function(e){var t=0,n=1;e[t]!==kt&&e[t]!==ft||(e[t]===ft&&(n=-1),t++);var i=[];while(en(e[t]))i.push(e[t++]);var o=i.length?parseInt(c.apply(void 0,i),10):0;e[t]===Ot&&t++;var r=[];while(en(e[t]))r.push(e[t++]);var s=r.length,a=s?parseInt(c.apply(void 0,r),10):0;e[t]!==Xt&&e[t]!==zt||t++;var u=1;e[t]!==kt&&e[t]!==ft||(e[t]===ft&&(u=-1),t++);var l=[];while(en(e[t]))l.push(e[t++]);var d=l.length?parseInt(c.apply(void 0,l),10):0;return n*(o+a*Math.pow(10,-s))*Math.pow(10,u*d)},gn={type:2},mn={type:3},vn={type:4},_n={type:13},yn={type:8},wn={type:21},bn={type:9},Cn={type:10},Sn={type:11},Bn={type:12},En={type:14},xn={type:23},Ln={type:1},Dn={type:25},Nn={type:24},kn={type:26},In={type:27},Fn={type:28},Mn={type:29},On={type:31},Tn={type:32},Pn=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){var e=[],t=this.consumeToken();while(t!==Tn)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case st:return this.consumeStringToken(st);case ut:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(cn(t)||hn(n,i)){var o=An(t,n,i)?Ze:Je,r=this.consumeName();return{type:5,value:r,flags:o}}break;case lt:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),_n;break;case dt:return this.consumeStringToken(dt);case ht:return gn;case At:return mn;case Nt:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),En;break;case kt:if(pn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case It:return vn;case ft:var s=e,a=this.peekCodePoint(0),u=this.peekCodePoint(1);if(pn(s,a,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(An(s,a,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===ft&&u===vt)return this.consumeCodePoint(),this.consumeCodePoint(),Nn;break;case Ot:if(pn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case nt:if(this.peekCodePoint(0)===Nt){this.consumeCodePoint();while(1){var l=this.consumeCodePoint();if(l===Nt&&(l=this.consumeCodePoint(),l===nt))return this.consumeToken();if(l===Vt)return this.consumeToken()}}break;case Ft:return kn;case Mt:return In;case mt:if(this.peekCodePoint(0)===gt&&this.peekCodePoint(1)===ft&&this.peekCodePoint(2)===ft)return this.consumeCodePoint(),this.consumeCodePoint(),Dn;break;case _t:var d=this.peekCodePoint(0),h=this.peekCodePoint(1),A=this.peekCodePoint(2);if(An(d,h,A)){r=this.consumeName();return{type:7,value:r}}break;case yt:return Fn;case it:if(hn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case wt:return Mn;case bt:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),yn;break;case Ct:return Sn;case Bt:return Bn;case Gt:case Zt:var p=this.peekCodePoint(0),f=this.peekCodePoint(1);return p!==kt||!nn(f)&&f!==St||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Et:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),bn;if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),wn;break;case xt:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),Cn;break;case Vt:return Tn}return un(e)?(this.consumeWhiteSpace(),On):en(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):ln(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return"undefined"===typeof e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){var e=[],t=this.consumeCodePoint();while(nn(t)&&e.length<6)e.push(t),t=this.consumeCodePoint();var n=!1;while(t===St&&e.length<6)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(c.apply(void 0,e.map((function(e){return e===St?Wt:e}))),16),o=parseInt(c.apply(void 0,e.map((function(e){return e===St?Jt:e}))),16);return{type:30,start:i,end:o}}var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===ft&&nn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();var s=[];while(nn(t)&&s.length<6)s.push(t),t=this.consumeCodePoint();o=parseInt(c.apply(void 0,s),16);return{type:30,start:r,end:o}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===ht?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ht?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Vt)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===dt||t===st){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Vt||this.peekCodePoint(0)===At)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),xn)}while(1){var i=this.consumeCodePoint();if(i===Vt||i===At)return{type:22,value:c.apply(void 0,e)};if(un(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Vt||this.peekCodePoint(0)===At?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),xn);if(i===st||i===dt||i===ht||dn(i))return this.consumeBadUrlRemnants(),xn;if(i===it){if(!hn(i,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),xn;e.push(this.consumeEscapedCodePoint())}else e.push(i)}},e.prototype.consumeWhiteSpace=function(){while(un(this.peekCodePoint(0)))this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){while(1){var e=this.consumeCodePoint();if(e===At||e===Vt)return;hn(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){var t=5e4,n="";while(e>0){var i=Math.min(t,e);n+=c.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){var t="",n=0;do{var i=this._value[n];if(i===Vt||void 0===i||i===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(i===tt)return this._value.splice(0,n),Ln;if(i===it){var o=this._value[n+1];o!==Vt&&void 0!==o&&(o===tt?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):hn(i,o)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}while(1)},e.prototype.consumeNumber=function(){var e=[],t=$e,n=this.peekCodePoint(0);n!==kt&&n!==ft||e.push(this.consumeCodePoint());while(en(this.peekCodePoint(0)))e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===Ot&&en(i)){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=et;while(en(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}n=this.peekCodePoint(0),i=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((n===Xt||n===zt)&&((i===kt||i===ft)&&en(o)||en(i))){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=et;while(en(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}return[fn(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],i=this.peekCodePoint(0),o=this.peekCodePoint(1),r=this.peekCodePoint(2);if(An(i,o,r)){var s=this.consumeName();return{type:15,number:t,flags:n,unit:s}}return i===ct?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(nn(e)){var t=c(e);while(nn(this.peekCodePoint(0))&&t.length<6)t+=c(this.consumeCodePoint());un(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||tn(n)||n>1114111?Dt:n}return e===Vt?Dt:e},e.prototype.consumeName=function(){var e="";while(1){var t=this.consumeCodePoint();if(cn(t))e+=c(t);else{if(!hn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Rn=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Pn;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){var e=this.consumeToken();while(31===e.type)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){var e=[];while(1){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){var t={type:e,values:[]},n=this.consumeToken();while(1){if(32===n.type||Gn(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){var t={name:e.value,values:[],type:18};while(1){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return"undefined"===typeof e?Tn:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Un=function(e){return 15===e.type},Hn=function(e){return 17===e.type},Qn=function(e){return 20===e.type},Vn=function(e){return 0===e.type},Wn=function(e,t){return Qn(e)&&e.value===t},Kn=function(e){return 31!==e.type},zn=function(e){return 31!==e.type&&4!==e.type},jn=function(e){var t=[],n=[];return e.forEach((function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)})),n.length&&t.push(n),t},Gn=function(e,t){return 11===t&&12===e.type||(28===t&&29===e.type||2===t&&3===e.type)},qn=function(e){return 17===e.type||15===e.type},Yn=function(e){return 16===e.type||qn(e)},Xn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Jn={type:17,number:0,flags:$e},Zn={type:16,number:50,flags:$e},$n={type:16,number:100,flags:$e},ei=function(e,t,n){var i=e[0],o=e[1];return[ti(i,t),ti("undefined"!==typeof o?o:i,n)]},ti=function(e,t){if(16===e.type)return e.number/100*t;if(Un(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},ni="deg",ii="grad",oi="rad",ri="turn",si={name:"angle",parse:function(e,t){if(15===t.type)switch(t.unit){case ni:return Math.PI*t.number/180;case ii:return Math.PI/200*t.number;case oi:return t.number;case ri:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},ai=function(e){return 15===e.type&&(e.unit===ni||e.unit===ii||e.unit===oi||e.unit===ri)},ui=function(e){var t=e.filter(Qn).map((function(e){return e.value})).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Jn,Jn];case"to top":case"bottom":return li(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Jn,$n];case"to right":case"left":return li(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$n,$n];case"to bottom":case"top":return li(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$n,Jn];case"to left":case"right":return li(270)}return 0},li=function(e){return Math.PI*e/180},ci={name:"color",parse:function(e,t){if(18===t.type){var n=vi[t.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var i=t.value.substring(0,1),o=t.value.substring(1,2),r=t.value.substring(2,3);return Ai(parseInt(i+i,16),parseInt(o+o,16),parseInt(r+r,16),1)}if(4===t.value.length){i=t.value.substring(0,1),o=t.value.substring(1,2),r=t.value.substring(2,3);var s=t.value.substring(3,4);return Ai(parseInt(i+i,16),parseInt(o+o,16),parseInt(r+r,16),parseInt(s+s,16)/255)}if(6===t.value.length){i=t.value.substring(0,2),o=t.value.substring(2,4),r=t.value.substring(4,6);return Ai(parseInt(i,16),parseInt(o,16),parseInt(r,16),1)}if(8===t.value.length){i=t.value.substring(0,2),o=t.value.substring(2,4),r=t.value.substring(4,6),s=t.value.substring(6,8);return Ai(parseInt(i,16),parseInt(o,16),parseInt(r,16),parseInt(s,16)/255)}}if(20===t.type){var a=yi[t.value.toUpperCase()];if("undefined"!==typeof a)return a}return yi.TRANSPARENT}},di=function(e){return 0===(255&e)},hi=function(e){var t=255&e,n=255&e>>8,i=255&e>>16,o=255&e>>24;return t<255?"rgba("+o+","+i+","+n+","+t/255+")":"rgb("+o+","+i+","+n+")"},Ai=function(e,t,n,i){return(e<<24|t<<16|n<<8|Math.round(255*i)<<0)>>>0},pi=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},fi=function(e,t){var n=t.filter(zn);if(3===n.length){var i=n.map(pi),o=i[0],r=i[1],s=i[2];return Ai(o,r,s,1)}if(4===n.length){var a=n.map(pi),u=(o=a[0],r=a[1],s=a[2],a[3]);return Ai(o,r,s,u)}return 0};function gi(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var mi=function(e,t){var n=t.filter(zn),i=n[0],o=n[1],r=n[2],s=n[3],a=(17===i.type?li(i.number):si.parse(e,i))/(2*Math.PI),u=Yn(o)?o.number/100:0,l=Yn(r)?r.number/100:0,c="undefined"!==typeof s&&Yn(s)?ti(s,1):1;if(0===u)return Ai(255*l,255*l,255*l,1);var d=l<=.5?l*(u+1):l+u-l*u,h=2*l-d,A=gi(h,d,a+1/3),p=gi(h,d,a),f=gi(h,d,a-1/3);return Ai(255*A,255*p,255*f,c)},vi={hsl:mi,hsla:mi,rgb:fi,rgba:fi},_i=function(e,t){return ci.parse(e,Rn.create(t).parseComponentValue())},yi={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},wi={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Qn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},bi={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ci=function(e,t){var n=ci.parse(e,t[0]),i=t[1];return i&&Yn(i)?{color:n,stop:i}:{color:n,stop:null}},Si=function(e,t){var n=e[0],i=e[e.length-1];null===n.stop&&(n.stop=Jn),null===i.stop&&(i.stop=$n);for(var o=[],r=0,s=0;s<e.length;s++){var a=e[s].stop;if(null!==a){var u=ti(a,t);u>r?o.push(u):o.push(r),r=u}else o.push(null)}var l=null;for(s=0;s<o.length;s++){var c=o[s];if(null===c)null===l&&(l=s);else if(null!==l){for(var d=s-l,h=o[l-1],A=(c-h)/(d+1),p=1;p<=d;p++)o[l+p-1]=A*p;l=null}}return e.map((function(e,n){var i=e.color;return{color:i,stop:Math.max(Math.min(1,o[n]/t),0)}}))},Bi=function(e,t,n){var i=t/2,o=n/2,r=ti(e[0],t)-i,s=o-ti(e[1],n);return(Math.atan2(s,r)+2*Math.PI)%(2*Math.PI)},Ei=function(e,t,n){var i="number"===typeof e?e:Bi(e,t,n),o=Math.abs(t*Math.sin(i))+Math.abs(n*Math.cos(i)),r=t/2,s=n/2,a=o/2,u=Math.sin(i-Math.PI/2)*a,l=Math.cos(i-Math.PI/2)*a;return[o,r-l,r+l,s-u,s+u]},xi=function(e,t){return Math.sqrt(e*e+t*t)},Li=function(e,t,n,i,o){var r=[[0,0],[0,t],[e,0],[e,t]];return r.reduce((function(e,t){var r=t[0],s=t[1],a=xi(n-r,i-s);return(o?a<e.optimumDistance:a>e.optimumDistance)?{optimumCorner:t,optimumDistance:a}:e}),{optimumDistance:o?1/0:-1/0,optimumCorner:null}).optimumCorner},Di=function(e,t,n,i,o){var r=0,s=0;switch(e.size){case 0:0===e.shape?r=s=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-o)):1===e.shape&&(r=Math.min(Math.abs(t),Math.abs(t-i)),s=Math.min(Math.abs(n),Math.abs(n-o)));break;case 2:if(0===e.shape)r=s=Math.min(xi(t,n),xi(t,n-o),xi(t-i,n),xi(t-i,n-o));else if(1===e.shape){var a=Math.min(Math.abs(n),Math.abs(n-o))/Math.min(Math.abs(t),Math.abs(t-i)),u=Li(i,o,t,n,!0),l=u[0],c=u[1];r=xi(l-t,(c-n)/a),s=a*r}break;case 1:0===e.shape?r=s=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-o)):1===e.shape&&(r=Math.max(Math.abs(t),Math.abs(t-i)),s=Math.max(Math.abs(n),Math.abs(n-o)));break;case 3:if(0===e.shape)r=s=Math.max(xi(t,n),xi(t,n-o),xi(t-i,n),xi(t-i,n-o));else if(1===e.shape){a=Math.max(Math.abs(n),Math.abs(n-o))/Math.max(Math.abs(t),Math.abs(t-i));var d=Li(i,o,t,n,!1);l=d[0],c=d[1];r=xi(l-t,(c-n)/a),s=a*r}break}return Array.isArray(e.size)&&(r=ti(e.size[0],i),s=2===e.size.length?ti(e.size[1],o):r),[r,s]},Ni=function(e,t){var n=li(180),i=[];return jn(t).forEach((function(t,o){if(0===o){var r=t[0];if(20===r.type&&"to"===r.value)return void(n=ui(t));if(ai(r))return void(n=si.parse(e,r))}var s=Ci(e,t);i.push(s)})),{angle:n,stops:i,type:1}},ki=function(e,t){var n=li(180),i=[];return jn(t).forEach((function(t,o){if(0===o){var r=t[0];if(20===r.type&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(n=ui(t));if(ai(r))return void(n=(si.parse(e,r)+li(270))%li(360))}var s=Ci(e,t);i.push(s)})),{angle:n,stops:i,type:1}},Ii=function(e,t){var n=li(180),i=[],o=1,r=0,s=3,a=[];return jn(t).forEach((function(t,n){var r=t[0];if(0===n){if(Qn(r)&&"linear"===r.value)return void(o=1);if(Qn(r)&&"radial"===r.value)return void(o=2)}if(18===r.type)if("from"===r.name){var s=ci.parse(e,r.values[0]);i.push({stop:Jn,color:s})}else if("to"===r.name){s=ci.parse(e,r.values[0]);i.push({stop:$n,color:s})}else if("color-stop"===r.name){var a=r.values.filter(zn);if(2===a.length){s=ci.parse(e,a[1]);var u=a[0];Hn(u)&&i.push({stop:{type:16,number:100*u.number,flags:u.flags},color:s})}}})),1===o?{angle:(n+li(180))%li(360),stops:i,type:o}:{size:s,shape:r,stops:i,position:a,type:o}},Fi="closest-side",Mi="farthest-side",Oi="closest-corner",Ti="farthest-corner",Pi="circle",Ri="ellipse",Ui="cover",Hi="contain",Qi=function(e,t){var n=0,i=3,o=[],r=[];return jn(t).forEach((function(t,s){var a=!0;if(0===s){var u=!1;a=t.reduce((function(e,t){if(u)if(Qn(t))switch(t.value){case"center":return r.push(Zn),e;case"top":case"left":return r.push(Jn),e;case"right":case"bottom":return r.push($n),e}else(Yn(t)||qn(t))&&r.push(t);else if(Qn(t))switch(t.value){case Pi:return n=0,!1;case Ri:return n=1,!1;case"at":return u=!0,!1;case Fi:return i=0,!1;case Ui:case Mi:return i=1,!1;case Hi:case Oi:return i=2,!1;case Ti:return i=3,!1}else if(qn(t)||Yn(t))return Array.isArray(i)||(i=[]),i.push(t),!1;return e}),a)}if(a){var l=Ci(e,t);o.push(l)}})),{size:i,shape:n,stops:o,position:r,type:2}},Vi=function(e,t){var n=0,i=3,o=[],r=[];return jn(t).forEach((function(t,s){var a=!0;if(0===s?a=t.reduce((function(e,t){if(Qn(t))switch(t.value){case"center":return r.push(Zn),!1;case"top":case"left":return r.push(Jn),!1;case"right":case"bottom":return r.push($n),!1}else if(Yn(t)||qn(t))return r.push(t),!1;return e}),a):1===s&&(a=t.reduce((function(e,t){if(Qn(t))switch(t.value){case Pi:return n=0,!1;case Ri:return n=1,!1;case Hi:case Fi:return i=0,!1;case Mi:return i=1,!1;case Oi:return i=2,!1;case Ui:case Ti:return i=3,!1}else if(qn(t)||Yn(t))return Array.isArray(i)||(i=[]),i.push(t),!1;return e}),a)),a){var u=Ci(e,t);o.push(u)}})),{size:i,shape:n,stops:o,position:r,type:2}},Wi=function(e){return 1===e.type},Ki=function(e){return 2===e.type},zi={name:"image",parse:function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var i=qi[t.name];if("undefined"===typeof i)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return i(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function ji(e){return!(20===e.type&&"none"===e.value)&&(18!==e.type||!!qi[e.name])}var Gi,qi={"linear-gradient":Ni,"-moz-linear-gradient":ki,"-ms-linear-gradient":ki,"-o-linear-gradient":ki,"-webkit-linear-gradient":ki,"radial-gradient":Qi,"-moz-radial-gradient":Vi,"-ms-radial-gradient":Vi,"-o-radial-gradient":Vi,"-webkit-radial-gradient":Vi,"-webkit-gradient":Ii},Yi={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter((function(e){return zn(e)&&ji(e)})).map((function(t){return zi.parse(e,t)}))}},Xi={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Qn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ji={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return jn(t).map((function(e){return e.filter(Yn)})).map(Xn)}},Zi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return jn(t).map((function(e){return e.filter(Qn).map((function(e){return e.value})).join(" ")})).map($i)}},$i=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};(function(e){e["AUTO"]="auto",e["CONTAIN"]="contain",e["COVER"]="cover"})(Gi||(Gi={}));var eo,to={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return jn(t).map((function(e){return e.filter(no)}))}},no=function(e){return Qn(e)||Yn(e)},io=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},oo=io("top"),ro=io("right"),so=io("bottom"),ao=io("left"),uo=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Xn(t.filter(Yn))}}},lo=uo("top-left"),co=uo("top-right"),ho=uo("bottom-right"),Ao=uo("bottom-left"),po=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},fo=po("top"),go=po("right"),mo=po("bottom"),vo=po("left"),_o=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Un(t)?t.number:0}}},yo=_o("top"),wo=_o("right"),bo=_o("bottom"),Co=_o("left"),So={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bo={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},Eo={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Qn).reduce((function(e,t){return e|xo(t.value)}),0)}},xo=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Lo={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Do={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};(function(e){e["NORMAL"]="normal",e["STRICT"]="strict"})(eo||(eo={}));var No,ko={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return eo.STRICT;case"normal":default:return eo.NORMAL}}},Io={name:"line-height",initialValue:"normal",prefix:!1,type:4},Fo=function(e,t){return Qn(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Yn(e)?ti(e,t):t},Mo={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:zi.parse(e,t)}},Oo={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},To={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Po=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Ro=Po("top"),Uo=Po("right"),Ho=Po("bottom"),Qo=Po("left"),Vo={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Qn).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Wo={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ko=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},zo=Ko("top"),jo=Ko("right"),Go=Ko("bottom"),qo=Ko("left"),Yo={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Xo={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Jo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Wn(t[0],"none")?[]:jn(t).map((function(t){for(var n={color:yi.TRANSPARENT,offsetX:Jn,offsetY:Jn,blur:Jn},i=0,o=0;o<t.length;o++){var r=t[o];qn(r)?(0===i?n.offsetX=r:1===i?n.offsetY=r:n.blur=r,i++):n.color=ci.parse(e,r)}return n}))}},Zo={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},$o={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=nr[t.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},er=function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number}));return 6===t.length?t:null},tr=function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number})),n=t[0],i=t[1];t[2],t[3];var o=t[4],r=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],a=t[13];return t[14],t[15],16===t.length?[n,i,o,r,s,a]:null},nr={matrix:er,matrix3d:tr},ir={type:16,number:50,flags:$e},or=[ir,ir],rr={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(Yn);return 2!==n.length?or:[n[0],n[1]]}},sr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};(function(e){e["NORMAL"]="normal",e["BREAK_ALL"]="break-all",e["KEEP_ALL"]="keep-all"})(No||(No={}));for(var ar={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return No.BREAK_ALL;case"keep-all":return No.KEEP_ALL;case"normal":default:return No.NORMAL}}},ur={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(Hn(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},lr={name:"time",parse:function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},cr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Hn(t)?t.number:1}},dr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},hr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Qn).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(e){return 0!==e}))}},Ar={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],i=[];return t.forEach((function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:i.push(n.join(" ")),n.length=0;break}})),n.length&&i.push(n.join(" ")),i.map((function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"}))}},pr={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Hn(t))return t.number;if(Qn(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},gr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Qn).map((function(e){return e.value}))}},mr={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},vr=function(e,t){return 0!==(e&t)},_r={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},yr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var i=[],o=t.filter(Kn),r=0;r<o.length;r++){var s=o[r],a=o[r+1];if(20===s.type){var u=a&&Hn(a)?a.number:1;i.push({counter:s.value,increment:u})}}return i}},wr={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],i=t.filter(Kn),o=0;o<i.length;o++){var r=i[o],s=i[o+1];if(Qn(r)&&"none"!==r.value){var a=s&&Hn(s)?s.number:0;n.push({counter:r.value,reset:a})}}return n}},br={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Un).map((function(t){return lr.parse(e,t)}))}},Cr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var i=[],o=t.filter(Vn);if(o.length%2!==0)return null;for(var r=0;r<o.length;r+=2){var s=o[r].value,a=o[r+1].value;i.push({open:s,close:a})}return i}},Sr=function(e,t,n){if(!e)return"";var i=e[Math.min(t,e.length-1)];return i?n?i.open:i.close:""},Br={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Wn(t[0],"none")?[]:jn(t).map((function(t){for(var n={color:255,offsetX:Jn,offsetY:Jn,blur:Jn,spread:Jn,inset:!1},i=0,o=0;o<t.length;o++){var r=t[o];Wn(r,"inset")?n.inset=!0:qn(r)?(0===i?n.offsetX=r:1===i?n.offsetY=r:2===i?n.blur=r:n.spread=r,i++):n.color=ci.parse(e,r)}return n}))}},Er={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[0,1,2],i=[];return t.filter(Qn).forEach((function(e){switch(e.value){case"stroke":i.push(1);break;case"fill":i.push(0);break;case"markers":i.push(2);break}})),n.forEach((function(e){-1===i.indexOf(e)&&i.push(e)})),i}},xr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Lr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Un(t)?t.number:0}},Dr=function(){function e(e,t){var n,i;this.animationDuration=Ir(e,br,t.animationDuration),this.backgroundClip=Ir(e,wi,t.backgroundClip),this.backgroundColor=Ir(e,bi,t.backgroundColor),this.backgroundImage=Ir(e,Yi,t.backgroundImage),this.backgroundOrigin=Ir(e,Xi,t.backgroundOrigin),this.backgroundPosition=Ir(e,Ji,t.backgroundPosition),this.backgroundRepeat=Ir(e,Zi,t.backgroundRepeat),this.backgroundSize=Ir(e,to,t.backgroundSize),this.borderTopColor=Ir(e,oo,t.borderTopColor),this.borderRightColor=Ir(e,ro,t.borderRightColor),this.borderBottomColor=Ir(e,so,t.borderBottomColor),this.borderLeftColor=Ir(e,ao,t.borderLeftColor),this.borderTopLeftRadius=Ir(e,lo,t.borderTopLeftRadius),this.borderTopRightRadius=Ir(e,co,t.borderTopRightRadius),this.borderBottomRightRadius=Ir(e,ho,t.borderBottomRightRadius),this.borderBottomLeftRadius=Ir(e,Ao,t.borderBottomLeftRadius),this.borderTopStyle=Ir(e,fo,t.borderTopStyle),this.borderRightStyle=Ir(e,go,t.borderRightStyle),this.borderBottomStyle=Ir(e,mo,t.borderBottomStyle),this.borderLeftStyle=Ir(e,vo,t.borderLeftStyle),this.borderTopWidth=Ir(e,yo,t.borderTopWidth),this.borderRightWidth=Ir(e,wo,t.borderRightWidth),this.borderBottomWidth=Ir(e,bo,t.borderBottomWidth),this.borderLeftWidth=Ir(e,Co,t.borderLeftWidth),this.boxShadow=Ir(e,Br,t.boxShadow),this.color=Ir(e,So,t.color),this.direction=Ir(e,Bo,t.direction),this.display=Ir(e,Eo,t.display),this.float=Ir(e,Lo,t.cssFloat),this.fontFamily=Ir(e,Ar,t.fontFamily),this.fontSize=Ir(e,pr,t.fontSize),this.fontStyle=Ir(e,mr,t.fontStyle),this.fontVariant=Ir(e,gr,t.fontVariant),this.fontWeight=Ir(e,fr,t.fontWeight),this.letterSpacing=Ir(e,Do,t.letterSpacing),this.lineBreak=Ir(e,ko,t.lineBreak),this.lineHeight=Ir(e,Io,t.lineHeight),this.listStyleImage=Ir(e,Mo,t.listStyleImage),this.listStylePosition=Ir(e,Oo,t.listStylePosition),this.listStyleType=Ir(e,To,t.listStyleType),this.marginTop=Ir(e,Ro,t.marginTop),this.marginRight=Ir(e,Uo,t.marginRight),this.marginBottom=Ir(e,Ho,t.marginBottom),this.marginLeft=Ir(e,Qo,t.marginLeft),this.opacity=Ir(e,cr,t.opacity);var o=Ir(e,Vo,t.overflow);this.overflowX=o[0],this.overflowY=o[o.length>1?1:0],this.overflowWrap=Ir(e,Wo,t.overflowWrap),this.paddingTop=Ir(e,zo,t.paddingTop),this.paddingRight=Ir(e,jo,t.paddingRight),this.paddingBottom=Ir(e,Go,t.paddingBottom),this.paddingLeft=Ir(e,qo,t.paddingLeft),this.paintOrder=Ir(e,Er,t.paintOrder),this.position=Ir(e,Xo,t.position),this.textAlign=Ir(e,Yo,t.textAlign),this.textDecorationColor=Ir(e,dr,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=Ir(e,hr,null!==(i=t.textDecorationLine)&&void 0!==i?i:t.textDecoration),this.textShadow=Ir(e,Jo,t.textShadow),this.textTransform=Ir(e,Zo,t.textTransform),this.transform=Ir(e,$o,t.transform),this.transformOrigin=Ir(e,rr,t.transformOrigin),this.visibility=Ir(e,sr,t.visibility),this.webkitTextStrokeColor=Ir(e,xr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ir(e,Lr,t.webkitTextStrokeWidth),this.wordBreak=Ir(e,ar,t.wordBreak),this.zIndex=Ir(e,ur,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return di(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return vr(this.display,4)||vr(this.display,33554432)||vr(this.display,268435456)||vr(this.display,536870912)||vr(this.display,67108864)||vr(this.display,134217728)},e}(),Nr=function(){function e(e,t){this.content=Ir(e,_r,t.content),this.quotes=Ir(e,Cr,t.quotes)}return e}(),kr=function(){function e(e,t){this.counterIncrement=Ir(e,yr,t.counterIncrement),this.counterReset=Ir(e,wr,t.counterReset)}return e}(),Ir=function(e,t,n){var i=new Pn,o=null!==n&&"undefined"!==typeof n?n.toString():t.initialValue;i.write(o);var r=new Rn(i.read());switch(t.type){case 2:var s=r.parseComponentValue();return t.parse(e,Qn(s)?s.value:t.initialValue);case 0:return t.parse(e,r.parseComponentValue());case 1:return t.parse(e,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(t.format){case"angle":return si.parse(e,r.parseComponentValue());case"color":return ci.parse(e,r.parseComponentValue());case"image":return zi.parse(e,r.parseComponentValue());case"length":var a=r.parseComponentValue();return qn(a)?a:Jn;case"length-percentage":var u=r.parseComponentValue();return Yn(u)?u:Jn;case"time":return lr.parse(e,r.parseComponentValue())}break}},Fr="data-html2canvas-debug",Mr=function(e){var t=e.getAttribute(Fr);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Or=function(e,t){var n=Mr(e);return 1===n||t===n},Tr=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Or(t,3),this.styles=new Dr(e,window.getComputedStyle(t,null)),Na(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=a(this.context,t),Or(t,4)&&(this.flags|=16)}return e}(),Pr="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Rr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ur="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Hr=0;Hr<Rr.length;Hr++)Ur[Rr.charCodeAt(Hr)]=Hr;for(var Qr=function(e){var t,n,i,o,r,s=.75*e.length,a=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<a;t+=4)n=Ur[e.charCodeAt(t)],i=Ur[e.charCodeAt(t+1)],o=Ur[e.charCodeAt(t+2)],r=Ur[e.charCodeAt(t+3)],c[u++]=n<<2|i>>4,c[u++]=(15&i)<<4|o>>2,c[u++]=(3&o)<<6|63&r;return l},Vr=function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n.push(e[i+1]<<8|e[i]);return n},Wr=function(e){for(var t=e.length,n=[],i=0;i<t;i+=4)n.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return n},Kr=5,zr=11,jr=2,Gr=zr-Kr,qr=65536>>Kr,Yr=1<<Kr,Xr=Yr-1,Jr=1024>>Kr,Zr=qr+Jr,$r=Zr,es=32,ts=$r+es,ns=65536>>zr,is=1<<Gr,os=is-1,rs=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},ss=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},as=function(e,t){var n=Qr(e),i=Array.isArray(n)?Wr(n):new Uint32Array(n),o=Array.isArray(n)?Vr(n):new Uint16Array(n),r=24,s=rs(o,r/2,i[4]/2),a=2===i[5]?rs(o,(r+i[4])/2):ss(i,Math.ceil((r+i[4])/4));return new us(i[0],i[1],i[2],i[3],s,a)},us=function(){function e(e,t,n,i,o,r){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=o,this.data=r}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Kr],t=(t<<jr)+(e&Xr),this.data[t];if(e<=65535)return t=this.index[qr+(e-55296>>Kr)],t=(t<<jr)+(e&Xr),this.data[t];if(e<this.highStart)return t=ts-ns+(e>>zr),t=this.index[t],t+=e>>Kr&os,t=this.index[t],t=(t<<jr)+(e&Xr),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),ls="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cs="undefined"===typeof Uint8Array?[]:new Uint8Array(256),ds=0;ds<ls.length;ds++)cs[ls.charCodeAt(ds)]=ds;var hs,As=1,ps=2,fs=3,gs=4,ms=5,vs=7,_s=8,ys=9,ws=10,bs=11,Cs=12,Ss=13,Bs=14,Es=15,xs=function(e){var t=[],n=0,i=e.length;while(n<i){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<i){var r=e.charCodeAt(n++);56320===(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t},Ls=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";var i=[],o=-1,r="";while(++o<n){var s=e[o];s<=65535?i.push(s):(s-=65536,i.push(55296+(s>>10),s%1024+56320)),(o+1===n||i.length>16384)&&(r+=String.fromCharCode.apply(String,i),i.length=0)}return r},Ds=as(Pr),Ns="×",ks="÷",Is=function(e){return Ds.get(e)},Fs=function(e,t,n){var i=n-2,o=t[i],r=t[n-1],s=t[n];if(r===ps&&s===fs)return Ns;if(r===ps||r===fs||r===gs)return ks;if(s===ps||s===fs||s===gs)return ks;if(r===_s&&-1!==[_s,ys,bs,Cs].indexOf(s))return Ns;if((r===bs||r===ys)&&(s===ys||s===ws))return Ns;if((r===Cs||r===ws)&&s===ws)return Ns;if(s===Ss||s===ms)return Ns;if(s===vs)return Ns;if(r===As)return Ns;if(r===Ss&&s===Bs){while(o===ms)o=t[--i];if(o===Bs)return Ns}if(r===Es&&s===Es){var a=0;while(o===Es)a++,o=t[--i];if(a%2===0)return Ns}return ks},Ms=function(e){var t=xs(e),n=t.length,i=0,o=0,r=t.map(Is);return{next:function(){if(i>=n)return{done:!0,value:null};var e=Ns;while(i<n&&(e=Fs(t,r,++i))===Ns);if(e!==Ns||i===n){var s=Ls.apply(null,t.slice(o,i));return o=i,{value:s,done:!1}}return{done:!0,value:null}}}},Os=function(e){var t,n=Ms(e),i=[];while(!(t=n.next()).done)t.value&&i.push(t.value.slice());return i},Ts=function(e){var t=123;if(e.createRange){var n=e.createRange();if(n.getBoundingClientRect){var i=e.createElement("boundtest");i.style.height=t+"px",i.style.display="block",e.body.appendChild(i),n.selectNode(i);var o=n.getBoundingClientRect(),r=Math.round(o.height);if(e.body.removeChild(i),r===t)return!0}}return!1},Ps=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"===typeof"".repeat?"&#128104;".repeat(10):"";var i=t.firstChild,o=l(i.data).map((function(e){return c(e)})),r=0,s={},a=o.every((function(e,t){n.setStart(i,r),n.setEnd(i,r+e.length);var o=n.getBoundingClientRect();r+=e.length;var a=o.x>s.x||o.y>s.y;return s=o,0===t||a}));return e.body.removeChild(t),a},Rs=function(){return"undefined"!==typeof(new Image).crossOrigin},Us=function(){return"string"===typeof(new XMLHttpRequest).responseType},Hs=function(e){var t=new Image,n=e.createElement("canvas"),i=n.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(t,0,0),n.toDataURL()}catch(zt){return!1}return!0},Qs=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Vs=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var i=t.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,n,n);var o=new Image,r=t.toDataURL();o.src=r;var s=Ws(n,n,0,0,o);return i.fillStyle="red",i.fillRect(0,0,n,n),Ks(s).then((function(t){i.drawImage(t,0,0);var o=i.getImageData(0,0,n,n).data;i.fillStyle="red",i.fillRect(0,0,n,n);var s=e.createElement("div");return s.style.backgroundImage="url("+r+")",s.style.height=n+"px",Qs(o)?Ks(Ws(n,n,0,0,s)):Promise.reject(!1)})).then((function(e){return i.drawImage(e,0,0),Qs(i.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},Ws=function(e,t,n,i,o){var r="http://www.w3.org/2000/svg",s=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",i.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(o),s},Ks=function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){return t(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},zs={get SUPPORT_RANGE_BOUNDS(){var e=Ts(document);return Object.defineProperty(zs,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=zs.SUPPORT_RANGE_BOUNDS&&Ps(document);return Object.defineProperty(zs,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Hs(document);return Object.defineProperty(zs,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"===typeof Array.from&&"function"===typeof window.fetch?Vs(document):Promise.resolve(!1);return Object.defineProperty(zs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=Rs();return Object.defineProperty(zs,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Us();return Object.defineProperty(zs,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(zs,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(zs,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},js=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Gs=function(e,t,n,i){var o=Zs(t,n),r=[],a=0;return o.forEach((function(t){if(n.textDecorationLine.length||t.trim().length>0)if(zs.SUPPORT_RANGE_BOUNDS){var o=Ys(i,a,t.length).getClientRects();if(o.length>1){var u=Xs(t),l=0;u.forEach((function(t){r.push(new js(t,s.fromDOMRectList(e,Ys(i,l+a,t.length).getClientRects()))),l+=t.length}))}else r.push(new js(t,s.fromDOMRectList(e,o)))}else{var c=i.splitText(t.length);r.push(new js(t,qs(e,i))),i=c}else zs.SUPPORT_RANGE_BOUNDS||(i=i.splitText(t.length));a+=t.length})),r},qs=function(e,t){var n=t.ownerDocument;if(n){var i=n.createElement("html2canvaswrapper");i.appendChild(t.cloneNode(!0));var o=t.parentNode;if(o){o.replaceChild(i,t);var r=a(e,i);return i.firstChild&&o.replaceChild(i.firstChild,i),r}}return s.EMPTY},Ys=function(e,t,n){var i=e.ownerDocument;if(!i)throw new Error("Node has no owner document");var o=i.createRange();return o.setStart(e,t),o.setEnd(e,t+n),o},Xs=function(e){if(zs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return Os(e)},Js=function(e,t){if(zs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map((function(e){return e.segment}))}return ea(e,t)},Zs=function(e,t){return 0!==t.letterSpacing?Xs(e):Js(e,t)},$s=[32,160,4961,65792,65793,4153,4241],ea=function(e,t){var n,i=Xe(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),o=[],r=function(){if(n.value){var e=n.value.slice(),t=l(e),i="";t.forEach((function(e){-1===$s.indexOf(e)?i+=c(e):(i.length&&o.push(i),o.push(c(e)),i="")})),i.length&&o.push(i)}};while(!(n=i.next()).done)r();return o},ta=function(){function e(e,t,n){this.text=na(t.data,n.textTransform),this.textBounds=Gs(e,this.text,n,t)}return e}(),na=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(ia,oa);case 2:return e.toUpperCase();default:return e}},ia=/(^|\s|:|-|\(|\))([a-z])/g,oa=function(e,t,n){return e.length>0?t+n.toUpperCase():e},ra=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return t(n,e),n}(Tr),sa=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return t(n,e),n}(Tr),aa=function(e){function n(t,n){var i=e.call(this,t,n)||this,o=new XMLSerializer,r=a(t,n);return n.setAttribute("width",r.width+"px"),n.setAttribute("height",r.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(o.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return t(n,e),n}(Tr),ua=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.value=n.value,i}return t(n,e),n}(Tr),la=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.start=n.start,i.reversed="boolean"===typeof n.reversed&&!0===n.reversed,i}return t(n,e),n}(Tr),ca=[{type:15,flags:0,unit:"px",number:3}],da=[{type:16,flags:0,number:50}],ha=function(e){return e.width>e.height?new s(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new s(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Aa=function(e){var t=e.type===ga?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t},pa="checkbox",fa="radio",ga="password",ma=707406591,va=function(e){function n(t,n){var i=e.call(this,t,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=Aa(n),i.type!==pa&&i.type!==fa||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=ha(i.bounds)),i.type){case pa:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=ca;break;case fa:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=da;break}return i}return t(n,e),n}(Tr),_a=function(e){function n(t,n){var i=e.call(this,t,n)||this,o=n.options[n.selectedIndex||0];return i.value=o&&o.text||"",i}return t(n,e),n}(Tr),ya=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.value=n.value,i}return t(n,e),n}(Tr),wa=function(e){function n(t,n){var i=e.call(this,t,n)||this;i.src=n.src,i.width=parseInt(n.width,10)||0,i.height=parseInt(n.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){i.tree=Ba(t,n.contentWindow.document.documentElement);var o=n.contentWindow.document.documentElement?_i(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):yi.TRANSPARENT,r=n.contentWindow.document.body?_i(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):yi.TRANSPARENT;i.backgroundColor=di(o)?di(r)?i.styles.backgroundColor:r:o}}catch(zt){}return i}return t(n,e),n}(Tr),ba=["OL","UL","MENU"],Ca=function(e,t,n,i){for(var o=t.firstChild,r=void 0;o;o=r)if(r=o.nextSibling,La(o)&&o.data.trim().length>0)n.textNodes.push(new ta(e,o,n.styles));else if(Da(o))if(ja(o)&&o.assignedNodes)o.assignedNodes().forEach((function(t){return Ca(e,t,n,i)}));else{var s=Sa(e,o);s.styles.isVisible()&&(Ea(o,s,i)?s.flags|=4:xa(s.styles)&&(s.flags|=2),-1!==ba.indexOf(o.tagName)&&(s.flags|=8),n.elements.push(s),o.slot,o.shadowRoot?Ca(e,o.shadowRoot,s,i):Ka(o)||Ta(o)||za(o)||Ca(e,o,s,i))}},Sa=function(e,t){return Ha(t)?new ra(e,t):Ra(t)?new sa(e,t):Ta(t)?new aa(e,t):Ia(t)?new ua(e,t):Fa(t)?new la(e,t):Ma(t)?new va(e,t):za(t)?new _a(e,t):Ka(t)?new ya(e,t):Qa(t)?new wa(e,t):new Tr(e,t)},Ba=function(e,t){var n=Sa(e,t);return n.flags|=4,Ca(e,t,n,n),n},Ea=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Pa(e)&&n.styles.isTransparent()},xa=function(e){return e.isPositioned()||e.isFloating()},La=function(e){return e.nodeType===Node.TEXT_NODE},Da=function(e){return e.nodeType===Node.ELEMENT_NODE},Na=function(e){return Da(e)&&"undefined"!==typeof e.style&&!ka(e)},ka=function(e){return"object"===typeof e.className},Ia=function(e){return"LI"===e.tagName},Fa=function(e){return"OL"===e.tagName},Ma=function(e){return"INPUT"===e.tagName},Oa=function(e){return"HTML"===e.tagName},Ta=function(e){return"svg"===e.tagName},Pa=function(e){return"BODY"===e.tagName},Ra=function(e){return"CANVAS"===e.tagName},Ua=function(e){return"VIDEO"===e.tagName},Ha=function(e){return"IMG"===e.tagName},Qa=function(e){return"IFRAME"===e.tagName},Va=function(e){return"STYLE"===e.tagName},Wa=function(e){return"SCRIPT"===e.tagName},Ka=function(e){return"TEXTAREA"===e.tagName},za=function(e){return"SELECT"===e.tagName},ja=function(e){return"SLOT"===e.tagName},Ga=function(e){return e.tagName.indexOf("-")>0},qa=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,i=e.counterReset,o=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(o=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)}));var r=[];return o&&i.forEach((function(e){var n=t.counters[e.counter];r.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),r},e}(),Ya={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Xa={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ja={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Za={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},$a=function(e,t,n,i,o,r){return e<t||e>n?hu(e,o,r.length>0):i.integers.reduce((function(t,n,o){while(e>=n)e-=n,t+=i.values[o];return t}),"")+r},eu=function(e,t,n,i){var o="";do{n||e--,o=i(e)+o,e/=t}while(e*t>=t);return o},tu=function(e,t,n,i,o){var r=n-t+1;return(e<0?"-":"")+(eu(Math.abs(e),r,i,(function(e){return c(Math.floor(e%r)+t)}))+o)},nu=function(e,t,n){void 0===n&&(n=". ");var i=t.length;return eu(Math.abs(e),i,!1,(function(e){return t[Math.floor(e%i)]}))+n},iu=1,ou=2,ru=4,su=8,au=function(e,t,n,i,o,r){if(e<-9999||e>9999)return hu(e,4,o.length>0);var s=Math.abs(e),a=o;if(0===s)return t[0]+a;for(var u=0;s>0&&u<=4;u++){var l=s%10;0===l&&vr(r,iu)&&""!==a?a=t[l]+a:l>1||1===l&&0===u||1===l&&1===u&&vr(r,ou)||1===l&&1===u&&vr(r,ru)&&e>100||1===l&&u>1&&vr(r,su)?a=t[l]+(u>0?n[u-1]:"")+a:1===l&&u>0&&(a=n[u-1]+a),s=Math.floor(s/10)}return(e<0?i:"")+a},uu="十百千萬",lu="拾佰仟萬",cu="マイナス",du="마이너스",hu=function(e,t,n){var i=n?". ":"",o=n?"、":"",r=n?", ":"",s=n?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=tu(e,48,57,!0,i);return a.length<4?"0"+a:a;case 4:return nu(e,"〇一二三四五六七八九",o);case 6:return $a(e,1,3999,Ya,3,i).toLowerCase();case 7:return $a(e,1,3999,Ya,3,i);case 8:return tu(e,945,969,!1,i);case 9:return tu(e,97,122,!1,i);case 10:return tu(e,65,90,!1,i);case 11:return tu(e,1632,1641,!0,i);case 12:case 49:return $a(e,1,9999,Xa,3,i);case 35:return $a(e,1,9999,Xa,3,i).toLowerCase();case 13:return tu(e,2534,2543,!0,i);case 14:case 30:return tu(e,6112,6121,!0,i);case 15:return nu(e,"子丑寅卯辰巳午未申酉戌亥",o);case 16:return nu(e,"甲乙丙丁戊己庚辛壬癸",o);case 17:case 48:return au(e,"零一二三四五六七八九",uu,"負",o,ou|ru|su);case 47:return au(e,"零壹貳參肆伍陸柒捌玖",lu,"負",o,iu|ou|ru|su);case 42:return au(e,"零一二三四五六七八九",uu,"负",o,ou|ru|su);case 41:return au(e,"零壹贰叁肆伍陆柒捌玖",lu,"负",o,iu|ou|ru|su);case 26:return au(e,"〇一二三四五六七八九","十百千万",cu,o,0);case 25:return au(e,"零壱弐参四伍六七八九","拾百千万",cu,o,iu|ou|ru);case 31:return au(e,"영일이삼사오육칠팔구","십백천만",du,r,iu|ou|ru);case 33:return au(e,"零一二三四五六七八九","十百千萬",du,r,0);case 32:return au(e,"零壹貳參四五六七八九","拾百千",du,r,iu|ou|ru);case 18:return tu(e,2406,2415,!0,i);case 20:return $a(e,1,19999,Za,3,i);case 21:return tu(e,2790,2799,!0,i);case 22:return tu(e,2662,2671,!0,i);case 22:return $a(e,1,10999,Ja,3,i);case 23:return nu(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return nu(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return tu(e,3302,3311,!0,i);case 28:return nu(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",o);case 29:return nu(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",o);case 34:return tu(e,3792,3801,!0,i);case 37:return tu(e,6160,6169,!0,i);case 38:return tu(e,4160,4169,!0,i);case 39:return tu(e,2918,2927,!0,i);case 40:return tu(e,1776,1785,!0,i);case 43:return tu(e,3046,3055,!0,i);case 44:return tu(e,3174,3183,!0,i);case 45:return tu(e,3664,3673,!0,i);case 46:return tu(e,3872,3881,!0,i);case 3:default:return tu(e,48,57,!0,i)}},Au="data-html2canvas-ignore",pu=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new qa,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,r=gu(e,t);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,u=r.contentWindow,l=u.document,c=_u(r).then((function(){return i(n,void 0,void 0,(function(){var e,n;return o(this,(function(i){switch(i.label){case 0:return this.scrolledElements.forEach(Su),u&&(u.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||u.scrollY===t.top&&u.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-t.left,u.scrollY-t.top,0,0))),e=this.options.onclone,n=this.clonedReferenceElement,"undefined"===typeof n?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:i.sent(),i.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,vu(l)]:[3,4];case 3:i.sent(),i.label=4;case 4:return"function"===typeof e?[2,Promise.resolve().then((function(){return e(l,n)})).then((function(){return r}))]:[2,r]}}))}))}));return l.open(),l.write(bu(document.doctype)+"<html></html>"),Cu(this.referenceElement.ownerDocument,s,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(e){if(Or(e,2),Ra(e))return this.createCanvasClone(e);if(Ua(e))return this.createVideoClone(e);if(Va(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Ha(t)&&(Ha(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Ga(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return wu(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"===typeof t.cssText?e+t.cssText:e}),""),i=e.cloneNode(!1);return i.textContent=n,i}}catch(zt){if(this.context.logger.error("Unable to access cssRules property",zt),"SecurityError"!==zt.name)throw zt}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(zt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var o=e.getContext("2d"),r=i.getContext("2d");if(r)if(!this.options.allowTaint&&o)r.putImageData(o.getImageData(0,0,e.width,e.height),0,0);else{var s=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(s){var a=s.getContextAttributes();!1===(null===a||void 0===a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}r.drawImage(e,0,0)}return i}catch(zt){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(zt){this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},e.prototype.appendChildNode=function(e,t,n){Da(t)&&(Wa(t)||t.hasAttribute(Au)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&Da(t)&&Va(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var i=this,o=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;o;o=o.nextSibling)if(Da(o)&&ja(o)&&"function"===typeof o.assignedNodes){var r=o.assignedNodes();r.length&&r.forEach((function(e){return i.appendChildNode(t,e,n)}))}else this.appendChildNode(t,o,n)},e.prototype.cloneNode=function(e,t){if(La(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&Da(e)&&(Na(e)||ka(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var o=n.getComputedStyle(e),r=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&Na(i)&&(this.clonedReferenceElement=i),Pa(i)&&Nu(i);var a=this.counters.parse(new kr(this.context,o)),u=this.resolvePseudoContent(e,i,r,hs.BEFORE);Ga(e)&&(t=!0),Ua(e)||this.cloneChildNodes(e,i,t),u&&i.insertBefore(u,i.firstChild);var l=this.resolvePseudoContent(e,i,s,hs.AFTER);return l&&i.appendChild(l),this.counters.pop(a),(o&&(this.options.copyStyles||ka(e))&&!Qa(e)||t)&&wu(o,i),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(Ka(e)||za(e))&&(Ka(i)||za(i))&&(i.value=e.value),i}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,i){var o=this;if(n){var r=n.content,s=t.ownerDocument;if(s&&r&&"none"!==r&&"-moz-alt-content"!==r&&"none"!==n.display){this.counters.parse(new kr(this.context,n));var a=new Nr(this.context,n),u=s.createElement("html2canvaspseudoelement");wu(n,u),a.content.forEach((function(t){if(0===t.type)u.appendChild(s.createTextNode(t.value));else if(22===t.type){var n=s.createElement("img");n.src=t.value,n.style.opacity="1",u.appendChild(n)}else if(18===t.type){if("attr"===t.name){var i=t.values.filter(Qn);i.length&&u.appendChild(s.createTextNode(e.getAttribute(i[0].value)||""))}else if("counter"===t.name){var r=t.values.filter(zn),l=r[0],c=r[1];if(l&&Qn(l)){var d=o.counters.getCounterValue(l.value),h=c&&Qn(c)?To.parse(o.context,c.value):3;u.appendChild(s.createTextNode(hu(d,h,!1)))}}else if("counters"===t.name){var A=t.values.filter(zn),p=(l=A[0],A[1]);c=A[2];if(l&&Qn(l)){var f=o.counters.getCounterValues(l.value),g=c&&Qn(c)?To.parse(o.context,c.value):3,m=p&&0===p.type?p.value:"",v=f.map((function(e){return hu(e,g,!1)})).join(m);u.appendChild(s.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":u.appendChild(s.createTextNode(Sr(a.quotes,o.quoteDepth++,!0)));break;case"close-quote":u.appendChild(s.createTextNode(Sr(a.quotes,--o.quoteDepth,!1)));break;default:u.appendChild(s.createTextNode(t.value))}})),u.className=xu+" "+Lu;var l=i===hs.BEFORE?" "+xu:" "+Lu;return ka(t)?t.className.baseValue+=l:t.className+=l,u}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();(function(e){e[e["BEFORE"]=0]="BEFORE",e[e["AFTER"]=1]="AFTER"})(hs||(hs={}));var fu,gu=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(Au,"true"),e.body.appendChild(n),n},mu=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},vu=function(e){return Promise.all([].slice.call(e.images,0).map(mu))},_u=function(e){return new Promise((function(t,n){var i=e.contentWindow;if(!i)return n("No window assigned for iframe");var o=i.document;i.onload=e.onload=function(){i.onload=e.onload=null;var n=setInterval((function(){o.body.childNodes.length>0&&"complete"===o.readyState&&(clearInterval(n),t(e))}),50)}}))},yu=["all","d","content"],wu=function(e,t){for(var n=e.length-1;n>=0;n--){var i=e.item(n);-1===yu.indexOf(i)&&t.style.setProperty(i,e.getPropertyValue(i))}return t},bu=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},Cu=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},Su=function(e){var t=e[0],n=e[1],i=e[2];t.scrollLeft=n,t.scrollTop=i},Bu=":before",Eu=":after",xu="___html2canvas___pseudoelement_before",Lu="___html2canvas___pseudoelement_after",Du='{\n content: "" !important;\n display: none !important;\n}',Nu=function(e){ku(e,"."+xu+Bu+Du+"\n ."+Lu+Eu+Du)},ku=function(e,t){var n=e.ownerDocument;if(n){var i=n.createElement("style");i.textContent=t,e.appendChild(i)}},Iu=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),Fu=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Hu(e)||Pu(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return i(this,void 0,void 0,(function(){var t,n,i,r,s=this;return o(this,(function(o){switch(o.label){case 0:return t=Iu.isSameOrigin(e),n=!Ru(e)&&!0===this._options.useCORS&&zs.SUPPORT_CORS_IMAGES&&!t,i=!Ru(e)&&!t&&!Hu(e)&&"string"===typeof this._options.proxy&&zs.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Ru(e)||Hu(e)||i||n?(r=e,i?[4,this.proxy(r)]:[3,2]):[2];case 1:r=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var i=new Image;i.onload=function(){return e(i)},i.onerror=t,(Uu(r)||n)&&(i.crossOrigin="anonymous"),i.src=r,!0===i.complete&&setTimeout((function(){return e(i)}),500),s._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,o.sent()]}}))}))},e.prototype.has=function(e){return"undefined"!==typeof this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise((function(o,r){var s=zs.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===s)o(a.response);else{var e=new FileReader;e.addEventListener("load",(function(){return o(e.result)}),!1),e.addEventListener("error",(function(e){return r(e)}),!1),e.readAsDataURL(a.response)}else r("Failed to proxy resource "+i+" with status code "+a.status)},a.onerror=r;var u=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+u+"url="+encodeURIComponent(e)+"&responseType="+s),"text"!==s&&a instanceof XMLHttpRequest&&(a.responseType=s),t._options.imageTimeout){var l=t._options.imageTimeout;a.timeout=l,a.ontimeout=function(){return r("Timed out ("+l+"ms) proxying "+i)}}a.send()}))},e}(),Mu=/^data:image\/svg\+xml/i,Ou=/^data:image\/.*;base64,/i,Tu=/^data:image\/.*/i,Pu=function(e){return zs.SUPPORT_SVG_DRAWING||!Qu(e)},Ru=function(e){return Tu.test(e)},Uu=function(e){return Ou.test(e)},Hu=function(e){return"blob"===e.substr(0,4)},Qu=function(e){return"svg"===e.substr(-3).toLowerCase()||Mu.test(e)},Vu=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Wu=function(e,t,n){return new Vu(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Ku=function(){function e(e,t,n,i){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=i}return e.prototype.subdivide=function(t,n){var i=Wu(this.start,this.startControl,t),o=Wu(this.startControl,this.endControl,t),r=Wu(this.endControl,this.end,t),s=Wu(i,o,t),a=Wu(o,r,t),u=Wu(s,a,t);return n?new e(this.start,i,s,u):new e(u,a,r,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),zu=function(e){return 1===e.type},ju=function(){function e(e){var t=e.styles,n=e.bounds,i=ei(t.borderTopLeftRadius,n.width,n.height),o=i[0],r=i[1],s=ei(t.borderTopRightRadius,n.width,n.height),a=s[0],u=s[1],l=ei(t.borderBottomRightRadius,n.width,n.height),c=l[0],d=l[1],h=ei(t.borderBottomLeftRadius,n.width,n.height),A=h[0],p=h[1],f=[];f.push((o+a)/n.width),f.push((A+c)/n.width),f.push((r+p)/n.height),f.push((u+d)/n.height);var g=Math.max.apply(Math,f);g>1&&(o/=g,r/=g,a/=g,u/=g,c/=g,d/=g,A/=g,p/=g);var m=n.width-a,v=n.height-d,_=n.width-c,y=n.height-p,w=t.borderTopWidth,b=t.borderRightWidth,C=t.borderBottomWidth,S=t.borderLeftWidth,B=ti(t.paddingTop,e.bounds.width),E=ti(t.paddingRight,e.bounds.width),x=ti(t.paddingBottom,e.bounds.width),L=ti(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||r>0?Gu(n.left+S/3,n.top+w/3,o-S/3,r-w/3,fu.TOP_LEFT):new Vu(n.left+S/3,n.top+w/3),this.topRightBorderDoubleOuterBox=o>0||r>0?Gu(n.left+m,n.top+w/3,a-b/3,u-w/3,fu.TOP_RIGHT):new Vu(n.left+n.width-b/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=c>0||d>0?Gu(n.left+_,n.top+v,c-b/3,d-C/3,fu.BOTTOM_RIGHT):new Vu(n.left+n.width-b/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=A>0||p>0?Gu(n.left+S/3,n.top+y,A-S/3,p-C/3,fu.BOTTOM_LEFT):new Vu(n.left+S/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=o>0||r>0?Gu(n.left+2*S/3,n.top+2*w/3,o-2*S/3,r-2*w/3,fu.TOP_LEFT):new Vu(n.left+2*S/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=o>0||r>0?Gu(n.left+m,n.top+2*w/3,a-2*b/3,u-2*w/3,fu.TOP_RIGHT):new Vu(n.left+n.width-2*b/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=c>0||d>0?Gu(n.left+_,n.top+v,c-2*b/3,d-2*C/3,fu.BOTTOM_RIGHT):new Vu(n.left+n.width-2*b/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=A>0||p>0?Gu(n.left+2*S/3,n.top+y,A-2*S/3,p-2*C/3,fu.BOTTOM_LEFT):new Vu(n.left+2*S/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=o>0||r>0?Gu(n.left+S/2,n.top+w/2,o-S/2,r-w/2,fu.TOP_LEFT):new Vu(n.left+S/2,n.top+w/2),this.topRightBorderStroke=o>0||r>0?Gu(n.left+m,n.top+w/2,a-b/2,u-w/2,fu.TOP_RIGHT):new Vu(n.left+n.width-b/2,n.top+w/2),this.bottomRightBorderStroke=c>0||d>0?Gu(n.left+_,n.top+v,c-b/2,d-C/2,fu.BOTTOM_RIGHT):new Vu(n.left+n.width-b/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=A>0||p>0?Gu(n.left+S/2,n.top+y,A-S/2,p-C/2,fu.BOTTOM_LEFT):new Vu(n.left+S/2,n.top+n.height-C/2),this.topLeftBorderBox=o>0||r>0?Gu(n.left,n.top,o,r,fu.TOP_LEFT):new Vu(n.left,n.top),this.topRightBorderBox=a>0||u>0?Gu(n.left+m,n.top,a,u,fu.TOP_RIGHT):new Vu(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||d>0?Gu(n.left+_,n.top+v,c,d,fu.BOTTOM_RIGHT):new Vu(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=A>0||p>0?Gu(n.left,n.top+y,A,p,fu.BOTTOM_LEFT):new Vu(n.left,n.top+n.height),this.topLeftPaddingBox=o>0||r>0?Gu(n.left+S,n.top+w,Math.max(0,o-S),Math.max(0,r-w),fu.TOP_LEFT):new Vu(n.left+S,n.top+w),this.topRightPaddingBox=a>0||u>0?Gu(n.left+Math.min(m,n.width-b),n.top+w,m>n.width+b?0:Math.max(0,a-b),Math.max(0,u-w),fu.TOP_RIGHT):new Vu(n.left+n.width-b,n.top+w),this.bottomRightPaddingBox=c>0||d>0?Gu(n.left+Math.min(_,n.width-S),n.top+Math.min(v,n.height-C),Math.max(0,c-b),Math.max(0,d-C),fu.BOTTOM_RIGHT):new Vu(n.left+n.width-b,n.top+n.height-C),this.bottomLeftPaddingBox=A>0||p>0?Gu(n.left+S,n.top+Math.min(y,n.height-C),Math.max(0,A-S),Math.max(0,p-C),fu.BOTTOM_LEFT):new Vu(n.left+S,n.top+n.height-C),this.topLeftContentBox=o>0||r>0?Gu(n.left+S+L,n.top+w+B,Math.max(0,o-(S+L)),Math.max(0,r-(w+B)),fu.TOP_LEFT):new Vu(n.left+S+L,n.top+w+B),this.topRightContentBox=a>0||u>0?Gu(n.left+Math.min(m,n.width+S+L),n.top+w+B,m>n.width+S+L?0:a-S+L,u-(w+B),fu.TOP_RIGHT):new Vu(n.left+n.width-(b+E),n.top+w+B),this.bottomRightContentBox=c>0||d>0?Gu(n.left+Math.min(_,n.width-(S+L)),n.top+Math.min(v,n.height+w+B),Math.max(0,c-(b+E)),d-(C+x),fu.BOTTOM_RIGHT):new Vu(n.left+n.width-(b+E),n.top+n.height-(C+x)),this.bottomLeftContentBox=A>0||p>0?Gu(n.left+S+L,n.top+y,Math.max(0,A-(S+L)),p-(C+x),fu.BOTTOM_LEFT):new Vu(n.left+S+L,n.top+n.height-(C+x))}return e}();(function(e){e[e["TOP_LEFT"]=0]="TOP_LEFT",e[e["TOP_RIGHT"]=1]="TOP_RIGHT",e[e["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",e[e["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(fu||(fu={}));var Gu=function(e,t,n,i,o){var r=(Math.sqrt(2)-1)/3*4,s=n*r,a=i*r,u=e+n,l=t+i;switch(o){case fu.TOP_LEFT:return new Ku(new Vu(e,l),new Vu(e,l-a),new Vu(u-s,t),new Vu(u,t));case fu.TOP_RIGHT:return new Ku(new Vu(e,t),new Vu(e+s,t),new Vu(u,l-a),new Vu(u,l));case fu.BOTTOM_RIGHT:return new Ku(new Vu(u,t),new Vu(u,t+a),new Vu(e+s,l),new Vu(e,l));case fu.BOTTOM_LEFT:default:return new Ku(new Vu(u,l),new Vu(u-s,l),new Vu(e,t+a),new Vu(e,t))}},qu=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Yu=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Xu=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ju=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),Zu=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),$u=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),el=function(e){return 0===e.type},tl=function(e){return 1===e.type},nl=function(e){return 2===e.type},il=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},ol=function(e,t,n,i,o){return e.map((function(e,r){switch(r){case 0:return e.add(t,n);case 1:return e.add(t+i,n);case 2:return e.add(t+i,n+o);case 3:return e.add(t,n+o)}return e}))},rl=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),sl=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new ju(this.container),this.container.styles.opacity<1&&this.effects.push(new $u(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,o=this.container.styles.transform;this.effects.push(new Ju(n,i,o))}if(0!==this.container.styles.overflowX){var r=qu(this.curves),s=Xu(this.curves);il(r,s)?this.effects.push(new Zu(r,6)):(this.effects.push(new Zu(r,2)),this.effects.push(new Zu(s,4)))}}return e.prototype.getEffects=function(e){var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,i=this.effects.slice(0);while(n){var o=n.effects.filter((function(e){return!tl(e)}));if(t||0!==n.container.styles.position||!n.parent){if(i.unshift.apply(i,o),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var r=qu(n.curves),s=Xu(n.curves);il(r,s)||i.unshift(new Zu(s,6))}}else i.unshift.apply(i,o);n=n.parent}return i.filter((function(t){return vr(t.target,e)}))},e}(),al=function(e,t,n,i){e.container.elements.forEach((function(o){var r=vr(o.flags,4),s=vr(o.flags,2),a=new sl(o,e);vr(o.styles.display,2048)&&i.push(a);var u=vr(o.flags,8)?[]:i;if(r||s){var l=r||o.styles.isPositioned()?n:t,c=new rl(a);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var d=o.styles.zIndex.order;if(d<0){var h=0;l.negativeZIndex.some((function(e,t){return d>e.element.container.styles.zIndex.order?(h=t,!1):h>0})),l.negativeZIndex.splice(h,0,c)}else if(d>0){var A=0;l.positiveZIndex.some((function(e,t){return d>=e.element.container.styles.zIndex.order?(A=t+1,!1):A>0})),l.positiveZIndex.splice(A,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else o.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);al(a,c,r?c:n,u)}else o.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),al(a,t,n,u);vr(o.flags,8)&&ul(o,u)}))},ul=function(e,t){for(var n=e instanceof la?e.start:1,i=e instanceof la&&e.reversed,o=0;o<t.length;o++){var r=t[o];r.container instanceof ua&&"number"===typeof r.container.value&&0!==r.container.value&&(n=r.container.value),r.listValue=hu(n,r.container.styles.listStyleType,!0),n+=i?-1:1}},ll=function(e){var t=new sl(e,null),n=new rl(t),i=[];return al(t,n,n,i),ul(t.container,i),n},cl=function(e,t){switch(t){case 0:return fl(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return fl(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return fl(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return fl(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},dl=function(e,t){switch(t){case 0:return fl(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return fl(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return fl(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return fl(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},hl=function(e,t){switch(t){case 0:return fl(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return fl(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return fl(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return fl(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},Al=function(e,t){switch(t){case 0:return pl(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return pl(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return pl(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return pl(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},pl=function(e,t){var n=[];return zu(e)?n.push(e.subdivide(.5,!1)):n.push(e),zu(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},fl=function(e,t,n,i){var o=[];return zu(e)?o.push(e.subdivide(.5,!1)):o.push(e),zu(n)?o.push(n.subdivide(.5,!0)):o.push(n),zu(i)?o.push(i.subdivide(.5,!0).reverse()):o.push(i),zu(t)?o.push(t.subdivide(.5,!1).reverse()):o.push(t),o},gl=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},ml=function(e){var t=e.styles,n=e.bounds,i=ti(t.paddingLeft,n.width),o=ti(t.paddingRight,n.width),r=ti(t.paddingTop,n.width),s=ti(t.paddingBottom,n.width);return n.add(i+t.borderLeftWidth,r+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+i+o),-(t.borderTopWidth+t.borderBottomWidth+r+s))},vl=function(e,t){return 0===e?t.bounds:2===e?ml(t):gl(t)},_l=function(e,t){return 0===e?t.bounds:2===e?ml(t):gl(t)},yl=function(e,t,n){var i=vl(Sl(e.styles.backgroundOrigin,t),e),o=_l(Sl(e.styles.backgroundClip,t),e),r=Cl(Sl(e.styles.backgroundSize,t),n,i),s=r[0],a=r[1],u=ei(Sl(e.styles.backgroundPosition,t),i.width-s,i.height-a),l=Bl(Sl(e.styles.backgroundRepeat,t),u,r,i,o),c=Math.round(i.left+u[0]),d=Math.round(i.top+u[1]);return[l,c,d,s,a]},wl=function(e){return Qn(e)&&e.value===Gi.AUTO},bl=function(e){return"number"===typeof e},Cl=function(e,t,n){var i=t[0],o=t[1],r=t[2],s=e[0],a=e[1];if(!s)return[0,0];if(Yn(s)&&a&&Yn(a))return[ti(s,n.width),ti(a,n.height)];var u=bl(r);if(Qn(s)&&(s.value===Gi.CONTAIN||s.value===Gi.COVER)){if(bl(r)){var l=n.width/n.height;return l<r!==(s.value===Gi.COVER)?[n.width,n.width/r]:[n.height*r,n.height]}return[n.width,n.height]}var c=bl(i),d=bl(o),h=c||d;if(wl(s)&&(!a||wl(a))){if(c&&d)return[i,o];if(!u&&!h)return[n.width,n.height];if(h&&u){var A=c?i:o*r,p=d?o:i/r;return[A,p]}var f=c?i:n.width,g=d?o:n.height;return[f,g]}if(u){var m=0,v=0;return Yn(s)?m=ti(s,n.width):Yn(a)&&(v=ti(a,n.height)),wl(s)?m=v*r:a&&!wl(a)||(v=m/r),[m,v]}var _=null,y=null;if(Yn(s)?_=ti(s,n.width):a&&Yn(a)&&(y=ti(a,n.height)),null===_||a&&!wl(a)||(y=c&&d?_/i*o:n.height),null!==y&&wl(s)&&(_=c&&d?y/o*i:n.width),null!==_&&null!==y)return[_,y];throw new Error("Unable to calculate background-size for element")},Sl=function(e,t){var n=e[t];return"undefined"===typeof n?e[0]:n},Bl=function(e,t,n,i,o){var r=t[0],s=t[1],a=n[0],u=n[1];switch(e){case 2:return[new Vu(Math.round(i.left),Math.round(i.top+s)),new Vu(Math.round(i.left+i.width),Math.round(i.top+s)),new Vu(Math.round(i.left+i.width),Math.round(u+i.top+s)),new Vu(Math.round(i.left),Math.round(u+i.top+s))];case 3:return[new Vu(Math.round(i.left+r),Math.round(i.top)),new Vu(Math.round(i.left+r+a),Math.round(i.top)),new Vu(Math.round(i.left+r+a),Math.round(i.height+i.top)),new Vu(Math.round(i.left+r),Math.round(i.height+i.top))];case 1:return[new Vu(Math.round(i.left+r),Math.round(i.top+s)),new Vu(Math.round(i.left+r+a),Math.round(i.top+s)),new Vu(Math.round(i.left+r+a),Math.round(i.top+s+u)),new Vu(Math.round(i.left+r),Math.round(i.top+s+u))];default:return[new Vu(Math.round(o.left),Math.round(o.top)),new Vu(Math.round(o.left+o.width),Math.round(o.top)),new Vu(Math.round(o.left+o.width),Math.round(o.height+o.top)),new Vu(Math.round(o.left),Math.round(o.height+o.top))]}},El="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",xl="Hidden Text",Ll=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),i=this._document.createElement("img"),o=this._document.createElement("span"),r=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",r.appendChild(n),i.src=El,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",o.style.fontFamily=e,o.style.fontSize=t,o.style.margin="0",o.style.padding="0",o.appendChild(this._document.createTextNode(xl)),n.appendChild(o),n.appendChild(i);var s=i.offsetTop-o.offsetTop+2;n.removeChild(o),n.appendChild(this._document.createTextNode(xl)),n.style.lineHeight="normal",i.style.verticalAlign="super";var a=i.offsetTop-n.offsetTop+2;return r.removeChild(n),{baseline:s,middle:a}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return"undefined"===typeof this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),Dl=function(){function e(e,t){this.context=e,this.options=t}return e}(),Nl=1e4,kl=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i._activeEffects=[],i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),n.canvas||(i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px"),i.fontMetrics=new Ll(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),i}return t(n,e),n.prototype.applyEffects=function(e){var t=this;while(this._activeEffects.length)this.popEffect();e.forEach((function(e){return t.applyEffect(e)}))},n.prototype.applyEffect=function(e){this.ctx.save(),nl(e)&&(this.ctx.globalAlpha=e.opacity),el(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),tl(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return i(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return t=e.element.container.styles,t.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},n.prototype.renderNode=function(e){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return vr(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var i=this;if(0===t)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n);else{var o=Xs(e.text);o.reduce((function(t,o){return i.ctx.fillText(o,t,e.bounds.top+n),t+i.ctx.measureText(o).width}),e.bounds.left)}},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),n=Tl(e.fontFamily).join(", "),i=Un(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,i,n].join(" "),n,i]},n.prototype.renderTextNode=function(e,t){return i(this,void 0,void 0,(function(){var n,i,r,s,a,u,l,c,d=this;return o(this,(function(o){return n=this.createFontStyle(t),i=n[0],r=n[1],s=n[2],this.ctx.font=i,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(r,s),u=a.baseline,l=a.middle,c=t.paintOrder,e.textBounds.forEach((function(e){c.forEach((function(n){switch(n){case 0:d.ctx.fillStyle=hi(t.color),d.renderTextWithLetterSpacing(e,t.letterSpacing,u);var i=t.textShadow;i.length&&e.text.trim().length&&(i.slice(0).reverse().forEach((function(n){d.ctx.shadowColor=hi(n.color),d.ctx.shadowOffsetX=n.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=n.offsetY.number*d.options.scale,d.ctx.shadowBlur=n.blur.number,d.renderTextWithLetterSpacing(e,t.letterSpacing,u)})),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),t.textDecorationLine.length&&(d.ctx.fillStyle=hi(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+u),e.bounds.width,1);break;case 2:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:d.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+l),e.bounds.width,1);break}})));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(d.ctx.strokeStyle=hi(t.webkitTextStrokeColor),d.ctx.lineWidth=t.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+u)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}}))})),[2]}))}))},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=ml(e),o=Xu(t);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return i(this,void 0,void 0,(function(){var t,i,r,a,u,l,c,d,h,A,p,f,g,m,v,_,y,w,b;return o(this,(function(o){switch(o.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,i=e.curves,r=t.styles,a=0,u=t.textNodes,o.label=1;case 1:return a<u.length?(l=u[a],[4,this.renderTextNode(l,r)]):[3,4];case 2:o.sent(),o.label=3;case 3:return a++,[3,1];case 4:if(!(t instanceof ra))return[3,8];o.label=5;case 5:return o.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return _=o.sent(),this.renderReplacedElement(t,i,_),[3,8];case 7:return o.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof sa&&this.renderReplacedElement(t,i,t.canvas),!(t instanceof aa))return[3,12];o.label=9;case 9:return o.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return _=o.sent(),this.renderReplacedElement(t,i,_),[3,12];case 11:return o.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof wa&&t.tree?(c=new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:d=o.sent(),t.width&&t.height&&this.ctx.drawImage(d,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),o.label=14;case 14:if(t instanceof va&&(h=Math.min(t.bounds.width,t.bounds.height),t.type===pa?t.checked&&(this.ctx.save(),this.path([new Vu(t.bounds.left+.39363*h,t.bounds.top+.79*h),new Vu(t.bounds.left+.16*h,t.bounds.top+.5549*h),new Vu(t.bounds.left+.27347*h,t.bounds.top+.44071*h),new Vu(t.bounds.left+.39694*h,t.bounds.top+.5649*h),new Vu(t.bounds.left+.72983*h,t.bounds.top+.23*h),new Vu(t.bounds.left+.84*h,t.bounds.top+.34085*h),new Vu(t.bounds.left+.39363*h,t.bounds.top+.79*h)]),this.ctx.fillStyle=hi(ma),this.ctx.fill(),this.ctx.restore()):t.type===fa&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+h/2,t.bounds.top+h/2,h/4,0,2*Math.PI,!0),this.ctx.fillStyle=hi(ma),this.ctx.fill(),this.ctx.restore())),Il(t)&&t.value.length){switch(A=this.createFontStyle(r),w=A[0],p=A[1],f=this.fontMetrics.getMetrics(w,p).baseline,this.ctx.font=w,this.ctx.fillStyle=hi(r.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ml(t.styles.textAlign),b=ml(t),g=0,t.styles.textAlign){case 1:g+=b.width/2;break;case 2:g+=b.width;break}m=b.add(g,0,0,-b.height/2+1),this.ctx.save(),this.path([new Vu(b.left,b.top),new Vu(b.left+b.width,b.top),new Vu(b.left+b.width,b.top+b.height),new Vu(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new js(t.value,m),r.letterSpacing,f),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!vr(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(v=t.styles.listStyleImage,0!==v.type)return[3,18];_=void 0,y=v.url,o.label=15;case 15:return o.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return _=o.sent(),this.ctx.drawImage(_,t.bounds.left-(_.width+10),t.bounds.top),[3,18];case 17:return o.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(w=this.createFontStyle(r)[0],this.ctx.font=w,this.ctx.fillStyle=hi(r.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new s(t.bounds.left,t.bounds.top+ti(t.styles.paddingTop,t.bounds.width),t.bounds.width,Fo(r.lineHeight,r.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new js(e.listValue,b),r.letterSpacing,Fo(r.lineHeight,r.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),o.label=20;case 20:return[2]}}))}))},n.prototype.renderStackContent=function(e){return i(this,void 0,void 0,(function(){var t,n,i,r,s,a,u,l,c,d,h,A,p,f,g;return o(this,(function(o){switch(o.label){case 0:return vr(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:o.sent(),t=0,n=e.negativeZIndex,o.label=2;case 2:return t<n.length?(g=n[t],[4,this.renderStack(g)]):[3,5];case 3:o.sent(),o.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:o.sent(),i=0,r=e.nonInlineLevel,o.label=7;case 7:return i<r.length?(g=r[i],[4,this.renderNode(g)]):[3,10];case 8:o.sent(),o.label=9;case 9:return i++,[3,7];case 10:s=0,a=e.nonPositionedFloats,o.label=11;case 11:return s<a.length?(g=a[s],[4,this.renderStack(g)]):[3,14];case 12:o.sent(),o.label=13;case 13:return s++,[3,11];case 14:u=0,l=e.nonPositionedInlineLevel,o.label=15;case 15:return u<l.length?(g=l[u],[4,this.renderStack(g)]):[3,18];case 16:o.sent(),o.label=17;case 17:return u++,[3,15];case 18:c=0,d=e.inlineLevel,o.label=19;case 19:return c<d.length?(g=d[c],[4,this.renderNode(g)]):[3,22];case 20:o.sent(),o.label=21;case 21:return c++,[3,19];case 22:h=0,A=e.zeroOrAutoZIndexOrTransformedOrOpacity,o.label=23;case 23:return h<A.length?(g=A[h],[4,this.renderStack(g)]):[3,26];case 24:o.sent(),o.label=25;case 25:return h++,[3,23];case 26:p=0,f=e.positiveZIndex,o.label=27;case 27:return p<f.length?(g=f[p],[4,this.renderStack(g)]):[3,30];case 28:o.sent(),o.label=29;case 29:return p++,[3,27];case 30:return[2]}}))}))},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach((function(e,n){var i=zu(e)?e.start:e;0===n?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.y),zu(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},n.prototype.renderRepeat=function(e,t,n,i){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},n.prototype.resizeImage=function(e,t,n){var i;if(e.width===t&&e.height===n)return e;var o=null!==(i=this.canvas.ownerDocument)&&void 0!==i?i:document,r=o.createElement("canvas");r.width=Math.max(1,t),r.height=Math.max(1,n);var s=r.getContext("2d");return s.drawImage(e,0,0,e.width,e.height,0,0,t,n),r},n.prototype.renderBackgroundImage=function(e){return i(this,void 0,void 0,(function(){var t,n,i,r,s,a;return o(this,(function(u){switch(u.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var r,s,a,u,l,c,d,h,A,p,f,g,m,v,_,y,w,b,C,S,B,E,x,L,D,N,k,I,F,M,O;return o(this,(function(o){switch(o.label){case 0:if(0!==n.type)return[3,5];r=void 0,s=n.url,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,i.context.cache.match(s)];case 2:return r=o.sent(),[3,4];case 3:return o.sent(),i.context.logger.error("Error loading background-image "+s),[3,4];case 4:return r&&(a=yl(e,t,[r.width,r.height,r.width/r.height]),y=a[0],E=a[1],x=a[2],C=a[3],S=a[4],v=i.ctx.createPattern(i.resizeImage(r,C,S),"repeat"),i.renderRepeat(y,v,E,x)),[3,6];case 5:Wi(n)?(u=yl(e,t,[null,null,null]),y=u[0],E=u[1],x=u[2],C=u[3],S=u[4],l=Ei(n.angle,C,S),c=l[0],d=l[1],h=l[2],A=l[3],p=l[4],f=document.createElement("canvas"),f.width=C,f.height=S,g=f.getContext("2d"),m=g.createLinearGradient(d,A,h,p),Si(n.stops,c).forEach((function(e){return m.addColorStop(e.stop,hi(e.color))})),g.fillStyle=m,g.fillRect(0,0,C,S),C>0&&S>0&&(v=i.ctx.createPattern(f,"repeat"),i.renderRepeat(y,v,E,x))):Ki(n)&&(_=yl(e,t,[null,null,null]),y=_[0],w=_[1],b=_[2],C=_[3],S=_[4],B=0===n.position.length?[Zn]:n.position,E=ti(B[0],C),x=ti(B[B.length-1],S),L=Di(n,E,x,C,S),D=L[0],N=L[1],D>0&&N>0&&(k=i.ctx.createRadialGradient(w+E,b+x,0,w+E,b+x,D),Si(n.stops,2*D).forEach((function(e){return k.addColorStop(e.stop,hi(e.color))})),i.path(y),i.ctx.fillStyle=k,D!==N?(I=e.bounds.left+.5*e.bounds.width,F=e.bounds.top+.5*e.bounds.height,M=N/D,O=1/M,i.ctx.save(),i.ctx.translate(I,F),i.ctx.transform(1,0,0,M,0,0),i.ctx.translate(-I,-F),i.ctx.fillRect(w,O*(b-F)+F,C,S*O),i.ctx.restore()):i.ctx.fill())),o.label=6;case 6:return t--,[2]}}))},i=this,r=0,s=e.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return r<s.length?(a=s[r],[5,n(a)]):[3,4];case 2:u.sent(),u.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},n.prototype.renderSolidBorder=function(e,t,n){return i(this,void 0,void 0,(function(){return o(this,(function(i){return this.path(cl(n,t)),this.ctx.fillStyle=hi(e),this.ctx.fill(),[2]}))}))},n.prototype.renderDoubleBorder=function(e,t,n,r){return i(this,void 0,void 0,(function(){var i,s;return o(this,(function(o){switch(o.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,r)]:[3,2];case 1:return o.sent(),[2];case 2:return i=dl(r,n),this.path(i),this.ctx.fillStyle=hi(e),this.ctx.fill(),s=hl(r,n),this.path(s),this.ctx.fill(),[2]}}))}))},n.prototype.renderNodeBackgroundAndBorders=function(e){return i(this,void 0,void 0,(function(){var t,n,i,r,s,a,u,l,c=this;return o(this,(function(o){switch(o.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!di(t.backgroundColor)||t.backgroundImage.length,i=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],r=Fl(Sl(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(r),this.ctx.clip(),di(t.backgroundColor)||(this.ctx.fillStyle=hi(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:o.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){c.ctx.save();var n=qu(e.curves),i=t.inset?0:Nl,o=ol(n,-i+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(c.path(n),c.ctx.clip(),c.mask(o)):(c.mask(n),c.ctx.clip(),c.path(o)),c.ctx.shadowOffsetX=t.offsetX.number+i,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=hi(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?hi(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),o.label=2;case 2:s=0,a=0,u=i,o.label=3;case 3:return a<u.length?(l=u[a],0!==l.style&&!di(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,s,e.curves,2)]:[3,11]):[3,13];case 4:return o.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,s,e.curves,3)];case 6:return o.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,s,e.curves)];case 8:return o.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,s,e.curves)];case 10:o.sent(),o.label=11;case 11:s++,o.label=12;case 12:return a++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(e,t,n,r,s){return i(this,void 0,void 0,(function(){var i,a,u,l,c,d,h,A,p,f,g,m,v,_,y,w;return o(this,(function(o){return this.ctx.save(),i=Al(r,n),a=cl(r,n),2===s&&(this.path(a),this.ctx.clip()),zu(a[0])?(u=a[0].start.x,l=a[0].start.y):(u=a[0].x,l=a[0].y),zu(a[1])?(c=a[1].end.x,d=a[1].end.y):(c=a[1].x,d=a[1].y),h=0===n||2===n?Math.abs(u-c):Math.abs(l-d),this.ctx.beginPath(),3===s?this.formatPath(i):this.formatPath(a.slice(0,2)),A=t<3?3*t:2*t,p=t<3?2*t:t,3===s&&(A=t,p=t),f=!0,h<=2*A?f=!1:h<=2*A+p?(g=h/(2*A+p),A*=g,p*=g):(m=Math.floor((h+p)/(A+p)),v=(h-m*A)/(m-1),_=(h-(m+1)*A)/m,p=_<=0||Math.abs(p-v)<Math.abs(p-_)?v:_),f&&(3===s?this.ctx.setLineDash([0,A+p]):this.ctx.setLineDash([A,p])),3===s?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=hi(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===s&&(zu(a[0])&&(y=a[3],w=a[0],this.ctx.beginPath(),this.formatPath([new Vu(y.end.x,y.end.y),new Vu(w.start.x,w.start.y)]),this.ctx.stroke()),zu(a[1])&&(y=a[1],w=a[2],this.ctx.beginPath(),this.formatPath([new Vu(y.end.x,y.end.y),new Vu(w.start.x,w.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},n.prototype.render=function(e){return i(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=hi(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=ll(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},n}(Dl),Il=function(e){return e instanceof ya||(e instanceof _a||e instanceof va&&e.type!==fa&&e.type!==pa)},Fl=function(e,t){switch(e){case 0:return qu(t);case 2:return Yu(t);case 1:default:return Xu(t)}},Ml=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ol=["-apple-system","system-ui"],Tl=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter((function(e){return-1===Ol.indexOf(e)})):e},Pl=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=n,i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),i}return t(n,e),n.prototype.render=function(e){return i(this,void 0,void 0,(function(){var t,n;return o(this,(function(i){switch(i.label){case 0:return t=Ws(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Rl(t)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=hi(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},n}(Dl),Rl=function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){t(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Ul=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,r([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.warn?console.warn.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,r([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),Hl=function(){function e(t,n){var i;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new Ul({id:this.instanceName,enabled:t.logging}),this.cache=null!==(i=t.cache)&&void 0!==i?i:new Fu(this,t)}return e.instanceCount=1,e}(),Ql=function(e,t){return void 0===t&&(t={}),Vl(e,t)};"undefined"!==typeof window&&Iu.setContext(window);var Vl=function(e,t){return i(void 0,void 0,void 0,(function(){var i,r,l,c,d,h,A,p,f,g,m,v,_,y,w,b,C,S,B,E,x,L,D,N,k,I,F,M,O,T,P,R,U,H,Q,V,W,K,z;return o(this,(function(o){switch(o.label){case 0:if(!e||"object"!==typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(i=e.ownerDocument,!i)throw new Error("Element is not attached to a Document");if(r=i.defaultView,!r)throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(D=t.allowTaint)&&void 0!==D&&D,imageTimeout:null!==(N=t.imageTimeout)&&void 0!==N?N:15e3,proxy:t.proxy,useCORS:null!==(k=t.useCORS)&&void 0!==k&&k},c=n({logging:null===(I=t.logging)||void 0===I||I,cache:t.cache},l),d={windowWidth:null!==(F=t.windowWidth)&&void 0!==F?F:r.innerWidth,windowHeight:null!==(M=t.windowHeight)&&void 0!==M?M:r.innerHeight,scrollX:null!==(O=t.scrollX)&&void 0!==O?O:r.pageXOffset,scrollY:null!==(T=t.scrollY)&&void 0!==T?T:r.pageYOffset},h=new s(d.scrollX,d.scrollY,d.windowWidth,d.windowHeight),A=new Hl(c,h),p=null!==(P=t.foreignObjectRendering)&&void 0!==P&&P,f={allowTaint:null!==(R=t.allowTaint)&&void 0!==R&&R,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:p,copyStyles:p},A.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),g=new pu(A,e,f),m=g.clonedReferenceElement,m?[4,g.toIFrame(i,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return v=o.sent(),_=Pa(m)||Oa(m)?u(m.ownerDocument):a(A,m),y=_.width,w=_.height,b=_.left,C=_.top,S=Wl(A,m,t.backgroundColor),B={canvas:t.canvas,backgroundColor:S,scale:null!==(H=null!==(U=t.scale)&&void 0!==U?U:r.devicePixelRatio)&&void 0!==H?H:1,x:(null!==(Q=t.x)&&void 0!==Q?Q:0)+b,y:(null!==(V=t.y)&&void 0!==V?V:0)+C,width:null!==(W=t.width)&&void 0!==W?W:Math.ceil(y),height:null!==(K=t.height)&&void 0!==K?K:Math.ceil(w)},p?(A.logger.debug("Document cloned, using foreign object rendering"),L=new Pl(A,B),[4,L.render(m)]):[3,3];case 2:return E=o.sent(),[3,5];case 3:return A.logger.debug("Document cloned, element located at "+b+","+C+" with size "+y+"x"+w+" using computed rendering"),A.logger.debug("Starting DOM parsing"),x=Ba(A,m),S===x.styles.backgroundColor&&(x.styles.backgroundColor=yi.TRANSPARENT),A.logger.debug("Starting renderer for element at "+B.x+","+B.y+" with size "+B.width+"x"+B.height),L=new kl(A,B),[4,L.render(x)];case 4:E=o.sent(),o.label=5;case 5:return(null===(z=t.removeContainer)||void 0===z||z)&&(pu.destroy(v)||A.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),A.logger.debug("Finished rendering"),[2,E]}}))}))},Wl=function(e,t,n){var i=t.ownerDocument,o=i.documentElement?_i(e,getComputedStyle(i.documentElement).backgroundColor):yi.TRANSPARENT,r=i.body?_i(e,getComputedStyle(i.body).backgroundColor):yi.TRANSPARENT,s="string"===typeof n?_i(e,n):null===n?yi.TRANSPARENT:4294967295;return t===i.documentElement?di(o)?di(r)?s:r:o:s};return Ql}))},c189:function(e,t,n){"use strict";var i=n("79aa"),o=n("f772"),r=n("3024"),s=[].slice,a={},u=function(e,t,n){if(!(t in a)){for(var i=[],o=0;o<t;o++)i[o]="a["+o+"]";a[t]=Function("F,a","return new F("+i.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=s.call(arguments,1),a=function(){var i=n.concat(s.call(arguments));return this instanceof a?u(t,i.length,i):r(t,i,e)};return o(t.prototype)&&(a.prototype=t.prototype),a}},c317:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var i=n("30db"),o="undefined"===typeof e?{cwd:function(){return"/"},env:Object.create(null),get platform(){return i["h"]?"win32":i["e"]?"darwin":"linux"},nextTick:function(e){return Object(i["i"])(e)}}:e,r=o.cwd,s=o.env,a=o.platform}).call(this,n("4362"))},c84a:function(e,t,n){},c88e:function(e,t,n){},caa1:function(e,t,n){},cab5:function(e,t,n){},d225:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return i}))},d8c3:function(e,t,n){},d93b:function(e,t,n){},d95f:function(e,t,n){},e2b8:function(e,t,n){},e431:function(e,t,n){},e750:function(e,t,n){},eb68:function(e,t,n){},ef37:function(e,t,n){},f004:function(e,t,n){},f20b:function(e,t,n){},f400:function(e,t,n){"use strict";var i=n("c26b"),o=n("b39a"),r="Map";e.exports=n("e0b8")(r,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=i.getEntry(o(this,r),e);return t&&t.v},set:function(e,t){return i.def(o(this,r),0===e?0:e,t)}},i,!0)},fe86:function(e,t,n){}}]);