You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
3.1 MiB
2 lines
3.1 MiB
/*! For license information please see 37.44fc00c6.chunk.js.LICENSE.txt */
|
|
(this.webpackJsonph5=this.webpackJsonph5||[]).push([[37,4,5,6,7,8,10,11,12,13,15,16,43,133],Array(276).concat([function(e,t,n){"use strict";n.r(t);var o=n(422);n.d(t,"default",(function(){return o.a}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.convertFieldsError=a,t.format=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=1,i=t[0],a=t.length;if("function"==typeof i)return i.apply(null,t.slice(1));if("string"!=typeof i)return i;for(var s=String(i).replace(r,(function(e){if("%%"===e)return"%";if(a<=o)return e;switch(e){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch(e){return"[Circular]"}break;default:return e}})),l=t[o];o<a;l=t[++o])s+=" "+l;return s},t.isEmptyValue=function(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}(t)||"string"!=typeof e||e)},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.asyncMap=function(e,t,n,o){if(t.first)return s(function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e),n,o);var i=t.firstFields||[];!0===i&&(i=Object.keys(e));var r=Object.keys(e),l=r.length,c=0,u=[],d=new Promise((function(t,d){function h(e){if(u.push.apply(u,e),++c===l)return o(u),u.length?d({errors:u,fields:a(u)}):t()}r.forEach((function(t){var o,r,a,l,c,u,d=e[t];function p(e){l.push.apply(l,e),++c===u&&a(l)}-1!==i.indexOf(t)?s(d,n,h):(r=n,a=h,l=[],c=0,u=(o=d).length,o.forEach((function(e){r(e,p)})))}))}));return d.catch((function(e){return e})),d},t.complementError=function(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}},t.deepMerge=function(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===(void 0===r?"undefined":i(r))&&"object"===i(e[n])?e[n]=o({},e[n],r):e[n]=r}return e};var r=/%[sdj%]/g;function a(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function s(e,t,n){var o=0,i=e.length;!function r(a){if(a&&a.length)n(a);else{var s=o;o+=1,s<i?t(e[s],r):n([])}}([])}t.warning=function(){}},,function(e,t,n){"use strict";n.d(t,"g",(function(){return i})),n.d(t,"f",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return f}));function o(e){0}function i(e){return"function"==typeof e.dispose&&0===e.dispose.length}function r(e){return Array.isArray(e)?(e.forEach((function(e){e&&(o(),e.dispose())})),[]):e?(o(),e.dispose(),e):void 0}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(o),{dispose:function(){return r(e)}}}function s(e){var t={dispose:function(){o(),e()}};return t}var l=(c.prototype.dispose=function(){this._isDisposed||(o(),this._isDisposed=!0,this.clear())},c.prototype.clear=function(){this._toDispose.forEach((function(e){return e.dispose()})),this._toDispose.clear()},c.prototype.add=function(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return o(),this._isDisposed||this._toDispose.add(e),e},c);function c(){this._toDispose=new Set,this._isDisposed=!1}var u=(d.prototype.dispose=function(){o(),this._store.dispose()},d.prototype._register=function(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)},d.None=Object.freeze({dispose:function(){}}),d);function d(){this._store=new l}var h=(Object.defineProperty(p.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&&o(),this._value=e)},enumerable:!0,configurable:!0}),p.prototype.clear=function(){this.value=void 0},p.prototype.dispose=function(){this._isDisposed=!0,o(),this._value&&this._value.dispose(),this._value=void 0},p);function p(){this._isDisposed=!1}var f=(g.prototype.dispose=function(){},g);function g(e){this.object=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(450),i=(r.prototype.isEmpty=function(){return r.isEmpty(this)},r.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},r.prototype.containsPosition=function(e){return r.containsPosition(this,e)},r.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)},r.prototype.containsRange=function(e){return r.containsRange(this,e)},r.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)},r.prototype.strictContainsRange=function(e){return r.strictContainsRange(this,e)},r.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)},r.prototype.plusRange=function(e){return r.plusRange(this,e)},r.plusRange=function(e,t){var n,o,i,a;return o=t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,e.startColumn),a=t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,e.endColumn),new r(n,o,i,a)},r.prototype.intersectRanges=function(e){return r.intersectRanges(this,e)},r.intersectRanges=function(e,t){var n=e.startLineNumber,o=e.startColumn,i=e.endLineNumber,a=e.endColumn,s=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,u=t.endColumn;return n<s?(n=s,o=l):n===s&&(o=Math.max(o,l)),c<i?(i=c,a=u):i===c&&(a=Math.min(a,u)),i<n||n===i&&a<o?null:new r(n,o,i,a)},r.prototype.equalsRange=function(e){return r.equalsRange(this,e)},r.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},r.prototype.getEndPosition=function(){return new o.a(this.endLineNumber,this.endColumn)},r.prototype.getStartPosition=function(){return new o.a(this.startLineNumber,this.startColumn)},r.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},r.prototype.setEndPosition=function(e,t){return new r(this.startLineNumber,this.startColumn,e,t)},r.prototype.setStartPosition=function(e,t){return new r(e,t,this.endLineNumber,this.endColumn)},r.prototype.collapseToStart=function(){return r.collapseToStart(this)},r.collapseToStart=function(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)},r.fromPositions=function(e,t){return void 0===t&&(t=e),new r(e.lineNumber,e.column,t.lineNumber,t.column)},r.lift=function(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null},r.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},r.areIntersectingOrTouching=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)},r.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)},r.compareRangesUsingStarts=function(e,t){if(e&&t){var n=0|e.startLineNumber,o=0|t.startLineNumber;if(n!=o)return n-o;var i=0|e.startColumn,r=0|t.startColumn;if(i!=r)return i-r;var a=0|e.endLineNumber,s=0|t.endLineNumber;return a!=s?a-s:(0|e.endColumn)-(0|t.endColumn)}return(e?1:0)-(t?1:0)},r.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},r.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},r);function r(e,t,n,o){n<e||e===n&&o<t?(this.startLineNumber=n,this.startColumn=o,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=c(n(516)),i=c(n(607)),r=c(n(608)),a=c(n(609)),s=c(n(610)),l=c(n(611));function c(e){return e&&e.__esModule?e:{default:e}}t.default={required:o.default,whitespace:i.default,type:r.default,range:a.default,enum:s.default,pattern:l.default}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return y})),n.d(t,"f",(function(){return _}));var o,i,r=n(446),a=n(880),s=n(439),l=n(786),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function u(e,t){void 0===t&&(t=Math.random().toString(18).slice(2,5)),this.customThreshold=e,this.name=t,this._warnCountdown=0}!function(e){function t(e){return function(t,n,o){void 0===n&&(n=null);var i,r=!1;return i=e((function(e){if(!r)return i?i.dispose():r=!0,t.call(n,e)}),null,o),r&&i.dispose(),i}}function n(e,t){return a((function(n,o,i){return void 0===o&&(o=null),e((function(e){return n.call(o,t(e))}),null,i)}))}function o(e,t){return a((function(n,o,i){return void 0===o&&(o=null),e((function(e){t(e),n.call(o,e)}),null,i)}))}function i(e,t){return a((function(n,o,i){return void 0===o&&(o=null),e((function(e){return t(e)&&n.call(o,e)}),null,i)}))}function r(e,t,o){var i=o;return n(e,(function(e){return i=t(i,e)}))}function a(e){var t,n=new d({onFirstListenerAdd:function(){t=e(n.fire,n)},onLastListenerRemove:function(){t.dispose()}});return n.event}function l(e,t,n,o,i){var r;void 0===n&&(n=100),void 0===o&&(o=!1);var a=void 0,s=void 0,l=0,c=new d({leakWarningThreshold:i,onFirstListenerAdd:function(){r=e((function(e){l++,a=t(a,e),o&&!s&&(c.fire(a),a=void 0),clearTimeout(s),s=setTimeout((function(){var e=a;s=a=void 0,(!o||1<l)&&c.fire(e),l=0}),n)}))},onLastListenerRemove:function(){r.dispose()}});return c.event}function c(e){var t,n=!0;return i(e,(function(e){var o=n||e!==t;return n=!1,t=e,o}))}e.None=function(){return s.a.None},e.once=t,e.map=n,e.forEach=o,e.filter=i,e.signal=function(e){return e},e.any=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,o){return void 0===n&&(n=null),s.e.apply(void 0,e.map((function(e){return e((function(e){return t.call(n,e)}),null,o)})))}},e.reduce=r,e.snapshot=a,e.debounce=l,e.stopwatch=function(e){var o=(new Date).getTime();return n(t(e),(function(e){return(new Date).getTime()-o}))},e.latch=c,e.buffer=function(e,t,n){function o(){i&&i.forEach((function(e){return a.fire(e)})),i=null}void 0===t&&(t=!1),void 0===n&&(n=[]);var i=n.slice(),r=e((function(e){i?i.push(e):a.fire(e)})),a=new d({onFirstListenerAdd:function(){r=r||e((function(e){return a.fire(e)}))},onFirstListenerDidAdd:function(){i&&(t?setTimeout(o):o())},onLastListenerRemove:function(){r&&r.dispose(),r=null}});return a.event};var u=(h.prototype.map=function(e){return new h(n(this.event,e))},h.prototype.forEach=function(e){return new h(o(this.event,e))},h.prototype.filter=function(e){return new h(i(this.event,e))},h.prototype.reduce=function(e,t){return new h(r(this.event,e,t))},h.prototype.latch=function(){return new h(c(this.event))},h.prototype.debounce=function(e,t,n,o){return void 0===t&&(t=100),void 0===n&&(n=!1),new h(l(this.event,e,t,n,o))},h.prototype.on=function(e,t,n){return this.event(e,t,n)},h.prototype.once=function(e,n,o){return t(this.event)(e,n,o)},h);function h(e){this.event=e}e.chain=function(e){return new u(e)},e.fromNodeEventEmitter=function(e,t,n){function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.fire(n.apply(void 0,e))}void 0===n&&(n=function(e){return e});var i=new d({onFirstListenerAdd:function(){return e.on(t,o)},onLastListenerRemove:function(){return e.removeListener(t,o)}});return i.event},e.fromDOMEventEmitter=function(e,t,n){function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.fire(n.apply(void 0,e))}void 0===n&&(n=function(e){return e});var i=new d({onFirstListenerAdd:function(){return e.addEventListener(t,o)},onLastListenerRemove:function(){return e.removeEventListener(t,o)}});return i.event},e.fromPromise=function(e){var t=new d,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},e.toPromise=function(e){return new Promise((function(n){return t(e)(n)}))}}(i=i||{}),u.prototype.dispose=function(){this._stacks&&this._stacks.clear()},u.prototype.check=function(e){var t=this,n=-1;if("number"==typeof this.customThreshold&&(n=this.customThreshold),!(n<=0||e<n)){this._stacks||(this._stacks=new Map);var o=(new Error).stack.split("\n").slice(3).join("\n"),i=this._stacks.get(o)||0;if(this._stacks.set(o,i+1),--this._warnCountdown,this._warnCountdown<=0){var r;this._warnCountdown=.5*n;var a=0;this._stacks.forEach((function(e,t){(!r||a<e)&&(r=t,a=e)}))}return function(){var e=t._stacks.get(o)||0;t._stacks.set(o,e-1)}}};var d=(Object.defineProperty(h.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t,n,o){e._listeners||(e._listeners=new l.a);var i=e._listeners.isEmpty();i&&e._options&&e._options.onFirstListenerAdd&&e._options.onFirstListenerAdd(e);var r,a,c=e._listeners.push(n?[t,n]:t);return i&&e._options&&e._options.onFirstListenerDidAdd&&e._options.onFirstListenerDidAdd(e),e._options&&e._options.onListenerDidAdd&&e._options.onListenerDidAdd(e,t,n),e._leakageMon&&(r=e._leakageMon.check(e._listeners.size)),a={dispose:function(){r&&r(),a.dispose=h._noop,e._disposed||(c(),e._options&&e._options.onLastListenerRemove&&(e._listeners&&!e._listeners.isEmpty()||e._options.onLastListenerRemove(e)))}},o instanceof s.b?o.add(a):Array.isArray(o)&&o.push(a),a}),this._event},enumerable:!0,configurable:!0}),h.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new l.a);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;0<this._deliveryQueue.size;){var o=this._deliveryQueue.shift(),i=o[0],a=o[1];try{"function"==typeof i?i.call(void 0,a):i[0].call(i[1],a)}catch(n){Object(r.e)(n)}}}},h.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},h._noop=function(){},h);function h(e){this._disposed=!1,this._options=e,this._leakageMon=void 0}var p,f=(c(g,p=d),g.prototype.pause=function(){this._isPaused++},g.prototype.resume=function(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){var e=this._eventQueue.toArray();this._eventQueue.clear(),p.prototype.fire.call(this,this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)p.prototype.fire.call(this,this._eventQueue.shift())},g.prototype.fire=function(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):p.prototype.fire.call(this,e))},g);function g(e){var t=p.call(this,e)||this;return t._isPaused=0,t._eventQueue=new l.a,t._mergeFn=e&&e.merge,t}var m=(Object.defineProperty(v.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),v.prototype.add=function(e){var t=this,n={event:e,listener:null};return this.events.push(n),this.hasListeners&&this.hook(n),Object(s.h)(Object(a.a)((function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)})))},v.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach((function(t){return e.hook(t)}))},v.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach((function(t){return e.unhook(t)}))},v.prototype.hook=function(e){var t=this;e.listener=e.event((function(e){return t.emitter.fire(e)}))},v.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},v.prototype.dispose=function(){this.emitter.dispose()},v);function v(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new d({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}var y=(b.prototype.wrapEvent=function(e){var t=this;return function(n,o,i){return e((function(e){var i=t.buffers[t.buffers.length-1];i?i.push((function(){return n.call(o,e)})):n.call(o,e)}),void 0,i)}},b.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach((function(e){return e()})),n},b);function b(){this.buffers=[]}var _=(Object.defineProperty(w.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}),w.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},w);function w(){var e=this;this.listening=!1,this.inputEvent=i.None,this.inputEventListener=s.a.None,this.emitter=new d({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}},function(e,t,n){"use strict";n.d(t,"t",(function(){return b})),n.d(t,"R",(function(){return _})),n.d(t,"M",(function(){return w})),n.d(t,"I",(function(){return k})),n.d(t,"f",(function(){return N})),n.d(t,"g",(function(){return D})),n.d(t,"P",(function(){return L})),n.d(t,"Q",(function(){return P})),n.d(t,"Y",(function(){return I})),n.d(t,"j",(function(){return j})),n.d(t,"o",(function(){return A})),n.d(t,"n",(function(){return F})),n.d(t,"h",(function(){return V})),n.d(t,"i",(function(){return W})),n.d(t,"k",(function(){return B})),n.d(t,"l",(function(){return H})),n.d(t,"U",(function(){return z})),n.d(t,"W",(function(){return K})),n.d(t,"m",(function(){return oe})),n.d(t,"z",(function(){return ie})),n.d(t,"y",(function(){return re})),n.d(t,"b",(function(){return le})),n.d(t,"F",(function(){return ce})),n.d(t,"C",(function(){return ue})),n.d(t,"e",(function(){return de})),n.d(t,"H",(function(){return pe})),n.d(t,"B",(function(){return fe})),n.d(t,"A",(function(){return ge})),n.d(t,"G",(function(){return me})),n.d(t,"K",(function(){return ve})),n.d(t,"x",(function(){return ye})),n.d(t,"N",(function(){return _e})),n.d(t,"E",(function(){return we})),n.d(t,"w",(function(){return Ce})),n.d(t,"v",(function(){return xe})),n.d(t,"O",(function(){return Ee})),n.d(t,"L",(function(){return ke})),n.d(t,"d",(function(){return Ne})),n.d(t,"c",(function(){return De})),n.d(t,"V",(function(){return Le})),n.d(t,"T",(function(){return Pe})),n.d(t,"Z",(function(){return je})),n.d(t,"q",(function(){return Re})),n.d(t,"a",(function(){return Be})),n.d(t,"X",(function(){return He})),n.d(t,"J",(function(){return ze})),n.d(t,"S",(function(){return Ke})),n.d(t,"D",(function(){return Ue})),n.d(t,"u",(function(){return qe})),n.d(t,"ab",(function(){return Ge})),n.d(t,"p",(function(){return Ye})),n.d(t,"s",(function(){return Ze})),n.d(t,"r",(function(){return $e}));var o,i=n(478),r=n(686),a=n(701),s=n(595),l=n(453),c=n(446),u=n(442),d=n(439),h=n(452),p=n(459),f=n(596),g=n(820),m=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(){return(v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},y=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};function b(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function _(e){e.parentNode&&e.parentNode.removeChild(e)}function w(e){for(;e;){if(e===document.body)return!0;e=e.parentNode||e.host}return!1}var C=(S.prototype._findClassName=function(e,t){var n=e.className;if(n){t=t.trim();var o=n.length,i=t.length;if(0!==i)if(o<i)this._lastStart=-1;else{if(n===t)return this._lastStart=0,void(this._lastEnd=o);for(var r,a=-1;0<=(a=n.indexOf(t,a+1));){if(r=a+i,(0===a||32===n.charCodeAt(a-1))&&32===n.charCodeAt(r))return this._lastStart=a,void(this._lastEnd=r+1);if(0<a&&32===n.charCodeAt(a-1)&&r===o)return this._lastStart=a-1,void(this._lastEnd=r);if(0===a&&r===o)return this._lastStart=0,void(this._lastEnd=r)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},S.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},S.prototype.addClasses=function(e){for(var t=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.addClass(e,n)}))}))},S.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},S.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))},S.prototype.removeClasses=function(e){for(var t=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.removeClass(e,n)}))}))},S.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)},new S);function S(){this._lastStart=-1,this._lastEnd=-1}var O=(x.prototype.hasClass=function(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)},x.prototype.addClasses=function(e){for(var t=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.addClass(e,n)}))}))},x.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},x.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},x.prototype.removeClasses=function(e){for(var t=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.removeClass(e,n)}))}))},x.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},new x);function x(){}var E=i.i?C:O,k=E.hasClass.bind(E),N=E.addClass.bind(E),D=E.addClasses.bind(E),L=E.removeClass.bind(E),P=E.removeClasses.bind(E),I=E.toggleClass.bind(E),T=(M.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)},M);function M(e,t,n,o){this._node=e,this._type=t,this._handler=n,this._options=o||!1,this._node.addEventListener(this._type,this._handler,this._options)}function j(e,t,n,o){return new T(e,t,n,o)}function R(e){return function(t){return e(new s.b(t))}}var A=function(e,t,n,o){var i,r=n;return"click"===t||"mousedown"===t?r=R(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(i=n,r=function(e){return i(new a.a(e))}),j(e,t,r,o)},F=function(e,t,n){return V(e,R(t),n)};function V(e,t,n){return j(e,h.c&&g.a.pointerEvents?Ne.POINTER_DOWN:Ne.MOUSE_DOWN,t,n)}function W(e,t,n){return j(e,h.c&&g.a.pointerEvents?Ne.POINTER_UP:Ne.MOUSE_UP,t,n)}function B(e,t){return j(e,"mouseout",(function(n){for(var o=n.relatedTarget;o&&o!==e;)o=o.parentNode;o!==e&&t(n)}))}function H(e,t){return j(e,"pointerout",(function(n){for(var o=n.relatedTarget;o&&o!==e;)o=o.parentNode;o!==e&&t(n)}))}var z,K,U,q,G,Y,Z=null,$=(X.prototype.dispose=function(){this._canceled=!0},X.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){Object(c.e)(e)}},X.sort=function(e,t){return t.priority-e.priority},X);function X(e,t){void 0===t&&(t=0),this._runner=e,this.priority=t,this._canceled=!1}function J(){for(q=U,Y=!(G=!(U=[]));0<q.length;)q.sort($.sort),q.shift().execute();Y=!1}function Q(e,t){return t}q=null,Y=G=!(U=[]),K=function(e,t){void 0===t&&(t=0);var n=new $(e,t);return U.push(n),G||(G=!0,function(e){Z||(Z=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout((function(){return e((new Date).getTime())}),0)}),Z.call(self,e)}(J)),n},z=function(e,t){if(Y){var n=new $(e,t);return q.push(n),n}return K(e,t)};var ee,te=(m(ne,ee=d.a),ne);function ne(e,t,n,o,i){function r(){c=(new Date).getTime(),n(s),s=null}void 0===o&&(o=Q),void 0===i&&(i=16);var a=ee.call(this)||this,s=null,c=0,u=a._register(new l.e);return a._register(j(e,t,(function(e){s=o(s,e);var t=(new Date).getTime()-c;i<=t?(u.cancel(),r()):u.setIfNotSet(r,i-t)}))),a}function oe(e,t,n,o,i){return new te(e,t,n,o,i)}function ie(e){return document.defaultView.getComputedStyle(e,null)}function re(e){if(e!==document.body)return new le(e.clientWidth,e.clientHeight);if(h.c&&window.visualViewport){var t=window.visualViewport.width,n=window.visualViewport.height-(i.l?24:0);return new le(t,n)}if(window.innerWidth&&window.innerHeight)return new le(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new le(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new le(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var ae=(se.convertToPixels=function(e,t){return parseFloat(t)||0},se.getDimension=function(e,t,n){var o=ie(e),i="0";return o&&(i=o.getPropertyValue?o.getPropertyValue(t):o.getAttribute(n)),se.convertToPixels(e,i)},se.getBorderLeftWidth=function(e){return se.getDimension(e,"border-left-width","borderLeftWidth")},se.getBorderRightWidth=function(e){return se.getDimension(e,"border-right-width","borderRightWidth")},se.getBorderTopWidth=function(e){return se.getDimension(e,"border-top-width","borderTopWidth")},se.getBorderBottomWidth=function(e){return se.getDimension(e,"border-bottom-width","borderBottomWidth")},se.getPaddingLeft=function(e){return se.getDimension(e,"padding-left","paddingLeft")},se.getPaddingRight=function(e){return se.getDimension(e,"padding-right","paddingRight")},se.getPaddingTop=function(e){return se.getDimension(e,"padding-top","paddingTop")},se.getPaddingBottom=function(e){return se.getDimension(e,"padding-bottom","paddingBottom")},se.getMarginLeft=function(e){return se.getDimension(e,"margin-left","marginLeft")},se.getMarginTop=function(e){return se.getDimension(e,"margin-top","marginTop")},se.getMarginRight=function(e){return se.getDimension(e,"margin-right","marginRight")},se.getMarginBottom=function(e){return se.getDimension(e,"margin-bottom","marginBottom")},se);function se(){}var le=function(e,t){this.width=e,this.height=t};function ce(e){for(var t=e.offsetParent,n=e.offsetTop,o=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var i=be(e)?null:ie(e);i&&(o-="rtl"!==i.direction?e.scrollLeft:-e.scrollLeft),e===t&&(o+=ae.getBorderLeftWidth(e),n+=ae.getBorderTopWidth(e),n+=e.offsetTop,o+=e.offsetLeft,t=e.offsetParent)}return{left:o,top:n}}function ue(e){var t=e.getBoundingClientRect();return{left:t.left+de.scrollX,top:t.top+de.scrollY,width:t.width,height:t.height}}var de=(Object.defineProperty(he.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),new he);function he(){}function pe(e){var t=ae.getMarginLeft(e)+ae.getMarginRight(e);return e.offsetWidth+t}function fe(e){var t=ae.getBorderLeftWidth(e)+ae.getBorderRightWidth(e),n=ae.getPaddingLeft(e)+ae.getPaddingRight(e);return e.offsetWidth-t-n}function ge(e){var t=ae.getBorderTopWidth(e)+ae.getBorderBottomWidth(e),n=ae.getPaddingTop(e)+ae.getPaddingBottom(e);return e.offsetHeight-t-n}function me(e){var t=ae.getMarginTop(e)+ae.getMarginBottom(e);return e.offsetHeight+t}function ve(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function ye(e,t,n){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(k(e,t))return e;if(n)if("string"==typeof n){if(k(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function be(e){return e&&e.host&&e.mode}function _e(e){return!!we(e)}function we(e){for(;e.parentNode;){if(e===document.body)return null;e=e.parentNode}return be(e)?e:null}function Ce(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 Se=null;function Oe(){return Se=Se||Ce()}function xe(e,t,n){void 0===n&&(n=Oe()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function Ee(e,t){if(void 0===t&&(t=Oe()),t){for(var n,o=(n=t)&&n.sheet&&n.sheet.rules?n.sheet.rules:n&&n.sheet&&n.sheet.cssRules?n.sheet.cssRules:[],i=[],r=0;r<o.length;r++)-1!==o[r].selectorText.indexOf(e)&&i.push(r);for(r=i.length-1;0<=r;r--)t.sheet.deleteRule(i[r])}}function ke(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}var Ne={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:i.m?"webkitAnimationStart":"animationstart",ANIMATION_END:i.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:i.m?"webkitAnimationIteration":"animationiteration"},De={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function Le(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function Pe(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 Ie,Te=(m(Me,Ie=d.a),Me);function Me(e){var t=Ie.call(this)||this;function n(){a=!1,i||(i=!0,t._onDidFocus.fire())}function o(){i&&(a=!0,window.setTimeout((function(){a&&(i=a=!1,t._onDidBlur.fire())}),0))}t._onDidFocus=t._register(new u.a),t.onDidFocus=t._onDidFocus.event,t._onDidBlur=t._register(new u.a),t.onDidBlur=t._onDidBlur.event;var i=ve(document.activeElement,e),a=!1;return t._refreshStateHandler=function(){ve(document.activeElement,e)!==i&&(i?o:n)()},t._register(Object(r.a)(e,Ne.FOCUS,!0)(n)),t._register(Object(r.a)(e,Ne.BLUR,!0)(o)),t}function je(e){return new Te(e)}function Re(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 Ae,Fe,Ve=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;function We(e,t,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var r=Ve.exec(t);if(!r)throw new Error("Bad use of emmet");n=v({},n||{});var a,s=r[1]||"div";return a=e!==Ae.HTML?document.createElementNS(e,s):document.createElement(s),r[3]&&(a.id=r[3]),r[4]&&(a.className=r[4].replace(/\./g," ").trim()),Object.keys(n).forEach((function(e){var t=n[e];void 0!==t&&(/^on\w+$/.test(e)?a[e]=t:"selected"===e?t&&a.setAttribute(e,"true"):a.setAttribute(e,t))})),Object(p.d)(o).forEach((function(e){e instanceof Node?a.appendChild(e):a.appendChild(document.createTextNode(e))})),a}function Be(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return We.apply(void 0,y([Ae.HTML,e,t],n))}function He(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,o=e;n<o.length;n++){var i=o[n];i.style.display="",i.removeAttribute("aria-hidden")}}function ze(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,o=e;n<o.length;n++){var i=o[n];i.style.display="none",i.setAttribute("aria-hidden","true")}}function Ke(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){var t=function(e,t){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e instanceof HTMLElement&&e.hasAttribute("tabIndex"))return e;e=e.parentNode}return null}(e.parentElement);t&&t.focus()}e.removeAttribute("tabindex")}}function Ue(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function qe(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function Ge(e){if(h.f||i.g)window.open(e);else{var t=window.open();t&&(t.opener=null,t.location.href=e)}}function Ye(e){var t=K((function n(){e(),t=K(n)}));return Object(d.h)((function(){return t.dispose()}))}function Ze(e){return e&&f.b.vscodeRemote===e.scheme?f.a.rewrite(e):e}function $e(e){return e?"url('"+Ze(e).toString(!0).replace(/'/g,"%27")+"')":"url('')"}(Fe=Ae=Ae||{}).HTML="http://www.w3.org/1999/xhtml",Fe.SVG="http://www.w3.org/2000/svg",Be.SVG=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return We.apply(void 0,y([Ae.SVG,e,t],n))},f.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http")},function(e,t,n){"use strict";function o(e){return!e||"string"!=typeof e||0===e.trim().length}function i(e,t,n){void 0===n&&(n="0");for(var o=""+e,i=[o],r=o.length;r<t;r++)i.push(n);return i.reverse().join("")}n.d(t,"x",(function(){return o})),n.d(t,"F",(function(){return i})),n.d(t,"r",(function(){return a})),n.d(t,"o",(function(){return s})),n.d(t,"p",(function(){return l})),n.d(t,"Q",(function(){return c})),n.d(t,"K",(function(){return u})),n.d(t,"k",(function(){return d})),n.d(t,"N",(function(){return h})),n.d(t,"m",(function(){return p})),n.d(t,"l",(function(){return f})),n.d(t,"I",(function(){return g})),n.d(t,"H",(function(){return m})),n.d(t,"q",(function(){return v})),n.d(t,"t",(function(){return y})),n.d(t,"D",(function(){return b})),n.d(t,"e",(function(){return _})),n.d(t,"f",(function(){return w})),n.d(t,"B",(function(){return C})),n.d(t,"C",(function(){return S})),n.d(t,"n",(function(){return x})),n.d(t,"O",(function(){return k})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return D})),n.d(t,"z",(function(){return L})),n.d(t,"A",(function(){return P})),n.d(t,"u",(function(){return I})),n.d(t,"E",(function(){return M})),n.d(t,"G",(function(){return j})),n.d(t,"i",(function(){return A})),n.d(t,"g",(function(){return V})),n.d(t,"v",(function(){return B})),n.d(t,"h",(function(){return H})),n.d(t,"y",(function(){return z})),n.d(t,"w",(function(){return K})),n.d(t,"a",(function(){return U})),n.d(t,"P",(function(){return q})),n.d(t,"L",(function(){return G})),n.d(t,"J",(function(){return Y})),n.d(t,"j",(function(){return Z})),n.d(t,"M",(function(){return $})),n.d(t,"s",(function(){return X})),n.d(t,"b",(function(){return J}));var r=/{(\d+)}/g;function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(r,(function(e,n){var o=parseInt(n,10);return isNaN(o)||o<0||o>=t.length?e:t[o]}))}function s(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function l(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function c(e,t){return void 0===t&&(t=" "),u(function(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var o=0;e.indexOf(t,o)===o;)o+=n;return e.substring(o)}(e,t),t)}function u(e,t){if(!e||!t)return e;var n=t.length,o=e.length;if(0===n||0===o)return e;for(var i=o,r=-1;-1!==(r=e.lastIndexOf(t,i-1))&&r+n===i;){if(0===r)return"";i=r}return e.substring(0,i)}function d(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function h(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 p(e,t){var n=e.length-t.length;return 0<n?e.indexOf(t,n)===n:0==n&&e===t}function f(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=l(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var o="";return n.global&&(o+="g"),n.matchCase||(o+="i"),n.multiline&&(o+="m"),n.unicode&&(o+="u"),new RegExp(e,o)}function g(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function m(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function v(e){for(var t=0,n=e.length;t<n;t++){var o=e.charCodeAt(t);if(32!==o&&9!==o)return t}return-1}function y(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var o=t;o<n;o++){var i=e.charCodeAt(o);if(32!==i&&9!==i)return e.substring(t,o)}return e.substring(t,n)}function b(e,t){void 0===t&&(t=e.length-1);for(var n=t;0<=n;n--){var o=e.charCodeAt(n);if(32!==o&&9!==o)return n}return-1}function _(e,t){return e<t?-1:t<e?1:0}function w(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++){var i=e.charCodeAt(o),r=t.charCodeAt(o);if(i!==r){S(i)&&(i+=32),S(r)&&(r+=32);var a=i-r;if(0!=a)return C(i)&&C(r)?a:_(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0}function C(e){return 97<=e&&e<=122}function S(e){return 65<=e&&e<=90}function O(e){return C(e)||S(e)}function x(e,t){return e.length===t.length&&E(e,t)}function E(e,t,n){void 0===n&&(n=e.length);for(var o=0;o<n;o++){var i=e.charCodeAt(o),r=t.charCodeAt(o);if(i!==r)if(O(i)&&O(r)){var a=Math.abs(i-r);if(0!==a&&32!==a)return!1}else if(String.fromCharCode(i).toLowerCase()!==String.fromCharCode(r).toLowerCase())return!1}return!0}function k(e,t){var n=t.length;return!(t.length>e.length)&&E(e,t,n)}function N(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n<o;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return o}function D(e,t){var n,o=Math.min(e.length,t.length),i=e.length-1,r=t.length-1;for(n=0;n<o;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(r-n))return n;return o}function L(e){return 55296<=e&&e<=56319}function P(e){return 56320<=e&&e<=57343}function I(e,t,n){var o=e.charCodeAt(n);if(L(o)&&n+1<t){var i=e.charCodeAt(n+1);if(P(i))return i-56320+(o-55296<<10)+65536}return o}function T(e,t){var n=e.charCodeAt(t-1);if(P(n)&&1<t){var o=e.charCodeAt(t-2);if(L(o))return n-56320+(o-55296<<10)+65536}return n}function M(e,t){var n=Q.getInstance(),o=t,i=e.length,r=I(e,i,t);t+=65536<=r?2:1;for(var a=n.getGraphemeBreakType(r);t<i;){var s=I(e,i,t),l=n.getGraphemeBreakType(s);if(J(a,l))break;t+=65536<=s?2:1,a=l}return t-o}function j(e,t){var n=Q.getInstance(),o=t,i=T(e,t);t-=65536<=i?2:1;for(var r=n.getGraphemeBreakType(i);0<t;){var a=T(e,t),s=n.getGraphemeBreakType(a);if(J(s,r))break;t-=65536<=a?2:1,r=s}return o-t}var R=/(?:[\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 A(e){return R.test(e)}var F=/(?:[\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 V(e){return F.test(e)}var W=/^[\t\n\r\x20-\x7E]*$/;function B(e){return W.test(e)}function H(e){for(var t=0,n=e.length;t<n;t++)if(z(e.charCodeAt(t)))return!0;return!1}function z(e){return 11904<=(e=+e)&&e<=55215||63744<=e&&e<=64255||65281<=e&&e<=65374}function K(e){return 127462<=e&&e<=127487||9728<=e&&e<=10175||127744<=e&&e<=128591||128640<=e&&e<=128764||128992<=e&&e<=129003||129280<=e&&e<=129535||129648<=e&&e<=129651||129656<=e&&e<=129666||129680<=e&&e<=129685}var U=String.fromCharCode(65279);function q(e){return!!(e&&0<e.length&&65279===e.charCodeAt(0))}function G(e){return btoa(encodeURIComponent(e))}function Y(e,t){for(var n="",o=0;o<t;o++)n+=e;return n}function Z(e,t){return void 0===t&&(t=!1),!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function $(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function X(e){return Q.getInstance().getGraphemeBreakType(e)}function J(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 Q=(ee.getInstance=function(){return ee._INSTANCE||(ee._INSTANCE=new ee),ee._INSTANCE},ee.prototype.getGraphemeBreakType=function(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;for(var t=this._data,n=t.length/3,o=1;o<=n;)if(e<t[3*o])o*=2;else{if(!(e>t[3*o+1]))return t[3*o+2];o=2*o+1}return 0},ee._INSTANCE=null,ee);function ee(){this._data=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]")}},function(e,t,n){"use strict";function o(e,t){for(var n,o,i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];return n=t,0===(o=i).length?n:n.replace(/\{(\d+)\}/g,(function(e,t){var n=t[0];return void 0!==o[n]?o[n]:e}))}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function o(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h}));var i=new(o.prototype.emit=function(e){this.listeners.forEach((function(t){t(e)}))},o.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},o.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},o);function r(e){c(e)||i.onUnexpectedError(e)}function a(e){c(e)||i.onUnexpectedExternalError(e)}function s(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}:e}var l="Canceled";function c(e){return e instanceof Error&&e.name===l&&e.message===l}function u(){var e=new Error(l);return e.name=e.message,e}function d(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function h(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o="undefined"==typeof monaco?self.monaco:monaco,i={},r={},a=(s.getOrCreate=function(e){return r[e]||(r[e]=new s(e)),r[e]},s.prototype.whenLoaded=function(){return this._lazyLoadPromise},s.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,i[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise},s);function s(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,n){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=n}))}function l(e){var t=e.id;i[t]=e,o.languages.register(e);var n=a.getOrCreate(t);o.languages.setMonarchTokensProvider(t,n.whenLoaded().then((function(e){return e.language}))),o.languages.onLanguage(t,(function(){n.load().then((function(e){o.languages.setLanguageConfiguration(t,e.conf)}))}))}},function(e,t,n){"use strict";var o,i;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),(i=o=o||{}).serviceIds=new Map,i.DI_TARGET="$di$target",i.DI_DEPENDENCIES="$di$dependencies",i.getServiceDependencies=function(e){return e[i.DI_DEPENDENCIES]||[]};var r=s("instantiationService");function a(e,t,n,i){t[o.DI_TARGET]===t?t[o.DI_DEPENDENCIES].push({id:e,index:n,optional:i}):(t[o.DI_DEPENDENCIES]=[{id:e,index:n,optional:i}],t[o.DI_TARGET]=t)}function s(e){if(o.serviceIds.has(e))return o.serviceIds.get(e);function t(e,n,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");a(t,e,o,!1)}return t.toString=function(){return e},o.serviceIds.set(e,t),t}function l(e){return function(t,n,o){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");a(e,t,o,!0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return E})),n.d(t,"j",(function(){return N})),n.d(t,"e",(function(){return D})),n.d(t,"k",(function(){return L})),n.d(t,"l",(function(){return P})),n.d(t,"g",(function(){return I})),n.d(t,"f",(function(){return T})),n.d(t,"i",(function(){return M})),n.d(t,"h",(function(){return j})),n.d(t,"d",(function(){return O}));var o,i=n(446),r=n(479),a=n(504),s=n(450),l=n(598),c=n(787),u=n(755),d=n(489),h=n(456),p=n(788),f=n(571),g=n(821),m=n(465),v=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=(b.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?h.a.and(t,this.precondition):this.precondition),p.a.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 d.a.registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})},b.prototype._registerMenuItem=function(e){u.c.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title},when:e.when,order:e.order})},b);function b(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}var _,w=(v(C,_=y),C.bindToContribution=function(e){return v(t,n=C),t.prototype.runEditorCommand=function(t,n,o){e(n)&&this._callback(e(n),o)},t;function t(e){var t=n.call(this,e)||this;return t._callback=e.handler,t}var n},C.prototype.runCommand=function(e,t){var n=this,o=e.get(a.a),i=o.getFocusedCodeEditor()||o.getActiveCodeEditor();if(i)return i.invokeWithinContext((function(e){if(e.get(h.c).contextMatchesRules(Object(m.n)(n.precondition)))return n.runEditorCommand(e,i,t)}))},C);function C(){return null!==_&&_.apply(this,arguments)||this}var S,O,x,E=(v(k,S=w),k.convertOptions=function(e){var t;function n(t){return t.menuId||(t.menuId=7),t.title||(t.title=e.label),t.when=h.a.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},k.prototype.runEditorCommand=function(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})},k.prototype.reportTelemetry=function(e,t){e.get(g.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},k);function k(e){var t=S.call(this,k.convertOptions(e))||this;return t.label=e.label,t.alias=e.alias,t}function N(e,t){d.a.registerCommand(e,(function(e,n){return t(e,n||{})}))}function D(e,t){N(e,(function(e,n){var o=n.resource,a=n.position;if(!(o instanceof r.a))throw Object(i.b)("resource");if(!s.a.isIPosition(a))throw Object(i.b)("position");var u=e.get(l.a).getModel(o);if(u){var d=s.a.lift(a);return t(u,d,n)}return e.get(c.a).createModelReference(o).then((function(e){return new Promise((function(o,i){try{o(t(e.object.textEditorModel,s.a.lift(a),n))}catch(o){i(o)}})).finally((function(){e.dispose()}))}))}))}function L(e,t){d.a.registerCommand(e,(function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=n[0],a=n[1];Object(m.a)(r.a.isUri(i)),Object(m.a)(s.a.isIPosition(a));var u=e.get(l.a).getModel(i);if(u){var d=s.a.lift(a);return t(u,d,n.slice(2))}return e.get(c.a).createModelReference(i).then((function(e){return new Promise((function(o,i){try{o(t(e.object.textEditorModel,s.a.lift(a),n.slice(2)))}catch(o){i(o)}})).finally((function(){e.dispose()}))}))}))}function P(e,t){d.a.registerCommand(e,(function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=n[0];Object(m.a)(r.a.isUri(i));var a=e.get(l.a).getModel(i);return a?t(a,n.slice(1)):e.get(c.a).createModelReference(i).then((function(e){return new Promise((function(o,i){try{o(t(e.object.textEditorModel,n.slice(1)))}catch(o){i(o)}})).finally((function(){e.dispose()}))}))}))}function I(e){return R.INSTANCE.registerEditorCommand(e),e}function T(e){R.INSTANCE.registerEditorAction(new e)}function M(e){R.INSTANCE.registerEditorAction(e)}function j(e,t){R.INSTANCE.registerEditorContribution(e,t)}(x=O=O||{}).getEditorCommand=function(e){return R.INSTANCE.getEditorCommand(e)},x.getEditorActions=function(){return R.INSTANCE.getEditorActions()},x.getEditorContributions=function(){return R.INSTANCE.getEditorContributions()},x.getSomeEditorContributions=function(e){return R.INSTANCE.getEditorContributions().filter((function(t){return 0<=e.indexOf(t.id)}))},x.getDiffEditorContributions=function(){return R.INSTANCE.getDiffEditorContributions()};var R=(A.prototype.registerEditorContribution=function(e,t){this.editorContributions.push({id:e,ctor:t})},A.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},A.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},A.prototype.registerEditorAction=function(e){e.register(),this.editorActions.push(e)},A.prototype.getEditorActions=function(){return this.editorActions.slice(0)},A.prototype.registerEditorCommand=function(e){e.register(),this.editorCommands[e.id]=e},A.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null},A.INSTANCE=new A,A);function A(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}f.a.add("editor.contributions",R.INSTANCE)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=(i.prototype.with=function(e,t){return void 0===e&&(e=this.lineNumber),void 0===t&&(t=this.column),e===this.lineNumber&&t===this.column?this:new i(e,t)},i.prototype.delta=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),this.with(this.lineNumber+e,this.column+t)},i.prototype.equals=function(e){return i.equals(this,e)},i.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},i.prototype.isBefore=function(e){return i.isBefore(this,e)},i.isBefore=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column},i.prototype.isBeforeOrEqual=function(e){return i.isBeforeOrEqual(this,e)},i.isBeforeOrEqual=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column},i.compare=function(e,t){var n=0|e.lineNumber,o=0|t.lineNumber;return n!=o?n-o:(0|e.column)-(0|t.column)},i.prototype.clone=function(){return new i(this.lineNumber,this.column)},i.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},i.lift=function(e){return new i(e.lineNumber,e.column)},i.isIPosition=function(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column},i);function i(e,t){this.lineNumber=e,this.column=t}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return f}));var o=n(448),i=n(439),r=n(571),a=n(442),s=Object(o.c)("themeService");function l(e){return{id:e}}var c="hc";function u(e){switch(e){case"dark":return"vs-dark";case c:return"hc-black";default:return"vs"}}var d={ThemingContribution:"base.contributions.theming"};function h(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new a.a}var p=new(h.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Object(i.h)((function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)}))},h.prototype.getThemingParticipants=function(){return this.themingParticipants},h);function f(e){return p.onThemeChange(e)}r.a.add(d.ThemingContribution,p)},function(e,t,n){"use strict";(function(e,o){n.d(t,"h",(function(){return f})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return y})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return _})),n.d(t,"i",(function(){return w})),n.d(t,"a",(function(){return C}));var i=!1,r=!1,a=!1,s=!1,l=!1,c=!1,u=void 0,d=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||d){if("object"==typeof e){i="win32"===e.platform,r="darwin"===e.platform,a="linux"===e.platform;var h=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).VSCODE_NLS_CONFIG;if(h)try{var p=JSON.parse(h);p.availableLanguages["*"],p.locale,p._translationsConfigFile}catch(e){}s=!0}}else i=0<=(u=navigator.userAgent).indexOf("Windows"),r=0<=u.indexOf("Macintosh"),c=0<=u.indexOf("Macintosh")&&!!navigator.maxTouchPoints&&0<navigator.maxTouchPoints,a=0<=u.indexOf("Linux"),l=!0;var f=i,g=r,m=a,v=s,y=l,b=c,_="object"==typeof self?self:"object"==typeof o?o:{},w=function(){if(_.setImmediate)return _.setImmediate.bind(_);if("function"==typeof _.postMessage&&!_.importScripts){var t=[];_.addEventListener("message",(function(e){if(e.data&&e.data.vscodeSetImmediateId)for(var n=0,o=t.length;n<o;n++){var i=t[n];if(i.id===e.data.vscodeSetImmediateId)return t.splice(n,1),void i.callback()}}));var n=0;return function(e){var o=++n;t.push({id:o,callback:e}),_.postMessage({vscodeSetImmediateId:o},"*")}}if(void 0!==e&&"function"==typeof e.nextTick)return e.nextTick.bind(e);var o=Promise.resolve();return function(e){return o.then(e)}}(),C=r?2:i?1:3}).call(this,n(114),n(64))},function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"l",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"k",(function(){return y})),n.d(t,"b",(function(){return w}));var o=n(484),i=n(446),r=n(439);function a(e){return e&&"function"==typeof e.then}function s(e){var t=new o.b,n=e(t.token),r=new Promise((function(e,o){t.token.onCancellationRequested((function(){o(i.a())})),Promise.resolve(n).then((function(n){t.dispose(),e(n)}),(function(e){t.dispose(),o(e)}))}));return a.prototype.cancel=function(){t.cancel()},a.prototype.then=function(e,t){return r.then(e,t)},a.prototype.catch=function(e){return this.then(void 0,e)},a.prototype.finally=function(e){return r.finally(e)},new a;function a(){}}function l(e,t,n){return Promise.race([e,new Promise((function(e){return t.onCancellationRequested((function(){return e(n)}))}))])}var c=(u.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},u.prototype.isTriggered=function(){return null!==this.timeout},u.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(i.a()),this.completionPromise=null)},u.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},u.prototype.dispose=function(){this.cancelTimeout()},u);function u(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}function d(e,t){return t?new Promise((function(n,o){var r=setTimeout(n,e);t.onCancellationRequested((function(){clearTimeout(r),o(i.a())}))})):s((function(t){return d(e,t)}))}function h(e,t){void 0===t&&(t=0);var n=setTimeout(e,t);return Object(r.h)((function(){return clearTimeout(n)}))}function p(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var o=0,i=e.length;return function r(){if(i<=o)return Promise.resolve(n);var a=e[o++];return Promise.resolve(a()).then((function(e){return t(e)?Promise.resolve(e):r()}))}()}var f=(g.prototype.dispose=function(){this.cancel()},g.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},g.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout((function(){n._token=-1,e()}),t)},g.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout((function(){n._token=-1,e()}),t))},g);function g(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}var m=(v.prototype.dispose=function(){this.cancel()},v.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},v.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval((function(){e()}),t)},v);function v(){this._token=-1}var y,b=(_.prototype.dispose=function(){this.cancel(),this.runner=null},_.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},_.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},_.prototype.isScheduled=function(){return-1!==this.timeoutToken},_.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},_.prototype.doRun=function(){this.runner&&this.runner()},_);function _(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}!function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});y=function(t){var n=setTimeout((function(){return t(e)})),o=!1;return{dispose:function(){o||(o=!0,clearTimeout(n))}}}}else y=function(e,t){var n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),o=!1;return{dispose:function(){o||(o=!0,cancelIdleCallback(n))}}}}();var w=(C.prototype.dispose=function(){this._handle.dispose()},C.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},C);function C(e){var t=this;this._didRun=!1,this._executor=function(){try{t._value=e()}catch(e){t._error=e}finally{t._didRun=!0}},this._handle=y((function(){return t._executor()}))}},function(e,t,n){"use strict";var o=n(465),i=n(479),r=n(440),a=n(442),s=n(439),l=n(1075);function c(e,t,n,o){if(Array.isArray(e)){for(var i=0,r=0,a=e;r<a.length;r++){var s=c(a[r],t,n,o);if(10===s)return s;i<s&&(i=s)}return i}if("string"==typeof e)return o?"*"===e?5:e===n?10:0:0;if(e){var u=e.language,d=e.pattern,h=e.scheme,p=e.hasAccessToAllModels;if(!o&&!p)return 0;if(i=0,h)if(h===t.scheme)i=10;else{if("*"!==h)return 0;i=5}if(u)if(u===n)i=10;else{if("*"!==u)return 0;i=Math.max(i,5)}if(d){if(d!==t.fsPath&&!Object(l.a)(d,t.fsPath))return 0;i=10}return i}return 0}var u=n(598);function d(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(d):!!e.exclusive)}var h=(Object.defineProperty(p.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),p.prototype.register=function(e,t){var n=this,o={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(o),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(s.h)((function(){if(o){var e=n._entries.indexOf(o);0<=e&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),o=void 0)}}))},p.prototype.has=function(e){return 0<this.all(e).length},p.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var t=[],n=0,o=this._entries;n<o.length;n++){var i=o[n];0<i._score&&t.push(i.provider)}return t},p.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,(function(e){return t.push(e.provider)})),t},p.prototype.orderedGroups=function(e){var t,n,o=[];return this._orderedForEach(e,(function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],o.push(t))})),o},p.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0,o=this._entries;n<o.length;n++){var i=o[n];0<i._score&&t(i)}}},p.prototype._updateScores=function(e){var t={uri:e.uri.toString(),language:e.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==t.language||this._lastCandidate.uri!==t.uri){this._lastCandidate=t;for(var n=0,o=this._entries;n<o.length;n++){var i=o[n];if(i._score=c(i.selector,e.uri,e.getLanguageIdentifier().language,Object(u.b)(e)),d(i.selector)&&0<i._score){for(var r=0,a=this._entries;r<a.length;r++)a[r]._score=0;i._score=1e3;break}}this._entries.sort(p._compareByScoreAndTime)}},p._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},p);function p(){this._clock=0,this._entries=[],this._onDidChange=new a.a}var f=n(553),g=(m.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},m.prototype.register=function(e,t){var n=this;return this._map.set(e,t),this.fire([e]),Object(s.h)((function(){n._map.get(e)===t&&(n._map.delete(e),n.fire([e]))}))},m.prototype.registerPromise=function(e,t){var n=this,o=null,i=!1;return this._promises.set(e,t.then((function(t){n._promises.delete(e),!i&&t&&(o=n.register(e,t))}))),Object(s.h)((function(){i=!0,o&&o.dispose()}))},m.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return Promise.resolve(n);var o=this._promises.get(e);return o?o.then((function(n){return t.get(e)})):null},m.prototype.get=function(e){return Object(o.o)(this._map.get(e))},m.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Object(f.d)(this._map),changedColorMap:!0})},m.prototype.getColorMap=function(){return this._colorMap},m.prototype.getDefaultBackground=function(){return this._colorMap&&2<this._colorMap.length?this._colorMap[2]:null},m);function m(){this._map=new Map,this._promises=new Map,this._onDidChange=new a.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}n.d(t,"r",(function(){return v})),n.d(t,"A",(function(){return y})),n.d(t,"F",(function(){return k})),n.d(t,"E",(function(){return N})),n.d(t,"y",(function(){return C})),n.d(t,"h",(function(){return O})),n.d(t,"G",(function(){return D})),n.d(t,"z",(function(){return E})),n.d(t,"n",(function(){return I})),n.d(t,"D",(function(){return P})),n.d(t,"u",(function(){return M})),n.d(t,"v",(function(){return j})),n.d(t,"d",(function(){return R})),n.d(t,"x",(function(){return A})),n.d(t,"p",(function(){return F})),n.d(t,"m",(function(){return V})),n.d(t,"i",(function(){return W})),n.d(t,"f",(function(){return B})),n.d(t,"e",(function(){return H})),n.d(t,"q",(function(){return z})),n.d(t,"C",(function(){return K})),n.d(t,"b",(function(){return U})),n.d(t,"a",(function(){return q})),n.d(t,"g",(function(){return G})),n.d(t,"j",(function(){return Y})),n.d(t,"t",(function(){return Z})),n.d(t,"s",(function(){return $})),n.d(t,"c",(function(){return X})),n.d(t,"w",(function(){return J})),n.d(t,"o",(function(){return Q})),n.d(t,"l",(function(){return ee})),n.d(t,"k",(function(){return te})),n.d(t,"B",(function(){return ne}));var v=function(e,t){this.language=e,this.id=t},y=(b.getLanguageId=function(e){return(255&e)>>>0},b.getTokenType=function(e){return(1792&e)>>>8},b.getFontStyle=function(e){return(14336&e)>>>11},b.getForeground=function(e){return(8372224&e)>>>14},b.getBackground=function(e){return(4286578688&e)>>>23},b.getClassNameFromMetadata=function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t},b.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),o=this.getFontStyle(e),i="color: "+t[n]+";";return 1&o&&(i+="font-style: italic;"),2&o&&(i+="font-weight: bold;"),4&o&&(i+="text-decoration: underline;"),i},b);function b(){}var _,w,C,S,O,x,E,k=((_=Object.create(null))[0]="method",_[1]="function",_[2]="constructor",_[3]="field",_[4]="variable",_[5]="class",_[6]="struct",_[7]="interface",_[8]="module",_[9]="property",_[10]="event",_[11]="operator",_[12]="unit",_[13]="value",_[14]="constant",_[15]="enum",_[16]="enum-member",_[17]="keyword",_[25]="snippet",_[18]="text",_[19]="color",_[20]="file",_[21]="reference",_[22]="customcolor",_[23]="folder",_[24]="type-parameter",function(e){return _[e]||"property"}),N=((w=Object.create(null)).method=0,w.function=1,w.constructor=2,w.field=3,w.variable=4,w.class=5,w.struct=6,w.interface=7,w.module=8,w.property=9,w.event=10,w.operator=11,w.unit=12,w.value=13,w.constant=14,w.enum=15,w["enum-member"]=16,w.enumMember=16,w.keyword=17,w.snippet=25,w.text=18,w.color=19,w.file=20,w.reference=21,w.customcolor=22,w.folder=23,w["type-parameter"]=24,w.typeParameter=24,function(e,t){var n=w[e];return void 0!==n||t||(n=9),n});function D(e){return e&&i.a.isUri(e.uri)&&r.a.isIRange(e.range)&&(r.a.isIRange(e.originSelectionRange)||r.a.isIRange(e.targetSelectionRange))}(S=C=C||{})[S.Invoke=1]="Invoke",S[S.TriggerCharacter=2]="TriggerCharacter",S[S.ContentChange=3]="ContentChange",(x=O=O||{})[x.Text=0]="Text",x[x.Read=1]="Read",x[x.Write=2]="Write",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;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=function(e){return t.get(e)},e.toString=function(e){return n.get(e)},e.toCssClassName=function(e,t){return"codicon "+(t?"inline":"block")+" codicon-symbol-"+(n.get(e)||"property")}}(E=E||{});var L,P,I=(T.Comment=new T("comment"),T.Imports=new T("imports"),T.Region=new T("region"),T);function T(e){this.value=e}(L||(L={})).is=function(e){return Object(o.i)(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))},(P||(P={})).is=function(e){return Object(o.i)(e)&&i.a.isUri(e.resource)&&Object(o.i)(e.edit)};var M=new h,j=new h,R=new h,A=new h,F=new h,V=new h,W=new h,B=new h,H=new h,z=new h,K=new h,U=new h,q=new h,G=new h,Y=new h,Z=new h,$=new h,X=new h,J=new h,Q=new h,ee=new h,te=new h,ne=new g},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return O})),n.d(t,"d",(function(){return k})),n.d(t,"c",(function(){return D})),n.d(t,"e",(function(){return L}));var o,i=n(444),r=n(448),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(l.has=function(e){return u.create(e)},l.equals=function(e,t){return h.create(e,t)},l.regex=function(e,t){return y.create(e,t)},l.not=function(e){return m.create(e)},l.and=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return C.create(e)},l.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return O.create(e)},l.deserialize=function(e,t){if(void 0===t&&(t=!1),e)return this._deserializeOrExpression(e,t)},l._deserializeOrExpression=function(e,t){var n=this,o=e.split("||");return O.create(o.map((function(e){return n._deserializeAndExpression(e,t)})))},l._deserializeAndExpression=function(e,t){var n=this,o=e.split("&&");return C.create(o.map((function(e){return n._deserializeOne(e,t)})))},l._deserializeOne=function(e,t){if(0<=(e=e.trim()).indexOf("!=")){var n=e.split("!=");return f.create(n[0].trim(),this._deserializeValue(n[1],t))}return 0<=e.indexOf("==")?(n=e.split("=="),h.create(n[0].trim(),this._deserializeValue(n[1],t))):0<=e.indexOf("=~")?(n=e.split("=~"),y.create(n[0].trim(),this._deserializeRegexValue(n[1],t))):/^\!\s*/.test(e)?m.create(e.substr(1).trim()):u.create(e)},l._deserializeValue=function(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e},l._deserializeRegexValue=function(e,t){if(Object(i.x)(e)){if(t)throw new Error("missing regexp-value for =~-expression");return null}var n=e.indexOf("/"),o=e.lastIndexOf("/");if(n===o||n<0){if(t)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return null}var r=e.slice(n+1,o),a="i"===e[o+1]?"i":"";try{return new RegExp(r,a)}catch(n){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+n);return null}},l);function l(){}function c(e,t){var n=e.getType(),o=t.getType();if(n!==o)return n-o;switch(n){case 1:case 2:case 3:case 4:case 6:case 7:case 5:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var u=(d.create=function(e){return new d(e)},d.prototype.getType=function(){return 1},d.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},d.prototype.equals=function(e){return e instanceof d&&this.key===e.key},d.prototype.evaluate=function(e){return!!e.getValue(this.key)},d.prototype.keys=function(){return[this.key]},d.prototype.negate=function(){return m.create(this.key)},d);function d(e){this.key=e}var h=(p.create=function(e,t){return"boolean"==typeof t?t?u.create(e):m.create(e):new p(e,t)},p.prototype.getType=function(){return 3},p.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},p.prototype.equals=function(e){return e instanceof p&&this.key===e.key&&this.value===e.value},p.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},p.prototype.keys=function(){return[this.key]},p.prototype.negate=function(){return f.create(this.key,this.value)},p);function p(e,t){this.key=e,this.value=t}var f=(g.create=function(e,t){return"boolean"==typeof t?t?m.create(e):u.create(e):new g(e,t)},g.prototype.getType=function(){return 4},g.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},g.prototype.equals=function(e){return e instanceof g&&this.key===e.key&&this.value===e.value},g.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},g.prototype.keys=function(){return[this.key]},g.prototype.negate=function(){return h.create(this.key,this.value)},g);function g(e,t){this.key=e,this.value=t}var m=(v.create=function(e){return new v(e)},v.prototype.getType=function(){return 2},v.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},v.prototype.equals=function(e){return e instanceof v&&this.key===e.key},v.prototype.evaluate=function(e){return!e.getValue(this.key)},v.prototype.keys=function(){return[this.key]},v.prototype.negate=function(){return u.create(this.key)},v);function v(e){this.key=e}var y=(b.create=function(e,t){return new b(e,t)},b.prototype.getType=function(){return 6},b.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:n<t?1:0},b.prototype.equals=function(e){if(e instanceof b){var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1},b.prototype.evaluate=function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return _.create(this)},b);function b(e,t){this.key=e,this.regexp=t}var _=(w.create=function(e){return new w(e)},w.prototype.getType=function(){return 7},w.prototype.cmp=function(e){return this._actual.cmp(e._actual)},w.prototype.equals=function(e){return e instanceof w&&this._actual.equals(e._actual)},w.prototype.evaluate=function(e){return!this._actual.evaluate(e)},w.prototype.keys=function(){return this._actual.keys()},w.prototype.negate=function(){return this._actual},w);function w(e){this._actual=e}var C=(S.create=function(e){var t=S._normalizeArr(e);if(0!==t.length)return 1===t.length?t[0]:new S(t)},S.prototype.getType=function(){return 5},S.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 o=c(this.expr[t],e.expr[t]);if(0!==o)return o}return 0},S.prototype.equals=function(e){if(e instanceof S){if(this.expr.length!==e.expr.length)return!1;for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1},S.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},S._normalizeArr=function(e){var t=[];if(e){for(var n=0,o=e.length;n<o;n++){var i=e[n];if(i)if(i instanceof S)t=t.concat(i.expr);else{if(i instanceof O)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.');t.push(i)}}t.sort(c)}return t},S.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var o=n[t];e.push.apply(e,o.keys())}return e},S.prototype.negate=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var o=n[t];e.push(o.negate())}return O.create(e)},S);function S(e){this.expr=e}var O=(x.create=function(e){var t=x._normalizeArr(e);if(0!==t.length)return 1===t.length?t[0]:new x(t)},x.prototype.getType=function(){return 8},x.prototype.equals=function(e){if(e instanceof x){if(this.expr.length!==e.expr.length)return!1;for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1},x.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},x._normalizeArr=function(e){var t=[];if(e){for(var n=0,o=e.length;n<o;n++){var i=e[n];i&&(i instanceof x?t=t.concat(i.expr):t.push(i))}t.sort(c)}return t},x.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var o=n[t];e.push.apply(e,o.keys())}return e},x.prototype.negate=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var o=n[t];e.push(o.negate())}for(var i=function(e){return e instanceof x?e.expr:[e]};1<e.length;){for(var r=e.shift(),a=e.shift(),l=[],c=0,u=i(r);c<u.length;c++)for(var d=u[c],h=0,p=i(a);h<p.length;h++){var f=p[h];l.push(s.and(d,f))}e.unshift(s.or.apply(s,l))}return e[0]},x);function x(e){this.expr=e}var E,k=(a(N,E=u),N.prototype.bindTo=function(e){return e.createKey(this.key,this._defaultValue)},N.prototype.getValue=function(e){return e.getContextKeyValue(this.key)},N.prototype.toNegated=function(){return s.not(this.key)},N);function N(e,t){var n=E.call(this,e)||this;return n._defaultValue=t,n}var D=Object(r.c)("contextKeyService"),L="setContext"},,,function(e,t,n){"use strict";function o(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function i(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function r(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 o=0,i=e.length;o<i;o++)if(!n(e[o],t[o]))return!1;return!0}function a(e,t,n){for(var o=0,i=e.length-1;o<=i;){var r=(o+i)/2|0,a=n(e[r],t);if(a<0)o=1+r;else{if(!(0<a))return r;i=r-1}}return-(o+1)}function s(e,t){var n=0,o=e.length;if(0===o)return 0;for(;n<o;){var i=Math.floor((n+o)/2);t(e[i])?o=i:n=i+1}return n}function l(e,t){return function e(t,n,o,i,r){if(!(i<=o)){var a=o+(i-o)/2|0;e(t,n,o,a,r),e(t,n,1+a,i,r),n(t[a],t[1+a])<=0||function(e,t,n,o,i,r){for(var a=n,s=o+1,l=n;l<=i;l++)r[l]=e[l];for(l=n;l<=i;l++)o<a||!(i<s)&&t(r[s],r[a])<0?e[l]=r[s++]:e[l]=r[a++]}(t,n,o,a,i,r)}}(e,t,0,e.length-1,[]),e}function c(e,t){for(var n=[],o=void 0,i=0,r=l(e.slice(0),t);i<r.length;i++){var a=r[i];o&&0===t(o[0],a)?o.push(a):(o=[a],n.push(o))}return n}function u(e){return e.filter((function(e){return!!e}))}function d(e){return!Array.isArray(e)||0===e.length}function h(e){return Array.isArray(e)&&0<e.length}function p(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 o=t(e);return!n[o]&&(n[o]=!0)}))}function f(e){var t=new Set;return e.filter((function(e){return!t.has(e)&&(t.add(e),!0)}))}function g(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function m(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function v(e,t,n){void 0===n&&(n=void 0);var o=m(e,t);return o<0?n:e[o]}function y(e,t){return 0<e.length?e[0]:t}function b(e){var t;return(t=[]).concat.apply(t,e)}function _(e,t){var n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);var o=[];if(n<=t)for(var i=n;i<t;i++)o.push(i);else for(i=n;t<i;i--)o.push(i);return o}function w(e,t,n){var o=e.slice(0,t),i=e.slice(t);return o.concat(n,i)}function C(e,t){var n=e.indexOf(t);-1<n&&(e.splice(n,1),e.unshift(t))}function S(e,t){var n=e.indexOf(t);-1<n&&(e.splice(n,1),e.push(t))}function O(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o,n,e))return o}}function x(e){return Array.isArray(e)?e:[e]}n.d(t,"v",(function(){return o})),n.d(t,"w",(function(){return i})),n.d(t,"g",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"r",(function(){return l})),n.d(t,"o",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"p",(function(){return d})),n.d(t,"q",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"n",(function(){return g})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"l",(function(){return y})),n.d(t,"m",(function(){return b})),n.d(t,"u",(function(){return _})),n.d(t,"a",(function(){return w})),n.d(t,"t",(function(){return C})),n.d(t,"s",(function(){return S})),n.d(t,"h",(function(){return O})),n.d(t,"b",(function(){return x}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"Tb",(function(){return h})),n.d(t,"W",(function(){return f})),n.d(t,"U",(function(){return g})),n.d(t,"V",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"b",(function(){return y})),n.d(t,"ec",(function(){return b})),n.d(t,"dc",(function(){return _})),n.d(t,"hc",(function(){return w})),n.d(t,"Z",(function(){return C})),n.d(t,"bb",(function(){return S})),n.d(t,"ab",(function(){return O})),n.d(t,"Y",(function(){return x})),n.d(t,"X",(function(){return E})),n.d(t,"fb",(function(){return k})),n.d(t,"hb",(function(){return N})),n.d(t,"gb",(function(){return D})),n.d(t,"ib",(function(){return L})),n.d(t,"kb",(function(){return P})),n.d(t,"jb",(function(){return I})),n.d(t,"cb",(function(){return T})),n.d(t,"eb",(function(){return M})),n.d(t,"db",(function(){return j})),n.d(t,"Ob",(function(){return F})),n.d(t,"Nb",(function(){return V})),n.d(t,"c",(function(){return W})),n.d(t,"d",(function(){return B})),n.d(t,"Vb",(function(){return H})),n.d(t,"Xb",(function(){return z})),n.d(t,"Yb",(function(){return K})),n.d(t,"Wb",(function(){return U})),n.d(t,"Sb",(function(){return q})),n.d(t,"q",(function(){return G})),n.d(t,"p",(function(){return Y})),n.d(t,"P",(function(){return Z})),n.d(t,"O",(function(){return $})),n.d(t,"H",(function(){return X})),n.d(t,"G",(function(){return J})),n.d(t,"z",(function(){return Q})),n.d(t,"y",(function(){return ee})),n.d(t,"o",(function(){return te})),n.d(t,"x",(function(){return ne})),n.d(t,"Q",(function(){return oe})),n.d(t,"S",(function(){return ie})),n.d(t,"R",(function(){return re})),n.d(t,"T",(function(){return ae})),n.d(t,"K",(function(){return se})),n.d(t,"L",(function(){return le})),n.d(t,"F",(function(){return ce})),n.d(t,"M",(function(){return ue})),n.d(t,"N",(function(){return de})),n.d(t,"r",(function(){return he})),n.d(t,"t",(function(){return pe})),n.d(t,"v",(function(){return fe})),n.d(t,"s",(function(){return ge})),n.d(t,"u",(function(){return me})),n.d(t,"w",(function(){return ve})),n.d(t,"D",(function(){return ye})),n.d(t,"A",(function(){return be})),n.d(t,"C",(function(){return _e})),n.d(t,"B",(function(){return we})),n.d(t,"E",(function(){return Ce})),n.d(t,"n",(function(){return Se})),n.d(t,"J",(function(){return Oe})),n.d(t,"I",(function(){return xe})),n.d(t,"g",(function(){return Ee})),n.d(t,"h",(function(){return ke})),n.d(t,"j",(function(){return Ne})),n.d(t,"l",(function(){return De})),n.d(t,"k",(function(){return Le})),n.d(t,"m",(function(){return Pe})),n.d(t,"i",(function(){return Ie})),n.d(t,"rb",(function(){return Te})),n.d(t,"sb",(function(){return Me})),n.d(t,"lb",(function(){return je})),n.d(t,"mb",(function(){return Re})),n.d(t,"xb",(function(){return Ae})),n.d(t,"yb",(function(){return Fe})),n.d(t,"wb",(function(){return Ve})),n.d(t,"ub",(function(){return We})),n.d(t,"vb",(function(){return Be})),n.d(t,"nb",(function(){return He})),n.d(t,"tb",(function(){return ze})),n.d(t,"ob",(function(){return Ke})),n.d(t,"qb",(function(){return Ue})),n.d(t,"pb",(function(){return qe})),n.d(t,"gc",(function(){return Ge})),n.d(t,"Ab",(function(){return Ye})),n.d(t,"Bb",(function(){return Ze})),n.d(t,"zb",(function(){return $e})),n.d(t,"Eb",(function(){return Xe})),n.d(t,"Cb",(function(){return Je})),n.d(t,"Db",(function(){return Qe})),n.d(t,"Fb",(function(){return et})),n.d(t,"bc",(function(){return tt})),n.d(t,"cc",(function(){return nt})),n.d(t,"Zb",(function(){return ot})),n.d(t,"ac",(function(){return it})),n.d(t,"Lb",(function(){return rt})),n.d(t,"Mb",(function(){return at})),n.d(t,"Hb",(function(){return st})),n.d(t,"Ib",(function(){return lt})),n.d(t,"Gb",(function(){return ct})),n.d(t,"Jb",(function(){return ut})),n.d(t,"Pb",(function(){return dt})),n.d(t,"Rb",(function(){return ht})),n.d(t,"Qb",(function(){return pt})),n.d(t,"f",(function(){return ft})),n.d(t,"fc",(function(){return gt})),n.d(t,"Kb",(function(){return mt})),n.d(t,"Ub",(function(){return yt}));var o=n(571),i=n(490),r=n(442),a=n(445),s=n(1073),l=n(453),c={ColorContribution:"base.contributions.colors"};function u(){this._onDidChangeSchema=new r.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}var d=new(u.prototype.registerColor=function(e,t,n,o,i){void 0===o&&(o=!1);var r={id:e,description:n,defaults:t,needsTransparency:o,deprecationMessage:i};this.colorsById[e]=r;var a={type:"string",description:n,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return i&&(a.deprecationMessage=i),this.colorSchema.properties[e]=a,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e},u.prototype.resolveDefaultColor=function(e,t){var n=this.colorsById[e];if(n&&n.defaults)return yt(n.defaults[t.type],t)},u.prototype.getColorSchema=function(){return this.colorSchema},u.prototype.toString=function(){var e=this;return Object.keys(this.colorsById).sort((function(e,t){var n=-1===e.indexOf(".")?0:1,o=-1===t.indexOf(".")?0:1;return n!=o?n-o:e.localeCompare(t)})).map((function(t){return"- `"+t+"`: "+e.colorsById[t].description})).join("\n")},u);function h(e,t,n,o,i){return d.registerColor(e,t,n,o,i)}o.a.add(c.ColorContribution,d);var p,f=h("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},a.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),g=h("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},a.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),m=h("focusBorder",{dark:i.a.fromHex("#0E639C").transparent(.8),light:i.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},a.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),v=h("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},a.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),y=h("contrastActiveBorder",{light:null,dark:null,hc:m},a.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),b=h("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},a.a("textLinkForeground","Foreground color for links in text.")),_=h("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:i.a.black},a.a("textCodeBlockBackground","Background color for code blocks in text.")),w=h("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},a.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),C=h("input.background",{dark:"#3C3C3C",light:i.a.white,hc:i.a.black},a.a("inputBoxBackground","Input box background.")),S=h("input.foreground",{dark:f,light:f,hc:f},a.a("inputBoxForeground","Input box foreground.")),O=h("input.border",{dark:null,light:null,hc:v},a.a("inputBoxBorder","Input box border.")),x=h("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:v},a.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),E=h("inputOption.activeBackground",{dark:gt(m,.5),light:gt(m,.3),hc:null},a.a("inputOption.activeBackground","Background color of activated options in input fields.")),k=h("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:i.a.black},a.a("inputValidationInfoBackground","Input validation background color for information severity.")),N=h("inputValidation.infoForeground",{dark:null,light:null,hc:null},a.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),D=h("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:v},a.a("inputValidationInfoBorder","Input validation border color for information severity.")),L=h("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:i.a.black},a.a("inputValidationWarningBackground","Input validation background color for warning severity.")),P=h("inputValidation.warningForeground",{dark:null,light:null,hc:null},a.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),I=h("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:v},a.a("inputValidationWarningBorder","Input validation border color for warning severity.")),T=h("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:i.a.black},a.a("inputValidationErrorBackground","Input validation background color for error severity.")),M=h("inputValidation.errorForeground",{dark:null,light:null,hc:null},a.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),j=h("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:v},a.a("inputValidationErrorBorder","Input validation border color for error severity.")),R=h("dropdown.background",{dark:"#3C3C3C",light:i.a.white,hc:i.a.black},a.a("dropdownBackground","Dropdown background.")),A=h("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:i.a.white},a.a("dropdownForeground","Dropdown foreground.")),F=h("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:i.a.white},a.a("pickerGroupForeground","Quick picker color for grouping labels.")),V=h("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:i.a.white},a.a("pickerGroupBorder","Quick picker color for grouping borders.")),W=h("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:i.a.black},a.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),B=h("badge.foreground",{dark:i.a.white,light:"#333",hc:i.a.white},a.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),H=h("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},a.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),z=h("scrollbarSlider.background",{dark:i.a.fromHex("#797979").transparent(.4),light:i.a.fromHex("#646464").transparent(.4),hc:gt(v,.6)},a.a("scrollbarSliderBackground","Scrollbar slider background color.")),K=h("scrollbarSlider.hoverBackground",{dark:i.a.fromHex("#646464").transparent(.7),light:i.a.fromHex("#646464").transparent(.7),hc:gt(v,.8)},a.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),U=h("scrollbarSlider.activeBackground",{dark:i.a.fromHex("#BFBFBF").transparent(.4),light:i.a.fromHex("#000000").transparent(.6),hc:v},a.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),q=h("progressBar.background",{dark:i.a.fromHex("#0E70C0"),light:i.a.fromHex("#0E70C0"),hc:v},a.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),G=h("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},a.a("editorError.foreground","Foreground color of error squigglies in the editor.")),Y=h("editorError.border",{dark:null,light:null,hc:i.a.fromHex("#E47777").transparent(.8)},a.a("errorBorder","Border color of error boxes in the editor.")),Z=h("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},a.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),$=h("editorWarning.border",{dark:null,light:null,hc:i.a.fromHex("#FFCC00").transparent(.8)},a.a("warningBorder","Border color of warning boxes in the editor.")),X=h("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},a.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),J=h("editorInfo.border",{dark:null,light:null,hc:i.a.fromHex("#75BEFF").transparent(.8)},a.a("infoBorder","Border color of info boxes in the editor.")),Q=h("editorHint.foreground",{dark:i.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},a.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ee=h("editorHint.border",{dark:null,light:null,hc:i.a.fromHex("#eeeeee").transparent(.8)},a.a("hintBorder","Border color of hint boxes in the editor.")),te=h("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:i.a.black},a.a("editorBackground","Editor background color.")),ne=h("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:i.a.white},a.a("editorForeground","Editor default foreground color.")),oe=h("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},a.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),ie=h("editorWidget.foreground",{dark:f,light:f,hc:f},a.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),re=h("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:v},a.a("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.")),ae=h("editorWidget.resizeBorder",{light:null,dark:null,hc:null},a.a("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.")),se=h("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},a.a("editorSelectionBackground","Color of the editor selection.")),le=h("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},a.a("editorSelectionForeground","Color of the selected text for high contrast.")),ce=h("editor.inactiveSelectionBackground",{light:gt(se,.5),dark:gt(se,.5),hc:gt(se,.5)},a.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),ue=h("editor.selectionHighlightBackground",{light:vt(se,te,.3,.6),dark:vt(se,te,.3,.6),hc:null},a.a("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),de=h("editor.selectionHighlightBorder",{light:null,dark:null,hc:y},a.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),he=h("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},a.a("editorFindMatch","Color of the current search match.")),pe=h("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},a.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),fe=h("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},a.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ge=h("editor.findMatchBorder",{light:null,dark:null,hc:y},a.a("editorFindMatchBorder","Border color of the current search match.")),me=h("editor.findMatchHighlightBorder",{light:null,dark:null,hc:y},a.a("findMatchHighlightBorder","Border color of the other search matches.")),ve=h("editor.findRangeHighlightBorder",{dark:null,light:null,hc:gt(y,.4)},a.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ye=h("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},a.a("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),be=h("editorHoverWidget.background",{light:oe,dark:oe,hc:oe},a.a("hoverBackground","Background color of the editor hover.")),_e=h("editorHoverWidget.foreground",{light:ie,dark:ie,hc:ie},a.a("hoverForeground","Foreground color of the editor hover.")),we=h("editorHoverWidget.border",{light:re,dark:re,hc:re},a.a("hoverBorder","Border color of the editor hover.")),Ce=h("editorHoverWidget.statusBarBackground",{dark:(.2,function(e){var t=yt(p,e);if(t)return t.lighten(.2)}),light:ft(p=be,.05),hc:oe},a.a("statusBarBackground","Background color of the editor hover status bar.")),Se=h("editorLink.activeForeground",{dark:"#4E94CE",light:i.a.blue,hc:i.a.cyan},a.a("activeLinkForeground","Color of active links.")),Oe=h("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},a.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),xe=h("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},a.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),Ee=new i.a(new i.c(155,185,85,.2)),ke=new i.a(new i.c(255,0,0,.2)),Ne=h("diffEditor.insertedTextBackground",{dark:Ee,light:Ee,hc:null},a.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),De=h("diffEditor.removedTextBackground",{dark:ke,light:ke,hc:null},a.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Le=h("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},a.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Pe=h("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},a.a("diffEditorRemovedOutline","Outline color for text that got removed.")),Ie=h("diffEditor.border",{dark:null,light:null,hc:v},a.a("diffEditorBorder","Border color between the two text editors.")),Te=h("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},a.a("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.")),Me=h("list.focusForeground",{dark:null,light:null,hc:null},a.a("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.")),je=h("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},a.a("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.")),Re=h("list.activeSelectionForeground",{dark:i.a.white,light:i.a.white,hc:null},a.a("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.")),Ae=h("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},a.a("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.")),Fe=h("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},a.a("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.")),Ve=h("list.inactiveFocusBackground",{dark:null,light:null,hc:null},a.a("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.")),We=h("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},a.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Be=h("list.hoverForeground",{dark:null,light:null,hc:null},a.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),He=h("list.dropBackground",{dark:Te,light:Te,hc:null},a.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),ze=h("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:m},a.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Ke=h("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:i.a.black},a.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Ue=h("listFilterWidget.outline",{dark:i.a.transparent,light:i.a.transparent,hc:"#f38518"},a.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),qe=h("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:v},a.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Ge=h("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},a.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ye=h("menu.border",{dark:null,light:null,hc:v},a.a("menuBorder","Border color of menus.")),Ze=h("menu.foreground",{dark:A,light:f,hc:A},a.a("menuForeground","Foreground color of menu items.")),$e=h("menu.background",{dark:R,light:R,hc:R},a.a("menuBackground","Background color of menu items.")),Xe=h("menu.selectionForeground",{dark:Re,light:Re,hc:Re},a.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Je=h("menu.selectionBackground",{dark:je,light:je,hc:je},a.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Qe=h("menu.selectionBorder",{dark:null,light:null,hc:y},a.a("menuSelectionBorder","Border color of the selected menu item in menus.")),et=h("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:v},a.a("menuSeparatorBackground","Color of a separator menu item in menus.")),tt=h("editor.snippetTabstopHighlightBackground",{dark:new i.a(new i.c(124,124,124,.3)),light:new i.a(new i.c(10,50,100,.2)),hc:new i.a(new i.c(124,124,124,.3))},a.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),nt=h("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},a.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),ot=h("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},a.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),it=h("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new i.a(new i.c(10,50,100,.5)),hc:"#525252"},a.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),rt=h("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},a.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),at=h("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},a.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),st=h("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},a.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),lt=h("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},a.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),ct=h("minimap.errorHighlight",{dark:new i.a(new i.c(255,18,18,.7)),light:new i.a(new i.c(255,18,18,.7)),hc:new i.a(new i.c(255,50,50,1))},a.a("minimapError","Minimap marker color for errors.")),ut=h("minimap.warningHighlight",{dark:Z,light:Z,hc:$},a.a("overviewRuleWarning","Minimap marker color for warnings.")),dt=h("problemsErrorIcon.foreground",{dark:G,light:G,hc:G},a.a("problemsErrorIconForeground","The color used for the problems error icon.")),ht=h("problemsWarningIcon.foreground",{dark:Z,light:Z,hc:Z},a.a("problemsWarningIconForeground","The color used for the problems warning icon.")),pt=h("problemsInfoIcon.foreground",{dark:X,light:X,hc:X},a.a("problemsInfoIconForeground","The color used for the problems info icon."));function ft(e,t){return function(n){var o=yt(e,n);if(o)return o.darken(t)}}function gt(e,t){return function(n){var o=yt(e,n);if(o)return o.transparent(t)}}function mt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0,o=e;n<o.length;n++){var i=yt(o[n],t);if(i)return i}}}function vt(e,t,n,o){return function(r){var a=yt(e,r);if(a){var s=yt(t,r);return s?a.isDarkerThan(s)?i.a.getLighterColor(a,s,n).transparent(o):i.a.getDarkerColor(a,s,n).transparent(o):a.transparent(n*o)}}}function yt(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?i.a.fromHex(e):t.getColor(e):e instanceof i.a?e:"function"==typeof e?e(t):void 0}var bt="vscode://schemas/workbench-colors",_t=o.a.as(s.a.JSONContribution);_t.registerSchema(bt,d.getColorSchema());var wt=new l.d((function(){return _t.notifySchemaChanged(bt)}),200);d.onDidChangeSchema((function(){wt.isScheduled()||wt.schedule()}))},function(e,t,n){"use strict";var o=n(0),i=n(1),r=n(182),a=n(12),s=n.n(a),l=n(75),c=n.n(l),u=n(77);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},b=function(){function e(){var t,n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,i=g(e).apply(this,arguments),(t=!i||"object"!==d(i)&&"function"!=typeof i?m(n):i).saveCheckbox=function(e){t.rcCheckbox=e},t.onChange=function(e){t.props.onChange&&t.props.onChange(e),t.context.radioGroup&&t.context.radioGroup.onChange&&t.context.radioGroup.onChange(e)},t.renderRadio=function(e){var n,i=e.getPrefixCls,a=m(t),l=a.props,c=a.context,u=l.prefixCls,d=l.className,f=l.children,g=l.style,v=y(l,["prefixCls","className","children","style"]),b=c.radioGroup,_=i("radio",u),w=p({},v);b&&(w.name=b.name,w.onChange=t.onChange,w.checked=l.value===b.value,w.disabled=l.disabled||b.disabled);var C=s()(d,(h(n={},"".concat(_,"-wrapper"),!0),h(n,"".concat(_,"-wrapper-checked"),w.checked),h(n,"".concat(_,"-wrapper-disabled"),w.disabled),n));return o.createElement("label",{className:C,style:g,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave},o.createElement(r.a,p({},w,{prefixCls:_,ref:t.saveCheckbox})),void 0!==f?o.createElement("span",null,f):null)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(e,o.Component),t=e,(n=[{key:"shouldComponentUpdate",value:function(e,t,n){return!c()(this.props,e)||!c()(this.state,t)||!c()(this.context.radioGroup,n.radioGroup)}},{key:"focus",value:function(){this.rcCheckbox.focus()}},{key:"blur",value:function(){this.rcCheckbox.blur()}},{key:"render",value:function(){return o.createElement(u.a,null,this.renderRadio)}}])&&f(t.prototype,n),e}();b.defaultProps={type:"radio"},b.contextTypes={radioGroup:i.any};var _=n(25);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=null,n=!1;return o.Children.forEach(e,(function(e){e&&e.props&&e.props.checked&&(t=e.props.value,n=!0)})),n?{value:t}:void 0}var k=function(){function e(t){var n,i,r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,i=S(e).call(this,t),(n=!i||"object"!==w(i)&&"function"!=typeof i?O(this):i).onRadioChange=function(e){var t=n.state.value,o=e.target.value;"value"in n.props||n.setState({value:o});var i=n.props.onChange;i&&o!==t&&i(e)},n.renderGroup=function(e){var t,i,r,a=e.getPrefixCls,l=O(n).props,c=l.prefixCls,u=l.className,d=void 0===u?"":u,h=l.options,p=l.buttonStyle,f=a("radio",c),g="".concat(f,"-group"),m=s()(g,"".concat(g,"-").concat(p),(t={},i="".concat(g,"-").concat(l.size),r=l.size,i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t),d),v=l.children;return h&&0<h.length&&(v=h.map((function(e){return"string"==typeof e?o.createElement(b,{key:e,prefixCls:f,disabled:n.props.disabled,value:e,checked:n.state.value===e},e):o.createElement(b,{key:"radio-group-value-options-".concat(e.value),prefixCls:f,disabled:e.disabled||n.props.disabled,value:e.value,checked:n.state.value===e.value},e.label)}))),o.createElement("div",{className:m,style:l.style,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave,id:l.id},v)},"value"in t)r=t.value;else if("defaultValue"in t)r=t.defaultValue;else{var a=E(t.children);r=a&&a.value}return n.state={value:r},n}var t,n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(e,o.Component),t=e,i=[{key:"getDerivedStateFromProps",value:function(e){if("value"in e)return{value:e.value};var t=E(e.children);return t?{value:t.value}:null}}],(n=[{key:"getChildContext",value:function(){return{radioGroup:{onChange:this.onRadioChange,value:this.state.value,disabled:this.props.disabled,name:this.props.name}}}},{key:"shouldComponentUpdate",value:function(e,t){return!c()(this.props,e)||!c()(this.state,t)}},{key:"render",value:function(){return o.createElement(u.a,null,this.renderGroup)}}])&&C(t.prototype,n),i&&C(t,i),e}();k.defaultProps={buttonStyle:"outline"},k.childContextTypes={radioGroup:i.any},Object(_.polyfill)(k);var N=k;function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(){return(L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function P(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function I(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var j=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},R=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=I(this,T(e).apply(this,arguments))).renderRadioButton=function(e){var n=e.getPrefixCls,i=t.props,r=i.prefixCls,a=j(i,["prefixCls"]),s=n("radio-button",r);return t.context.radioGroup&&(a.checked=t.props.value===t.context.radioGroup.value,a.disabled=t.props.disabled||t.context.radioGroup.disabled),o.createElement(b,L({prefixCls:s},a))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){return o.createElement(u.a,null,this.renderRadioButton)}}])&&P(t.prototype,n),e}();R.contextTypes={radioGroup:i.any},b.Button=R,b.Group=N,t.a=b},,,function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"j",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"l",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return y})),n.d(t,"m",(function(){return b})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return C})),n.d(t,"n",(function(){return S})),n.d(t,"o",(function(){return O}));var o="number",i="string",r="undefined",a="object",s="function";function l(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==o||e.constructor!==Array)}function c(e){return typeof e===i||e instanceof String}function u(e){return!(typeof e!==a||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function d(e){return(typeof e===o||e instanceof Number)&&!isNaN(e)}function h(e){return!0===e||!1===e}function p(e){return typeof e===r}function f(e){return p(e)||null===e}function g(e,t){if(!e)throw new Error(t?"Unexpected type, expected '"+t+"'":"Unexpected type")}var m=Object.prototype.hasOwnProperty;function v(e){if(!u(e))return!1;for(var t in e)if(m.call(e,t))return!1;return!0}function y(e){return typeof e===s}function b(e,t){for(var n=Math.min(e.length,t.length),o=0;o<n;o++)_(e[o],t[o])}function _(e,t){if(c(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(y(t)){try{if(e instanceof t)return}catch(e){}if(!f(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 w(e){for(var t=[],n=0,o=function(e){for(var t=[],n=Object.getPrototypeOf(e);Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e);n<o.length;n++){var i=o[n];"function"==typeof e[i]&&t.push(i)}return t}function C(e,t){for(var n=function(e){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},o={},i=0,r=e;i<r.length;i++){var a=r[i];o[a]=n(a)}return o}function S(e){return null===e?void 0:e}function O(e){return void 0===e?null:e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o,i,r=n(450),a=n(440),s=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(l,i=a.a),l.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},l.prototype.equalsSelection=function(e){return l.selectionsEqual(this,e)},l.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},l.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},l.prototype.setEndPosition=function(e,t){return 0===this.getDirection()?new l(this.startLineNumber,this.startColumn,e,t):new l(e,t,this.startLineNumber,this.startColumn)},l.prototype.getPosition=function(){return new r.a(this.positionLineNumber,this.positionColumn)},l.prototype.setStartPosition=function(e,t){return 0===this.getDirection()?new l(e,t,this.endLineNumber,this.endColumn):new l(this.endLineNumber,this.endColumn,e,t)},l.fromPositions=function(e,t){return void 0===t&&(t=e),new l(e.lineNumber,e.column,t.lineNumber,t.column)},l.liftSelection=function(e){return new l(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},l.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0},l.isISelection=function(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn},l.createWithDirection=function(e,t,n,o,i){return 0===i?new l(e,t,n,o):new l(n,o,e,t)},l);function l(e,t,n,o){var r=i.call(this,e,t,n,o)||this;return r.selectionStartLineNumber=e,r.selectionStartColumn=t,r.positionLineNumber=n,r.positionColumn=o,r}},function(e,t,n){var o=n(477);e.exports=function(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0});var r={position:"absolute",top:"-9999px",width:"50px",height:"50px"};t.INTERNAL_COL_DEFINE="RC_TABLE_INTERNAL_COL_DEFINE",t.measureScrollbar=function(e){var t=e.direction,n=void 0===t?"vertical":t,a=e.prefixCls;if("undefined"==typeof document||"undefined"==typeof window)return 0;var s="vertical"===n;if(s&&o)return o;if(!s&&i)return i;var l=document.createElement("div");Object.keys(r).forEach((function(e){l.style[e]=r[e]})),l.className="".concat(a,"-hide-scrollbar scroll-div-append-to-body"),s?l.style.overflowY="scroll":l.style.overflowX="scroll",document.body.appendChild(l);var c=0;return s?(c=l.offsetWidth-l.clientWidth,o=c):(c=l.offsetHeight-l.clientHeight,i=c),document.body.removeChild(l),c},t.debounce=function(e,t,n){var o;function i(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var s=this;r[0]&&r[0].persist&&r[0].persist();var l=n&&!o;clearTimeout(o),o=setTimeout((function(){o=null,n||e.apply(s,r)}),t),l&&e.apply(s,r)}return i.cancel=function(){o&&(clearTimeout(o),o=null)},i},t.remove=function(e,t){var n=e.indexOf(t),o=e.slice(0,n),i=e.slice(n+1,e.length);return o.concat(i)},t.getDataAndAriaProps=function(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,i,r=n(456);(i=o=o||{}).editorSimpleInput=new r.d("editorSimpleInput",!1),i.editorTextFocus=new r.d("editorTextFocus",!1),i.focus=new r.d("editorFocus",!1),i.textInputFocus=new r.d("textInputFocus",!1),i.readOnly=new r.d("editorReadonly",!1),i.writable=i.readOnly.toNegated(),i.hasNonEmptySelection=new r.d("editorHasSelection",!1),i.hasOnlyEmptySelection=i.hasNonEmptySelection.toNegated(),i.hasMultipleSelections=new r.d("editorHasMultipleSelections",!1),i.hasSingleSelection=i.hasMultipleSelections.toNegated(),i.tabMovesFocus=new r.d("editorTabMovesFocus",!1),i.tabDoesNotMoveFocus=i.tabMovesFocus.toNegated(),i.isInEmbeddedEditor=new r.d("isInEmbeddedEditor",!1),i.canUndo=new r.d("canUndo",!1),i.canRedo=new r.d("canRedo",!1),i.languageId=new r.d("editorLangId",""),i.hasCompletionItemProvider=new r.d("editorHasCompletionItemProvider",!1),i.hasCodeActionsProvider=new r.d("editorHasCodeActionsProvider",!1),i.hasCodeLensProvider=new r.d("editorHasCodeLensProvider",!1),i.hasDefinitionProvider=new r.d("editorHasDefinitionProvider",!1),i.hasDeclarationProvider=new r.d("editorHasDeclarationProvider",!1),i.hasImplementationProvider=new r.d("editorHasImplementationProvider",!1),i.hasTypeDefinitionProvider=new r.d("editorHasTypeDefinitionProvider",!1),i.hasHoverProvider=new r.d("editorHasHoverProvider",!1),i.hasDocumentHighlightProvider=new r.d("editorHasDocumentHighlightProvider",!1),i.hasDocumentSymbolProvider=new r.d("editorHasDocumentSymbolProvider",!1),i.hasReferenceProvider=new r.d("editorHasReferenceProvider",!1),i.hasRenameProvider=new r.d("editorHasRenameProvider",!1),i.hasSignatureHelpProvider=new r.d("editorHasSignatureHelpProvider",!1),i.hasDocumentFormattingProvider=new r.d("editorHasDocumentFormattingProvider",!1),i.hasDocumentSelectionFormattingProvider=new r.d("editorHasDocumentSelectionFormattingProvider",!1),i.hasMultipleDocumentFormattingProvider=new r.d("editorHasMultipleDocumentFormattingProvider",!1),i.hasMultipleDocumentSelectionFormattingProvider=new r.d("editorHasMultipleDocumentSelectionFormattingProvider",!1)},function(e,t,n){"use strict";n(46),n(685)},,,function(e,t,n){(function(e){var o=n(166),i=n(524),r=t&&!t.nodeType&&t,a=r&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===r?o.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l}).call(this,n(262)(e))},function(e,t,n){var o=n(525),i=n(526),r=n(527),a=r&&r.isTypedArray,s=a?i(a):o;e.exports=s},function(e,t,n){var o=n(512),i=n(494);e.exports=function(e){return null!=e&&i(e.length)&&!o(e)}},,function(e,t,n){var o=n(457),i=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"m",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"k",(function(){return v})),n.d(t,"n",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"g",(function(){return _})),n.d(t,"l",(function(){return w}));var o=n(442),i=(r.prototype.getZoomLevel=function(){return this._zoomLevel},r.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},r.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)},r.INSTANCE=new r,r);function r(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new o.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}function a(){return i.INSTANCE.getZoomLevel()}function s(){return i.INSTANCE.getTimeSinceLastZoomLevelChanged()}function l(e){return i.INSTANCE.onDidChangeZoomLevel(e)}function c(){return i.INSTANCE.getPixelRatio()}var u=navigator.userAgent,d=0<=u.indexOf("Trident"),h=0<=u.indexOf("Edge/"),p=d||h,f=0<=u.indexOf("Firefox"),g=0<=u.indexOf("AppleWebKit"),m=0<=u.indexOf("Chrome"),v=!m&&0<=u.indexOf("Safari"),y=!m&&!v&&g,b=0<=u.indexOf("iPad")||v&&0<navigator.maxTouchPoints,_=h&&0<=u.indexOf("WebView/"),w=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o,i,r=n(452),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=/^\w[\w\d+.-]*$/,l=/^\//,c=/^\/\//,u="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,h=(p.isUri=function(e){return e instanceof p||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(p.prototype,"fsPath",{get:function(){return w(this)},enumerable:!0,configurable:!0}),p.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,o=e.path,i=e.query,r=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===o?o=this.path:null===o&&(o=""),void 0===i?i=this.query:null===i&&(i=""),void 0===r?r=this.fragment:null===r&&(r=""),t===this.scheme&&n===this.authority&&o===this.path&&i===this.query&&r===this.fragment?this:new m(t,n,o,i,r)},p.parse=function(e,t){void 0===t&&(t=!1);var n=d.exec(e);return n?new m(n[2]||"",O(n[4]||""),O(n[5]||""),O(n[7]||""),O(n[9]||""),t):new m("","","","","")},p.file=function(e){var t="";if(r.h&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){var n=e.indexOf(u,2);e=-1===n?(t=e.substring(2),u):(t=e.substring(2,n),e.substring(n)||u)}return new m("file",t,e,"","")},p.from=function(e){return new m(e.scheme,e.authority,e.path,e.query,e.fragment)},p.prototype.toString=function(e){return void 0===e&&(e=!1),C(this,e)},p.prototype.toJSON=function(){return this},p.revive=function(e){if(e){if(e instanceof p)return e;var t=new m(e);return t._formatted=e.external,t._fsPath=e._sep===g?e.fsPath:null,t}return e},p);function p(e,t,n,o,i,r){var a;void 0===r&&(r=!1),"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=(a=e)||r?a:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||""),this.query=o||"",this.fragment=i||"",function(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&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.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(c.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,r))}var f,g=r.h?1:void 0,m=(a(v,f=h),Object.defineProperty(v.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=w(this)),this._fsPath},enumerable:!0,configurable:!0}),v.prototype.toString=function(e){return void 0===e&&(e=!1),e?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)},v.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),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},v);function v(){var e=null!==f&&f.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}var y=((i={})[58]="%3A",i[47]="%2F",i[63]="%3F",i[35]="%23",i[91]="%5B",i[93]="%5D",i[64]="%40",i[33]="%21",i[36]="%24",i[38]="%26",i[39]="%27",i[40]="%28",i[41]="%29",i[42]="%2A",i[43]="%2B",i[44]="%2C",i[59]="%3B",i[61]="%3D",i[32]="%20",i);function b(e,t){for(var n=void 0,o=-1,i=0;i<e.length;i++){var r=e.charCodeAt(i);if(97<=r&&r<=122||65<=r&&r<=90||48<=r&&r<=57||45===r||46===r||95===r||126===r||t&&47===r)-1!==o&&(n+=encodeURIComponent(e.substring(o,i)),o=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var a=y[r];void 0!==a?(-1!==o&&(n+=encodeURIComponent(e.substring(o,i)),o=-1),n+=a):-1===o&&(o=i)}}return-1!==o&&(n+=encodeURIComponent(e.substring(o))),void 0!==n?n:e}function _(e){for(var t=void 0,n=0;n<e.length;n++){var o=e.charCodeAt(n);35===o||63===o?(void 0===t&&(t=e.substr(0,n)),t+=y[o]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function w(e){var t;return t=e.authority&&1<e.path.length&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(65<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=90||97<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,r.h&&(t=t.replace(/\//g,"\\")),t}function C(e,t){var n=t?_:b,o="",i=e.scheme,r=e.authority,a=e.path,s=e.query,l=e.fragment;if(i&&(o+=i,o+=":"),!r&&"file"!==i||(o+=u,o+=u),r){var c=r.indexOf("@");if(-1!==c){var d=r.substr(0,c);r=r.substr(c+1),-1===(c=d.indexOf(":"))?o+=n(d,!1):(o+=n(d.substr(0,c),!1),o+=":",o+=n(d.substr(c+1),!1)),o+="@"}-1===(c=(r=r.toLowerCase()).indexOf(":"))?o+=n(r,!1):(o+=n(r.substr(0,c),!1),o+=r.substr(c))}if(a){if(3<=a.length&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))65<=(h=a.charCodeAt(1))&&h<=90&&(a="/"+String.fromCharCode(h+32)+":"+a.substr(3));else if(2<=a.length&&58===a.charCodeAt(1)){var h;65<=(h=a.charCodeAt(0))&&h<=90&&(a=String.fromCharCode(h+32)+":"+a.substr(2))}o+=n(a,!0)}return s&&(o+="?",o+=n(s,!1)),l&&(o+="#",o+=t?l:b(l,!1)),o}var S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(e){return e.match(S)?e.replace(S,(function(e){return function t(n){try{return decodeURIComponent(n)}catch(e){return 3<n.length?n.substr(0,3)+t(n.substr(3)):n}}(e)})):e}},function(e,t,n){"use strict";var o,i=n(0),r=n.n(i),a=n(1),s=n.n(a),l=n(13),c=n.n(l),u=n(105),d=n(12),h=n.n(d),p={adjustX:1,adjustY:1},f=[0,0],g={topLeft:{points:["bl","tl"],overflow:p,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:p,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:p,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:p,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:p,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:p,offset:[0,4],targetOffset:f}},m=n(25),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},y=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(b,o=i.Component),b.getDerivedStateFromProps=function(e){return"visible"in e?{visible:e.visible}:null},b.prototype.getOverlayElement=function(){var e=this.props.overlay;return"function"==typeof e?e():e},b.prototype.getMenuElementOrLambda=function(){return"function"==typeof this.props.overlay?this.getMenuElement:this.getMenuElement()},b.prototype.getPopupDomNode=function(){return this.trigger.getPopupDomNode()},b.prototype.getOpenClassName=function(){var e=this.props,t=e.openClassName,n=e.prefixCls;return void 0!==t?t:n+"-open"},b.prototype.renderChildren=function(){var e=this.props.children,t=this.state.visible,n=e.props?e.props:{},o=h()(n.className,this.getOpenClassName());return t&&e?Object(i.cloneElement)(e,{className:o}):e},b.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.transitionName,o=e.animation,i=e.align,a=e.placement,s=e.getPopupContainer,l=e.showAction,c=e.hideAction,d=e.overlayClassName,h=e.overlayStyle,p=e.trigger,f=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["prefixCls","transitionName","animation","align","placement","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","trigger"]),m=c;return m||-1===p.indexOf("contextMenu")||(m=["click"]),r.a.createElement(u.a,v({},f,{prefixCls:t,ref:this.saveTrigger,popupClassName:d,popupStyle:h,builtinPlacements:g,action:p,showAction:l,hideAction:m||[],popupPlacement:a,popupAlign:i,popupTransitionName:n,popupAnimation:o,popupVisible:this.state.visible,afterPopupVisibleChange:this.afterVisibleChange,popup:this.getMenuElementOrLambda(),onPopupVisibleChange:this.onVisibleChange,getPopupContainer:s}),this.renderChildren())},b);function b(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,o.call(this,e));return _.call(t),t.state="visible"in e?{visible:e.visible}:{visible:e.defaultVisible},t}y.propTypes={minOverlayWidthMatchTrigger:s.a.bool,onVisibleChange:s.a.func,onOverlayClick:s.a.func,prefixCls:s.a.string,children:s.a.any,transitionName:s.a.string,overlayClassName:s.a.string,openClassName:s.a.string,animation:s.a.any,align:s.a.object,overlayStyle:s.a.object,placement:s.a.string,overlay:s.a.oneOfType([s.a.node,s.a.func]),trigger:s.a.array,alignPoint:s.a.bool,showAction:s.a.array,hideAction:s.a.array,getPopupContainer:s.a.func,visible:s.a.bool,defaultVisible:s.a.bool},y.defaultProps={prefixCls:"rc-dropdown",trigger:["hover"],showAction:[],overlayClassName:"",overlayStyle:{},defaultVisible:!1,onVisibleChange:function(){},placement:"bottomLeft"};var _=function(){var e=this;this.onClick=function(t){var n=e.props,o=e.getOverlayElement().props;"visible"in n||e.setState({visible:!1}),n.onOverlayClick&&n.onOverlayClick(t),o.onClick&&o.onClick(t)},this.onVisibleChange=function(t){var n=e.props;"visible"in n||e.setState({visible:t}),n.onVisibleChange(t)},this.getMinOverlayWidthMatchTrigger=function(){var t=e.props,n=t.minOverlayWidthMatchTrigger,o=t.alignPoint;return"minOverlayWidthMatchTrigger"in e.props?n:!o},this.getMenuElement=function(){var t=e.props.prefixCls,n=e.getOverlayElement(),o={prefixCls:t+"-menu",onClick:e.onClick};return"string"==typeof n.type&&delete o.prefixCls,r.a.cloneElement(n,o)},this.afterVisibleChange=function(t){if(t&&e.getMinOverlayWidthMatchTrigger()){var n=e.getPopupDomNode(),o=c.a.findDOMNode(e);o&&n&&o.offsetWidth>n.offsetWidth&&(n.style.minWidth=o.offsetWidth+"px",e.trigger&&e.trigger._component&&e.trigger._component.alignInstance&&e.trigger._component.alignInstance.forceAlign())}},this.saveTrigger=function(t){e.trigger=t}};Object(m.polyfill)(y);var w=y,C=n(77),S=n(27),O=n(18),x=n(51);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function N(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function D(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return I})),Object(x.a)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight");var I=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=D(this,L(e).apply(this,arguments))).renderOverlay=function(e){var n,o=t.props.overlay;n="function"==typeof o?o():o;var r=(n=i.Children.only(n)).props;Object(S.a)(!r.mode||"vertical"===r.mode,"Dropdown",'mode="'.concat(r.mode,"\" is not supported for Dropdown's Menu."));var a=r.selectable,s=void 0!==a&&a,l=r.focusable,c=void 0===l||l,u=i.createElement("span",{className:"".concat(e,"-menu-submenu-arrow")},i.createElement(O.a,{type:"right",className:"".concat(e,"-menu-submenu-arrow-icon")}));return"string"==typeof n.type?o:i.cloneElement(n,{mode:"vertical",selectable:s,focusable:c,expandIcon:u})},t.renderDropDown=function(e){var n,o=e.getPopupContainer,r=e.getPrefixCls,a=t.props,s=a.prefixCls,l=a.children,c=a.trigger,u=a.disabled,d=a.getPopupContainer,p=r("dropdown",s),f=i.Children.only(l),g=i.cloneElement(f,{className:h()(f.props.className,"".concat(p,"-trigger")),disabled:u}),m=u?[]:c;return m&&-1!==m.indexOf("contextMenu")&&(n=!0),i.createElement(w,k({alignPoint:n},t.props,{prefixCls:p,getPopupContainer:d||o,transitionName:t.getTransitionName(),trigger:m,overlay:function(){return t.renderOverlay(p)}}),g)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(e,i.Component),t=e,(n=[{key:"getTransitionName",value:function(){var e=this.props,t=e.placement,n=void 0===t?"":t,o=e.transitionName;return void 0!==o?o:0<=n.indexOf("top")?"slide-down":"slide-up"}},{key:"render",value:function(){return i.createElement(C.a,null,this.renderDropDown)}}])&&N(t.prototype,n),e}();I.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft"}},function(e,t,n){var o=n(464),i=n(519),r=n(520),a=n(521),s=n(522),l=n(523);function c(e){var t=this.__data__=new o(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=r,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"j",(function(){return y})),n.d(t,"h",(function(){return b})),n.d(t,"l",(function(){return _}));var o=n(16),i=n.n(o),r=n(109),a=n.n(r),s=n(133),l=n.n(s);function c(e,t){var n;return e.displayName="Form("+((n=t).displayName||n.name||"WrappedComponent")+")",e.WrappedComponent=t,a()(e,t)}function u(e){return e}function d(e){return Array.prototype.concat.apply([],e)}function h(e,t,n){var o={};return function e(t,n,o,i,r){var a=0<arguments.length&&void 0!==t?t:"",s=n,c=o,u=i,d=r;if(c(a,s))d(a,s);else if(null!=s)if(Array.isArray(s))s.forEach((function(t,n){return e(a+"["+n+"]",t,c,u,d)}));else{if("object"!=typeof s)return void l()(!1,u);Object.keys(s).forEach((function(t){var n=s[t];e(a+(a?".":"")+t,n,c,u,d)}))}}(void 0,e,t,n,(function(e,t){o[e]=t})),o}function p(e,t,n){var o=e.map((function(e){var t=i()({},e,{trigger:e.trigger||[]});return"string"==typeof t.trigger&&(t.trigger=[t.trigger]),t}));return t&&o.push({trigger:n?[].concat(n):[],rules:t}),o}function f(e){return e.filter((function(e){return!!e.rules&&e.rules.length})).map((function(e){return e.trigger})).reduce((function(e,t){return e.concat(t)}),[])}function g(e){if(!e||!e.target)return e;var t=e.target;return"checkbox"===t.type?t.checked:t.value}function m(e){return e?e.map((function(e){return e&&e.message?e.message:e})):e}function v(e,t,n){var o=e,i=t,r=n;return void 0===n&&("function"==typeof o?(r=o,i={},o=void 0):Array.isArray(o)?i="function"==typeof i?(r=i,{}):i||{}:(r=i,i=o||{},o=void 0)),{names:o,options:i,callback:r}}function y(e){return 0===Object.keys(e).length}function b(e){return!!e&&e.some((function(e){return e.rules&&e.rules.length}))}function _(e,t){return 0===e.lastIndexOf(t,0)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var o,i,r=n(442),a=Object.freeze((function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}}));(i=o=o||{}).isCancellationToken=function(e){return e===i.None||e===i.Cancelled||e instanceof s||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},i.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.b.None}),i.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:a});var s=(l.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(l.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?a:(this._emitter||(this._emitter=new r.a),this._emitter.event)},enumerable:!0,configurable:!0}),l.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},l);function l(){this._isCancelled=!1,this._emitter=null}var c=(Object.defineProperty(u.prototype,"token",{get:function(){return this._token||(this._token=new s),this._token},enumerable:!0,configurable:!0}),u.prototype.cancel=function(){this._token?this._token instanceof s&&this._token.cancel():this._token=o.Cancelled},u.prototype.dispose=function(e){void 0===e&&(e=!1),e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=o.None},u);function u(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t){e.exports=function(e){return e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var o=n(443),i=(r.prototype.setMaxWidth=function(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")},r.prototype.setWidth=function(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")},r.prototype.setHeight=function(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")},r.prototype.setTop=function(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")},r.prototype.unsetTop=function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")},r.prototype.setLeft=function(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")},r.prototype.setBottom=function(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")},r.prototype.setRight=function(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")},r.prototype.setFontFamily=function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)},r.prototype.setFontWeight=function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)},r.prototype.setFontSize=function(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")},r.prototype.setFontFeatureSettings=function(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)},r.prototype.setLineHeight=function(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")},r.prototype.setLetterSpacing=function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")},r.prototype.setClassName=function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)},r.prototype.toggleClassName=function(e,t){o.Y(this.domNode,e,t),this._className=this.domNode.className},r.prototype.setDisplay=function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)},r.prototype.setPosition=function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)},r.prototype.setVisibility=function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)},r.prototype.setBackgroundColor=function(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)},r.prototype.setLayerHinting=function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")},r.prototype.setContain=function(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)},r.prototype.setAttribute=function(e,t){this.domNode.setAttribute(e,t)},r.prototype.removeAttribute=function(e){this.domNode.removeAttribute(e)},r.prototype.appendChild=function(e){this.domNode.appendChild(e.domNode)},r.prototype.removeChild=function(e){this.domNode.removeChild(e.domNode)},r);function r(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._backgroundColor="",this._layerHint=!1,this._contain="none"}function a(e){return new i(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d}));var o=n(439),i=n(465),r=n(448),a=n(442),s=n(786),l=n(553),c=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},u=Object(r.c)("commandService"),d=(h.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 r=[],a=0,l=e.description.args;a<l.length;a++){var u=l[a];r.push(u.constraint)}var d=e.handler;e.handler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Object(i.m)(t,r),d.apply(void 0,c([e],t))}}var h=e.id,p=this._commands.get(h);p||(p=new s.a,this._commands.set(h,p));var f=p.unshift(e),g=Object(o.h)((function(){f();var e=n._commands.get(h);null!=e&&e.isEmpty()&&n._commands.delete(h)}));return this._onDidRegisterCommand.fire(h),g},h.prototype.registerCommandAlias=function(e,t){return d.registerCommand(e,(function(e){for(var n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return(n=e.get(u)).executeCommand.apply(n,c([t],o))}))},h.prototype.getCommand=function(e){var t=this._commands.get(e);if(t&&!t.isEmpty())return t.iterator().next().value},h.prototype.getCommands=function(){for(var e=new Map,t=0,n=Object(l.d)(this._commands);t<n.length;t++){var o=n[t],i=this.getCommand(o);i&&e.set(o,i)}return e},new h);function h(){this._commands=new Map,this._onDidRegisterCommand=new a.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}},function(e,t,n){"use strict";function o(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return p}));var i=(r.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},r);function r(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=o(Math.max(Math.min(1,i),0),3)}var a=(s.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},s.fromRGBA=function(e){var t=e.r/255,n=e.g/255,o=e.b/255,i=e.a,r=Math.max(t,n,o),a=Math.min(t,n,o),l=0,c=0,u=(a+r)/2,d=r-a;if(0<d){switch(c=Math.min(u<=.5?d/(2*u):d/(2-2*u),1),r){case t:l=(n-o)/d+(n<o?6:0);break;case n:l=(o-t)/d+2;break;case o:l=(t-n)/d+4}l*=60,l=Math.round(l)}return new s(l,c,u,i)},s._hue2rgb=function(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},s.toRGBA=function(e){var t,n,o,r=e.h/360,a=e.s,l=e.l,c=e.a;if(0===a)t=n=o=l;else{var u=l<.5?l*(1+a):l+a-l*a,d=2*l-u;t=s._hue2rgb(d,u,r+1/3),n=s._hue2rgb(d,u,r),o=s._hue2rgb(d,u,r-1/3)}return new i(Math.round(255*t),Math.round(255*n),Math.round(255*o),c)},s);function s(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0),this.s=o(Math.max(Math.min(1,t),0),3),this.l=o(Math.max(Math.min(1,n),0),3),this.a=o(Math.max(Math.min(1,i),0),3)}var l=(c.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},c.fromRGBA=function(e){var t,n=e.r/255,o=e.g/255,i=e.b/255,r=Math.max(n,o,i),a=r-Math.min(n,o,i),s=0===r?0:a/r;return t=0==a?0:r===n?((o-i)/a%6+6)%6:r===o?(i-n)/a+2:(n-o)/a+4,new c(Math.round(60*t),s,r,e.a)},c.toRGBA=function(e){var t=e.h,n=e.s,o=e.v,r=e.a,a=o*n,s=a*(1-Math.abs(t/60%2-1)),l=o-a,c=[0,0,0],u=c[0],d=c[1],h=c[2];return t<60?(u=a,d=s):t<120?(u=s,d=a):t<180?(d=a,h=s):t<240?(d=s,h=a):t<300?(u=s,h=a):t<360&&(u=a,h=s),u=Math.round(255*(u+l)),d=Math.round(255*(d+l)),h=Math.round(255*(h+l)),new i(u,d,h,r)},c);function c(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0),this.s=o(Math.max(Math.min(1,t),0),3),this.v=o(Math.max(Math.min(1,n),0),3),this.a=o(Math.max(Math.min(1,i),0),3)}var u,d,h,p=(f.fromHex=function(e){return f.Format.CSS.parseHex(e)||f.red},Object.defineProperty(f.prototype,"hsla",{get:function(){return this._hsla?this._hsla:a.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"hsva",{get:function(){return this._hsva?this._hsva:l.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),f.prototype.equals=function(e){return!!e&&i.equals(this.rgba,e.rgba)&&a.equals(this.hsla,e.hsla)&&l.equals(this.hsva,e.hsva)},f.prototype.getRelativeLuminance=function(){return o(.2126*f._relativeLuminanceForComponent(this.rgba.r)+.7152*f._relativeLuminanceForComponent(this.rgba.g)+.0722*f._relativeLuminanceForComponent(this.rgba.b),4)},f._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((.055+t)/1.055,2.4)},f.prototype.isLighter=function(){return 128<=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3},f.prototype.isLighterThan=function(e){var t=this.getRelativeLuminance();return e.getRelativeLuminance()<t},f.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()<e.getRelativeLuminance()},f.prototype.lighten=function(e){return new f(new a(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))},f.prototype.darken=function(e){return new f(new a(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))},f.prototype.transparent=function(e){var t=this.rgba,n=t.r,o=t.g,r=t.b,a=t.a;return new f(new i(n,o,r,a*e))},f.prototype.isTransparent=function(){return 0===this.rgba.a},f.prototype.isOpaque=function(){return 1===this.rgba.a},f.prototype.opposite=function(){return new f(new i(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},f.prototype.toString=function(){return""+f.Format.CSS.format(this)},f.getLighterColor=function(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;var o=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-o)/i,e.lighten(n)},f.getDarkerColor=function(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;var o=e.getRelativeLuminance();return n=n*(o-t.getRelativeLuminance())/o,e.darken(n)},f.white=new f(new i(255,255,255,1)),f.black=new f(new i(0,0,0,1)),f.red=new f(new i(255,0,0,1)),f.blue=new f(new i(0,0,255,1)),f.cyan=new f(new i(0,255,255,1)),f.lightgrey=new f(new i(211,211,211,1)),f.transparent=new f(new i(0,0,0,0)),f);function f(e){if(!e)throw new Error("Color needs a value");if(e instanceof i)this.rgba=e;else if(e instanceof a)this._hsla=e,this.rgba=a.toRGBA(e);else{if(!(e instanceof l))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=l.toRGBA(e)}}function g(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}function m(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}(h=(d=(u=p=p||{}).Format||(u.Format={})).CSS||(d.CSS={})).formatRGB=function(e){return 1===e.rgba.a?"rgb("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+")":u.Format.CSS.formatRGBA(e)},h.formatRGBA=function(e){return"rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+ +e.rgba.a.toFixed(2)+")"},h.formatHSL=function(e){return 1===e.hsla.a?"hsl("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%)":u.Format.CSS.formatHSLA(e)},h.formatHSLA=function(e){return"hsla("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%, "+e.hsla.a.toFixed(2)+")"},h.formatHex=function(e){return"#"+g(e.rgba.r)+g(e.rgba.g)+g(e.rgba.b)},h.formatHexA=function(e,t){return void 0===t&&(t=!1),t&&1===e.rgba.a?u.Format.CSS.formatHex(e):"#"+g(e.rgba.r)+g(e.rgba.g)+g(e.rgba.b)+g(Math.round(255*e.rgba.a))},h.format=function(e){return e.isOpaque()?u.Format.CSS.formatHex(e):u.Format.CSS.formatRGBA(e)},h.parseHex=function(e){var t=e.length;if(0===t)return null;if(35!==e.charCodeAt(0))return null;if(7===t){var n=16*m(e.charCodeAt(1))+m(e.charCodeAt(2)),o=16*m(e.charCodeAt(3))+m(e.charCodeAt(4)),r=16*m(e.charCodeAt(5))+m(e.charCodeAt(6));return new u(new i(n,o,r,1))}if(9!==t)return 4!==t?5===t&&(n=m(e.charCodeAt(1)),o=m(e.charCodeAt(2)),r=m(e.charCodeAt(3)),a=m(e.charCodeAt(4)),new u(new i(16*n+n,16*o+o,16*r+r,(16*a+a)/255))):(n=m(e.charCodeAt(1)),o=m(e.charCodeAt(2)),r=m(e.charCodeAt(3)),new u(new i(16*n+n,16*o+o,16*r+r)));n=16*m(e.charCodeAt(1))+m(e.charCodeAt(2)),o=16*m(e.charCodeAt(3))+m(e.charCodeAt(4)),r=16*m(e.charCodeAt(5))+m(e.charCodeAt(6));var a=16*m(e.charCodeAt(7))+m(e.charCodeAt(8));return new u(new i(n,o,r,a/255))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},,function(e,t,n){var o=n(467),i=n(460),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];r.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||o(e,t,n)}},,function(e,t,n){"use strict";var o=n(446),i=n(442),r=n(439),a=n(444),s=n(479),l=n(530),c=n(450),u=n(440),d=n(466),h=n(599),p=(f.prototype.undo=function(e){for(var t=this.editOperations.length-1;0<=t;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},f.prototype.redo=function(e){for(var t=0;t<this.editOperations.length;t++)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},f);function f(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}function g(e){return"\n"===e.getEOL()?0:1}var m=(v.prototype.undo=function(e){var t=g(e);e.setEOL(this.eol),this.eol=t},v.prototype.redo=function(e){var t=g(e);e.setEOL(this.eol),this.eol=t},v);function v(e,t){this.beforeVersionId=e,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=t}var y=(b.prototype.pushStackElement=function(){null!==this.currentOpenStackElement&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},b.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},b.prototype.pushEOL=function(e){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var t=g(this.model),n=new m(this.model.getAlternativeVersionId(),t);this.model.setEOL(e),n.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=n,this.pushStackElement()},b.prototype.pushEditOperation=function(e,t,n){this.future=[];var o=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof p?o=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(o=new p(this.model.getAlternativeVersionId(),e),this.currentOpenStackElement=o);var i={operations:this.model.applyEdits(t)};return o.editOperations.push(i),o.afterCursorState=b._computeCursorState(n,i.operations),o.afterVersionId=this.model.getVersionId(),o.afterCursorState},b._computeCursorState=function(e,t){try{return e?e(t):null}catch(e){return Object(o.e)(e),null}},b.prototype.undo=function(){if(this.pushStackElement(),0<this.past.length){var e=this.past.pop();try{e.undo(this.model)}catch(e){return Object(o.e)(e),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},b.prototype.canUndo=function(){return 0<this.past.length||null!==this.currentOpenStackElement},b.prototype.redo=function(){if(0<this.future.length){var e=this.future.pop();try{e.redo(this.model)}catch(e){return Object(o.e)(e),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},b.prototype.canRedo=function(){return 0<this.future.length},b);function b(e){this.model=e,this.currentOpenStackElement=null,this.past=[],this.future=[]}var _=function(){this.spacesDiff=0,this.looksLikeAlignment=!1};function w(e,t,n,o,i){var r;for(i.spacesDiff=0,i.looksLikeAlignment=!1,r=0;r<t&&r<o&&e.charCodeAt(r)===n.charCodeAt(r);r++);for(var a=0,s=0,l=r;l<t;l++)32===e.charCodeAt(l)?a++:s++;var c=0,u=0;for(l=r;l<o;l++)32===n.charCodeAt(l)?c++:u++;if(!(0<a&&0<s||0<c&&0<u)){var d=Math.abs(s-u),h=Math.abs(a-c);0!==d?h%d!=0||(i.spacesDiff=h/d):0<(i.spacesDiff=h)&&0<=c-1&&c-1<e.length&&c<n.length&&32!==n.charCodeAt(c)&&32===e.charCodeAt(c-1)&&44===e.charCodeAt(e.length-1)&&(i.looksLikeAlignment=!0)}}function C(e,t,n){for(var o=Math.min(e.getLineCount(),1e4),i=0,r=0,a="",s=0,l=[0,0,0,0,0,0,0,0,0],c=new _,u=1;u<=o;u++){for(var d=e.getLineLength(u),h=e.getLineContent(u),p=d<=65536,f=!1,g=0,m=0,v=0,y=0,b=d;y<b;y++){var C=p?h.charCodeAt(y):e.getLineCharCode(u,y);if(9===C)v++;else{if(32!==C){f=!0,g=y;break}m++}}if(f&&(0<v?i++:1<m&&r++,w(a,s,h,g,c),!c.looksLikeAlignment||n&&t===c.spacesDiff)){var S=c.spacesDiff;S<=8&&l[S]++,a=h,s=g}}var O=n;i!==r&&(O=i<r);var x=t;if(O){var E=O?0:.1*o;[2,4,6,8,3,5,7].forEach((function(e){var t=l[e];E<t&&(E=t,x=e)})),4===x&&0<l[4]&&0<l[2]&&l[2]>=l[4]/2&&(x=2)}return{insertSpaces:O,tabSize:x}}function S(e){return(1&e.metadata)>>>0}function O(e,t){e.metadata=254&e.metadata|t<<0}function x(e){return(2&e.metadata)>>>1==1}function E(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function k(e){return(4&e.metadata)>>>2==1}function N(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function D(e){return(8&e.metadata)>>>3==1}function L(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function P(e,t){e.metadata=207&e.metadata|t<<4}function I(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}var T=(M.prototype.reset=function(e,t,n,o){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=o},M.prototype.setOptions=function(e){this.options=e;var t=this.options.className;N(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),P(this,this.options.stickiness),L(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),I(this,this.options.collapseOnReplaceEdit)},M.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},M.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},M);function M(e,t,n){this.metadata=0,O(((this.parent=this).left=this).right=this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,N(this,!1),P(this,1),L(this,!1),I(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,E(this,!1)}var j=new T(null,0,0);O(((j.parent=j).left=j).right=j,0);var R=(A.prototype.intervalSearch=function(e,t,n,o,i){return this.root===j?[]:function(e,t,n,o,i,r){for(var a=e.root,s=0,l=0,c=0,u=[],d=0;a!==j;)if(x(a))E(a.left,!1),E(a.right,!1),a===a.parent.right&&(s-=a.parent.delta),a=a.parent;else{if(!x(a.left)){if(s+a.maxEnd<t){E(a,!0);continue}if(a.left!==j){a=a.left;continue}}if(n<(l=s+a.start))E(a,!0);else{if(t<=(c=s+a.end)){a.setCachedOffsets(l,c,r);var h=!0;o&&a.ownerId&&a.ownerId!==o&&(h=!1),i&&k(a)&&(h=!1),h&&(u[d++]=a)}E(a,!0),a.right===j||x(a.right)||(s+=a.delta,a=a.right)}}return E(e.root,!1),u}(this,e,t,n,o,i)},A.prototype.search=function(e,t,n){return this.root===j?[]:function(e,t,n,o){for(var i=e.root,r=0,a=0,s=0,l=[],c=0;i!==j;)if(x(i))E(i.left,!1),E(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else if(i.left===j||x(i.left)){a=r+i.start,s=r+i.end,i.setCachedOffsets(a,s,o);var u=!0;t&&i.ownerId&&i.ownerId!==t&&(u=!1),n&&k(i)&&(u=!1),u&&(l[c++]=i),E(i,!0),i.right===j||x(i.right)||(r+=i.delta,i=i.right)}else i=i.left;return E(e.root,!1),l}(this,e,t,n)},A.prototype.collectNodesFromOwner=function(e){return function(e,t){for(var n=e.root,o=[],i=0;n!==j;)x(n)?(E(n.left,!1),E(n.right,!1),n=n.parent):n.left===j||x(n.left)?(n.ownerId===t&&(o[i++]=n),E(n,!0),n.right===j||x(n.right)||(n=n.right)):n=n.left;return E(e.root,!1),o}(this,e)},A.prototype.collectNodesPostOrder=function(){return function(e){for(var t=e.root,n=[],o=0;t!==j;)x(t)?(E(t.left,!1),E(t.right,!1),t=t.parent):t.left===j||x(t.left)?t.right===j||x(t.right)?E(n[o++]=t,!0):t=t.right:t=t.left;return E(e.root,!1),n}(this)},A.prototype.insert=function(e){W(this,e),this._normalizeDeltaIfNecessary()},A.prototype.delete=function(e){B(this,e),this._normalizeDeltaIfNecessary()},A.prototype.resolveNode=function(e,t){for(var n=e,o=0;e!==this.root;)e===e.parent.right&&(o+=e.parent.delta),e=e.parent;var i=n.start+o,r=n.end+o;n.setCachedOffsets(i,r,t)},A.prototype.acceptReplace=function(e,t,n,o){for(var i=function(e,t,n){for(var o=e.root,i=0,r=0,a=0,s=[],l=0;o!==j;)if(x(o))E(o.left,!1),E(o.right,!1),o===o.parent.right&&(i-=o.parent.delta),o=o.parent;else{if(!x(o.left)){if(i+o.maxEnd<t){E(o,!0);continue}if(o.left!==j){o=o.left;continue}}n<(r=i+o.start)?E(o,!0):(t<=(a=i+o.end)&&(o.setCachedOffsets(r,a,0),s[l++]=o),E(o,!0),o.right===j||x(o.right)||(i+=o.delta,o=o.right))}return E(e.root,!1),s}(this,e,e+t),r=0,a=i.length;r<a;r++)B(this,s=i[r]);for(this._normalizeDeltaIfNecessary(),function(e,t,n,o){for(var i=e.root,r=0,a=o-(n-t);i!==j;)if(x(i))E(i.left,!1),E(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),q(i),i=i.parent;else{if(!x(i.left)){if(r+i.maxEnd<t){E(i,!0);continue}if(i.left!==j){i=i.left;continue}}n<r+i.start?(i.start+=a,i.end+=a,i.delta+=a,(i.delta<-1073741824||1073741824<i.delta)&&(e.requestNormalizeDelta=!0),E(i,!0)):(E(i,!0),i.right===j||x(i.right)||(r+=i.delta,i=i.right))}E(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary(),r=0,a=i.length;r<a;r++){var s;(s=i[r]).start=s.cachedAbsoluteStart,s.end=s.cachedAbsoluteEnd,V(s,e,e+t,n,o),s.maxEnd=s.end,W(this,s)}this._normalizeDeltaIfNecessary()},A.prototype._normalizeDeltaIfNecessary=function(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){for(var t=e.root,n=0;t!==j;)t=t.left===j||x(t.left)?t.right===j||x(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,q(t),E(t,!0),E(t.left,!1),E(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t.parent):(n+=t.delta,t.right):t.left;E(e.root,!1)}(this))},A);function A(){this.root=j,this.requestNormalizeDelta=!1}function F(e,t,n,o){return e<n||!(n<e||1===o)&&(2===o||t)}function V(e,t,n,o,i){var r=(48&e.metadata)>>>4,a=0==r||2==r,s=1==r||2==r,l=n-t,c=o,u=Math.min(l,c),d=e.start,h=!1,p=e.end,f=!1;t<=d&&p<=n&&(64&e.metadata)>>>6==1&&(e.start=t,h=!0,e.end=t,f=!0);var g=i?1:0<l?2:0;!h&&F(d,a,t,g)&&(h=!0),!f&&F(p,s,t,g)&&(f=!0),0<u&&!i&&(g=c<l?2:0,!h&&F(d,a,t+u,g)&&(h=!0),!f&&F(p,s,t+u,g)&&(f=!0)),g=i?1:0,!h&&F(d,a,n,g)&&(e.start=t+c,h=!0),!f&&F(p,s,n,g)&&(e.end=t+c,f=!0);var m=c-l;h||(e.start=Math.max(0,d+m)),f||(e.end=Math.max(0,p+m)),e.start>e.end&&(e.end=e.start)}function W(e,t){if(e.root===j)return t.parent=j,t.left=j,t.right=j,O(t,0),e.root=t,e.root;!function(e,t){for(var n=0,o=e.root,i=t.start,r=t.end;;)if(Y(i,r,o.start+n,o.end+n)<0){if(o.left===j){t.start-=n,t.end-=n,t.maxEnd-=n,o.left=t;break}o=o.left}else{if(o.right===j){t.start-=n+o.delta,t.end-=n+o.delta,t.maxEnd-=n+o.delta,o.right=t;break}n+=o.delta,o=o.right}t.parent=o,t.left=j,t.right=j,O(t,1)}(e,t),G(t.parent);for(var n=t;n!==e.root&&1===S(n.parent);){var o;n.parent===n.parent.parent.left?1===S(o=n.parent.parent.right)?(O(n.parent,0),O(o,0),O(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&z(e,n=n.parent),O(n.parent,0),O(n.parent.parent,1),K(e,n.parent.parent)):1===S(o=n.parent.parent.left)?(O(n.parent,0),O(o,0),O(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&K(e,n=n.parent),O(n.parent,0),O(n.parent.parent,1),z(e,n.parent.parent))}return O(e.root,0),t}function B(e,t){var n,o;if(t.left===j?((n=(o=t).right).delta+=t.delta,(n.delta<-1073741824||1073741824<n.delta)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===j?(n=t.left,o=t):((n=(o=function(e){for(;e.left!==j;)e=e.left;return e}(t.right)).right).start+=o.delta,n.end+=o.delta,n.delta+=o.delta,(n.delta<-1073741824||1073741824<n.delta)&&(e.requestNormalizeDelta=!0),o.start+=t.delta,o.end+=t.delta,o.delta=t.delta,(o.delta<-1073741824||1073741824<o.delta)&&(e.requestNormalizeDelta=!0)),o===e.root)return O(e.root=n,0),t.detach(),H(),q(n),void(e.root.parent=j);var i,r=1===S(o);if(o===o.parent.left?o.parent.left=n:o.parent.right=n,o===t?n.parent=o.parent:(o.parent===t?n.parent=o:n.parent=o.parent,o.left=t.left,o.right=t.right,o.parent=t.parent,O(o,S(t)),t===e.root?e.root=o:t===t.parent.left?t.parent.left=o:t.parent.right=o,o.left!==j&&(o.left.parent=o),o.right!==j&&(o.right.parent=o)),t.detach(),r)return G(n.parent),o!==t&&(G(o),G(o.parent)),void H();for(G(n),G(n.parent),o!==t&&(G(o),G(o.parent));n!==e.root&&0===S(n);)n=n===n.parent.left?(1===S(i=n.parent.right)&&(O(i,0),O(n.parent,1),z(e,n.parent),i=n.parent.right),0===S(i.left)&&0===S(i.right)?(O(i,1),n.parent):(0===S(i.right)&&(O(i.left,0),O(i,1),K(e,i),i=n.parent.right),O(i,S(n.parent)),O(n.parent,0),O(i.right,0),z(e,n.parent),e.root)):(1===S(i=n.parent.left)&&(O(i,0),O(n.parent,1),K(e,n.parent),i=n.parent.left),0===S(i.left)&&0===S(i.right)?(O(i,1),n.parent):(0===S(i.left)&&(O(i.right,0),O(i,1),z(e,i),i=n.parent.left),O(i,S(n.parent)),O(n.parent,0),O(i.left,0),K(e,n.parent),e.root));O(n,0),H()}function H(){(j.parent=j).delta=0,j.start=0,j.end=0}function z(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||1073741824<n.delta)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==j&&(n.left.parent=t),n.parent=t.parent,t.parent===j?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,(n.left=t).parent=n,q(t),q(n)}function K(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||1073741824<t.delta)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==j&&(n.right.parent=t),n.parent=t.parent,t.parent===j?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,(n.right=t).parent=n,q(t),q(n)}function U(e){var t=e.end;if(e.left!==j){var n=e.left.maxEnd;t<n&&(t=n)}if(e.right!==j){var o=e.right.maxEnd+e.delta;t<o&&(t=o)}return t}function q(e){e.maxEnd=U(e)}function G(e){for(;e!==j;){var t=U(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Y(e,t,n,o){return e===n?t-o:e-n}var Z=($.prototype.next=function(){if(this.right!==X)return J(this.right);for(var e=this;e.parent!==X&&e.parent.left!==e;)e=e.parent;return e.parent===X?X:e.parent},$.prototype.prev=function(){if(this.left!==X)return Q(this.left);for(var e=this;e.parent!==X&&e.parent.right!==e;)e=e.parent;return e.parent===X?X:e.parent},$.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},$);function $(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,((this.parent=this).left=this).right=this}var X=new Z(null,0);function J(e){for(;e.left!==X;)e=e.left;return e}function Q(e){for(;e.right!==X;)e=e.right;return e}function ee(e){return e===X?0:e.size_left+e.piece.length+ee(e.right)}function te(e){return e===X?0:e.lf_left+e.piece.lineFeedCnt+te(e.right)}function ne(){X.parent=X}function oe(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!==X&&(n.left.parent=t),n.parent=t.parent,t.parent===X?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,(n.left=t).parent=n}function ie(e,t){var n=t.left;t.left=n.right,n.right!==X&&(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===X?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,(n.right=t).parent=n}function re(e,t){var n,o;if(n=t.left===X?(o=t).right:t.right===X?(o=t).left:(o=J(t.right)).right,o===e.root)return(e.root=n).color=0,t.detach(),ne(),void(e.root.parent=X);var i=1===o.color;if(o===o.parent.left?o.parent.left=n:o.parent.right=n,o===t?(n.parent=o.parent,le(e,n)):(o.parent===t?n.parent=o:n.parent=o.parent,le(e,n),o.left=t.left,o.right=t.right,o.parent=t.parent,o.color=t.color,t===e.root?e.root=o:t===t.parent.left?t.parent.left=o:t.parent.right=o,o.left!==X&&(o.left.parent=o),o.right!==X&&(o.right.parent=o),o.size_left=t.size_left,o.lf_left=t.lf_left,le(e,o)),t.detach(),n.parent.left===n){var r=ee(n),a=te(n);if(r!==n.parent.size_left||a!==n.parent.lf_left){var s=r-n.parent.size_left,l=a-n.parent.lf_left;n.parent.size_left=r,n.parent.lf_left=a,se(e,n.parent,s,l)}}if(le(e,n.parent),i)ne();else{for(var c;n!==e.root&&0===n.color;)n=n===n.parent.left?(1===(c=n.parent.right).color&&(c.color=0,n.parent.color=1,oe(e,n.parent),c=n.parent.right),0===c.left.color&&0===c.right.color?(c.color=1,n.parent):(0===c.right.color&&(c.left.color=0,c.color=1,ie(e,c),c=n.parent.right),c.color=n.parent.color,n.parent.color=0,c.right.color=0,oe(e,n.parent),e.root)):(1===(c=n.parent.left).color&&(c.color=0,n.parent.color=1,ie(e,n.parent),c=n.parent.left),0===c.left.color&&0===c.right.color?(c.color=1,n.parent):(0===c.left.color&&(c.right.color=0,c.color=1,oe(e,c),c=n.parent.left),c.color=n.parent.color,n.parent.color=0,c.left.color=0,ie(e,n.parent),e.root));n.color=0,ne()}}function ae(e,t){for(le(e,t);t!==e.root&&1===t.parent.color;){var n;t.parent===t.parent.parent.left?1===(n=t.parent.parent.right).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&oe(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,ie(e,t.parent.parent)):1===(n=t.parent.parent.left).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&ie(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,oe(e,t.parent.parent))}e.root.color=0}function se(e,t,n,o){for(;t!==e.root&&t!==X;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=o),t=t.parent}function le(e,t){var n=0,o=0;if(t!==e.root){if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=ee((t=t.parent).left)-t.size_left,o=te(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=o}for(;t!==e.root&&(0!==n||0!==o);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=o),t=t.parent}}(((X.parent=X).left=X).right=X).color=0;var ce=n(947),ue=65535;function de(e){var t;return(t=new(e[e.length-1]<65536?Uint16Array:Uint32Array)(e.length)).set(e,0),t}var he=function(e,t,n,o,i){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=o,this.isBasicASCII=i};function pe(e,t){void 0===t&&(t=!0);for(var n=[0],o=1,i=0,r=e.length;i<r;i++){var a=e.charCodeAt(i);13===a?i+1<r&&10===e.charCodeAt(i+1)?(n[o++]=i+2,i++):n[o++]=i+1:10===a&&(n[o++]=i+1)}return t?de(n):n}var fe=function(e,t,n,o,i){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=o,this.length=i},ge=function(e,t){this.buffer=e,this.lineStarts=t},me=(ve.prototype.get=function(e){for(var t=this._cache.length-1;0<=t;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},ve.prototype.get2=function(e){for(var t=this._cache.length-1;0<=t;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null},ve.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},ve.prototype.valdiate=function(e){for(var t=!1,n=this._cache,o=0;o<n.length;o++){var i=n[o];(null===i.node.parent||i.nodeStartOffset>=e)&&(t=!(n[o]=null))}if(t){for(var r=[],a=0,s=n;a<s.length;a++){var l=s[a];null!==l&&r.push(l)}this._cache=r}},ve);function ve(e){this._limit=e,this._cache=[]}var ye=(be.prototype.create=function(e,t,n){this._buffers=[new ge("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=X,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;for(var o=null,i=0,r=e.length;i<r;i++)if(0<e[i].buffer.length){e[i].lineStarts||(e[i].lineStarts=pe(e[i].buffer));var a=new fe(i+1,{line:0,column:0},{line:e[i].lineStarts.length-1,column:e[i].buffer.length-e[i].lineStarts[e[i].lineStarts.length-1]},e[i].lineStarts.length-1,e[i].buffer.length);this._buffers.push(e[i]),o=this.rbInsertRight(o,a)}this._searchCache=new me(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},be.prototype.normalizeEOL=function(e){var t=this,n=65535-Math.floor(21845),o=2*n,i="",r=0,a=[];if(this.iterate(this.root,(function(s){var l=t.getNodeContent(s),c=l.length;if(r<=n||r+c<o)return i+=l,r+=c,!0;var u=i.replace(/\r\n|\r|\n/g,e);return a.push(new ge(u,pe(u))),i=l,r=c,!0})),0<r){var s=i.replace(/\r\n|\r|\n/g,e);a.push(new ge(s,pe(s)))}this.create(a,e,!0)},be.prototype.getEOL=function(){return this._EOL},be.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},be.prototype.getOffsetAt=function(e,t){for(var n=0,o=this.root;o!==X;)if(o.left!==X&&o.lf_left+1>=e)o=o.left;else{if(o.lf_left+o.piece.lineFeedCnt+1>=e)return(n+=o.size_left)+(this.getAccumulatedValue(o,e-o.lf_left-2)+t-1);e-=o.lf_left+o.piece.lineFeedCnt,n+=o.size_left+o.piece.length,o=o.right}return n},be.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,o=e;t!==X;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var i=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+i.index,0!==i.index)return new c.a(n+1,i.remainder+1);var r=o-this.getOffsetAt(n+1,1);return new c.a(n+1,r+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===X)return r=o-e-this.getOffsetAt(n+1,1),new c.a(n+1,r+1);t=t.right}return new c.a(1,1)},be.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),o=this.nodeAt2(e.endLineNumber,e.endColumn),i=this.getValueInRange2(n,o);return!t||t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?i:i.replace(/\r\n|\r|\n/g,t)},be.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,o=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return o.substring(i+e.remainder,i+t.remainder)}var r=e.node,a=this._buffers[r.piece.bufferIndex].buffer,s=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start),l=a.substring(s+e.remainder,s+r.piece.length);for(r=r.next();r!==X;){var c=this._buffers[r.piece.bufferIndex].buffer,u=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===t.node){l+=c.substring(u,u+t.remainder);break}l+=c.substr(u,r.piece.length),r=r.next()}return l},be.prototype.getLinesContent=function(){var e=this,t=[],n=0,o="",i=!1;return this.iterate(this.root,(function(r){if(r===X)return!0;var a=r.piece,s=a.length;if(0===s)return!0;var l=e._buffers[a.bufferIndex].buffer,c=e._buffers[a.bufferIndex].lineStarts,u=a.start.line,d=a.end.line,h=c[u]+a.start.column;if(i&&(10===l.charCodeAt(h)&&(h++,s--),t[n++]=o,o="",i=!1,0===s))return!0;if(u===d)return e._EOLNormalized||13!==l.charCodeAt(h+s-1)?o+=l.substr(h,s):(i=!0,o+=l.substr(h,s-1)),!0;o+=e._EOLNormalized?l.substring(h,Math.max(h,c[u+1]-e._EOLLength)):l.substring(h,c[u+1]).replace(/(\r\n|\r|\n)$/,""),t[n++]=o;for(var p=u+1;p<d;p++)o=e._EOLNormalized?l.substring(c[p],c[p+1]-e._EOLLength):l.substring(c[p],c[p+1]).replace(/(\r\n|\r|\n)$/,""),t[n++]=o;return e._EOLNormalized||13!==l.charCodeAt(c[d]+a.end.column-1)?o=l.substr(c[d],a.end.column):(i=!0,0===a.end.column?n--:o=l.substr(c[d],a.end.column-1)),!0})),i&&(t[n++]=o,o=""),t[n++]=o,t},be.prototype.getLength=function(){return this._length},be.prototype.getLineCount=function(){return this._lineCnt},be.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e||((this._lastVisitedLine.lineNumber=e)===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value},be.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var o=n.node.next();if(!o)return 0;var i=this._buffers[o.piece.bufferIndex],r=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);return i.buffer.charCodeAt(r)}i=this._buffers[n.node.piece.bufferIndex];var a=(r=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start))+n.remainder;return i.buffer.charCodeAt(a)},be.prototype.getLineLength=function(e){if(e!==this.getLineCount())return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength;var t=this.getOffsetAt(e,1);return this.getLength()-t},be.prototype.findMatchesInNode=function(e,t,n,o,i,r,a,s,l,c,d){var h,p,f,g=this._buffers[e.piece.bufferIndex],m=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),v=this.offsetInBuffer(e.piece.bufferIndex,i),y=this.offsetInBuffer(e.piece.bufferIndex,r),b={line:0,column:0};t._wordSeparators?(p=g.buffer.substring(v,y),f=function(e){return e+v},t.reset(-1)):(p=g.buffer,f=function(e){return e},t.reset(v));do{if(h=t.next(p)){if(f(h.index)>=y)return c;this.positionInBuffer(e,f(h.index)-m,b);var _=this.getLineFeedCnt(e.piece.bufferIndex,i,b),w=b.line===i.line?b.column-i.column+o:b.column+1,C=w+h[0].length;if(d[c++]=Object(ce.d)(new u.a(n+_,w,n+_,C),h,s),f(h.index)+h[0].length>=y)return c;if(l<=c)return c}}while(h);return c},be.prototype.findMatchesLineByLine=function(e,t,n,o){var i=[],r=0,a=new ce.b(t.wordSeparators,t.regex),s=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===s)return[];var l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];var c=this.positionInBuffer(s.node,s.remainder),u=this.positionInBuffer(l.node,l.remainder);if(s.node===l.node)return this.findMatchesInNode(s.node,a,e.startLineNumber,e.startColumn,c,u,t,n,o,r,i),i;for(var d=e.startLineNumber,h=s.node;h!==l.node;){var p=this.getLineFeedCnt(h.piece.bufferIndex,c,h.piece.end);if(1<=p){var f=this._buffers[h.piece.bufferIndex].lineStarts,g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),m=f[c.line+p],v=d===e.startLineNumber?e.startColumn:1;if(o<=(r=this.findMatchesInNode(h,a,d,v,c,this.positionInBuffer(h,m-g),t,n,o,r,i)))return i;d+=p}var y=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var b=this.getLineContent(d).substring(y,e.endColumn-1);return r=this._findMatchesInLine(t,a,b,e.endLineNumber,y,r,i,n,o),i}if(o<=(r=this._findMatchesInLine(t,a,this.getLineContent(d).substr(y),d,y,r,i,n,o)))return i;d++,h=(s=this.nodeAt2(d,1)).node,c=this.positionInBuffer(s.node,s.remainder)}if(d===e.endLineNumber){var _=d===e.startLineNumber?e.startColumn-1:0;return b=this.getLineContent(d).substring(_,e.endColumn-1),r=this._findMatchesInLine(t,a,b,e.endLineNumber,_,r,i,n,o),i}var w=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(l.node,a,d,w,c,u,t,n,o,r,i),i},be.prototype._findMatchesInLine=function(e,t,n,o,i,r,a,s,l){var c,d=e.wordSeparators;if(!s&&e.simpleSearch){for(var p=e.simpleSearch,f=p.length,g=n.length,m=-f;-1!==(m=n.indexOf(p,m+f));)if((!d||Object(ce.e)(d,n,g,m,f))&&(a[r++]=new h.b(new u.a(o,m+1+i,o,m+1+f+i),null),l<=r))return r;return r}t.reset(0);do{if((c=t.next(n))&&(a[r++]=Object(ce.d)(new u.a(o,c.index+1+i,o,c.index+1+c[0].length+i),c,s),l<=r))return r}while(c);return r},be.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!==X){var o=this.nodeAt(e),i=o.node,r=o.remainder,a=o.nodeStartOffset,s=i.piece,l=s.bufferIndex,c=this.positionInBuffer(i,r);if(0===i.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&a+s.length===e&&t.length<ue)return this.appendToNode(i,t),void this.computeBufferMetadata();if(a===e)this.insertContentToNodeLeft(t,i),this._searchCache.valdiate(e);else if(a+i.piece.length>e){var u=[],d=new fe(s.bufferIndex,c,s.end,this.getLineFeedCnt(s.bufferIndex,c,s.end),this.offsetInBuffer(l,s.end)-this.offsetInBuffer(l,c));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(i,r)){var h={line:d.start.line+1,column:0};d=new fe(d.bufferIndex,h,d.end,this.getLineFeedCnt(d.bufferIndex,h,d.end),d.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(i,r-1)){var p=this.positionInBuffer(i,r-1);this.deleteNodeTail(i,p),t="\r"+t,0===i.piece.length&&u.push(i)}else this.deleteNodeTail(i,c);else this.deleteNodeTail(i,c);var f=this.createNewPieces(t);0<d.length&&this.rbInsertRight(i,d);for(var g=i,m=0;m<f.length;m++)g=this.rbInsertRight(g,f[m]);this.deleteNodes(u)}else this.insertContentToNodeRight(t,i)}else{var v=this.createNewPieces(t);for(i=this.rbInsertLeft(null,v[0]),m=1;m<v.length;m++)i=this.rbInsertRight(i,v[m])}this.computeBufferMetadata()},be.prototype.delete=function(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",!(t<=0||this.root===X)){var n=this.nodeAt(e),o=this.nodeAt(e+t),i=n.node,r=o.node;if(i===r){var a=this.positionInBuffer(i,n.remainder),s=this.positionInBuffer(i,o.remainder);if(n.nodeStartOffset!==e)return n.nodeStartOffset+i.piece.length===e+t?(this.deleteNodeTail(i,a),this.validateCRLFWithNextNode(i)):this.shrinkNode(i,a,s),void this.computeBufferMetadata();if(t!==i.piece.length)return this.deleteNodeHead(i,s),this._searchCache.valdiate(e),this.validateCRLFWithPrevNode(i),void this.computeBufferMetadata();var l=i.next();return re(this,i),this.validateCRLFWithPrevNode(l),void this.computeBufferMetadata()}var c=[],u=this.positionInBuffer(i,n.remainder);this.deleteNodeTail(i,u),this._searchCache.valdiate(e),0===i.piece.length&&c.push(i);var d=this.positionInBuffer(r,o.remainder);this.deleteNodeHead(r,d),0===r.piece.length&&c.push(r);for(var h=i.next();h!==X&&h!==r;h=h.next())c.push(h);var p=0===i.piece.length?i.prev():i;this.deleteNodes(c),this.validateCRLFWithNextNode(p),this.computeBufferMetadata()}},be.prototype.insertContentToNodeLeft=function(e,t){var n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){var o=t.piece,i={line:o.start.line+1,column:0},r=new fe(o.bufferIndex,i,o.end,this.getLineFeedCnt(o.bufferIndex,i,o.end),o.length-1);t.piece=r,e+="\n",se(this,t,-1,-1),0===t.piece.length&&n.push(t)}for(var a=this.createNewPieces(e),s=this.rbInsertLeft(t,a[a.length-1]),l=a.length-2;0<=l;l--)s=this.rbInsertLeft(s,a[l]);this.validateCRLFWithPrevNode(s),this.deleteNodes(n)},be.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),o=this.rbInsertRight(t,n[0]),i=o,r=1;r<n.length;r++)i=this.rbInsertRight(i,n[r]);this.validateCRLFWithPrevNode(o)},be.prototype.positionInBuffer=function(e,t,n){for(var o=e.piece,i=e.piece.bufferIndex,r=this._buffers[i].lineStarts,a=r[o.start.line]+o.start.column+t,s=o.start.line,l=o.end.line,c=0,u=0,d=0;s<=l&&(d=r[c=s+(l-s)/2|0],c!==l);)if(u=r[c+1],a<d)l=c-1;else{if(!(u<=a))break;s=c+1}return n?(n.line=c,n.column=a-d,null):{line:c,column:a-d}},be.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var o=this._buffers[e].lineStarts;if(n.line===o.length-1)return n.line-t.line;var i=o[n.line+1],r=o[n.line]+n.column;if(r+1<i)return n.line-t.line;var a=r-1;return 13===this._buffers[e].buffer.charCodeAt(a)?n.line-t.line+1:n.line-t.line},be.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column},be.prototype.deleteNodes=function(e){for(var t=0;t<e.length;t++)re(this,e[t])},be.prototype.createNewPieces=function(e){if(e.length>ue){for(var t=[];e.length>ue;){var n=e.charCodeAt(ue-1),o=void 0;e=13===n||55296<=n&&n<=56319?(o=e.substring(0,ue-1),e.substring(ue-1)):(o=e.substring(0,ue),e.substring(ue));var i=pe(o);t.push(new fe(this._buffers.length,{line:0,column:0},{line:i.length-1,column:o.length-i[i.length-1]},i.length-1,o.length)),this._buffers.push(new ge(o,i))}var r=pe(e);return t.push(new fe(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 ge(e,r)),t}var a=this._buffers[0].buffer.length,s=pe(e,!1),l=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===a&&0!==a&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},l=this._lastChangeBufferPos;for(var c=0;c<s.length;c++)s[c]+=a+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(s.slice(1)),this._buffers[0].buffer+="_"+e,a+=1}else{if(0!==a)for(c=0;c<s.length;c++)s[c]+=a;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(s.slice(1)),this._buffers[0].buffer+=e}var u=this._buffers[0].buffer.length,d=this._buffers[0].lineStarts.length-1,h={line:d,column:u-this._buffers[0].lineStarts[d]},p=new fe(0,l,h,this.getLineFeedCnt(0,l,h),u-a);return this._lastChangeBufferPos=h,[p]},be.prototype.getLineRawContent=function(e,t){void 0===t&&(t=0);var n=this.root,o="",i=this._searchCache.get2(e);if(i){n=i.node;var r=this.getAccumulatedValue(n,e-i.nodeStartLineNumber-1),a=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(i.nodeStartLineNumber+n.piece.lineFeedCnt!==e){var l=this.getAccumulatedValue(n,e-i.nodeStartLineNumber);return a.substring(s+r,s+l-t)}o=a.substring(s+r,s+n.piece.length)}else for(var c=0,u=e;n!==X;)if(n.left!==X&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1)return r=this.getAccumulatedValue(n,e-n.lf_left-2),l=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),c+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:c,nodeStartLineNumber:u-(e-1-n.lf_left)}),a.substring(s+r,s+l-t);if(n.lf_left+n.piece.lineFeedCnt===e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2),a=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),o=a.substring(s+r,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,c+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==X;){if(a=this._buffers[n.piece.bufferIndex].buffer,0<n.piece.lineFeedCnt)return l=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),o+a.substring(s,s+l-t);s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),o+=a.substr(s,n.piece.length),n=n.next()}return o},be.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==X;)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)},be.prototype.getIndexOf=function(e,t){var n=e.piece,o=this.positionInBuffer(e,t),i=o.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,o);if(r!==i)return{index:r,remainder:0}}return{index:i,remainder:o.column}},be.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,o=this._buffers[n.bufferIndex].lineStarts,i=n.start.line+t+1;return i>n.end.line?o[n.end.line]+n.end.column-o[n.start.line]-n.start.column:o[i]-o[n.start.line]-n.start.column},be.prototype.deleteNodeTail=function(e,t){var n=e.piece,o=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.end),r=t,a=this.offsetInBuffer(n.bufferIndex,r),s=this.getLineFeedCnt(n.bufferIndex,n.start,r),l=s-o,c=a-i,u=n.length+c;e.piece=new fe(n.bufferIndex,n.start,r,s,u),se(this,e,c,l)},be.prototype.deleteNodeHead=function(e,t){var n=e.piece,o=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.start),r=t,a=this.getLineFeedCnt(n.bufferIndex,r,n.end),s=a-o,l=i-this.offsetInBuffer(n.bufferIndex,r),c=n.length+l;e.piece=new fe(n.bufferIndex,r,n.end,a,c),se(this,e,l,s)},be.prototype.shrinkNode=function(e,t,n){var o=e.piece,i=o.start,r=o.end,a=o.length,s=o.lineFeedCnt,l=t,c=this.getLineFeedCnt(o.bufferIndex,o.start,l),u=this.offsetInBuffer(o.bufferIndex,t)-this.offsetInBuffer(o.bufferIndex,i);e.piece=new fe(o.bufferIndex,o.start,l,c,u),se(this,e,u-a,c-s);var d=new fe(o.bufferIndex,n,r,this.getLineFeedCnt(o.bufferIndex,n,r),this.offsetInBuffer(o.bufferIndex,r)-this.offsetInBuffer(o.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)},be.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),o=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var i=pe(t,!1),r=0;r<i.length;r++)i[r]+=o;if(n){var a=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:o-a}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1));var s=this._buffers[0].lineStarts.length-1,l={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},c=e.piece.length+t.length,u=e.piece.lineFeedCnt,d=this.getLineFeedCnt(0,e.piece.start,l),h=d-u;e.piece=new fe(e.piece.bufferIndex,e.piece.start,l,d,c),this._lastChangeBufferPos=l,se(this,e,t.length,h)},be.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};for(var o=0;t!==X;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){o+=t.size_left;var i={node:t,remainder:e-t.size_left,nodeStartOffset:o};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,o+=t.size_left+t.piece.length,t=t.right}return null},be.prototype.nodeAt2=function(e,t){for(var n=this.root,o=0;n!==X;)if(n.left!==X&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var i=this.getAccumulatedValue(n,e-n.lf_left-2),r=this.getAccumulatedValue(n,e-n.lf_left-1);return o+=n.size_left,{node:n,remainder:Math.min(i+t-1,r),nodeStartOffset:o}}if(n.lf_left+n.piece.lineFeedCnt===e-1){if((i=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:i+t-1,nodeStartOffset:o};t-=n.piece.length-i;break}e-=n.lf_left+n.piece.lineFeedCnt,o+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==X;){if(0<n.piece.lineFeedCnt){r=this.getAccumulatedValue(n,0);var a=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,r),nodeStartOffset:a}}if(n.piece.length>=t-1)return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)};t-=n.piece.length,n=n.next()}return null},be.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],o=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(o)},be.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},be.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},be.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===X||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,o=t.start.line,i=n[o]+t.start.column;return o!==n.length-1&&!(i+1<n[o+1])&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(i)},be.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==X&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},be.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},be.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},be.prototype.fixCRLF=function(e,t){var n,o=[],i=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var r=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new fe(e.piece.bufferIndex,e.piece.start,n,a,r),se(this,e,-1,-1),0===e.piece.length&&o.push(e);var s={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,s,t.piece.end);t.piece=new fe(t.piece.bufferIndex,s,t.piece.end,c,l),se(this,t,-1,-1),0===t.piece.length&&o.push(t);var u=this.createNewPieces("\r\n");this.rbInsertRight(e,u[0]);for(var d=0;d<o.length;d++)re(this,o[d])},be.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)re(this,n);else{var o=n.piece,i={line:o.start.line+1,column:0},r=o.length-1,a=this.getLineFeedCnt(o.bufferIndex,i,o.end);n.piece=new fe(o.bufferIndex,i,o.end,a,r),se(this,n,-1,-1)}return!0}}return!1},be.prototype.iterate=function(e,t){if(e===X)return t(X);var n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n},be.prototype.getNodeContent=function(e){if(e===X)return"";var t=this._buffers[e.piece.bufferIndex],n=e.piece,o=this.offsetInBuffer(n.bufferIndex,n.start),i=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(o,i)},be.prototype.rbInsertRight=function(e,t){var n=new Z(t,1);if(n.left=X,n.right=X,n.parent=X,n.size_left=0,n.lf_left=0,this.root===X)(this.root=n).color=0;else if(e.right===X)(e.right=n).parent=e;else{var o=J(e.right);(o.left=n).parent=o}return ae(this,n),n},be.prototype.rbInsertLeft=function(e,t){var n=new Z(t,1);if(n.left=X,n.right=X,n.parent=X,n.size_left=0,n.lf_left=0,this.root===X)(this.root=n).color=0;else if(e.left===X)(e.left=n).parent=e;else{var o=Q(e.left);(o.right=n).parent=o}return ae(this,n),n},be);function be(e,t,n){this.create(e,t,n)}var _e=(we.prototype.mightContainRTL=function(){return this._mightContainRTL},we.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},we.prototype.getBOM=function(){return this._BOM},we.prototype.getEOL=function(){return this._pieceTree.getEOL()},we.prototype.getOffsetAt=function(e,t){return this._pieceTree.getOffsetAt(e,t)},we.prototype.getPositionAt=function(e){return this._pieceTree.getPositionAt(e)},we.prototype.getRangeAt=function(e,t){var n=e+t,o=this.getPositionAt(e),i=this.getPositionAt(n);return new u.a(o.lineNumber,o.column,i.lineNumber,i.column)},we.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)},we.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);return this.getOffsetAt(e.endLineNumber,e.endColumn)-n},we.prototype.getCharacterCountInRange=function(e,t){if(void 0===t&&(t=0),this._mightContainNonBasicASCII){for(var n=0,o=e.startLineNumber,i=e.endLineNumber,r=o;r<=i;r++)for(var s=this.getLineContent(r),l=r===o?e.startColumn-1:0,c=r===i?e.endColumn-1:s.length,u=l;u<c;u++)a.z(s.charCodeAt(u))?(n+=1,u+=1):n+=1;return n+this._getEndOfLine(t).length*(i-o)}return this.getValueLengthInRange(e,t)},we.prototype.getLength=function(){return this._pieceTree.getLength()},we.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},we.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},we.prototype.getLineContent=function(e){return this._pieceTree.getLineContent(e)},we.prototype.getLineCharCode=function(e,t){return this._pieceTree.getLineCharCode(e,t)},we.prototype.getLineLength=function(e){return this._pieceTree.getLineLength(e)},we.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=a.q(this.getLineContent(e));return-1===t?0:t+1},we.prototype.getLineLastNonWhitespaceColumn=function(e){var t=a.D(this.getLineContent(e));return-1===t?0:t+2},we.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")},we.prototype.setEOL=function(e){this._pieceTree.setEOL(e)},we.prototype.applyEdits=function(e,t){for(var n=this._mightContainRTL,o=this._mightContainNonBasicASCII,i=!0,r=[],s=0;s<e.length;s++){var l=e[s];i&&l._isTracked&&(i=!1);var c=l.range;!n&&l.text&&(n=a.i(l.text)),!o&&l.text&&(o=!a.v(l.text)),r[s]={sortIndex:s,identifier:l.identifier||null,range:c,rangeOffset:this.getOffsetAt(c.startLineNumber,c.startColumn),rangeLength:this.getValueLengthInRange(c),lines:l.text?l.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(l.forceMoveMarkers),isAutoWhitespaceEdit:l.isAutoWhitespaceEdit||!1}}r.sort(we._sortOpsAscending);for(var u=!1,d=(s=0,r.length-1);s<d;s++){var p=r[s].range.getEndPosition(),f=r[s+1].range.getStartPosition();if(f.isBeforeOrEqual(p)){if(f.isBefore(p))throw new Error("Overlapping ranges are not allowed!");u=!0}}i&&(r=this._reduceOperations(r));var g=we._getInverseEditRanges(r),m=[];for(s=0;s<r.length;s++){l=r[s];var v=g[s];if(t&&l.isAutoWhitespaceEdit&&l.range.isEmpty())for(var y=v.startLineNumber;y<=v.endLineNumber;y++){var b="";y===v.startLineNumber&&(b=this.getLineContent(l.range.startLineNumber),-1!==a.q(b))||m.push({lineNumber:y,oldContent:b})}}var _=[];for(s=0;s<r.length;s++)l=r[s],v=g[s],_[s]={sortIndex:l.sortIndex,identifier:l.identifier,range:v,text:this.getValueInRange(l.range),forceMoveMarkers:l.forceMoveMarkers};u||_.sort((function(e,t){return e.sortIndex-t.sortIndex})),this._mightContainRTL=n,this._mightContainNonBasicASCII=o;var w=this._doApplyEdits(r),C=null;if(t&&0<m.length){m.sort((function(e,t){return t.lineNumber-e.lineNumber})),C=[],s=0;for(var S=m.length;s<S;s++)if(y=m[s].lineNumber,!(0<s&&m[s-1].lineNumber===y)){var O=m[s].oldContent,x=this.getLineContent(y);0!==x.length&&x!==O&&-1===a.q(x)&&C.push(y)}}return new h.a(_,w,C)},we.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},we.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,o=e[e.length-1].range,i=new u.a(n.startLineNumber,n.startColumn,o.endLineNumber,o.endColumn),r=n.startLineNumber,a=n.startColumn,s=[],l=0,c=e.length;l<c;l++){var d=e[l],h=d.range;t=t||d.forceMoveMarkers;for(var p=r;p<h.startLineNumber;p++)p===r?s.push(this.getLineContent(p).substring(a-1)):(s.push("\n"),s.push(this.getLineContent(p)));if(h.startLineNumber===r?s.push(this.getLineContent(h.startLineNumber).substring(a-1,h.startColumn-1)):(s.push("\n"),s.push(this.getLineContent(h.startLineNumber).substring(0,h.startColumn-1))),d.lines)for(var f=0,g=d.lines.length;f<g;f++)0!==f&&s.push("\n"),s.push(d.lines[f]);r=d.range.endLineNumber,a=d.range.endColumn}return{sortIndex:0,identifier:e[0].identifier,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i,0),lines:s.join("").split("\n"),forceMoveMarkers:t,isAutoWhitespaceEdit:!1}},we.prototype._doApplyEdits=function(e){e.sort(we._sortOpsDescending);for(var t=[],n=0;n<e.length;n++){var o=e[n],i=o.range.startLineNumber,r=o.range.startColumn,a=o.range.endLineNumber,s=o.range.endColumn;if(i!==a||r!==s||o.lines&&0!==o.lines.length){var l=a-i,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 p=[],f=d+1;f<=c;f++)p.push(o.lines[f]);p[p.length-1]=this.getLineContent(i+c-1)}var g=new u.a(i,r,a,s);t.push({range:g,rangeLength:o.rangeLength,text:h,rangeOffset:o.rangeOffset,forceMoveMarkers:o.forceMoveMarkers})}}return t},we.prototype.findMatchesLineByLine=function(e,t,n,o){return this._pieceTree.findMatchesLineByLine(e,t,n,o)},we._getInverseEditRanges=function(e){for(var t=[],n=0,o=0,i=null,r=0,a=e.length;r<a;r++){var s,l=e[r],c=void 0;s=i?i.range.endLineNumber===l.range.startLineNumber?(c=n,o+(l.range.startColumn-i.range.endColumn)):(c=n+(l.range.startLineNumber-i.range.endLineNumber),l.range.startColumn):(c=l.range.startLineNumber,l.range.startColumn);var d=void 0;if(l.lines&&0<l.lines.length){var h=l.lines.length,p=l.lines[0],f=l.lines[h-1];d=1===h?new u.a(c,s,c,s+p.length):new u.a(c,s,c+h-1,f.length+1)}else d=new u.a(c,s,c,s);n=d.endLineNumber,o=d.endColumn,t.push(d),i=l}return t},we._sortOpsAscending=function(e,t){var n=u.a.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},we._sortOpsDescending=function(e,t){var n=u.a.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},we);function we(e,t,n,o,i,r){this._BOM=t,this._mightContainNonBasicASCII=!i,this._mightContainRTL=o,this._pieceTree=new ye(e,n,r)}var Ce=(Se.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":t/2<n?"\r\n":"\n"},Se.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(0<this._cr||0<this._lf)||"\n"===t&&(0<this._cr||0<this._crlf)))for(var o=0,i=n.length;o<i;o++){var r=n[o].buffer.replace(/\r\n|\r|\n/g,t),a=pe(r);n[o]=new ge(r,a)}return new _e(n,this._bom,t,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},Se);function Se(e,t,n,o,i,r,a,s){this._chunks=e,this._bom=t,this._cr=n,this._lf=o,this._crlf=i,this._containsRTL=r,this._isBasicASCII=a,this._normalizeEOL=s}var Oe=(xe.prototype.acceptChunk=function(e){if(0!==e.length){0===this.chunks.length&&a.P(e)&&(this.BOM=a.a,e=e.substr(1));var t=e.charCodeAt(e.length-1);13===t||55296<=t&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1),this._previousChar=t}},xe.prototype._acceptChunk1=function(e,t){!t&&0===e.length||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},xe.prototype._acceptChunk2=function(e){var t=function(e,t){e.length=0;for(var n=1,o=e[0]=0,i=0,r=0,a=!0,s=0,l=t.length;s<l;s++){var c=t.charCodeAt(s);13===c?s+1<l&&10===t.charCodeAt(s+1)?(r++,e[n++]=s+2,s++):(o++,e[n++]=s+1):10===c?(i++,e[n++]=s+1):a&&9!==c&&(c<32||126<c)&&(a=!1)}var u=new he(de(e),o,i,r,a);return e.length=0,u}(this._tmpLineStarts,e);this.chunks.push(new ge(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=a.i(e))},xe.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new Ce(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},xe.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=pe(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},xe);function xe(){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}var Ee=function(){this.changeType=1},ke=function(e,t){this.changeType=2,this.lineNumber=e,this.detail=t},Ne=function(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t},De=function(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n},Le=function(){this.changeType=5},Pe=(Ie.prototype.containsEvent=function(e){for(var t=0,n=this.changes.length;t<n;t++)if(this.changes[t].changeType===e)return!0;return!1},Ie.merge=function(e,t){return new Ie([].concat(e.changes).concat(t.changes),t.versionId,e.isUndoing||t.isUndoing,e.isRedoing||t.isRedoing)},Ie);function Ie(e,t,n,o){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=o}var Te=(Me.prototype.merge=function(e){var t=Pe.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Me._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Me(t,n)},Me._mergeChangeEvents=function(e,t){return{changes:[].concat(e.changes).concat(t.changes),eol:t.eol,versionId:t.versionId,isUndoing:e.isUndoing||t.isUndoing,isRedoing:e.isRedoing||t.isRedoing,isFlush:e.isFlush||t.isFlush}},Me);function Me(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}var je,Re=n(459),Ae=n(824),Fe=n(454),Ve=n(756),We=n(1054),Be=n(948),He=n(452),ze=(je=function(e,t){return(je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}je(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ke=(Ue.prototype._reset=function(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)},Ue.prototype.flush=function(e){this._reset(e)},Object.defineProperty(Ue.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),Ue.prototype._invalidateLine=function(e){e<this._len&&(this._valid[e]=!1),e<this._invalidLineStartIndex&&(this._invalidLineStartIndex=e)},Ue.prototype._isValid=function(e){return e<this._len&&this._valid[e]},Ue.prototype.getBeginState=function(e){return e<this._len?this._beginState[e]:null},Ue.prototype._ensureLine=function(e){for(;e>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},Ue.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)},Ue.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],o=[],i=0;i<t;i++)n[i]=null,o[i]=!1;this._beginState=Re.a(this._beginState,e,n),this._valid=Re.a(this._valid,e,o),this._len+=t}},Ue.prototype._setValid=function(e,t){this._ensureLine(e),this._valid[e]=t},Ue.prototype._setBeginState=function(e,t){this._ensureLine(e),this._beginState[e]=t},Ue.prototype.setEndState=function(e,t,n){if(this._setValid(t,!0),this._invalidLineStartIndex=t+1,t!==e-1){var o=this.getBeginState(t+1);if(null===o||!n.equals(o))return this._setBeginState(t+1,n),void this._invalidateLine(t+1);for(var i=t+1;i<e&&this._isValid(i);)i++;this._invalidLineStartIndex=i}},Ue.prototype.setFakeTokens=function(e){this._setValid(e,!1)},Ue.prototype.applyEdits=function(e,t){for(var n=e.endLineNumber-e.startLineNumber,o=t,i=Math.min(n,o);0<=i;i--)this._invalidateLine(e.startLineNumber+i-1);this._acceptDeleteRange(e),this._acceptInsertText(new c.a(e.startLineNumber,e.startColumn),t)},Ue.prototype._acceptDeleteRange=function(e){e.startLineNumber-1>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)},Ue.prototype._acceptInsertText=function(e,t){e.lineNumber-1>=this._len||this._insertLines(e.lineNumber,t)},Ue);function Ue(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}var qe,Ge=(ze(Ye,qe=r.a),Ye.prototype.dispose=function(){this._isDisposed=!0,qe.prototype.dispose.call(this)},Ye.prototype._resetTokenizationState=function(){var e=function(e){var t=e.getLanguageIdentifier(),n=e.isTooLargeForTokenization()?null:Fe.B.get(t.language),i=null;if(n)try{i=n.getInitialState()}catch(e){Object(o.e)(e),n=null}return[n,i]}(this._textModel),t=e[0],n=e[1];this._tokenizationSupport=t,this._tokenizationStateStore.flush(n),this._beginBackgroundTokenization()},Ye.prototype._beginBackgroundTokenization=function(){var e=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&He.i((function(){e._isDisposed||e._revalidateTokensNow()}))},Ye.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._textModel.getLineCount());for(var t=new Be.b,n=We.a.create(!1);this._hasLinesToTokenize()&&!(1<n.elapsed())&&!(e<=this._tokenizeOneInvalidLine(t)););this._beginBackgroundTokenization(),this._textModel.setTokens(t.tokens)},Ye.prototype.tokenizeViewport=function(e,t){var n=new Be.b;this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens)},Ye.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},Ye.prototype.forceTokenization=function(e){var t=new Be.b;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)},Ye.prototype.isCheapToTokenize=function(e){if(!this._tokenizationSupport)return!0;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(t<e)&&(e<t||this._textModel.getLineLength(e)<2048)},Ye.prototype._hasLinesToTokenize=function(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()},Ye.prototype._tokenizeOneInvalidLine=function(e){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t},Ye.prototype._updateTokensUntilLine=function(e,t){if(this._tokenizationSupport)for(var n=this._textModel.getLanguageIdentifier(),o=this._textModel.getLineCount(),i=t-1,r=this._tokenizationStateStore.invalidLineStartIndex;r<=i;r++){var a=this._textModel.getLineContent(r+1),s=this._tokenizationStateStore.getBeginState(r),l=Ze(n,this._tokenizationSupport,a,s);e.add(r+1,l.tokens),this._tokenizationStateStore.setEndState(o,r,l.endState),r=this._tokenizationStateStore.invalidLineStartIndex-1}},Ye.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 o=this._textModel.getLineFirstNonWhitespaceColumn(t),i=[],r=null,a=t-1;0<o&&1<=a;a--){var s=this._textModel.getLineFirstNonWhitespaceColumn(a);if(0!==s&&s<o){if(r=this._tokenizationStateStore.getBeginState(a-1))break;i.push(this._textModel.getLineContent(a)),o=s}}r=r||this._tokenizationSupport.getInitialState();var l=this._textModel.getLanguageIdentifier(),c=r;for(a=i.length-1;0<=a;a--)c=(h=Ze(l,this._tokenizationSupport,i[a],c)).endState;for(var u=t;u<=n;u++){var d=this._textModel.getLineContent(u),h=Ze(l,this._tokenizationSupport,d,c);e.add(u,h.tokens),this._tokenizationStateStore.setFakeTokens(u-1),c=h.endState}}},Ye);function Ye(e){var t=qe.call(this)||this;return t._isDisposed=!1,t._textModel=e,t._tokenizationStateStore=new Ke,t._tokenizationSupport=null,t._register(Fe.B.onDidChange((function(e){var n=t._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(n.language)&&(t._resetTokenizationState(),t._textModel.clearTokens())}))),t._register(t._textModel.onDidChangeRawContentFast((function(e){e.containsEvent(1)&&t._resetTokenizationState()}))),t._register(t._textModel.onDidChangeContentFast((function(e){for(var n=0,o=e.changes.length;n<o;n++){var i=e.changes[n],r=Object(Be.f)(i.text)[0];t._tokenizationStateStore.applyEdits(i.range,r)}t._beginBackgroundTokenization()}))),t._register(t._textModel.onDidChangeAttached((function(){t._beginBackgroundTokenization()}))),t._register(t._textModel.onDidChangeLanguage((function(){t._resetTokenizationState(),t._textModel.clearTokens()}))),t._resetTokenizationState(),t}function Ze(e,t,n,i){var r=null;if(t)try{r=t.tokenize2(n,i.clone(),0)}catch(e){Object(o.e)(e)}return r=r||Object(Ve.e)(e.id,n,i,0),Ae.a.convertToEndOffset(r.tokens,n.length),r}var $e=n(882),Xe=n(575),Je=n(949),Qe=n(950),et=n(465),tt=n(490);n.d(t,"b",(function(){return lt})),n.d(t,"a",(function(){return _t}));var nt,ot=(nt=function(e,t){return(nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function it(e,t){return("string"==typeof e?function(e){var t=new Oe;return t.acceptChunk(e),t.finish()}(e):e).create(t)}function rt(){throw new Error("Invalid change accessor")}var at,st=0,lt=(ot(ct,at=r.a),ct.createFromString=function(e,t,n,o){return void 0===t&&(t=ct.DEFAULT_CREATION_OPTIONS),void 0===n&&(n=null),void 0===o&&(o=null),new ct(e,t,n,o)},ct.resolveOptions=function(e,t){if(t.detectIndentation){var n=C(e,t.tabSize,t.insertSpaces);return new h.e({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new h.e({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},ct.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.rawContentChangedEvent)}))},ct.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.rawContentChangedEvent)}))},ct.prototype.onDidChangeContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.contentChangedEvent)}))},ct.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.contentChangedEvent)}))},ct.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,at.prototype.dispose.call(this),this._isDisposing=!1},ct.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},ct.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new Te(e,t))},ct.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=it(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},ct.prototype._createContentChanged2=function(e,t,n,o,i,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:o}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:i,isRedoing:r,isFlush:a}},ct.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),o=this.getLineCount(),i=this.getLineMaxColumn(o);this._buffer=e,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new ut,this._commandManager=new y(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Pe([new Ee],this._versionId,!1,!1),this._createContentChanged2(new u.a(1,1,o,i),0,n,this.getValue(),!1,!1,!0))}},ct.prototype.setEOL=function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),o=this.getValueLengthInRange(n),i=this.getLineCount(),r=this.getLineMaxColumn(i);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Pe([new Le],this._versionId,!1,!1),this._createContentChanged2(new u.a(1,1,i,r),0,o,this.getValue(),!1,!1,!1))}},ct.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},ct.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,o=t.length;n<o;n++){var i=t[n],r=i.cachedAbsoluteStart-i.start,a=this._buffer.getOffsetAt(i.range.startLineNumber,i.range.startColumn),s=this._buffer.getOffsetAt(i.range.endLineNumber,i.range.endColumn);i.cachedAbsoluteStart=a,i.cachedAbsoluteEnd=s,i.cachedVersionId=e,i.start=a-r,i.end=s-r,q(i)}},ct.prototype.onBeforeAttached=function(){this._attachedEditorCount++,1===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},ct.prototype.onBeforeDetached=function(){this._attachedEditorCount--,0===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},ct.prototype.isAttachedToEditor=function(){return 0<this._attachedEditorCount},ct.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},ct.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},ct.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},ct.prototype.isDisposed=function(){return this._isDisposed},ct.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),o=1;o<=n;o++){var i=this._buffer.getLineLength(o);1e4<=i?t+=i:e+=i}return e<t},Object.defineProperty(ct.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),ct.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},ct.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},ct.prototype.updateOptions=function(e){this._assertNotDisposed();var t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,n=void 0!==e.indentSize?e.indentSize:this._options.indentSize,o=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,i=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=new h.e({tabSize:t,indentSize:n,insertSpaces:o,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:i});if(!this._options.equals(r)){var a=this._options.createChangeEvent(r);this._options=r,this._onDidChangeOptions.fire(a)}},ct.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=C(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})},ct._normalizeIndentationFromWhitespace=function(e,t,n){for(var o=0,i=0;i<e.length;i++)"\t"===e.charAt(i)?o+=t:o++;var r="";if(!n){var a=Math.floor(o/t);for(o%=t,i=0;i<a;i++)r+="\t"}for(i=0;i<o;i++)r+=" ";return r},ct.normalizeIndentation=function(e,t,n){var o=a.q(e);return-1===o&&(o=e.length),ct._normalizeIndentationFromWhitespace(e.substring(0,o),t,n)+e.substring(o)},ct.prototype.normalizeIndentation=function(e){return this._assertNotDisposed(),ct.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)},ct.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},ct.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},ct.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},ct.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},ct.prototype.getOffsetAt=function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)},ct.prototype.getPositionAt=function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)},ct.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},ct.prototype._overwriteAlternativeVersionId=function(e){this._alternativeVersionId=e},ct.prototype.getValue=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),o=this.getValueInRange(n,e);return t?this._buffer.getBOM()+o:o},ct.prototype.getValueLength=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),o=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+o:o},ct.prototype.getValueInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)},ct.prototype.getValueLengthInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)},ct.prototype.getCharacterCountInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)},ct.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},ct.prototype.getLineContent=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},ct.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},ct.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},ct.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},ct.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},ct.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},ct.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},ct.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},ct.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,o=this._buffer.getLineCount(),i=e.startLineNumber,r=e.startColumn;n=i<1?t=1:o<i?(t=o,this.getLineMaxColumn(t)):(t=0|i,r<=1?1:(h=this.getLineMaxColumn(t))<=r?h:0|r);var a,s,l=e.endLineNumber,c=e.endColumn;if(l<1)s=a=1;else if(o<l)a=o,s=this.getLineMaxColumn(a);else{var h;a=0|l,s=c<=1?1:(h=this.getLineMaxColumn(a))<=c?h:0|c}return i===t&&r===n&&l===a&&c===s&&e instanceof u.a&&!(e instanceof d.a)?e:new u.a(t,n,a,s)},ct.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;if(this._buffer.getLineCount()<e)return!1;if(1===t)return!0;if(this.getLineMaxColumn(e)<t)return!1;if(1===n){var o=this._buffer.getLineCharCode(e,t-2);if(a.z(o))return!1}return!0},ct.prototype._validatePosition=function(e,t,n){var o=Math.floor("number"!=typeof e||isNaN(e)?1:e),i=Math.floor("number"!=typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(o<1)return new c.a(1,1);if(r<o)return new c.a(r,this.getLineMaxColumn(r));if(i<=1)return new c.a(o,1);var s=this.getLineMaxColumn(o);if(s<=i)return new c.a(o,s);if(1===n){var l=this._buffer.getLineCharCode(o,i-2);if(a.z(l))return new c.a(o,i-1)}return new c.a(o,i)},ct.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof c.a&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)},ct.prototype._isValidRange=function(e,t){var n=e.startLineNumber,o=e.startColumn,i=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(n,o,0))return!1;if(!this._isValidPosition(i,r,0))return!1;if(1!==t)return!0;var s=1<o?this._buffer.getLineCharCode(n,o-2):0,l=1<r&&r<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,r-2):0,c=a.z(s),u=a.z(l);return!c&&!u},ct.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof u.a&&!(e instanceof d.a)&&this._isValidRange(e,1))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),o=t.lineNumber,i=t.column,r=n.lineNumber,s=n.column,l=1<i?this._buffer.getLineCharCode(o,i-2):0,c=1<s&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,h=a.z(l),p=a.z(c);return h||p?o===r&&i===s?new u.a(o,i-1,r,s-1):h&&p?new u.a(o,i-1,r,s+1):h?new u.a(o,i-1,r,s):new u.a(o,i,r,s+1):new u.a(o,i,r,s)},ct.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)))},ct.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new u.a(1,1,e,this.getLineMaxColumn(e))},ct.prototype.findMatchesLineByLine=function(e,t,n,o){return this._buffer.findMatchesLineByLine(e,t,n,o)},ct.prototype.findMatches=function(e,t,n,o,i,r,a){var s;if(void 0===a&&(a=999),this._assertNotDisposed(),s=u.a.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var l=new ce.a(e,n,o,i).parseSearchRequest();return l?this.findMatchesLineByLine(s,l,r,a):[]}return ce.c.findMatches(this,new ce.a(e,n,o,i),s,r,a)},ct.prototype.findNextMatch=function(e,t,n,o,i,r){this._assertNotDisposed();var a=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var s=new ce.a(e,n,o,i).parseSearchRequest();if(!s)return null;var l=this.getLineCount(),c=new u.a(a.lineNumber,a.column,l,this.getLineMaxColumn(l)),d=this.findMatchesLineByLine(c,s,r,1);return ce.c.findNextMatch(this,new ce.a(e,n,o,i),a,r),0<d.length?d[0]:(c=new u.a(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),0<(d=this.findMatchesLineByLine(c,s,r,1)).length?d[0]:null)}return ce.c.findNextMatch(this,new ce.a(e,n,o,i),a,r)},ct.prototype.findPreviousMatch=function(e,t,n,o,i,r){this._assertNotDisposed();var a=this.validatePosition(t);return ce.c.findPreviousMatch(this,new ce.a(e,n,o,i),a,r)},ct.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},ct.prototype.pushEOL=function(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ct.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()}},ct.prototype._pushEditOperations=function(e,t,n){var o=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var i=t.map((function(e){return{range:o.validateRange(e.range),text:e.text}})),r=!0,a=0,s=e.length;a<s;a++){for(var l=e[a],c=!1,d=0,h=i.length;d<h;d++){var p=(y=i[d].range).startLineNumber>l.endLineNumber,f=l.startLineNumber>y.endLineNumber;if(!p&&!f){c=!0;break}}if(!c){r=!1;break}}if(r)for(a=0,s=this._trimAutoWhitespaceLines.length;a<s;a++){var g=this._trimAutoWhitespaceLines[a],m=this.getLineMaxColumn(g),v=!0;for(d=0,h=i.length;d<h;d++){var y=i[d].range,b=i[d].text;if(!(g<y.startLineNumber||g>y.endLineNumber||g===y.startLineNumber&&y.startColumn===m&&y.isEmpty()&&b&&0<b.length&&"\n"===b.charAt(0)||g===y.startLineNumber&&1===y.startColumn&&y.isEmpty()&&b&&0<b.length&&"\n"===b.charAt(b.length-1))){v=!1;break}}v&&t.push({range:new u.a(g,1,g,m),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},ct.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ct.prototype._applyEdits=function(e){for(var t=0,n=e.length;t<n;t++)e[t].range=this.validateRange(e[t].range);var o=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace),r=this._buffer.getLineCount(),a=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==a.length){var s=[],l=o;for(t=0,n=a.length;t<n;t++){var c=a[t],u=Object(Be.f)(c.text),d=u[0],h=u[1],p=u[2];this._tokens.acceptEdit(c.range,d,h),this._tokens2.acceptEdit(c.range,d,h,p,0<c.text.length?c.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(c.rangeOffset,c.rangeLength,c.text.length,c.forceMoveMarkers);for(var f=c.range.startLineNumber,g=c.range.endLineNumber,m=g-f,v=d,y=Math.min(m,v),b=v-m,_=y;0<=_;_--){var w=f+_,C=r-l-b+w;s.push(new ke(w,this.getLineContent(C)))}if(y<m){var S=f+y;s.push(new Ne(S+1,g))}if(y<v){for(var O=f+y,x=v-y,E=r-l-x+O+1,k=[],N=0;N<x;N++){var D=E+N;k[D-E]=this.getLineContent(D)}s.push(new De(O+1,f+v,k))}l+=b}this._increaseVersionId(),this._emitContentChangedEvent(new Pe(s,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:a,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return i.reverseEdits},ct.prototype._undo=function(){this._isUndoing=!0;var e=this._commandManager.undo();return this._isUndoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},ct.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ct.prototype.canUndo=function(){return this._commandManager.canUndo()},ct.prototype._redo=function(){this._isRedoing=!0;var e=this._commandManager.redo();return this._isRedoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},ct.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ct.prototype.canRedo=function(){return this._commandManager.canRedo()},ct.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()}},ct.prototype._changeDecorations=function(e,t){var n=this,i={addDecoration:function(t,o){return n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[],[{range:t,options:o}])[0]},changeDecoration:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationImpl(e,t)},changeDecorationOptions:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationOptionsImpl(e,St(t))},removeDecoration:function(t){n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[t],[])},deltaDecorations:function(t,o){return 0===t.length&&0===o.length?[]:(n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,t,o))}},r=null;try{r=t(i)}catch(t){Object(o.e)(t)}return i.addDecoration=rt,i.changeDecoration=rt,i.changeDecorationOptions=rt,i.removeDecoration=rt,i.deltaDecorations=rt,r},ct.prototype.deltaDecorations=function(e,t,n){if(void 0===n&&(n=0),this._assertNotDisposed(),0===(e=e||[]).length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}},ct.prototype._getTrackedRange=function(e){return this.getDecorationRange(e)},ct.prototype._setTrackedRange=function(e,t,n){var o=e?this._decorations[e]:null;if(!o)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Ct[n]}])[0]:null;if(!t)return this._decorationsTree.delete(o),delete this._decorations[o.id],null;var i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),a=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);return this._decorationsTree.delete(o),o.reset(this.getVersionId(),r,a,i),o.setOptions(Ct[n]),this._decorationsTree.insert(o),o.id},ct.prototype.removeAllDecorationsWithOwnerId=function(e){if(!this._isDisposed)for(var t=this._decorationsTree.collectNodesFromOwner(e),n=0,o=t.length;n<o;n++){var i=t[n];this._decorationsTree.delete(i),delete this._decorations[i.id]}},ct.prototype.getDecorationOptions=function(e){var t=this._decorations[e];return t?t.options:null},ct.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},ct.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)},ct.prototype.getLinesDecorations=function(e,t,n,o){void 0===n&&(n=0),void 0===o&&(o=!1);var i=this.getLineCount(),r=Math.min(i,Math.max(1,e)),a=Math.min(i,Math.max(1,t)),s=this.getLineMaxColumn(a);return this._getDecorationsInRange(new u.a(r,1,a,s),n,o)},ct.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var o=this.validateRange(e);return this._getDecorationsInRange(o,t,n)},ct.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),o=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(o)},ct.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),o=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(o)},ct.prototype._getDecorationsInRange=function(e,t,n){var o=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),i=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),r=this.getVersionId(),a=this._decorationsTree.intervalSearch(o,i,t,n,r);return this._ensureNodesHaveRanges(a)},ct.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t<n;t++){var o=e[t];null===o.range&&(o.range=this._getRangeAt(o.cachedAbsoluteStart,o.cachedAbsoluteEnd))}return e},ct.prototype._getRangeAt=function(e,t){return this._buffer.getRangeAt(e,t-e)},ct.prototype._changeDecorationImpl=function(e,t){var n=this._decorations[e];if(n){var o=this._validateRangeRelaxedNoAllocations(t),i=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),r=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),i,r,o),this._decorationsTree.insert(n)}},ct.prototype._changeDecorationOptionsImpl=function(e,t){var n=this._decorations[e];n&&(!(!n.options.overviewRuler||!n.options.overviewRuler.color)!=!(!t.overviewRuler||!t.overviewRuler.color)?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t))},ct.prototype._deltaDecorationsImpl=function(e,t,n){for(var o=this.getVersionId(),i=t.length,r=0,a=n.length,s=0,l=new Array(a);r<i||s<a;){var c=null;if(r<i){for(;!(c=this._decorations[t[r++]])&&r<i;);c&&this._decorationsTree.delete(c)}if(s<a){if(!c){var u=++this._lastDecorationId,d=this._instanceId+";"+u;c=new T(d,0,0),this._decorations[d]=c}var h=n[s],p=this._validateRangeRelaxedNoAllocations(h.range),f=St(h.options),g=this._buffer.getOffsetAt(p.startLineNumber,p.startColumn),m=this._buffer.getOffsetAt(p.endLineNumber,p.endColumn);c.ownerId=e,c.reset(o,g,m,p),c.setOptions(f),this._decorationsTree.insert(c),l[s]=c.id,s++}else c&&delete this._decorations[c.id]}return l},ct.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)},ct.prototype.setTokens=function(e){if(0!==e.length){for(var t=[],n=0,o=e.length;n<o;n++){var i=e[n];t.push({fromLineNumber:i.startLineNumber,toLineNumber:i.startLineNumber+i.tokens.length-1});for(var r=0,a=i.tokens.length;r<a;r++)this.setLineTokens(i.startLineNumber+r,i.tokens[r])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:t})}},ct.prototype.setSemanticTokens=function(e){this._tokens2.set(e),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},ct.prototype.tokenizeViewport=function(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)},ct.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},ct.prototype._emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},ct.prototype.resetTokenization=function(){this._tokenization.reset()},ct.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)},ct.prototype.isCheapToTokenize=function(e){return this._tokenization.isCheapToTokenize(e)},ct.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},ct.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},ct.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)},ct.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},ct.prototype.getModeId=function(){return this._languageIdentifier.language},ct.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({})}},ct.prototype.getLanguageIdAtPosition=function(e,t){var n=this.validatePosition(new c.a(e,t)),o=this.getLineTokens(n.lineNumber);return o.getLanguageId(o.findTokenIndexAtOffset(n.column-1))},ct.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var t=this.validatePosition(e),n=this.getLineContent(t.lineNumber),o=this._getLineTokens(t.lineNumber),i=o.findTokenIndexAtOffset(t.column-1),r=ct._findLanguageBoundaries(o,i),a=r[0],s=r[1],l=Object($e.d)(t.column,Xe.a.getWordDefinition(o.getLanguageId(i)),n.substring(a,s),a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(0<i&&a===t.column-1){var c=ct._findLanguageBoundaries(o,i-1),u=c[0],d=c[1],h=Object($e.d)(t.column,Xe.a.getWordDefinition(o.getLanguageId(i-1)),n.substring(u,d),u);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn)return h}return null},ct._findLanguageBoundaries=function(e,t){for(var n=e.getLanguageId(t),o=0,i=t;0<=i&&e.getLanguageId(i)===n;i--)o=e.getStartOffset(i);for(var r=e.getLineContent().length,a=(i=t,e.getCount());i<a&&e.getLanguageId(i)===n;i++)r=e.getEndOffset(i);return[o,r]},ct.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}},ct.prototype.findMatchingBracketUp=function(e,t){var n=e.toLowerCase(),o=this.validatePosition(t),i=this._getLineTokens(o.lineNumber),r=i.getLanguageId(i.findTokenIndexAtOffset(o.column-1)),a=Xe.a.getBracketsSupport(r);if(!a)return null;var s=a.textIsBracket[n];return s?this._findMatchingBracketUp(s,o):null},ct.prototype.matchBracket=function(e){return this._matchBracket(this.validatePosition(e))},ct.prototype._matchBracket=function(e){var t=e.lineNumber,n=this._getLineTokens(t),o=n.getCount(),i=this._buffer.getLineContent(t),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;var a=Xe.a.getBracketsSupport(n.getLanguageId(r));if(a&&!Object(Je.b)(n.getStandardTokenType(r))){for(var s=Math.max(0,e.column-1-a.maxBracketLength),l=r-1;0<=l;l--){var c=n.getEndOffset(l);if(c<=s)break;Object(Je.b)(n.getStandardTokenType(l))&&(s=c)}for(var u=Math.min(i.length,e.column-1+a.maxBracketLength),d=null;m=Qe.a.findNextBracketInRange(a.forwardRegex,t,i,s,u);){if(m.startColumn<=e.column&&e.column<=m.endColumn){var h=i.substring(m.startColumn-1,m.endColumn-1).toLowerCase();(v=this._matchFoundBracket(m,a.textIsBracket[h],a.textIsOpenBracket[h]))&&(d=v)}s=m.endColumn-1}if(d)return d}if(0<r&&n.getStartOffset(r)===e.column-1){var p=r-1,f=Xe.a.getBracketsSupport(n.getLanguageId(p));if(f&&!Object(Je.b)(n.getStandardTokenType(p))){for(s=Math.max(0,e.column-1-f.maxBracketLength),u=Math.min(i.length,e.column-1+f.maxBracketLength),l=1+p;l<o;l++){var g=n.getStartOffset(l);if(u<=g)break;Object(Je.b)(n.getStandardTokenType(l))&&(u=g)}var m,v;if((m=Qe.a.findPrevBracketInRange(f.reversedRegex,t,i,s,u))&&m.startColumn<=e.column&&e.column<=m.endColumn&&(h=i.substring(m.startColumn-1,m.endColumn-1).toLowerCase(),v=this._matchFoundBracket(m,f.textIsBracket[h],f.textIsOpenBracket[h])))return v}}return null},ct.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;var o;if(n){if(o=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,o]}else if(o=this._findMatchingBracketUp(t,e.getStartPosition()))return[e,o];return null},ct.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,o=e.reversedRegex,i=-1,r=function(t,n,r,a){for(;;){var s=Qe.a.findPrevBracketInRange(o,t,n,r,a);if(!s)break;var l=n.substring(s.startColumn-1,s.endColumn-1).toLowerCase();if(e.isOpen(l)?i++:e.isClose(l)&&i--,0===i)return s;a=s.startColumn-1}return null},a=t.lineNumber;1<=a;a--){var s=this._getLineTokens(a),l=s.getCount(),c=this._buffer.getLineContent(a),u=l-1,d=c.length,h=c.length;a===t.lineNumber&&(u=s.findTokenIndexAtOffset(t.column-1),d=t.column-1,h=t.column-1);for(var p=!0;0<=u;u--){var f,g=s.getLanguageId(u)===n&&!Object(Je.b)(s.getStandardTokenType(u));if(g)p?d=s.getStartOffset(u):(d=s.getStartOffset(u),h=s.getEndOffset(u));else if(p&&d!==h&&(f=r(a,c,d,h)))return f;p=g}if(p&&d!==h&&(f=r(a,c,d,h)))return f}return null},ct.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,o=e.forwardRegex,i=1,r=function(t,n,r,a){for(;;){var s=Qe.a.findNextBracketInRange(o,t,n,r,a);if(!s)break;var l=n.substring(s.startColumn-1,s.endColumn-1).toLowerCase();if(e.isOpen(l)?i++:e.isClose(l)&&i--,0===i)return s;r=s.endColumn-1}return null},a=this.getLineCount(),s=t.lineNumber;s<=a;s++){var l=this._getLineTokens(s),c=l.getCount(),u=this._buffer.getLineContent(s),d=0,h=0,p=0;s===t.lineNumber&&(d=l.findTokenIndexAtOffset(t.column-1),h=t.column-1,p=t.column-1);for(var f=!0;d<c;d++){var g,m=l.getLanguageId(d)===n&&!Object(Je.b)(l.getStandardTokenType(d));if(m)f||(h=l.getStartOffset(d)),p=l.getEndOffset(d);else if(f&&h!==p&&(g=r(s,u,h,p)))return g;f=m}if(f&&h!==p&&(g=r(s,u,h,p)))return g}return null},ct.prototype.findPrevBracket=function(e){for(var t=this.validatePosition(e),n=-1,o=null,i=t.lineNumber;1<=i;i--){var r=this._getLineTokens(i),a=r.getCount(),s=this._buffer.getLineContent(i),l=a-1,c=s.length,u=s.length;i===t.lineNumber&&(l=r.findTokenIndexAtOffset(t.column-1),c=t.column-1,u=t.column-1,n!==(h=r.getLanguageId(l))&&(n=h,o=Xe.a.getBracketsSupport(n)));for(var d=!0;0<=l;l--){var h;if(n!==(h=r.getLanguageId(l))){if(o&&d&&c!==u){if(p=Qe.a.findPrevBracketInRange(o.reversedRegex,i,s,c,u))return this._toFoundBracket(o,p);d=!1}n=h,o=Xe.a.getBracketsSupport(n)}var p,f=!!o&&!Object(Je.b)(r.getStandardTokenType(l));if(f)d?c=r.getStartOffset(l):(c=r.getStartOffset(l),u=r.getEndOffset(l));else if(o&&d&&c!==u&&(p=Qe.a.findPrevBracketInRange(o.reversedRegex,i,s,c,u)))return this._toFoundBracket(o,p);d=f}if(o&&d&&c!==u&&(p=Qe.a.findPrevBracketInRange(o.reversedRegex,i,s,c,u)))return this._toFoundBracket(o,p)}return null},ct.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=this.getLineCount(),o=-1,i=null,r=t.lineNumber;r<=n;r++){var a=this._getLineTokens(r),s=a.getCount(),l=this._buffer.getLineContent(r),c=0,u=0,d=0;r===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),u=t.column-1,d=t.column-1,o!==(p=a.getLanguageId(c))&&(o=p,i=Xe.a.getBracketsSupport(o)));for(var h=!0;c<s;c++){var p;if(o!==(p=a.getLanguageId(c))){if(i&&h&&u!==d){if(f=Qe.a.findNextBracketInRange(i.forwardRegex,r,l,u,d))return this._toFoundBracket(i,f);h=!1}o=p,i=Xe.a.getBracketsSupport(o)}var f,g=!!i&&!Object(Je.b)(a.getStandardTokenType(c));if(g)h||(u=a.getStartOffset(c)),d=a.getEndOffset(c);else if(i&&h&&u!==d&&(f=Qe.a.findNextBracketInRange(i.forwardRegex,r,l,u,d)))return this._toFoundBracket(i,f);h=g}if(i&&h&&u!==d&&(f=Qe.a.findNextBracketInRange(i.forwardRegex,r,l,u,d)))return this._toFoundBracket(i,f)}return null},ct.prototype.findEnclosingBrackets=function(e,t){var n=this;void 0===t&&(t=1073741824);for(var o=this.validatePosition(e),i=this.getLineCount(),r=new Map,a=[],s=function(e,t){if(!r.has(e)){for(var n=[],o=0,i=t?t.brackets.length:0;o<i;o++)n[o]=0;r.set(e,n)}a=r.get(e)},l=function(e,t,o,i,r){for(;;){var s=Qe.a.findNextBracketInRange(e.forwardRegex,t,o,i,r);if(!s)break;var l=o.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),c=e.textIsBracket[l];if(c&&(c.isOpen(l)?a[c.index]++:c.isClose(l)&&a[c.index]--,-1===a[c.index]))return n._matchFoundBracket(s,c,!1);i=s.endColumn-1}return null},c=-1,u=null,d=Date.now(),h=o.lineNumber;h<=i;h++){if(t<Date.now()-d)return null;var p=this._getLineTokens(h),f=p.getCount(),g=this._buffer.getLineContent(h),m=0,v=0,y=0;h===o.lineNumber&&(m=p.findTokenIndexAtOffset(o.column-1),v=o.column-1,y=o.column-1,c!==(_=p.getLanguageId(m))&&s(c=_,u=Xe.a.getBracketsSupport(c)));for(var b=!0;m<f;m++){var _;if(c!==(_=p.getLanguageId(m))){if(u&&b&&v!==y){if(w=l(u,h,g,v,y))return w;b=!1}s(c=_,u=Xe.a.getBracketsSupport(c))}var w,C=!!u&&!Object(Je.b)(p.getStandardTokenType(m));if(C)b||(v=p.getStartOffset(m)),y=p.getEndOffset(m);else if(u&&b&&v!==y&&(w=l(u,h,g,v,y)))return w;b=C}if(u&&b&&v!==y&&(w=l(u,h,g,v,y)))return w}return null},ct.prototype._toFoundBracket=function(e,t){if(!t)return null;var n=this.getValueInRange(t);n=n.toLowerCase();var o=e.textIsBracket[n];return o?{range:t,open:o.open,close:o.close,isOpen:e.textIsOpenBracket[n]}:null},ct.computeIndentLevel=function(e,t){for(var n=0,o=0,i=e.length;o<i;){var r=e.charCodeAt(o);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}o++}return o===i?-1:n},ct.prototype._computeIndentLevel=function(e){return ct.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)},ct.prototype.getActiveIndentGuide=function(e,t,n){var o=this;this._assertNotDisposed();var i=this.getLineCount();if(e<1||i<e)throw new Error("Illegal value for lineNumber");for(var r=Xe.a.getFoldingRules(this._languageIdentifier.id),a=Boolean(r&&r.offSide),s=-2,l=-1,c=-2,u=-1,d=function(e){if(-1!==s&&(-2===s||e-1<s)){l=s=-1;for(var t=e-2;0<=t;t--){var n=o._computeIndentLevel(t);if(0<=n){s=t,l=n;break}}}if(-2===c)for(u=c=-1,t=e;t<i;t++){var r=o._computeIndentLevel(t);if(0<=r){c=t,u=r;break}}},h=-2,p=-1,f=-2,g=-1,m=function(e){if(-2===h){p=h=-1;for(var t=e-2;0<=t;t--){var n=o._computeIndentLevel(t);if(0<=n){h=t,p=n;break}}}if(-1!==f&&(-2===f||f<e-1))for(g=f=-1,t=e;t<i;t++){var r=o._computeIndentLevel(t);if(0<=r){f=t,g=r;break}}},v=0,y=!0,b=0,_=!0,w=0,C=0;y||_;C++){var S,O=e-C,x=e+C;if(0!==C&&(O<1||O<t)&&(y=!1),0!==C&&(i<x||n<x)&&(_=!1),5e4<C&&(_=y=!1),y){var E;if(E=0<=(S=this._computeIndentLevel(O-1))?(c=O-1,u=S,Math.ceil(S/this._options.indentSize)):(d(O),this._getIndentLevelForWhitespaceLine(a,l,u)),0===C){if(v=O,b=x,0===(w=E))return{startLineNumber:v,endLineNumber:b,indent:w};continue}w<=E?v=O:y=!1}_&&(w<=(0<=(S=this._computeIndentLevel(x-1))?(h=x-1,p=S,Math.ceil(S/this._options.indentSize)):(m(x),this._getIndentLevelForWhitespaceLine(a,p,g)))?b=x:_=!1)}return{startLineNumber:v,endLineNumber:b,indent:w}},ct.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||n<e)throw new Error("Illegal value for startLineNumber");if(t<1||n<t)throw new Error("Illegal value for endLineNumber");for(var o=Xe.a.getFoldingRules(this._languageIdentifier.id),i=Boolean(o&&o.offSide),r=new Array(t-e+1),a=-2,s=-1,l=-2,c=-1,u=e;u<=t;u++){var d=u-e,h=this._computeIndentLevel(u-1);if(0<=h)a=u-1,s=h,r[d]=Math.ceil(h/this._options.indentSize);else{if(-2===a){s=a=-1;for(var p=u-2;0<=p;p--)if(0<=(f=this._computeIndentLevel(p))){a=p,s=f;break}}if(-1!==l&&(-2===l||l<u-1))for(c=l=-1,p=u;p<n;p++){var f;if(0<=(f=this._computeIndentLevel(p))){l=p,c=f;break}}r[d]=this._getIndentLevelForWhitespaceLine(i,s,c)}}return r},ct.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)},ct.MODEL_SYNC_LIMIT=52428800,ct.LARGE_FILE_SIZE_THRESHOLD=20971520,ct.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,ct.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:l.c.tabSize,indentSize:l.c.indentSize,insertSpaces:l.c.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:l.c.trimAutoWhitespace,largeFileOptimizations:l.c.largeFileOptimizations},ct);function ct(e,t,n,o){void 0===o&&(o=null);var r=at.call(this)||this;r._onWillDispose=r._register(new i.a),r.onWillDispose=r._onWillDispose.event,r._onDidChangeDecorations=r._register(new xt),r.onDidChangeDecorations=r._onDidChangeDecorations.event,r._onDidChangeLanguage=r._register(new i.a),r.onDidChangeLanguage=r._onDidChangeLanguage.event,r._onDidChangeLanguageConfiguration=r._register(new i.a),r.onDidChangeLanguageConfiguration=r._onDidChangeLanguageConfiguration.event,r._onDidChangeTokens=r._register(new i.a),r.onDidChangeTokens=r._onDidChangeTokens.event,r._onDidChangeOptions=r._register(new i.a),r.onDidChangeOptions=r._onDidChangeOptions.event,r._onDidChangeAttached=r._register(new i.a),r.onDidChangeAttached=r._onDidChangeAttached.event,r._eventEmitter=r._register(new Nt),st++,r.id="$model"+st,r.isForSimpleWidget=t.isForSimpleWidget,r._associatedResource=null==o?s.a.parse("inmemory://model/"+st):o,r._attachedEditorCount=0,r._buffer=it(e,t.defaultEOL),r._options=ct.resolveOptions(r._buffer,t);var l=r._buffer.getLineCount(),c=r._buffer.getValueLengthInRange(new u.a(1,1,l,r._buffer.getLineLength(l)+1),0);return t.largeFileOptimizations?r._isTooLargeForTokenization=ct.LARGE_FILE_SIZE_THRESHOLD<c||ct.LARGE_FILE_LINE_COUNT_THRESHOLD<l:r._isTooLargeForTokenization=!1,r._isTooLargeForSyncing=ct.MODEL_SYNC_LIMIT<c,r._versionId=1,r._alternativeVersionId=1,r._isDisposed=!1,r._isDisposing=!1,r._languageIdentifier=n||Ve.a,r._languageRegistryListener=Xe.a.onDidChange((function(e){e.languageIdentifier.id===r._languageIdentifier.id&&r._onDidChangeLanguageConfiguration.fire({})})),r._instanceId=a.M(st),r._lastDecorationId=0,r._decorations=Object.create(null),r._decorationsTree=new ut,r._commandManager=new y(r),r._isUndoing=!1,r._isRedoing=!1,r._trimAutoWhitespaceLines=null,r._tokens=new Be.d,r._tokens2=new Be.e,r._tokenization=new Ge(r),r}var ut=(dt.prototype.intervalSearch=function(e,t,n,o,i){var r=this._decorationsTree0.intervalSearch(e,t,n,o,i),a=this._decorationsTree1.intervalSearch(e,t,n,o,i);return r.concat(a)},dt.prototype.search=function(e,t,n,o){if(n)return this._decorationsTree1.search(e,t,o);var i=this._decorationsTree0.search(e,t,o),r=this._decorationsTree1.search(e,t,o);return i.concat(r)},dt.prototype.collectNodesFromOwner=function(e){var t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)},dt.prototype.collectNodesPostOrder=function(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)},dt.prototype.insert=function(e){D(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)},dt.prototype.delete=function(e){D(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)},dt.prototype.resolveNode=function(e,t){D(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)},dt.prototype.acceptReplace=function(e,t,n,o){this._decorationsTree0.acceptReplace(e,t,n,o),this._decorationsTree1.acceptReplace(e,t,n,o)},dt);function dt(){this._decorationsTree0=new R,this._decorationsTree1=new R}function ht(e){return e.replace(/[^a-z0-9\-_]/gi," ")}function pt(e){this.color=e.color||"",this.darkColor=e.darkColor||""}var ft,gt=(ot(mt,ft=pt),mt.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},mt.prototype.invalidateCachedColor=function(){this._resolvedColor=null},mt.prototype._resolveColor=function(e,t){if("string"==typeof e)return e;var n=e?t.getColor(e.id):null;return n?n.toString():""},mt);function mt(e){var t=ft.call(this,e)||this;return t._resolvedColor=null,t.position="number"==typeof e.position?e.position:h.d.Center,t}var vt,yt=(ot(bt,vt=pt),bt.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},bt.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},bt.prototype._resolveColor=function(e,t){return"string"==typeof e?tt.a.fromHex(e):t.getColor(e.id)},bt);function bt(e){var t=vt.call(this,e)||this;return t.position=e.position,t}var _t=(wt.register=function(e){return new wt(e)},wt.createDynamic=function(e){return new wt(e)},wt);function wt(e){this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?ht(e.className):null,this.hoverMessage=Object(et.o)(e.hoverMessage),this.glyphMarginHoverMessage=Object(et.o)(e.glyphMarginHoverMessage),this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new gt(e.overviewRuler):null,this.minimap=e.minimap?new yt(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?ht(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?ht(e.linesDecorationsClassName):null,this.marginClassName=e.marginClassName?ht(e.marginClassName):null,this.inlineClassName=e.inlineClassName?ht(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?ht(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?ht(e.afterContentClassName):null}_t.EMPTY=_t.register({});var Ct=[_t.register({stickiness:0}),_t.register({stickiness:1}),_t.register({stickiness:2}),_t.register({stickiness:3})];function St(e){return e instanceof _t?e:_t.createDynamic(e)}var Ot,xt=(ot(Et,Ot=r.a),Et.prototype.beginDeferredEmit=function(){this._deferredCnt++},Et.prototype.endDeferredEmit=function(){this._deferredCnt--,0===this._deferredCnt&&this._shouldFire&&(this._shouldFire=!1,this._actual.fire({}))},Et.prototype.fire=function(){this._shouldFire=!0},Et);function Et(){var e=Ot.call(this)||this;return e._actual=e._register(new i.a),e.event=e._actual.event,e._deferredCnt=0,e._shouldFire=!1,e}var kt,Nt=(ot(Dt,kt=r.a),Dt.prototype.beginDeferredEmit=function(){this._deferredCnt++},Dt.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)}},Dt.prototype.fire=function(e){0<this._deferredCnt?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},Dt);function Dt(){var e=kt.call(this)||this;return e._fastEmitter=e._register(new i.a),e.fastEvent=e._fastEmitter.event,e._slowEmitter=e._register(new i.a),e.slowEvent=e._slowEmitter.event,e._deferredCnt=0,e._deferredEvent=null,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(0),i=n.n(o),r=n(134);function a(e){var t=[];return i.a.Children.forEach(e,(function(e){Object(r.isFragment)(e)&&e.props?t=t.concat(a(e.props.children)):t.push(e)})),t}},,,,function(e,t,n){"use strict";n(46),n(628),n(589)},function(e,t,n){"use strict";var o=n(0),i=n(1),r=n(12),a=n.n(r),s=n(16),l=n.n(s),c=n(13),u=n.n(c),d=n(770),h=n.n(d),p=n(629),f=n.n(p),g=n(518),m=n(591),v=n(482);function y(e,t){var n=window.getComputedStyle,o=n?n(e):e.currentStyle;if(o)return o[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}var b={getForm:function(){return l()({},m.b.getForm.call(this),{validateFieldsAndScroll:this.validateFieldsAndScroll})},validateFieldsAndScroll:function(e,t,n){var o=this,i=Object(v.e)(e,t,n),r=i.names,a=i.callback,s=i.options;return this.validateFields(r,s,(function(e,t){if(e){var n=o.fieldsStore.getValidFieldsName(),i=void 0,r=void 0;if(n.forEach((function(t){if(f()(e,t)){var n=o.getFieldInstance(t);if(n){var a=u.a.findDOMNode(n),s=a.getBoundingClientRect().top;"hidden"!==a.type&&(void 0===r||s<r)&&(r=s,i=a)}}})),i){var c=s.container||function(e){for(var t=e,n=void 0;"body"!==(n=t.nodeName.toLowerCase());){var o=y(t,"overflowY");if(t!==e&&("auto"===o||"scroll"===o)&&t.scrollHeight>t.clientHeight)return t;t=t.parentNode}return"body"===n?t.ownerDocument:t}(i);h()(i,c,l()({onlyScrollIfNeeded:!0},s.scroll))}}"function"==typeof a&&a(e,t)}))}},_=function(e){return Object(g.a)(l()({},e),[b])},w=n(514),C=n(33),S=n(77),O=n(51),x=n(27),E=n(52),k=n(709),N=n(708),D=n(18),L="data-__meta",P="data-__field",I=n(169),T=n.n(I)()({labelAlign:"right",vertical:!1});function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var B=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},H=Object(O.a)("success","warning","error","validating","");Object(O.a)("left","right");var z=function(){function e(){var t,n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,i=F(e).apply(this,arguments),(t=!i||"object"!==M(i)&&"function"!=typeof i?V(n):i).helpShow=!1,t.onLabelClick=function(){var e=t.props.id||t.getId();if(e){var n=c.findDOMNode(V(t)).querySelector('[id="'.concat(e,'"]'));n&&n.focus&&n.focus()}},t.onHelpAnimEnd=function(e,n){(t.helpShow=n)||t.setState({})},t.renderFormItem=function(e){var n,i=e.getPrefixCls,r=t.props,s=r.prefixCls,l=r.style,c=r.className,u=B(r,["prefixCls","style","className"]),d=i("form",s),h=t.renderChildren(d),p=(R(n={},"".concat(d,"-item"),!0),R(n,"".concat(d,"-item-with-help"),t.helpShow),R(n,"".concat(c),!!c),n);return o.createElement(k.a,j({className:a()(p),style:l},Object(C.default)(u,["id","htmlFor","label","labelAlign","labelCol","wrapperCol","help","extra","validateStatus","hasFeedback","required","colon"]),{key:"row"}),h)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&W(e,t)}(e,o.Component),t=e,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.children,n=e.help,o=e.validateStatus,i=e.id;Object(x.a)(this.getControls(t,!0).length<=1||void 0!==n||void 0!==o,"Form.Item","Cannot generate `validateStatus` and `help` automatically, while there are more than one `getFieldDecorator` in it."),Object(x.a)(!i,"Form.Item","`id` is deprecated for its label `htmlFor`. Please use `htmlFor` directly.")}},{key:"getHelpMessage",value:function(){var e=this.props.help;if(void 0===e&&this.getOnlyControl()){var t=this.getField().errors;return t?t.map((function(e,t){var n=null;return o.isValidElement(e)?n=e:o.isValidElement(e.message)&&(n=e.message),n?o.cloneElement(n,{key:t}):e.message})).reduce((function(e,t){return[].concat(function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(e),[" ",t])}),[]).slice(1):""}return e}},{key:"getControls",value:function(t,n){for(var i=[],r=o.Children.toArray(t),a=0;a<r.length&&(n||!(0<i.length));a++){var s=r[a];(!s.type||s.type!==e&&"FormItem"!==s.type.displayName)&&s.props&&(L in s.props?i.push(s):s.props.children&&(i=i.concat(this.getControls(s.props.children,n))))}return i}},{key:"getOnlyControl",value:function(){var e=this.getControls(this.props.children,!1)[0];return void 0!==e?e:null}},{key:"getChildProp",value:function(e){var t=this.getOnlyControl();return t&&t.props&&t.props[e]}},{key:"getId",value:function(){return this.getChildProp("id")}},{key:"getMeta",value:function(){return this.getChildProp(L)}},{key:"getField",value:function(){return this.getChildProp(P)}},{key:"getValidateStatus",value:function(){if(!this.getOnlyControl())return"";var e=this.getField();if(e.validating)return"validating";if(e.errors)return"error";var t="value"in e?e.value:this.getMeta().initialValue;return null!=t&&""!==t?"success":""}},{key:"isRequired",value:function(){var e=this.props.required;return void 0!==e?e:!!this.getOnlyControl()&&((this.getMeta()||{}).validate||[]).filter((function(e){return!!e.rules})).some((function(e){return e.rules.some((function(e){return e.required}))}))}},{key:"renderHelp",value:function(e){var t=this.getHelpMessage(),n=t?o.createElement("div",{className:"".concat(e,"-explain"),key:"help"},t):null;return n&&(this.helpShow=!!n),o.createElement(E.a,{transitionName:"show-help",component:"",transitionAppear:!0,key:"help",onEnd:this.onHelpAnimEnd},n)}},{key:"renderExtra",value:function(e){var t=this.props.extra;return t?o.createElement("div",{className:"".concat(e,"-extra")},t):null}},{key:"renderValidateWrapper",value:function(e,t,n,i){var r=this.props,s=this.getOnlyControl,l=void 0===r.validateStatus&&s?this.getValidateStatus():r.validateStatus,c="".concat(e,"-item-control");l&&(c=a()("".concat(e,"-item-control"),{"has-feedback":r.hasFeedback||"validating"===l,"has-success":"success"===l,"has-warning":"warning"===l,"has-error":"error"===l,"is-validating":"validating"===l}));var u="";switch(l){case"success":u="check-circle";break;case"warning":u="exclamation-circle";break;case"error":u="close-circle";break;case"validating":u="loading";break;default:u=""}var d=r.hasFeedback&&u?o.createElement("span",{className:"".concat(e,"-item-children-icon")},o.createElement(D.a,{type:u,theme:"loading"===u?"outlined":"filled"})):null;return o.createElement("div",{className:c},o.createElement("span",{className:"".concat(e,"-item-children")},t,d),n,i)}},{key:"renderWrapper",value:function(e,t){var n=this;return o.createElement(T.Consumer,{key:"wrapper"},(function(i){var r=i.wrapperCol,s=i.vertical,l=n.props.wrapperCol,c=("wrapperCol"in n.props?l:r)||{},u=a()("".concat(e,"-item-control-wrapper"),c.className);return o.createElement(T.Provider,{value:{vertical:s}},o.createElement(N.a,j({},c,{className:u}),t))}))}},{key:"renderLabel",value:function(e){var t=this;return o.createElement(T.Consumer,{key:"label"},(function(n){var i,r=n.vertical,s=n.labelAlign,l=n.labelCol,c=n.colon,u=t.props,d=u.label,h=u.labelCol,p=u.labelAlign,f=u.colon,g=u.id,m=u.htmlFor,v=t.isRequired(),y=("labelCol"in t.props?h:l)||{},b="labelAlign"in t.props?p:s,_="".concat(e,"-item-label"),w=a()(_,"left"===b&&"".concat(_,"-left"),y.className),C=d,S=!0===f||!1!==c&&!1!==f;S&&!r&&"string"==typeof d&&""!==d.trim()&&(C=d.replace(/[\uff1a:]\s*$/,""));var O=a()((R(i={},"".concat(e,"-item-required"),v),R(i,"".concat(e,"-item-no-colon"),!S),i));return d?o.createElement(N.a,j({},y,{className:w}),o.createElement("label",{htmlFor:m||g||t.getId(),className:O,title:"string"==typeof d?d:"",onClick:t.onLabelClick},C)):null}))}},{key:"renderChildren",value:function(e){var t=this.props.children;return[this.renderLabel(e),this.renderWrapper(e,this.renderValidateWrapper(e,t,this.renderHelp(e),this.renderExtra(e)))]}},{key:"render",value:function(){return o.createElement(S.a,null,this.renderFormItem)}}])&&A(t.prototype,n),e}();function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}z.defaultProps={hasFeedback:!1},z.propTypes={prefixCls:i.string,label:i.oneOfType([i.string,i.node]),labelCol:i.object,help:i.oneOfType([i.node,i.bool]),validateStatus:i.oneOf(H),hasFeedback:i.bool,wrapperCol:i.object,className:i.string,id:i.string,children:i.node,colon:i.bool};var $=Object(O.a)("horizontal","inline","vertical"),X=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==K(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,Y(e).call(this,t))).renderForm=function(e){var t,i=e.getPrefixCls,r=n.props,s=r.prefixCls,l=r.hideRequiredMark,c=r.className,u=void 0===c?"":c,d=r.layout,h=i("form",s),p=a()(h,(q(t={},"".concat(h,"-horizontal"),"horizontal"===d),q(t,"".concat(h,"-vertical"),"vertical"===d),q(t,"".concat(h,"-inline"),"inline"===d),q(t,"".concat(h,"-hide-required-mark"),l),t),u),f=Object(C.default)(n.props,["prefixCls","className","layout","form","hideRequiredMark","wrapperCol","labelAlign","labelCol","colon"]);return o.createElement("form",U({},f,{className:p}))},Object(x.a)(!t.form,"Form","It is unnecessary to pass `form` to `Form` after antd@1.7.0."),n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Z(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){var e=this.props,t=e.wrapperCol,n=e.labelAlign,i=e.labelCol,r=e.layout,a=e.colon;return o.createElement(T.Provider,{value:{wrapperCol:t,labelAlign:n,labelCol:i,vertical:"vertical"===r,colon:a}},o.createElement(S.a,null,this.renderForm))}}])&&G(t.prototype,n),e}();X.defaultProps={colon:!0,layout:"horizontal",hideRequiredMark:!1,onSubmit:function(e){e.preventDefault()}},X.propTypes={prefixCls:i.string,layout:i.oneOf($),children:i.any,onSubmit:i.func,hideRequiredMark:i.bool,colon:i.bool},X.Item=z,X.createFormField=w.a,X.create=function(e){return _(U(U({fieldNameProp:"id"},0<arguments.length&&void 0!==e?e:{}),{fieldMetaProp:L,fieldDataProp:P}))},t.a=X},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("codeEditorService")},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d}));var o=n(465);function i(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]=i(e[n]):t[n]=e[n]})),t}function r(e){if(!e||"object"!=typeof e)return e;for(var t=[e];0<t.length;){var n=t.shift();for(var o in Object.freeze(n),n)if(a.call(n,o)){var i=n[o];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e}var a=Object.prototype.hasOwnProperty;function s(e,t){return function e(t,n,i){if(Object(o.l)(t))return t;var r=n(t);if(void 0!==r)return r;if(Object(o.d)(t)){for(var s=[],l=0,c=t;l<c.length;l++){var u=c[l];s.push(e(u,n,i))}return s}if(Object(o.i)(t)){if(i.has(t))throw new Error("Cannot clone recursive data-structure");i.add(t);var d={};for(var h in t)a.call(t,h)&&(d[h]=e(t[h],n,i));return i.delete(t),d}return t}(e,t,new Set)}function l(e,t,n){return void 0===n&&(n=!0),Object(o.i)(e)?(Object(o.i)(t)&&Object.keys(t).forEach((function(i){i in e?n&&(Object(o.i)(e[i])&&Object(o.i)(t[i])?l(e[i],t[i],n):e[i]=t[i]):e[i]=t[i]})),e):t}function c(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 u(e,t){if(e===t)return!0;if(null==e||null==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,o;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!u(e[n],t[n]))return!1}else{var i=[];for(o in e)i.push(o);i.sort();var r=[];for(o in t)r.push(o);if(r.sort(),!u(i,r))return!1;for(n=0;n<i.length;n++)if(!u(e[i[n]],t[i[n]]))return!1}return!0}function d(e,t,n){var o=t(e);return void 0===o?n:o}},function(e,t,n){"use strict";var o=n(480),i=n(0),r=n(12),a=n.n(r),s=n(39),l=n(77),c=n(18);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},v=s.a.Group,y=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=p(this,f(e).apply(this,arguments))).renderButton=function(e){var n=e.getPopupContainer,r=e.getPrefixCls,l=t.props,u=l.prefixCls,h=l.type,p=l.disabled,f=l.onClick,g=l.htmlType,y=l.children,b=l.className,_=l.overlay,w=l.trigger,C=l.align,S=l.visible,O=l.onVisibleChange,x=l.placement,E=l.getPopupContainer,k=l.href,N=l.icon,D=void 0===N?i.createElement(c.a,{type:"ellipsis"}):N,L=l.title,P=m(l,["prefixCls","type","disabled","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title"]),I=r("dropdown-button",u),T={align:C,overlay:_,disabled:p,trigger:p?[]:w,onVisibleChange:O,placement:x,getPopupContainer:E||n};return"visible"in t.props&&(T.visible=S),i.createElement(v,d({},P,{className:a()(I,b)}),i.createElement(s.a,{type:h,disabled:p,onClick:f,htmlType:g,href:k,title:L},y),i.createElement(o.a,T,i.createElement(s.a,{type:h},D)))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(e,i.Component),t=e,(n=[{key:"render",value:function(){return i.createElement(l.a,null,this.renderButton)}}])&&h(t.prototype,n),e}();y.defaultProps={placement:"bottomRight",type:"default"},o.a.Button=y,t.a=o.a},function(e,t,n){"use strict";var o=n(0),i=n(556),r=n(12),a=n.n(r),s=n(33),l=n(25),c=n(1),u=n(169),d=n.n(u)()({inlineCollapsed:!1});function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=g(this,m(e).apply(this,arguments))).onKeyDown=function(e){t.subMenu.onKeyDown(e)},t.saveSubMenu=function(e){t.subMenu=e},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.rootPrefixCls,r=t.popupClassName;return o.createElement(d.Consumer,null,(function(t){var s=t.antdMenuTheme;return o.createElement(i.d,p({},e.props,{ref:e.saveSubMenu,popupClassName:a()("".concat(n,"-").concat(s),r)}))}))}}])&&f(t.prototype,n),e}();y.contextTypes={antdMenuTheme:c.string},y.isSubMenu=1;var b=y,_=n(167),w=n(697);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function O(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function x(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},D=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=x(this,E(e).apply(this,arguments))).onKeyDown=function(e){t.menuItem.onKeyDown(e)},t.saveMenuItem=function(e){t.menuItem=e},t.renderItem=function(e){var n=e.siderCollapsed,r=t.props,a=r.level,s=r.children,l=r.rootPrefixCls,c=t.props,u=c.title,h=N(c,["title"]);return o.createElement(d.Consumer,null,(function(e){var r=e.inlineCollapsed,c={title:u||(1===a?s:"")};return n||r||(c.title=null,c.visible=!1),o.createElement(_.a,S({},c,{placement:"right",overlayClassName:"".concat(l,"-inline-collapsed-tooltip")}),o.createElement(i.b,S({},h,{title:u,ref:t.saveMenuItem})))}))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){return o.createElement(w.a.Consumer,null,this.renderItem)}}])&&O(t.prototype,n),e}();D.isMenuItem=!0;var L=n(77),P=n(27),I=n(56),T=n(782);function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function F(e,t,n){return t&&A(e.prototype,t),n&&A(e,n),e}function V(e,t){return!t||"object"!==M(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}n.d(t,"a",(function(){return z}));var H=function(){function e(t){var n,r;return R(this,e),(n=V(this,W(e).call(this,t))).handleMouseEnter=function(e){n.restoreModeVerticalFromInline();var t=n.props.onMouseEnter;t&&t(e)},n.handleTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,o=e.target.className,i="[object SVGAnimatedString]"===Object.prototype.toString.call(o)?o.animVal:o,r="font-size"===e.propertyName&&0<=i.indexOf("anticon");(t||r)&&n.restoreModeVerticalFromInline()},n.handleClick=function(e){n.handleOpenChange([]);var t=n.props.onClick;t&&t(e)},n.handleOpenChange=function(e){n.setOpenKeys(e);var t=n.props.onOpenChange;t&&t(e)},n.renderMenu=function(e){var t,r,l,c=e.getPopupContainer,u=e.getPrefixCls,d=n.props,h=d.prefixCls,p=d.className,f=d.theme,g=d.collapsedWidth,m=Object(s.default)(n.props,["collapsedWidth","siderCollapsed"]),v=n.getRealMenuMode(),y=n.getOpenMotionProps(v),b=u("menu",h),_=a()(p,"".concat(b,"-").concat(f),(t={},r="".concat(b,"-inline-collapsed"),l=n.getInlineCollapsed(),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t)),w=j({openKeys:n.state.openKeys,onOpenChange:n.handleOpenChange,className:_,mode:v},y);return"inline"!==v&&(w.onClick=n.handleClick),!n.getInlineCollapsed()||0!==g&&"0"!==g&&"0px"!==g||(w.openKeys=[]),o.createElement(i.e,j({getPopupContainer:c},m,w,{prefixCls:b,onTransitionEnd:n.handleTransitionEnd,onMouseEnter:n.handleMouseEnter}))},Object(P.a)(!("onOpen"in t||"onClose"in t),"Menu","`onOpen` and `onClose` are removed, please use `onOpenChange` instead, see: https://u.ant.design/menu-on-open-change."),Object(P.a)(!("inlineCollapsed"in t&&"inline"!==t.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(P.a)(!(void 0!==t.siderCollapsed&&"inlineCollapsed"in t),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),"openKeys"in t?r=t.openKeys:"defaultOpenKeys"in t&&(r=t.defaultOpenKeys),n.state={openKeys:r||[],switchingModeFromInline:!1,inlineOpenKeys:[],prevProps:t},n}return B(e,o.Component),F(e,[{key:"componentWillUnmount",value:function(){I.a.cancel(this.mountRafId)}},{key:"setOpenKeys",value:function(e){"openKeys"in this.props||this.setState({openKeys:e})}},{key:"getRealMenuMode",value:function(){var e=this.getInlineCollapsed();if(this.state.switchingModeFromInline&&e)return"inline";var t=this.props.mode;return e?"vertical":t}},{key:"getInlineCollapsed",value:function(){var e=this.props.inlineCollapsed;return void 0!==this.props.siderCollapsed?this.props.siderCollapsed:e}},{key:"getOpenMotionProps",value:function(e){var t=this.props,n=t.openTransitionName,o=t.openAnimation,i=t.motion;return i?{motion:i}:o?(Object(P.a)("string"==typeof o,"Menu","`openAnimation` do not support object. Please use `motion` instead."),{openAnimation:o}):n?{openTransitionName:n}:"horizontal"===e?{motion:{motionName:"slide-up"}}:"inline"===e?{motion:T.a}:{motion:{motionName:this.state.switchingModeFromInline?"":"zoom-big"}}}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"render",value:function(){return o.createElement(d.Provider,{value:{inlineCollapsed:this.getInlineCollapsed()||!1,antdMenuTheme:this.props.theme}},o.createElement(L.a,null,this.renderMenu))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(o.switchingModeFromInline=!0),"openKeys"in e?o.openKeys=e.openKeys:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(o.switchingModeFromInline=!0,o.inlineOpenKeys=t.openKeys,o.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(o.openKeys=t.inlineOpenKeys,o.inlineOpenKeys=[])),o}}]),e}();H.defaultProps={className:"",theme:"light",focusable:!1},Object(l.polyfill)(H);var z=function(){function e(){return R(this,e),V(this,W(e).apply(this,arguments))}return B(e,o.Component),F(e,[{key:"render",value:function(){var e=this;return o.createElement(w.a.Consumer,null,(function(t){return o.createElement(H,j({},e.props,t))}))}}]),e}();z.Divider=i.a,z.Item=D,z.SubMenu=b,z.ItemGroup=i.c},function(e,t,n){var o=n(166).Uint8Array;e.exports=o},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var o=n(528),i=n(547),r=n(458),a=n(473),s=n(492),l=n(474),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=r(e),u=!n&&i(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&l(e),p=n||u||d||h,f=p?o(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},,,function(e,t,n){"use strict";n(46),n(562),n(259)},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var o=n(16),i=n.n(o),r=n(22),a=n.n(r),s=function e(t){a()(this,e),i()(this,t)};function l(e){return e instanceof s}function c(e){return l(e)?e:new s(e)}},function(e,t,n){"use strict";n(46),n(551),n(131)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,i,r,a){!e.required||n.hasOwnProperty(e.field)&&!o.isEmptyValue(t,a||e.type)||i.push(o.format(r.messages.required,e.fullField))}},function(e,t,n){var o=n(626);e.exports=function(e,t,n){return null==e?e:o(e,t,n)}},function(e,t,n){"use strict";var o=n(54),i=n.n(o),r=n(34),a=n.n(r),s=n(16),l=n.n(s),c=n(578),u=n.n(c),d=n(0),h=n.n(d),p=n(600),f=n.n(p),g=n(179),m=n(604),v=n.n(m),y=(n(133),n(511)),b=n.n(y),_=n(517),w=n.n(_),C=n(460),S=n.n(C),O=n(22),x=n.n(O),E=n(37),k=n.n(E),N=n(514),D=n(482);function L(e,t){return 0===t.indexOf(e)&&-1!==[".","["].indexOf(t[e.length])}function P(e){return Object(D.c)(e,(function(e,t){return Object(N.b)(t)}),"You must wrap field data with `createFormField`.")}var I=(k()(T,[{key:"updateFields",value:function(e){this.fields=P(e)}},{key:"flattenRegisteredFields",value:function(e){var t=this.getAllFieldsName();return Object(D.c)(e,(function(e){return 0<=t.indexOf(e)}),"You cannot set a form field before rendering a field associated with the value.")}},{key:"setFields",value:function(e){var t=this,n=this.fieldsMeta,o=l()({},this.fields,e),i={};Object.keys(n).forEach((function(e){i[e]=t.getValueFromFields(e,o)})),Object.keys(i).forEach((function(e){var n=i[e],r=t.getFieldMeta(e);if(r&&r.normalize){var a=r.normalize(n,t.getValueFromFields(e,t.fields),i);a!==n&&(o[e]=l()({},o[e],{value:a}))}})),this.fields=o}},{key:"resetFields",value:function(e){var t=this.fields;return(e?this.getValidFieldsFullName(e):this.getAllFieldsName()).reduce((function(e,n){var o=t[n];return o&&"value"in o&&(e[n]={}),e}),{})}},{key:"setFieldMeta",value:function(e,t){this.fieldsMeta[e]=t}},{key:"setFieldsAsDirty",value:function(){var e=this;Object.keys(this.fields).forEach((function(t){var n=e.fields[t],o=e.fieldsMeta[t];n&&o&&Object(D.h)(o.validate)&&(e.fields[t]=l()({},n,{dirty:!0}))}))}},{key:"getFieldMeta",value:function(e){return this.fieldsMeta[e]=this.fieldsMeta[e]||{},this.fieldsMeta[e]}},{key:"getValueFromFields",value:function(e,t){var n=t[e];if(n&&"value"in n)return n.value;var o=this.getFieldMeta(e);return o&&o.initialValue}},{key:"getValidFieldsName",value:function(){var e=this,t=this.fieldsMeta;return t?Object.keys(t).filter((function(t){return!e.getFieldMeta(t).hidden})):[]}},{key:"getAllFieldsName",value:function(){var e=this.fieldsMeta;return e?Object.keys(e):[]}},{key:"getValidFieldsFullName",value:function(e){var t=Array.isArray(e)?e:[e];return this.getValidFieldsName().filter((function(e){return t.some((function(t){return e===t||Object(D.l)(e,t)&&0<=[".","["].indexOf(e[t.length])}))}))}},{key:"getFieldValuePropValue",value:function(e){var t=e.name,n=e.getValueProps,o=e.valuePropName,i=this.getField(t),r="value"in i?i.value:e.initialValue;return n?n(r):a()({},o,r)}},{key:"getField",value:function(e){return l()({},this.fields[e],{name:e})}},{key:"getNotCollectedFields",value:function(){var e=this;return this.getValidFieldsName().filter((function(t){return!e.fields[t]})).map((function(t){return{name:t,dirty:!1,value:e.getFieldMeta(t).initialValue}})).reduce((function(e,t){return w()(e,t.name,Object(N.a)(t))}),{})}},{key:"getNestedAllFields",value:function(){var e=this;return Object.keys(this.fields).reduce((function(t,n){return w()(t,n,Object(N.a)(e.fields[n]))}),this.getNotCollectedFields())}},{key:"getFieldMember",value:function(e,t){return this.getField(e)[t]}},{key:"getNestedFields",value:function(e,t){return(e||this.getValidFieldsName()).reduce((function(e,n){return w()(e,n,t(n))}),{})}},{key:"getNestedField",value:function(e,t){var n=this.getValidFieldsFullName(e);if(0===n.length||1===n.length&&n[0]===e)return t(e);var o="["===n[0][e.length],i=o?e.length:e.length+1;return n.reduce((function(e,n){return w()(e,n.slice(i),t(n))}),o?[]:{})}},{key:"isValidNestedFieldName",value:function(e){return this.getAllFieldsName().every((function(t){return!L(t,e)&&!L(e,t)}))}},{key:"clearField",value:function(e){delete this.fields[e],delete this.fieldsMeta[e]}}]),T);function T(e){x()(this,T),M.call(this),this.fields=P(e),this.fieldsMeta={}}var M=function(){var e=this;this.setFieldsInitialValue=function(t){var n=e.flattenRegisteredFields(t),o=e.fieldsMeta;Object.keys(n).forEach((function(t){o[t]&&e.setFieldMeta(t,l()({},e.getFieldMeta(t),{initialValue:n[t]}))}))},this.getAllValues=function(){var t=e.fieldsMeta,n=e.fields;return Object.keys(t).reduce((function(t,o){return w()(t,o,e.getValueFromFields(o,n))}),{})},this.getFieldsValue=function(t){return e.getNestedFields(t,e.getFieldValue)},this.getFieldValue=function(t){var n=e.fields;return e.getNestedField(t,(function(t){return e.getValueFromFields(t,n)}))},this.getFieldsError=function(t){return e.getNestedFields(t,e.getFieldError)},this.getFieldError=function(t){return e.getNestedField(t,(function(t){return Object(D.d)(e.getFieldMember(t,"errors"))}))},this.isFieldValidating=function(t){return e.getFieldMember(t,"validating")},this.isFieldsValidating=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldValidating(t)}))},this.isFieldTouched=function(t){return e.getFieldMember(t,"touched")},this.isFieldsTouched=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldTouched(t)}))}};t.a=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=e.validateMessages,o=e.onFieldsChange,r=e.onValuesChange,s=e.mapProps,c=void 0===s?D.i:s,d=e.mapPropsToFields,p=e.fieldNameProp,m=e.fieldMetaProp,y=e.fieldDataProp,_=e.formPropName,C=void 0===_?"form":_,O=e.name,x=e.withRef;return function(e){var s=f()({displayName:"Form",mixins:t,getInitialState:function(){var e=this,t=d&&d(this.props);return this.fieldsStore=new I(t||{}),this.instances={},this.cachedBind={},this.clearedFieldMetaCache={},this.renderFields={},this.domFields={},["getFieldsValue","getFieldValue","setFieldsInitialValue","getFieldsError","getFieldError","isFieldValidating","isFieldsValidating","isFieldsTouched","isFieldTouched"].forEach((function(t){e[t]=function(){var n;return(n=e.fieldsStore)[t].apply(n,arguments)}})),{submitting:!1}},componentDidMount:function(){this.cleanUpUselessFields()},componentWillReceiveProps:function(e){d&&this.fieldsStore.updateFields(d(e))},componentDidUpdate:function(){this.cleanUpUselessFields()},onCollectCommon:function(e,t,n){var o=this.fieldsStore.getFieldMeta(e);if(o[t])o[t].apply(o,u()(n));else if(o.originalProps&&o.originalProps[t]){var i;(i=o.originalProps)[t].apply(i,u()(n))}var s=o.getValueFromEvent?o.getValueFromEvent.apply(o,u()(n)):D.g.apply(void 0,u()(n));if(r&&s!==this.fieldsStore.getFieldValue(e)){var c=this.fieldsStore.getAllValues(),d={};c[e]=s,Object.keys(c).forEach((function(e){return w()(d,e,c[e])})),r(l()(a()({},C,this.getForm()),this.props),w()({},e,s),d)}var h=this.fieldsStore.getField(e);return{name:e,field:l()({},h,{value:s,touched:!0}),fieldMeta:o}},onCollect:function(e,t){for(var n=arguments.length,o=Array(2<n?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var r=this.onCollectCommon(e,t,o),s=r.name,c=r.field,u=r.fieldMeta.validate;this.fieldsStore.setFieldsAsDirty();var d=l()({},c,{dirty:Object(D.h)(u)});this.setFields(a()({},s,d))},onCollectValidate:function(e,t){for(var n=arguments.length,o=Array(2<n?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var r=this.onCollectCommon(e,t,o),a=r.field,s=r.fieldMeta,c=l()({},a,{dirty:!0});this.fieldsStore.setFieldsAsDirty(),this.validateFieldsInternal([c],{action:t,options:{firstFields:!!s.validateFirst}})},getCacheBind:function(e,t,n){this.cachedBind[e]||(this.cachedBind[e]={});var o=this.cachedBind[e];return o[t]&&o[t].oriFn===n||(o[t]={fn:n.bind(this,e,t),oriFn:n}),o[t].fn},getFieldDecorator:function(e,t){var n=this,o=this.getFieldProps(e,t);return function(t){n.renderFields[e]=!0;var i=n.fieldsStore.getFieldMeta(e),r=t.props;return i.originalProps=r,i.ref=t.ref,h.a.cloneElement(t,l()({},o,n.fieldsStore.getFieldValuePropValue(i)))}},getFieldProps:function(e,t){var n=this,o=1<arguments.length&&void 0!==t?t:{};if(!e)throw new Error("Must call `getFieldProps` with valid name string!");delete this.clearedFieldMetaCache[e];var i=l()({name:e,trigger:"onChange",valuePropName:"value",validate:[]},o),r=i.rules,a=i.trigger,s=i.validateTrigger,c=void 0===s?a:s,u=i.validate,d=this.fieldsStore.getFieldMeta(e);"initialValue"in i&&(d.initialValue=i.initialValue);var h=l()({},this.fieldsStore.getFieldValuePropValue(i),{ref:this.getCacheBind(e,e+"__ref",this.saveRef)});p&&(h[p]=O?O+"_"+e:e);var f=Object(D.k)(u,r,c),g=Object(D.f)(f);g.forEach((function(t){h[t]||(h[t]=n.getCacheBind(e,t,n.onCollectValidate))})),a&&-1===g.indexOf(a)&&(h[a]=this.getCacheBind(e,a,this.onCollect));var v=l()({},d,i,{validate:f});return this.fieldsStore.setFieldMeta(e,v),m&&(h[m]=v),y&&(h[y]=this.fieldsStore.getField(e)),this.renderFields[e]=!0,h},getFieldInstance:function(e){return this.instances[e]},getRules:function(e,t){var n=e.validate.filter((function(e){return!t||0<=e.trigger.indexOf(t)})).map((function(e){return e.rules}));return Object(D.b)(n)},setFields:function(e,t){var n=this,i=this.fieldsStore.flattenRegisteredFields(e);if(this.fieldsStore.setFields(i),o){var r=Object.keys(i).reduce((function(e,t){return w()(e,t,n.fieldsStore.getField(t))}),{});o(l()(a()({},C,this.getForm()),this.props),r,this.fieldsStore.getNestedAllFields())}this.forceUpdate(t)},setFieldsValue:function(e,t){var n=this.fieldsStore.fieldsMeta,o=this.fieldsStore.flattenRegisteredFields(e),i=Object.keys(o).reduce((function(e,t){if(n[t]){var i=o[t];e[t]={value:i}}return e}),{});if(this.setFields(i,t),r){var s=this.fieldsStore.getAllValues();r(l()(a()({},C,this.getForm()),this.props),e,s)}},saveRef:function(e,t,n){if(!n){var o=this.fieldsStore.getFieldMeta(e);return o.preserve||(this.clearedFieldMetaCache[e]={field:this.fieldsStore.getField(e),meta:o},this.clearField(e)),void delete this.domFields[e]}this.domFields[e]=!0,this.recoverClearedField(e);var i=this.fieldsStore.getFieldMeta(e);if(i){var r=i.ref;if(r){if("string"==typeof r)throw new Error("can not set ref string for "+e);"function"==typeof r?r(n):Object.prototype.hasOwnProperty.call(r,"current")&&(r.current=n)}}this.instances[e]=n},cleanUpUselessFields:function(){var e=this,t=this.fieldsStore.getAllFieldsName().filter((function(t){var n=e.fieldsStore.getFieldMeta(t);return!e.renderFields[t]&&!e.domFields[t]&&!n.preserve}));t.length&&t.forEach(this.clearField),this.renderFields={}},clearField:function(e){this.fieldsStore.clearField(e),delete this.instances[e],delete this.cachedBind[e]},resetFields:function(e){var t=this,n=this.fieldsStore.resetFields(e);0<Object.keys(n).length&&this.setFields(n),e?(Array.isArray(e)?e:[e]).forEach((function(e){return delete t.clearedFieldMetaCache[e]})):this.clearedFieldMetaCache={}},recoverClearedField:function(e){this.clearedFieldMetaCache[e]&&(this.fieldsStore.setFields(a()({},e,this.clearedFieldMetaCache[e].field)),this.fieldsStore.setFieldMeta(e,this.clearedFieldMetaCache[e].meta),delete this.clearedFieldMetaCache[e])},validateFieldsInternal:function(e,t,o){var i=this,r=t.fieldNames,a=t.action,s=t.options,c=void 0===s?{}:s,u={},d={},h={},p={};if(e.forEach((function(e){var t=e.name;if(!0===c.force||!1!==e.dirty){var n=i.fieldsStore.getFieldMeta(t),o=l()({},e);o.errors=void 0,o.validating=!0,o.dirty=!0,u[t]=i.getRules(n,a),d[t]=o.value,h[t]=o}else e.errors&&w()(p,t,{errors:e.errors})})),this.setFields(h),Object.keys(d).forEach((function(e){d[e]=i.fieldsStore.getFieldValue(e)})),o&&Object(D.j)(h))o(Object(D.j)(p)?null:p,this.fieldsStore.getFieldsValue(r));else{var f=new v.a(u);n&&f.messages(n),f.validate(d,c,(function(e){var t=l()({},p);e&&e.length&&e.forEach((function(e){var n=e.field,o=n;Object.keys(u).some((function(e){var t=u[e]||[];if(e===n)return o=e,!0;if(t.every((function(e){return"array"!==e.type}))||0!==n.indexOf(e+"."))return!1;var i=n.slice(e.length+1);return!!/^\d+$/.test(i)&&(o=e,!0)}));var i=b()(t,o);"object"==typeof i&&!Array.isArray(i)||w()(t,o,{errors:[]}),b()(t,o.concat(".errors")).push(e)}));var n=[],a={};Object.keys(u).forEach((function(e){var o=b()(t,e),r=i.fieldsStore.getField(e);S()(r.value,d[e])?(r.errors=o&&o.errors,r.value=d[e],r.validating=!1,r.dirty=!1,a[e]=r):n.push({name:e})})),i.setFields(a),o&&(n.length&&n.forEach((function(e){var n=e.name,o=[{message:n+" need to revalidate",field:n}];w()(t,n,{expired:!0,errors:o})})),o(Object(D.j)(t)?null:t,i.fieldsStore.getFieldsValue(r)))}))}},validateFields:function(e,t,n){var o=this,i=new Promise((function(i,r){var a=Object(D.e)(e,t,n),s=a.names,l=a.options,c=Object(D.e)(e,t,n).callback;if(!c||"function"==typeof c){var u=c;c=function(e,t){u&&u(e,t),e?r({errors:e,values:t}):i(t)}}var d=s?o.fieldsStore.getValidFieldsFullName(s):o.fieldsStore.getValidFieldsName(),h=d.filter((function(e){var t=o.fieldsStore.getFieldMeta(e);return Object(D.h)(t.validate)})).map((function(e){var t=o.fieldsStore.getField(e);return t.value=o.fieldsStore.getFieldValue(e),t}));h.length?("firstFields"in l||(l.firstFields=d.filter((function(e){return!!o.fieldsStore.getFieldMeta(e).validateFirst}))),o.validateFieldsInternal(h,{fieldNames:d,options:l},c)):c(null,o.fieldsStore.getFieldsValue(d))}));return i.catch((function(e){return console.error,e})),i},isSubmitting:function(){return this.state.submitting},submit:function(e){var t=this;this.setState({submitting:!0}),e((function(){t.setState({submitting:!1})}))},render:function(){var t=this.props,n=t.wrappedComponentRef,o=i()(t,["wrappedComponentRef"]),r=a()({},C,this.getForm());x?r.ref="wrappedComponent":n&&(r.ref=n);var s=c.call(this,l()({},r,o));return h.a.createElement(e,s)}});return Object(D.a)(Object(g.a)(s),e)}}},function(e,t,n){var o=n(464);e.exports=function(){this.__data__=new o,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var o=n(464),i=n(502),r=n(503);e.exports=function(e,t){var n=this.__data__;if(n instanceof o){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new r(a)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var o=n(263),i=n(494),r=n(261),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&i(e.length)&&!!a[o(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var o=n(267),i=t&&!t.nodeType&&t,r=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=r&&r.exports===i&&o.process,s=function(){try{var e=r&&r.require&&r.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(262)(e))},function(e,t){e.exports=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}},,function(e,t,n){"use strict";n.d(t,"f",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"h",(function(){return h})),n.d(t,"g",(function(){return H})),n.d(t,"d",(function(){return ne})),n.d(t,"j",(function(){return We})),n.d(t,"b",(function(){return ot})),n.d(t,"c",(function(){return it})),n.d(t,"i",(function(){return rt})),n.d(t,"e",(function(){return st}));var o,i=n(445),r=n(452),a=n(882),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){return(l=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},c=8,u=(d.prototype.hasChanged=function(e){return this._values[e]},d);function d(e){this._values=e}var h=(p.prototype._read=function(e){return this._values[e]},p.prototype.get=function(e){return this._values[e]},p.prototype._write=function(e,t){this._values[e]=t},p);function p(){this._values=[]}var f=(g.prototype.compute=function(e,t,n){return n},g);function g(e,t,n,o){this.id=e,this.name=t,this.defaultValue=n,this.schema=o}var m=(v.prototype.validate=function(e){return this.defaultValue},v);function v(e,t){void 0===t&&(t=null),this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}var y=(b.prototype.validate=function(e){return void 0===e?this.defaultValue:e},b.prototype.compute=function(e,t,n){return n},b);function b(e,t,n,o){this.id=e,this.name=t,this.defaultValue=n,this.schema=o}var _,w=(s(C,_=y),C.boolean=function(e,t){return void 0===e?t:"false"!==e&&Boolean(e)},C.prototype.validate=function(e){return C.boolean(e,this.defaultValue)},C);function C(e,t,n,o){return void 0===o&&(o=void 0),void 0!==o&&(o.type="boolean",o.default=n),_.call(this,e,t,n,o)||this}var S,O=(s(x,S=y),x.clampedInt=function(e,t,n,o){var i;return void 0===e?i=t:(i=parseInt(e,10),isNaN(i)&&(i=t)),i=Math.max(n,i),0|Math.min(o,i)},x.prototype.validate=function(e){return x.clampedInt(e,this.defaultValue,this.minimum,this.maximum)},x);function x(e,t,n,o,i,r){void 0===r&&(r=void 0);var a=this;return void 0!==r&&(r.type="integer",r.default=n,r.minimum=o,r.maximum=i),(a=S.call(this,e,t,n,r)||this).minimum=o,a.maximum=i,a}var E,k=(s(N,E=y),N.clamp=function(e,t,n){return e<t?t:n<e?n:e},N.float=function(e,t){if("number"==typeof e)return e;if(void 0===e)return t;var n=parseFloat(e);return isNaN(n)?t:n},N.prototype.validate=function(e){return this.validationFn(N.float(e,this.defaultValue))},N);function N(e,t,n,o,i){var r=this;return void 0!==i&&(i.type="number",i.default=n),(r=E.call(this,e,t,n,i)||this).validationFn=o,r}var D,L=(s(P,D=y),P.string=function(e,t){return"string"!=typeof e?t:e},P.prototype.validate=function(e){return P.string(e,this.defaultValue)},P);function P(e,t,n,o){return void 0===o&&(o=void 0),void 0!==o&&(o.type="string",o.default=n),D.call(this,e,t,n,o)||this}var I,T=(s(M,I=y),M.stringSet=function(e,t,n){return"string"!=typeof e||-1===n.indexOf(e)?t:e},M.prototype.validate=function(e){return M.stringSet(e,this.defaultValue,this._allowedValues)},M);function M(e,t,n,o,i){void 0===i&&(i=void 0);var r=this;return void 0!==i&&(i.type="string",i.enum=o,i.default=n),(r=I.call(this,e,t,n,i)||this)._allowedValues=o,r}var j,R=(s(A,j=f),A.prototype.validate=function(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)},A);function A(e,t,n,o,i,r,a){void 0===a&&(a=void 0);var s=this;return void 0!==a&&(a.type="string",a.enum=i,a.default=o),(s=j.call(this,e,t,n,a)||this)._allowedValues=i,s._convert=r,s}var F,V=(s(W,F=f),W.prototype.validate=function(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},W.prototype.compute=function(e,t,n){return 0===n?e.accessibilitySupport:n},W);function W(){return F.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[i.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),i.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),i.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:i.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}var B,H,z,K=(s(U,B=f),U.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{insertSpace:w.boolean(t.insertSpace,this.defaultValue.insertSpace)}},U);function U(){var e={insertSpace:!0};return B.call(this,13,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:i.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this}(z=H=H||{})[z.Line=1]="Line",z[z.Block=2]="Block",z[z.Underline=3]="Underline",z[z.LineThin=4]="LineThin",z[z.BlockOutline=5]="BlockOutline",z[z.UnderlineThin=6]="UnderlineThin";var q,G=(s(Y,q=m),Y.prototype.compute=function(e,t,n){var o="monaco-editor";return t.get(26)&&(o+=" "+t.get(26)),e.extraEditorClassName&&(o+=" "+e.extraEditorClassName),"default"===t.get(55)?o+=" mouse-default":"copy"===t.get(55)&&(o+=" mouse-copy"),t.get(85)&&(o+=" showUnused"),o},Y);function Y(){return q.call(this,104,[55,26])||this}var Z,$=(s(X,Z=w),X.prototype.compute=function(e,t,n){return n&&e.emptySelectionClipboard},X);function X(){return Z.call(this,25,"emptySelectionClipboard",!0,{description:i.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}var J,Q=(s(ee,J=f),ee.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{seedSearchStringFromSelection:w.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":T.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:w.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:w.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},ee);function ee(){var e={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return J.call(this,28,"find",e,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:e.seedSearchStringFromSelection,description:i.a("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:e.autoFindInSelection,enumDescriptions:[i.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),i.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),i.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:i.a("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:e.globalFindClipboard,description:i.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:i.a("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}var te,ne=(s(oe,te=f),oe.prototype.validate=function(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?oe.OFF:"true"===e?oe.ON:e:Boolean(e)?oe.ON:oe.OFF},oe.OFF='"liga" off, "calt" off',oe.ON='"liga" on, "calt" on',oe);function oe(){return te.call(this,35,"fontLigatures",oe.OFF,{anyOf:[{type:"boolean",description:i.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:i.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:i.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}var ie,re=(s(ae,ie=m),ae.prototype.compute=function(e,t,n){return e.fontInfo},ae);function ae(){return ie.call(this,34)||this}var se,le=(s(ce,se=y),ce.prototype.validate=function(e){var t=k.float(e,this.defaultValue);return 0===t?ot.fontSize:k.clamp(t,6,100)},ce.prototype.compute=function(e,t,n){return e.fontInfo.fontSize},ce);function ce(){return se.call(this,36,"fontSize",ot.fontSize,{type:"number",minimum:6,maximum:100,default:ot.fontSize,description:i.a("fontSize","Controls the font size in pixels.")})||this}var ue,de=(s(he,ue=f),he.prototype.validate=function(e){var t,n,o,i,r;if("object"!=typeof e)return this.defaultValue;var a=e;return{multiple:T.stringSet(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=a.multipleDefinitions)&&void 0!==t?t:T.stringSet(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(n=a.multipleTypeDefinitions)&&void 0!==n?n:T.stringSet(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(o=a.multipleDeclarations)&&void 0!==o?o:T.stringSet(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(i=a.multipleImplementations)&&void 0!==i?i:T.stringSet(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(r=a.multipleReferences)&&void 0!==r?r:T.stringSet(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:L.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:L.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:L.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:L.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:L.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},he);function he(){var e={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:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[i.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),i.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),i.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return ue.call(this,41,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:i.a("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":l({description:i.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":l({description:i.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":l({description:i.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":l({description:i.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":l({description:i.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,description:i.a("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:e.alternativeTypeDefinitionCommand,description:i.a("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:e.alternativeDeclarationCommand,description:i.a("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:e.alternativeImplementationCommand,description:i.a("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:e.alternativeReferenceCommand,description:i.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this}var pe,fe=(s(ge,pe=f),ge.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled),delay:O.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:w.boolean(t.sticky,this.defaultValue.sticky)}},ge);function ge(){var e={enabled:!0,delay:300,sticky:!0};return pe.call(this,44,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:i.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:i.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:i.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this}var me,ve=(s(ye,me=m),ye.prototype.compute=function(e,t,n){return ye.computeLayout(t,{outerWidth:e.outerWidth,outerHeight:e.outerHeight,lineHeight:e.fontInfo.lineHeight,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})},ye.computeLayout=function(e,t){var n,o=0|t.outerWidth,i=0|t.outerHeight,r=0|t.lineHeight,a=0|t.lineNumbersDigitCount,s=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,u=t.pixelRatio,d=e.get(40),h=0!==e.get(50).renderType,p=0|e.get(51),f=e.get(54),g=f.enabled,m=f.side,v=f.renderCharacters,y=2<=u?Math.round(2*f.scale):f.scale,b=0|f.maxColumn,_=e.get(78),w=0|_.verticalScrollbarSize,C=_.verticalHasArrows,S=0|_.arrowSize,x=0|_.horizontalScrollbarSize,E=e.get(48),k=e.get(30);if("string"==typeof E&&/^\d+(\.\d+)?ch$/.test(E)){var N=parseFloat(E.substr(0,E.length-2));n=O.clampedInt(N*s,0,0,1e3)}else n=O.clampedInt(E,0,0,1e3);k&&(n+=16);var D=0;if(h){var L=Math.max(a,p);D=Math.round(L*l)}var P=0;d&&(P=r);var I,T,M,j,R=0,A=R+P,F=A+D,V=F+n,W=o-P-D-n;if(g){var B=y/u;I=v?1:2,b<(M=Math.max(0,Math.floor((W-w-2)*B/(s+B)))+c)/B&&(M=Math.floor(b*B)),j=W-M,"left"===m?(T=0,R+=M,A+=M,F+=M,V+=M):T=o-M-w}else I=M=T=0,j=W;var H=C?S:0;return{width:o,height:i,glyphMarginLeft:R,glyphMarginWidth:P,lineNumbersLeft:A,lineNumbersWidth:D,decorationsLeft:F,decorationsWidth:n,contentLeft:V,contentWidth:j,renderMinimap:I,minimapLeft:T,minimapWidth:M,viewportColumn:Math.max(1,Math.floor((j-w-2)/s)),verticalScrollbarWidth:w,horizontalScrollbarHeight:x,overviewRuler:{top:H,width:w,height:i-2*H,right:0}}},ye);function ye(){return me.call(this,107,[40,48,30,54,78,50])||this}var be,_e=(s(we,be=f),we.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled)}},we);function we(){var e={enabled:!0};return be.call(this,47,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:i.a("codeActions","Enables the code action lightbulb in the editor.")}})||this}var Ce,Se=(s(Oe,Ce=O),Oe.prototype.compute=function(e,t,n){return e.fontInfo.lineHeight},Oe);function Oe(){return Ce.call(this,49,"lineHeight",ot.lineHeight,0,150,{description:i.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}var xe,Ee=(s(ke,xe=f),ke.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled),side:T.stringSet(t.side,this.defaultValue.side,["right","left"]),showSlider:T.stringSet(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:w.boolean(t.renderCharacters,this.defaultValue.renderCharacters),scale:O.clampedInt(t.scale,1,1,3),maxColumn:O.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}},ke);function ke(){var e={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return xe.call(this,54,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:i.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:i.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:i.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,description:i.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:i.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:i.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this}var Ne,De=(s(Le,Ne=f),Le.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled),cycle:w.boolean(t.cycle,this.defaultValue.cycle)}},Le);function Le(){var e={enabled:!0,cycle:!1};return Ne.call(this,64,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:i.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:i.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this}var Pe,Ie=(s(Te,Pe=m),Te.prototype.compute=function(e,t,n){return e.pixelRatio},Te);function Te(){return Pe.call(this,105)||this}var Me,je=(s(Re,Me=f),Re.prototype.validate=function(e){if("boolean"==typeof e)return e;if("object"!=typeof e)return this.defaultValue;var t=e,n={other:w.boolean(t.other,this.defaultValue.other),comments:w.boolean(t.comments,this.defaultValue.comments),strings:w.boolean(t.strings,this.defaultValue.strings)};return!!(n.other&&n.comments&&n.strings)||!!(n.other||n.comments||n.strings)&&n},Re);function Re(){var e=this,t={other:!0,comments:!1,strings:!1};return(e=Me.call(this,66,"quickSuggestions",t,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:t.strings,description:i.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:t.comments,description:i.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:t.other,description:i.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:t,description:i.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this).defaultValue=t,e}var Ae,Fe=(s(Ve,Ae=f),Ve.prototype.validate=function(e){var t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}},Ve);function Ve(){return Ae.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[i.a("lineNumbers.off","Line numbers are not rendered."),i.a("lineNumbers.on","Line numbers are rendered as absolute number."),i.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),i.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:i.a("lineNumbers","Controls the display of line numbers.")})||this}function We(e){var t=e.get(73);return"editable"===t?e.get(68):"on"!==t}var Be,He=(s(ze,Be=y),ze.prototype.validate=function(e){if(Array.isArray(e)){for(var t=[],n=0,o=e;n<o.length;n++){var i=o[n];t.push(O.clampedInt(i,0,0,1e4))}return t.sort((function(e,t){return e-t})),t}return this.defaultValue},ze);function ze(){var e=[];return Be.call(this,77,"rulers",e,{type:"array",items:{type:"number"},default:e,description:i.a("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}function Ke(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}var Ue,qe=(s(Ge,Ue=f),Ge.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e,n=O.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),o=O.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:O.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Ke(t.vertical,this.defaultValue.vertical),horizontal:Ke(t.horizontal,this.defaultValue.horizontal),useShadows:w.boolean(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:w.boolean(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:w.boolean(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:w.boolean(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:w.boolean(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:O.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:o,verticalSliderSize:O.clampedInt(t.verticalSliderSize,o,0,1e3)}},Ge);function Ge(){return Ue.call(this,78,"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}var Ye,Ze=(s($e,Ye=f),$e.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{insertMode:T.stringSet(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:w.boolean(t.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:w.boolean(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:w.boolean(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:w.boolean(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:w.boolean(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:w.boolean(t.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:O.clampedInt(t.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:w.boolean(t.showMethods,this.defaultValue.showMethods),showFunctions:w.boolean(t.showFunctions,this.defaultValue.showFunctions),showConstructors:w.boolean(t.showConstructors,this.defaultValue.showConstructors),showFields:w.boolean(t.showFields,this.defaultValue.showFields),showVariables:w.boolean(t.showVariables,this.defaultValue.showVariables),showClasses:w.boolean(t.showClasses,this.defaultValue.showClasses),showStructs:w.boolean(t.showStructs,this.defaultValue.showStructs),showInterfaces:w.boolean(t.showInterfaces,this.defaultValue.showInterfaces),showModules:w.boolean(t.showModules,this.defaultValue.showModules),showProperties:w.boolean(t.showProperties,this.defaultValue.showProperties),showEvents:w.boolean(t.showEvents,this.defaultValue.showEvents),showOperators:w.boolean(t.showOperators,this.defaultValue.showOperators),showUnits:w.boolean(t.showUnits,this.defaultValue.showUnits),showValues:w.boolean(t.showValues,this.defaultValue.showValues),showConstants:w.boolean(t.showConstants,this.defaultValue.showConstants),showEnums:w.boolean(t.showEnums,this.defaultValue.showEnums),showEnumMembers:w.boolean(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:w.boolean(t.showKeywords,this.defaultValue.showKeywords),showWords:w.boolean(t.showWords,this.defaultValue.showWords),showColors:w.boolean(t.showColors,this.defaultValue.showColors),showFiles:w.boolean(t.showFiles,this.defaultValue.showFiles),showReferences:w.boolean(t.showReferences,this.defaultValue.showReferences),showFolders:w.boolean(t.showFolders,this.defaultValue.showFolders),showTypeParameters:w.boolean(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:w.boolean(t.showSnippets,this.defaultValue.showSnippets),hideStatusBar:w.boolean(t.hideStatusBar,this.defaultValue.hideStatusBar)}},$e);function $e(){var e={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,hideStatusBar:!0};return Ye.call(this,89,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[i.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),i.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:i.a("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:e.insertHighlight,description:i.a("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:e.filterGraceful,description:i.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:i.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:i.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:i.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:i.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:e.maxVisibleSuggestions,minimum:1,maximum:15,description:i.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:i.a("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:i.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.hideStatusBar":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.hideStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")}})||this}var Xe,Je=(s(Qe,Xe=m),Qe.prototype.compute=function(e,t,n){return!!t.get(68)||e.tabFocusMode},Qe);function Qe(){return Xe.call(this,106,[68])||this}var et,tt=(s(nt,et=m),nt.prototype.compute=function(e,t,n){var o,i=t.get(97),r=t.get(100),a=t.get(101),s=t.get(107);return o=2===t.get(2)?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:a&&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),r)}:"wordWrapColumn"===i?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:r}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1},{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:o.isWordWrapMinified,isViewportWrapping:o.isViewportWrapping,wrappingColumn:o.wrappingColumn}},nt);function nt(){return et.call(this,108,[97,100,101,107,2])||this}var ot={fontFamily:r.e?"Menlo, Monaco, 'Courier New', monospace":r.d?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.e?12:14,lineHeight:0,letterSpacing:0},it={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},rt=[];function at(e){return rt[e.id]=e}var st={acceptSuggestionOnCommitCharacter:at(new w(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:i.a("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:at(new T(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",i.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:i.a("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:at(new V),accessibilityPageSize:at(new O(3,"accessibilityPageSize",10,1,1073741824,{description:i.a("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:at(new L(4,"ariaLabel",i.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:at(new T(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",i.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),i.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:i.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:at(new T(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",i.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:i.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:at(new T(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",i.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),i.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:i.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:at(new R(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[i.a("editor.autoIndent.none","The editor will not insert indentation automatically."),i.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),i.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),i.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),i.a("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:i.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:at(new w(9,"automaticLayout",!1)),autoSurround:at(new T(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[i.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),i.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),i.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:i.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:at(new w(11,"codeLens",!0,{description:i.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:at(new w(12,"colorDecorators",!0,{description:i.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),comments:at(new K),contextmenu:at(new w(14,"contextmenu",!0)),copyWithSyntaxHighlighting:at(new w(15,"copyWithSyntaxHighlighting",!0,{description:i.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:at(new R(16,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:i.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:at(new w(17,"cursorSmoothCaretAnimation",!1,{description:i.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:at(new R(18,"cursorStyle",H.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return H.Line;case"block":return H.Block;case"underline":return H.Underline;case"line-thin":return H.LineThin;case"block-outline":return H.BlockOutline;case"underline-thin":return H.UnderlineThin}}),{description:i.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:at(new O(19,"cursorSurroundingLines",0,0,1073741824,{description:i.a("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:at(new T(20,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[i.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),i.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:i.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:at(new O(21,"cursorWidth",0,0,1073741824,{markdownDescription:i.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:at(new w(22,"disableLayerHinting",!1)),disableMonospaceOptimizations:at(new w(23,"disableMonospaceOptimizations",!1)),dragAndDrop:at(new w(24,"dragAndDrop",!0,{description:i.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:at(new $),extraEditorClassName:at(new L(26,"extraEditorClassName","")),fastScrollSensitivity:at(new k(27,"fastScrollSensitivity",5,(function(e){return e<=0?5:e}),{markdownDescription:i.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:at(new Q),fixedOverflowWidgets:at(new w(29,"fixedOverflowWidgets",!1)),folding:at(new w(30,"folding",!0,{description:i.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:at(new T(31,"foldingStrategy","auto",["auto","indentation"],{markdownDescription:i.a("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")})),foldingHighlight:at(new w(32,"foldingHighlight",!0,{description:i.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),fontFamily:at(new L(33,"fontFamily",ot.fontFamily,{description:i.a("fontFamily","Controls the font family.")})),fontInfo:at(new re),fontLigatures2:at(new ne),fontSize:at(new le),fontWeight:at(new L(37,"fontWeight",ot.fontWeight,{enum:["normal","bold","100","200","300","400","500","600","700","800","900"],description:i.a("fontWeight","Controls the font weight.")})),formatOnPaste:at(new w(38,"formatOnPaste",!1,{description:i.a("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:at(new w(39,"formatOnType",!1,{description:i.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:at(new w(40,"glyphMargin",!0,{description:i.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:at(new de),hideCursorInOverviewRuler:at(new w(42,"hideCursorInOverviewRuler",!1,{description:i.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:at(new w(43,"highlightActiveIndentGuide",!0,{description:i.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:at(new fe),inDiffEditor:at(new w(45,"inDiffEditor",!1)),letterSpacing:at(new k(46,"letterSpacing",ot.letterSpacing,(function(e){return k.clamp(e,-5,20)}),{description:i.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:at(new _e),lineDecorationsWidth:at(new y(48,"lineDecorationsWidth",10)),lineHeight:at(new Se),lineNumbers:at(new Fe),lineNumbersMinChars:at(new O(51,"lineNumbersMinChars",5,1,300)),links:at(new w(52,"links",!0,{description:i.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:at(new T(53,"matchBrackets","always",["always","near","never"],{description:i.a("matchBrackets","Highlight matching brackets.")})),minimap:at(new Ee),mouseStyle:at(new T(55,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:at(new k(56,"mouseWheelScrollSensitivity",1,(function(e){return 0===e?1:e}),{markdownDescription:i.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:at(new w(57,"mouseWheelZoom",!1,{markdownDescription:i.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:at(new w(58,"multiCursorMergeOverlapping",!0,{description:i.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:at(new R(59,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?r.e?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[i.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),i.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:i.a({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:at(new T(60,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[i.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),i.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:i.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:at(new w(61,"occurrencesHighlight",!0,{description:i.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:at(new w(62,"overviewRulerBorder",!0,{description:i.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:at(new O(63,"overviewRulerLanes",3,0,3)),parameterHints:at(new De),peekWidgetDefaultFocus:at(new T(65,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[i.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),i.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:i.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),quickSuggestions:at(new je),quickSuggestionsDelay:at(new O(67,"quickSuggestionsDelay",10,0,1073741824,{description:i.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:at(new w(68,"readOnly",!1)),renderControlCharacters:at(new w(69,"renderControlCharacters",!1,{description:i.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:at(new w(70,"renderIndentGuides",!0,{description:i.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:at(new w(71,"renderFinalNewline",!0,{description:i.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:at(new T(72,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",i.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:i.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderValidationDecorations:at(new T(73,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:at(new T(74,"renderWhitespace","none",["none","boundary","selection","all"],{enumDescriptions:["",i.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),i.a("renderWhitespace.selection","Render whitespace characters only on selected text."),""],description:i.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:at(new O(75,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:at(new w(76,"roundedSelection",!0,{description:i.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:at(new He),scrollbar:at(new qe),scrollBeyondLastColumn:at(new O(79,"scrollBeyondLastColumn",5,0,1073741824,{description:i.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:at(new w(80,"scrollBeyondLastLine",!0,{description:i.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:at(new w(81,"selectionClipboard",!0,{description:i.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.d})),selectionHighlight:at(new w(82,"selectionHighlight",!0,{description:i.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:at(new w(83,"selectOnLineNumbers",!0)),showFoldingControls:at(new T(84,"showFoldingControls","mouseover",["always","mouseover"],{description:i.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:at(new w(85,"showUnused",!0,{description:i.a("showUnused","Controls fading out of unused code.")})),snippetSuggestions:at(new T(86,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[i.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),i.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),i.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),i.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:i.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:at(new w(87,"smoothScrolling",!1,{description:i.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:at(new O(88,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:at(new Ze),suggestFontSize:at(new O(90,"suggestFontSize",0,0,1e3,{markdownDescription:i.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:at(new O(91,"suggestLineHeight",0,0,1e3,{markdownDescription:i.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:at(new w(92,"suggestOnTriggerCharacters",!0,{description:i.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:at(new T(93,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[i.a("suggestSelection.first","Always select the first suggestion."),i.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),i.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:i.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:at(new T(94,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[i.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),i.a("tabCompletion.off","Disable tab completions."),i.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:i.a("tabCompletion","Enables tab completions.")})),useTabStops:at(new w(95,"useTabStops",!0,{description:i.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:at(new L(96,"wordSeparators",a.b,{description:i.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:at(new T(97,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[i.a("wordWrap.off","Lines will never wrap."),i.a("wordWrap.on","Lines will wrap at the viewport width."),i.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),i.a({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:i.a({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:at(new L(98,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:at(new L(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:at(new O(100,"wordWrapColumn",80,1,1073741824,{markdownDescription:i.a({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:at(new w(101,"wordWrapMinified",!0)),wrappingIndent:at(new R(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[i.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),i.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),i.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),i.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:i.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:at(new T(103,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[i.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),i.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:i.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:at(new G),pixelRatio:at(new Ie),tabFocusMode:at(new Je),layoutInfo:at(new ve),wrappingInfo:at(new tt)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("keybindingService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var o=n(889),i=n(448),r=(o.a,Object(i.c)("notificationService")),a=function(){}},function(e,t,n){var o=n(639),i=n(661),r=n(486),a=n(458),s=n(664);e.exports=function(e){return"function"==typeof e?e:null==e?r:"object"==typeof e?a(e)?i(e[0],e[1]):o(e):s(e)}},function(e,t,n){var o=n(641),i=n(261);e.exports=function e(t,n,r,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:o(t,n,r,a,e,s))}},function(e,t,n){var o=n(536),i=n(644),r=n(537);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&u<d))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var p=-1,f=!0,g=2&n?new o:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var m=e[p],v=t[p];if(a)var y=c?a(v,m,p,t,e,l):a(m,v,p,e,t,l);if(void 0!==y){if(y)continue;f=!1;break}if(g){if(!i(t,(function(e,t){if(!r(g,t)&&(m===e||s(m,e,n,a,l)))return g.push(t)}))){f=!1;break}}else if(m!==v&&!s(m,v,n,a,l)){f=!1;break}}return l.delete(e),l.delete(t),f}},function(e,t,n){var o=n(503),i=n(642),r=n(643);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=r,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var o=n(510),i=n(654),r=n(475);e.exports=function(e){return(r(e)?o:i)(e)}},function(e,t,n){var o=n(457)(n(166),"Set");e.exports=o},function(e,t,n){var o=n(168);e.exports=function(e){return e==e&&!o(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t){e.exports=function(e,t,n,o){for(var i=e.length,r=n+(o?1:-1);o?r--:++r<i;)if(t(e[r],r,e))return r;return-1}},,,function(e,t,n){"use strict";var o,i=n(16),r=n.n(i),a=n(22),s=n.n(a),l=n(19),c=n.n(l),u=n(24),d=n.n(u),h=n(0),p=n.n(h),f=n(13),g=n.n(f),m=n(1),v=n.n(m),y=n(23),b=n(25),_=n(49),w=n.n(_);function C(){return s()(this,C),c()(this,o.apply(this,arguments))}var S=(o=p.a.Component,d()(C,o),C.prototype.render=function(){for(var e=this.props,t=e.value.localeData(),n=e.prefixCls,o=[],i=[],r=t.firstDayOfWeek(),a=void 0,s=w()(),l=0;l<7;l++){var c=(r+l)%7;s.day(c),o[l]=t.weekdaysMin(s),i[l]=t.weekdaysShort(s)}e.showWeekNumber&&(a=p.a.createElement("th",{role:"columnheader",className:n+"-column-header "+n+"-week-number-header"},p.a.createElement("span",{className:n+"-column-header-inner"},"x")));var u=i.map((function(e,t){return p.a.createElement("th",{key:t,role:"columnheader",title:e,className:n+"-column-header"},p.a.createElement("span",{className:n+"-column-header-inner"},o[t]))}));return p.a.createElement("thead",null,p.a.createElement("tr",{role:"row"},a,u))},C),O=n(12),x=n.n(O),E={disabledHours:function(){return[]},disabledMinutes:function(){return[]},disabledSeconds:function(){return[]}};function k(e){var t=w()();return t.locale(e.locale()).utcOffset(e.utcOffset()),t}function N(e){return e.format("LL")}function D(e,t){w.a.isMoment(e)&&w.a.isMoment(t)&&(t.hour(e.hour()),t.minute(e.minute()),t.second(e.second()),t.millisecond(e.millisecond()))}function L(e,t){var n=t?t(e):{};return r()({},E,n)}function P(e,t,n){return(!t||!t(e))&&!(n&&!function(e,t){return function(e,t){var n=!1;if(e){var o=e.hour(),i=e.minute(),r=e.second();n=-1!==t.disabledHours().indexOf(o)||(-1!==t.disabledMinutes(o).indexOf(i)||-1!==t.disabledSeconds(o,i).indexOf(r))}return!n}(e,L(e,t))}(e,n))}function I(e,t){return e?(Array.isArray(t)&&(t=t[0]),e.format(t)):""}function T(e,t){return e&&t&&e.isSame(t,"day")}var M,j=(M=p.a.Component,d()(R,M),R.prototype.render=function(){var e=this.props,t=e.contentRender,n=e.prefixCls,o=e.selectedValue,i=e.value,r=e.showWeekNumber,a=e.dateRender,s=e.disabledDate,l=e.hoverValue,c=void 0,u=void 0,d=void 0,h=[],f=k(i),g=n+"-cell",m=n+"-week-number-cell",v=n+"-date",y=n+"-today",b=n+"-selected-day",_=n+"-selected-date",w=n+"-selected-start-date",C=n+"-selected-end-date",S=n+"-in-range-cell",O=n+"-last-month-cell",E=n+"-next-month-btn-day",D=n+"-disabled-cell",L=n+"-disabled-cell-first-of-row",P=n+"-disabled-cell-last-of-row",I=n+"-last-day-of-month",M=i.clone();M.date(1);var j=(M.day()+7-i.localeData().firstDayOfWeek())%7,R=M.clone();R.add(0-j,"days");var A=0;for(c=0;c<6;c++)for(u=0;u<7;u++)d=R,A&&(d=d.clone()).add(A,"days"),h.push(d),A++;var F,V,W,B,H,z=[];for(c=A=0;c<6;c++){var K,U=void 0,q=void 0,G=!1,Y=[];for(r&&(q=p.a.createElement("td",{key:h[A].week(),role:"gridcell",className:m},h[A].week())),u=0;u<7;u++){var Z=null,$=null;d=h[A],u<6&&(Z=h[A+1]),0<u&&($=h[A-1]);var X=g,J=!1,Q=!1;T(d,f)&&(X+=" "+y,U=!0);var ee=(H=i,(B=d).year()<H.year()?1:B.year()===H.year()&&B.month()<H.month()),te=(W=i,(V=d).year()>W.year()?1:V.year()===W.year()&&V.month()>W.month());if(o&&Array.isArray(o)){var ne=l.length?l:o;if(!ee&&!te){var oe=ne[0],ie=ne[1];oe&&T(d,oe)&&(G=Q=!0,X+=" "+w),(oe||ie)&&(T(d,ie)?(G=Q=!0,X+=" "+C):(null==oe&&d.isBefore(ie,"day")||null==ie&&d.isAfter(oe,"day")||d.isAfter(oe,"day")&&d.isBefore(ie,"day"))&&(X+=" "+S))}}else T(d,i)&&(G=Q=!0);T(d,o)&&(X+=" "+_),ee&&(X+=" "+O),te&&(X+=" "+E),d.clone().endOf("month").date()===d.date()&&(X+=" "+I),s&&s(d,i)&&(J=!0,$&&s($,i)||(X+=" "+L),Z&&s(Z,i)||(X+=" "+P)),Q&&(X+=" "+b),J&&(X+=" "+D);var re=void 0;if(a)re=a(d,i);else{var ae=t?t(d,i):d.date();re=p.a.createElement("div",{key:"rc-calendar-"+(F=d).year()+"-"+F.month()+"-"+F.date(),className:v,"aria-selected":Q,"aria-disabled":J},ae)}Y.push(p.a.createElement("td",{key:A,onClick:J?void 0:e.onSelect.bind(null,d),onMouseEnter:!J&&e.onDayHover&&e.onDayHover.bind(null,d)||void 0,role:"gridcell",title:N(d),className:X},re)),A++}z.push(p.a.createElement("tr",{key:c,role:"row",className:x()(((K={})[n+"-current-week"]=U,K[n+"-active-week"]=G,K))},q,Y))}return p.a.createElement("tbody",{className:n+"-tbody"},z)},R);function R(){return s()(this,R),c()(this,M.apply(this,arguments))}j.propTypes={contentRender:v.a.func,dateRender:v.a.func,disabledDate:v.a.func,prefixCls:v.a.string,selectedValue:v.a.oneOfType([v.a.object,v.a.arrayOf(v.a.object)]),value:v.a.object,hoverValue:v.a.any,showWeekNumber:v.a.bool},j.defaultProps={hoverValue:[]};var A,F=j;function V(){return s()(this,V),c()(this,A.apply(this,arguments))}var W=(A=p.a.Component,d()(V,A),V.prototype.render=function(){var e=this.props,t=e.prefixCls;return p.a.createElement("table",{className:t+"-table",cellSpacing:"0",role:"grid"},p.a.createElement(S,e),p.a.createElement(F,e))},V);function B(e){return e}function H(e){return p.a.Children.map(e,B)}var z,K=(z=h.Component,d()(U,z),U.getDerivedStateFromProps=function(e){return"value"in e?{value:e.value}:null},U.prototype.setAndSelectValue=function(e){this.setState({value:e}),this.props.onSelect(e)},U.prototype.chooseMonth=function(e){var t=this.state.value.clone();t.month(e),this.setAndSelectValue(t)},U.prototype.months=function(){for(var e,t,n=this.state.value.clone(),o=[],i=0,r=0;r<4;r++){o[r]=[];for(var a=0;a<3;a++){n.month(i);var s=(t=(e=n).locale(),e.localeData()["zh-cn"===t?"months":"monthsShort"](e));o[r][a]={value:i,content:s,title:s},i++}}return o},U.prototype.render=function(){var e=this,t=this.props,n=this.state.value,o=k(n),i=this.months(),r=n.month(),a=t.prefixCls,s=t.locale,l=t.contentRender,c=t.cellRender,u=i.map((function(i,u){var d=i.map((function(i){var u,d=!1;if(t.disabledDate){var h=n.clone();h.month(i.value),d=t.disabledDate(h)}var f=((u={})[a+"-cell"]=1,u[a+"-cell-disabled"]=d,u[a+"-selected-cell"]=i.value===r,u[a+"-current-cell"]=o.year()===n.year()&&i.value===o.month(),u),g=void 0;if(c){var m=n.clone();m.month(i.value),g=c(m,s)}else{var v=void 0;if(l){var y=n.clone();y.month(i.value),v=l(y,s)}else v=i.content;g=p.a.createElement("a",{className:a+"-month"},v)}return p.a.createElement("td",{role:"gridcell",key:i.value,onClick:d?null:function(){return e.chooseMonth(i.value)},title:i.title,className:x()(f)},g)}));return p.a.createElement("tr",{key:u,role:"row"},d)}));return p.a.createElement("table",{className:a+"-table",cellSpacing:"0",role:"grid"},p.a.createElement("tbody",{className:a+"-tbody"},u))},U);function U(){var e,t,n;s()(this,U);for(var o=arguments.length,i=Array(o),r=0;r<o;r++)i[r]=arguments[r];return(e=t=c()(this,z.call.apply(z,[this].concat(i)))).state={},n=e,c()(t,n)}K.defaultProps={onSelect:function(){}},K.propTypes={onSelect:v.a.func,cellRender:v.a.func,prefixCls:v.a.string,value:v.a.object},Object(b.polyfill)(K);var q=K;function G(e){this.props.changeYear(e)}function Y(){}var Z,$=(Z=p.a.Component,d()(X,Z),X.getDerivedStateFromProps=function(e){var t={};return"value"in e&&(t={value:e.value}),t},X.prototype.render=function(){var e=this.props,t=this.state.value,n=e.locale,o=e.cellRender,i=e.contentRender,r=e.renderFooter,a=t.year(),s=this.prefixCls,l=r&&r("month");return p.a.createElement("div",{className:s,style:e.style},p.a.createElement("div",null,p.a.createElement("div",{className:s+"-header"},p.a.createElement("a",{className:s+"-prev-year-btn",role:"button",onClick:this.previousYear,title:n.previousYear}),p.a.createElement("a",{className:s+"-year-select",role:"button",onClick:e.onYearPanelShow,title:n.yearSelect},p.a.createElement("span",{className:s+"-year-select-content"},a),p.a.createElement("span",{className:s+"-year-select-arrow"},"x")),p.a.createElement("a",{className:s+"-next-year-btn",role:"button",onClick:this.nextYear,title:n.nextYear})),p.a.createElement("div",{className:s+"-body"},p.a.createElement(q,{disabledDate:e.disabledDate,onSelect:this.setAndSelectValue,locale:n,value:t,cellRender:o,contentRender:i,prefixCls:s})),l&&p.a.createElement("div",{className:s+"-footer"},l)))},X);function X(e){s()(this,X);var t=c()(this,Z.call(this,e));return t.setAndSelectValue=function(e){t.setValue(e),t.props.onSelect(e)},t.setValue=function(e){"value"in t.props&&t.setState({value:e})},t.nextYear=G.bind(t,1),t.previousYear=G.bind(t,-1),t.prefixCls=e.rootPrefixCls+"-month-panel",t.state={value:e.value||e.defaultValue},t}$.propTypes={onChange:v.a.func,disabledDate:v.a.func,onSelect:v.a.func,renderFooter:v.a.func,rootPrefixCls:v.a.string,value:v.a.object,defaultValue:v.a.object},$.defaultProps={onChange:Y,onSelect:Y},Object(b.polyfill)($);var J=$;function Q(e){var t=this.state.value.clone();t.add(e,"year"),this.setState({value:t})}var ee,te=(ee=p.a.Component,d()(ne,ee),ne.prototype.years=function(){for(var e=this.state.value.year(),t=10*parseInt(e/10,10)-1,n=[],o=0,i=0;i<4;i++){n[i]=[];for(var r=0;r<3;r++){var a=t+o,s=String(a);n[i][r]={content:s,year:a,title:s},o++}}return n},ne.prototype.render=function(){var e=this,t=this.props,n=this.state.value,o=t.locale,i=t.renderFooter,r=this.years(),a=n.year(),s=10*parseInt(a/10,10),l=9+s,c=this.prefixCls,u=r.map((function(t,n){var o=t.map((function(t){var n,o,i=((n={})[c+"-cell"]=1,n[c+"-selected-cell"]=t.year===a,n[c+"-last-decade-cell"]=t.year<s,n[c+"-next-decade-cell"]=t.year>l,n);return o=t.year<s?e.previousDecade:t.year>l?e.nextDecade:function(e){var t=this.state.value.clone();t.year(e),t.month(this.state.value.month()),this.setState({value:t}),this.props.onSelect(t)}.bind(e,t.year),p.a.createElement("td",{role:"gridcell",title:t.title,key:t.content,onClick:o,className:x()(i)},p.a.createElement("a",{className:c+"-year"},t.content))}));return p.a.createElement("tr",{key:n,role:"row"},o)})),d=i&&i("year");return p.a.createElement("div",{className:this.prefixCls},p.a.createElement("div",null,p.a.createElement("div",{className:c+"-header"},p.a.createElement("a",{className:c+"-prev-decade-btn",role:"button",onClick:this.previousDecade,title:o.previousDecade}),p.a.createElement("a",{className:c+"-decade-select",role:"button",onClick:t.onDecadePanelShow,title:o.decadeSelect},p.a.createElement("span",{className:c+"-decade-select-content"},s,"-",l),p.a.createElement("span",{className:c+"-decade-select-arrow"},"x")),p.a.createElement("a",{className:c+"-next-decade-btn",role:"button",onClick:this.nextDecade,title:o.nextDecade})),p.a.createElement("div",{className:c+"-body"},p.a.createElement("table",{className:c+"-table",cellSpacing:"0",role:"grid"},p.a.createElement("tbody",{className:c+"-tbody"},u))),d&&p.a.createElement("div",{className:c+"-footer"},d)))},ne);function ne(e){s()(this,ne);var t=c()(this,ee.call(this,e));return t.prefixCls=e.rootPrefixCls+"-year-panel",t.state={value:e.value||e.defaultValue},t.nextDecade=Q.bind(t,10),t.previousDecade=Q.bind(t,-10),t}var oe=te;function ie(e){var t=this.state.value.clone();t.add(e,"years"),this.setState({value:t})}te.propTypes={rootPrefixCls:v.a.string,value:v.a.object,defaultValue:v.a.object,renderFooter:v.a.func},te.defaultProps={onSelect:function(){}};var re,ae=(re=p.a.Component,d()(se,re),se.prototype.render=function(){for(var e=this,t=this.state.value,n=this.props,o=n.locale,i=n.renderFooter,r=t.year(),a=100*parseInt(r/100,10),s=a-10,l=99+a,c=[],u=0,d=this.prefixCls,h=0;h<4;h++){c[h]=[];for(var f=0;f<3;f++){var g=s+10*u,m=s+10*u+9;c[h][f]={startDecade:g,endDecade:m},u++}}var v=i&&i("decade"),y=c.map((function(t,n){var o=t.map((function(t){var n,o,i=t.startDecade,s=t.endDecade,c=i<a,u=l<s,h=((n={})[d+"-cell"]=1,n[d+"-selected-cell"]=i<=r&&r<=s,n[d+"-last-century-cell"]=c,n[d+"-next-century-cell"]=u,n),f=i+"-"+s;return o=c?e.previousCentury:u?e.nextCentury:function(e,t){var n=this.state.value.clone();n.year(e),n.month(this.state.value.month()),this.props.onSelect(n),t.preventDefault()}.bind(e,i),p.a.createElement("td",{key:i,onClick:o,role:"gridcell",className:x()(h)},p.a.createElement("a",{className:d+"-decade"},f))}));return p.a.createElement("tr",{key:n,role:"row"},o)}));return p.a.createElement("div",{className:this.prefixCls},p.a.createElement("div",{className:d+"-header"},p.a.createElement("a",{className:d+"-prev-century-btn",role:"button",onClick:this.previousCentury,title:o.previousCentury}),p.a.createElement("div",{className:d+"-century"},a,"-",l),p.a.createElement("a",{className:d+"-next-century-btn",role:"button",onClick:this.nextCentury,title:o.nextCentury})),p.a.createElement("div",{className:d+"-body"},p.a.createElement("table",{className:d+"-table",cellSpacing:"0",role:"grid"},p.a.createElement("tbody",{className:d+"-tbody"},y))),v&&p.a.createElement("div",{className:d+"-footer"},v))},se);function se(e){s()(this,se);var t=c()(this,re.call(this,e));return t.state={value:e.value||e.defaultValue},t.prefixCls=e.rootPrefixCls+"-decade-panel",t.nextCentury=ie.bind(t,100),t.previousCentury=ie.bind(t,-100),t}var le=ae;function ce(e){var t=this.props.value.clone();t.add(e,"months"),this.props.onValueChange(t)}function ue(e){var t=this.props.value.clone();t.add(e,"years"),this.props.onValueChange(t)}function de(e,t){return e?t:null}ae.propTypes={locale:v.a.object,value:v.a.object,defaultValue:v.a.object,rootPrefixCls:v.a.string,renderFooter:v.a.func},ae.defaultProps={onSelect:function(){}};var he,pe=(he=p.a.Component,d()(fe,he),fe.prototype.render=function(){var e=this,t=this.props,n=t.prefixCls,o=t.locale,i=t.mode,r=t.value,a=t.showTimePicker,s=t.enableNext,l=t.enablePrev,c=t.disabledMonth,u=t.renderFooter,d=null;return"month"===i&&(d=p.a.createElement(J,{locale:o,value:r,rootPrefixCls:n,onSelect:this.onMonthSelect,onYearPanelShow:function(){return e.showYearPanel("month")},disabledDate:c,cellRender:t.monthCellRender,contentRender:t.monthCellContentRender,renderFooter:u,changeYear:this.changeYear})),"year"===i&&(d=p.a.createElement(oe,{locale:o,defaultValue:r,rootPrefixCls:n,onSelect:this.onYearSelect,onDecadePanelShow:this.showDecadePanel,renderFooter:u})),"decade"===i&&(d=p.a.createElement(le,{locale:o,defaultValue:r,rootPrefixCls:n,onSelect:this.onDecadeSelect,renderFooter:u})),p.a.createElement("div",{className:n+"-header"},p.a.createElement("div",{style:{position:"relative"}},de(l&&!a,p.a.createElement("a",{className:n+"-prev-year-btn",role:"button",onClick:this.previousYear,title:o.previousYear})),de(l&&!a,p.a.createElement("a",{className:n+"-prev-month-btn",role:"button",onClick:this.previousMonth,title:o.previousMonth})),this.monthYearElement(a),de(s&&!a,p.a.createElement("a",{className:n+"-next-month-btn",onClick:this.nextMonth,title:o.nextMonth})),de(s&&!a,p.a.createElement("a",{className:n+"-next-year-btn",onClick:this.nextYear,title:o.nextYear}))),d)},fe);function fe(e){s()(this,fe);var t=c()(this,he.call(this,e));return ge.call(t),t.nextMonth=ce.bind(t,1),t.previousMonth=ce.bind(t,-1),t.nextYear=ue.bind(t,1),t.previousYear=ue.bind(t,-1),t.state={yearPanelReferer:null},t}pe.propTypes={prefixCls:v.a.string,value:v.a.object,onValueChange:v.a.func,showTimePicker:v.a.bool,onPanelChange:v.a.func,locale:v.a.object,enablePrev:v.a.any,enableNext:v.a.any,disabledMonth:v.a.func,renderFooter:v.a.func,onMonthSelect:v.a.func},pe.defaultProps={enableNext:1,enablePrev:1,onPanelChange:function(){},onValueChange:function(){}};var ge=function(){var e=this;this.onMonthSelect=function(t){e.props.onPanelChange(t,"date"),e.props.onMonthSelect?e.props.onMonthSelect(t):e.props.onValueChange(t)},this.onYearSelect=function(t){var n=e.state.yearPanelReferer;e.setState({yearPanelReferer:null}),e.props.onPanelChange(t,n),e.props.onValueChange(t)},this.onDecadeSelect=function(t){e.props.onPanelChange(t,"year"),e.props.onValueChange(t)},this.changeYear=function(t){0<t?e.nextYear():e.previousYear()},this.monthYearElement=function(t){var n=e.props,o=n.prefixCls,i=n.locale,r=n.value,a=r.localeData(),s=i.monthBeforeYear,l=o+"-"+(s?"my-select":"ym-select"),c=t?" "+o+"-time-status":"",u=p.a.createElement("a",{className:o+"-year-select"+c,role:"button",onClick:t?null:function(){return e.showYearPanel("date")},title:t?null:i.yearSelect},r.format(i.yearFormat)),d=p.a.createElement("a",{className:o+"-month-select"+c,role:"button",onClick:t?null:e.showMonthPanel,title:t?null:i.monthSelect},i.monthFormat?r.format(i.monthFormat):a.monthsShort(r)),h=void 0;t&&(h=p.a.createElement("a",{className:o+"-day-select"+c,role:"button"},r.format(i.dayFormat)));var f;return f=s?[d,h,u]:[u,d,h],p.a.createElement("span",{className:l},H(f))},this.showMonthPanel=function(){e.props.onPanelChange(null,"month")},this.showYearPanel=function(t){e.setState({yearPanelReferer:t}),e.props.onPanelChange(null,"year")},this.showDecadePanel=function(){e.props.onPanelChange(null,"decade")}},me=pe;function ve(e){var t=e.prefixCls,n=e.locale,o=e.value,i=e.timePicker,r=e.disabled,a=e.disabledDate,s=e.onToday,l=e.text,c=(!l&&i?n.now:l)||n.today,u=a&&!P(k(o),a)||r,d=u?t+"-today-btn-disabled":"";return p.a.createElement("a",{className:t+"-today-btn "+d,role:"button",onClick:u?null:s,title:N(k(o))},c)}function ye(e){var t=e.prefixCls,n=e.locale,o=e.okDisabled,i=e.onOk,r=t+"-ok-btn";return o&&(r+=" "+t+"-ok-btn-disabled"),p.a.createElement("a",{className:r,role:"button",onClick:o?null:i},n.ok)}function be(e){var t,n=e.prefixCls,o=e.locale,i=e.showTimePicker,r=e.onOpenTimePicker,a=e.onCloseTimePicker,s=e.timePickerDisabled,l=x()(((t={})[n+"-time-picker-btn"]=!0,t[n+"-time-picker-btn-disabled"]=s,t)),c=null;return s||(c=i?a:r),p.a.createElement("a",{className:l,role:"button",onClick:c},i?o.dateSelect:o.timeSelect)}var _e,we=(_e=p.a.Component,d()(Ce,_e),Ce.prototype.onSelect=function(e){this.props.onSelect(e)},Ce.prototype.getRootDOMNode=function(){return g.a.findDOMNode(this)},Ce.prototype.render=function(){var e=this.props,t=e.value,n=e.prefixCls,o=e.showOk,i=e.timePicker,a=e.renderFooter,s=e.mode,l=null,c=a&&a(s);if(e.showToday||i||c){var u,d=void 0;e.showToday&&(d=p.a.createElement(ve,r()({},e,{value:t})));var h=void 0;(!0===o||!1!==o&&e.timePicker)&&(h=p.a.createElement(ye,e));var f=void 0;e.timePicker&&(f=p.a.createElement(be,e));var g=void 0;(d||f||h||c)&&(g=p.a.createElement("span",{className:n+"-footer-btn"},c,H([d,f,h])));var m=x()(n+"-footer",((u={})[n+"-footer-show-ok"]=h,u));l=p.a.createElement("div",{className:m},g)}return l},Ce);function Ce(){return s()(this,Ce),c()(this,_e.apply(this,arguments))}we.propTypes={prefixCls:v.a.string,showDateInput:v.a.bool,disabledTime:v.a.any,timePicker:v.a.element,selectedValue:v.a.any,showOk:v.a.bool,onSelect:v.a.func,value:v.a.object,renderFooter:v.a.func,defaultValue:v.a.object,mode:v.a.string};var Se=we;function Oe(e){return e?k(e):w()()}function xe(e){var t,n,o;return o=e,d()(i,o),i.getDerivedStateFromProps=function(t,n){if(e.getDerivedStateFromProps)return e.getDerivedStateFromProps(t,n);var o=t.value,i=t.selectedValue,r={};return"value"in t&&(r.value=o||t.defaultValue||Oe(n.value)),"selectedValue"in t&&(r.selectedValue=i),r},n=t=i,t.displayName="CalendarMixinWrapper",t.defaultProps=e.defaultProps,n;function i(){var e,t,n;s()(this,i);for(var r=arguments.length,a=Array(r),l=0;l<r;l++)a[l]=arguments[l];return(e=t=c()(this,o.call.apply(o,[this].concat(a)))).onSelect=function(e,n){e&&t.setValue(e),t.setSelectedValue(e,n)},t.renderRoot=function(e){var n,o=t.props,i=o.prefixCls,r=((n={})[i]=1,n[i+"-hidden"]=!o.visible,n[o.className]=!!o.className,n[e.className]=!!e.className,n);return p.a.createElement("div",{ref:t.saveRoot,className:""+x()(r),style:t.props.style,tabIndex:"0",onKeyDown:t.onKeyDown,onBlur:t.onBlur},e.children)},t.setSelectedValue=function(e,n){"selectedValue"in t.props||t.setState({selectedValue:e}),t.props.onSelect&&t.props.onSelect(e,n)},t.setValue=function(e){var n=t.state.value;"value"in t.props||t.setState({value:e}),(n&&e&&!n.isSame(e)||!n&&e||n&&!e)&&t.props.onChange(e)},t.isAllowedDate=function(e){return P(e,t.props.disabledDate,t.props.disabledTime)},n=e,c()(t,n)}}var Ee={value:v.a.object,defaultValue:v.a.object,onKeyDown:v.a.func},ke={onKeyDown:function(){}},Ne=n(185);function De(){}function Le(e){var t,n,o;return o=e,d()(i,o),i.prototype.shouldComponentUpdate=function(e){return this.props.visible||e.visible},n=t=i,t.displayName="CommonMixinWrapper",t.defaultProps=e.defaultProps,t.getDerivedStateFromProps=e.getDerivedStateFromProps,n;function i(){var e,t,n;s()(this,i);for(var r=arguments.length,a=Array(r),l=0;l<r;l++)a[l]=arguments[l];return(e=t=c()(this,o.call.apply(o,[this].concat(a)))).getFormat=function(){var e=t.props.format,n=t.props,o=n.locale,i=n.timePicker;return e||(i?o.dateTimeFormat:o.dateFormat)},t.focus=function(){t.focusElement?t.focusElement.focus():t.rootInstance&&t.rootInstance.focus()},t.saveFocusElement=function(e){t.focusElement=e},t.saveRoot=function(e){t.rootInstance=e},n=e,c()(t,n)}}var Pe,Ie={className:v.a.string,locale:v.a.object,style:v.a.object,visible:v.a.bool,onSelect:v.a.func,prefixCls:v.a.string,onChange:v.a.func,onOk:v.a.func},Te={locale:Ne.a,style:{},visible:!0,prefixCls:"rc-calendar",className:"",onSelect:De,onChange:De,onClear:De,renderFooter:function(){return null},renderSidebar:function(){return null}},Me=void 0,je=void 0,Re=void 0,Ae=(Pe=p.a.Component,d()(Fe,Pe),Fe.prototype.componentDidUpdate=function(){!Re||!this.state.hasFocus||this.state.invalid||0===Me&&0===je||Re.setSelectionRange(Me,je)},Fe.getDerivedStateFromProps=function(e,t){var n={};Re&&(Me=Re.selectionStart,je=Re.selectionEnd);var o=e.selectedValue;return t.hasFocus||(n={str:I(o,e.format),invalid:!1}),n},Fe.getInstance=function(){return Re},Fe.prototype.render=function(){var e=this.props,t=this.state,n=t.invalid,o=t.str,i=e.locale,r=e.prefixCls,a=e.placeholder,s=e.clearIcon,l=e.inputMode,c=n?r+"-input-invalid":"";return p.a.createElement("div",{className:r+"-input-wrap"},p.a.createElement("div",{className:r+"-date-input-wrap"},p.a.createElement("input",{ref:this.saveDateInput,className:r+"-input "+c,value:o,disabled:e.disabled,placeholder:a,onChange:this.onInputChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,inputMode:l})),e.showClear?p.a.createElement("a",{role:"button",title:i.clear,onClick:this.onClear},s||p.a.createElement("span",{className:r+"-clear-btn"})):null)},Fe);function Fe(e){s()(this,Fe);var t=c()(this,Pe.call(this,e));Ve.call(t);var n=e.selectedValue;return t.state={str:I(n,t.props.format),invalid:!1,hasFocus:!1},t}Ae.propTypes={prefixCls:v.a.string,timePicker:v.a.object,value:v.a.object,disabledTime:v.a.any,format:v.a.oneOfType([v.a.string,v.a.arrayOf(v.a.string)]),locale:v.a.object,disabledDate:v.a.func,onChange:v.a.func,onClear:v.a.func,placeholder:v.a.string,onSelect:v.a.func,selectedValue:v.a.object,clearIcon:v.a.node,inputMode:v.a.string};var Ve=function(){var e=this;this.onClear=function(){e.setState({str:""}),e.props.onClear(null)},this.onInputChange=function(t){var n=t.target.value,o=e.props,i=o.disabledDate,r=o.format,a=o.onChange,s=o.selectedValue;if(!n)return a(null),void e.setState({invalid:!1,str:n});var l=w()(n,r,!0);if(l.isValid()){var c=e.props.value.clone();c.year(l.year()).month(l.month()).date(l.date()).hour(l.hour()).minute(l.minute()).second(l.second()),!c||i&&i(c)?e.setState({invalid:!0,str:n}):(s!==c||s&&c&&!s.isSame(c))&&(e.setState({invalid:!1,str:n}),a(c))}else e.setState({invalid:!0,str:n})},this.onFocus=function(){e.setState({hasFocus:!0})},this.onBlur=function(){e.setState((function(e,t){return{hasFocus:!1,str:I(t.value,t.format)}}))},this.onKeyDown=function(t){var n=t.keyCode,o=e.props,i=o.onSelect,r=o.value,a=o.disabledDate;n===y.a.ENTER&&i&&(a&&a(r)||i(r.clone()),t.preventDefault())},this.getRootDOMNode=function(){return g.a.findDOMNode(e)},this.focus=function(){Re&&Re.focus()},this.saveDateInput=function(e){Re=e}};Object(b.polyfill)(Ae);var We=Ae;function Be(e){return e.clone().startOf("month")}function He(e){return e.clone().endOf("month")}function ze(e,t,n){return e.clone().add(t,n)}function Ke(){}function Ue(e){return!(!w.a.isMoment(e)||!e.isValid())&&e}var qe,Ge=(qe=p.a.Component,d()(Ye,qe),Ye.prototype.componentDidMount=function(){this.props.showDateInput&&this.saveFocusElement(We.getInstance())},Ye.getDerivedStateFromProps=function(e,t){var n=e.value,o=e.selectedValue,i={};return"mode"in e&&t.mode!==e.mode&&(i={mode:e.mode}),"value"in e&&(i.value=Ue(n)||Ue(e.defaultValue)||Oe(t.value)),"selectedValue"in e&&(i.selectedValue=o),i},Ye.prototype.render=function(){var e=this.props,t=this.state,n=e.locale,o=e.prefixCls,i=e.disabledDate,a=e.dateInputPlaceholder,s=e.timePicker,l=e.disabledTime,c=e.clearIcon,u=e.renderFooter,d=e.inputMode,h=e.monthCellRender,f=e.monthCellContentRender,g=t.value,m=t.selectedValue,v=t.mode,y="time"===v,b=y&&l&&s?L(m,l):null,_=null;if(s&&y){var w=r()({showHour:!0,showSecond:!0,showMinute:!0},s.props,b,{onChange:this.onDateInputChange,value:m,disabledTime:l});void 0!==s.props.defaultValue&&(w.defaultOpenValue=s.props.defaultValue),_=p.a.cloneElement(s,w)}var C=e.showDateInput?p.a.createElement(We,{format:this.getFormat(),key:"date-input",value:g,locale:n,placeholder:a,showClear:!0,disabledTime:l,disabledDate:i,onClear:this.onClear,prefixCls:o,selectedValue:m,onChange:this.onDateInputChange,onSelect:this.onDateInputSelect,clearIcon:c,inputMode:d}):null,S=[];return e.renderSidebar&&S.push(e.renderSidebar()),S.push(p.a.createElement("div",{className:o+"-panel",key:"panel"},C,p.a.createElement("div",{tabIndex:this.props.focusablePanel?0:void 0,className:o+"-date-panel"},p.a.createElement(me,{locale:n,mode:v,value:g,onValueChange:this.setValue,onPanelChange:this.onPanelChange,renderFooter:u,showTimePicker:y,prefixCls:o,monthCellRender:h,monthCellContentRender:f}),s&&y?p.a.createElement("div",{className:o+"-time-picker"},p.a.createElement("div",{className:o+"-time-picker-panel"},_)):null,p.a.createElement("div",{className:o+"-body"},p.a.createElement(W,{locale:n,value:g,selectedValue:m,prefixCls:o,dateRender:e.dateRender,onSelect:this.onDateTableSelect,disabledDate:i,showWeekNumber:e.showWeekNumber})),p.a.createElement(Se,{showOk:e.showOk,mode:v,renderFooter:e.renderFooter,locale:n,prefixCls:o,showToday:e.showToday,disabledTime:l,showTimePicker:y,showDateInput:e.showDateInput,timePicker:s,selectedValue:m,value:g,disabledDate:i,okDisabled:!(!1===e.showOk||m&&this.isAllowedDate(m)),onOk:this.onOk,onSelect:this.onSelect,onToday:this.onToday,onOpenTimePicker:this.openTimePicker,onCloseTimePicker:this.closeTimePicker})))),this.renderRoot({children:S,className:e.showWeekNumber?o+"-week-number":""})},Ye);function Ye(e){s()(this,Ye);var t=c()(this,qe.call(this,e));return Ze.call(t),t.state={mode:t.props.mode||"date",value:Ue(e.value)||Ue(e.defaultValue)||w()(),selectedValue:e.selectedValue||e.defaultSelectedValue},t}Ge.propTypes=r()({},Ee,Ie,{prefixCls:v.a.string,className:v.a.string,style:v.a.object,defaultValue:v.a.object,value:v.a.object,selectedValue:v.a.object,defaultSelectedValue:v.a.object,mode:v.a.oneOf(["time","date","month","year","decade"]),locale:v.a.object,showDateInput:v.a.bool,showWeekNumber:v.a.bool,showToday:v.a.bool,showOk:v.a.bool,onSelect:v.a.func,onOk:v.a.func,onKeyDown:v.a.func,timePicker:v.a.element,dateInputPlaceholder:v.a.any,onClear:v.a.func,onChange:v.a.func,onPanelChange:v.a.func,disabledDate:v.a.func,disabledTime:v.a.any,dateRender:v.a.func,renderFooter:v.a.func,renderSidebar:v.a.func,clearIcon:v.a.node,focusablePanel:v.a.bool,inputMode:v.a.string,onBlur:v.a.func}),Ge.defaultProps=r()({},ke,Te,{showToday:!0,showDateInput:!0,timePicker:null,onOk:Ke,onPanelChange:Ke,focusablePanel:!0});var Ze=function(){var e=this;this.onPanelChange=function(t,n){var o=e.props,i=e.state;"mode"in o||e.setState({mode:n}),o.onPanelChange(t||i.value,n)},this.onKeyDown=function(t){if("input"!==t.target.nodeName.toLowerCase()){var n=t.keyCode,o=t.ctrlKey||t.metaKey,i=e.props.disabledDate,r=e.state.value;switch(n){case y.a.DOWN:return e.goTime(1,"weeks"),t.preventDefault(),1;case y.a.UP:return e.goTime(-1,"weeks"),t.preventDefault(),1;case y.a.LEFT:return o?e.goTime(-1,"years"):e.goTime(-1,"days"),t.preventDefault(),1;case y.a.RIGHT:return o?e.goTime(1,"years"):e.goTime(1,"days"),t.preventDefault(),1;case y.a.HOME:return e.setValue(Be(e.state.value)),t.preventDefault(),1;case y.a.END:return e.setValue(He(e.state.value)),t.preventDefault(),1;case y.a.PAGE_DOWN:return e.goTime(1,"month"),t.preventDefault(),1;case y.a.PAGE_UP:return e.goTime(-1,"month"),t.preventDefault(),1;case y.a.ENTER:return i&&i(r)||e.onSelect(r,{source:"keyboard"}),t.preventDefault(),1;default:return e.props.onKeyDown(t),1}}},this.onClear=function(){e.onSelect(null),e.props.onClear()},this.onOk=function(){var t=e.state.selectedValue;e.isAllowedDate(t)&&e.props.onOk(t)},this.onDateInputChange=function(t){e.onSelect(t,{source:"dateInput"})},this.onDateInputSelect=function(t){e.onSelect(t,{source:"dateInputSelect"})},this.onDateTableSelect=function(t){var n=e.props.timePicker;if(!e.state.selectedValue&&n){var o=n.props.defaultValue;o&&D(o,t)}e.onSelect(t)},this.onToday=function(){var t=k(e.state.value);e.onSelect(t,{source:"todayButton"})},this.onBlur=function(t){setTimeout((function(){var n=We.getInstance(),o=e.rootInstance;!o||o.contains(document.activeElement)||n&&n.contains(document.activeElement)||e.props.onBlur&&e.props.onBlur(t)}),0)},this.getRootDOMNode=function(){return g.a.findDOMNode(e)},this.openTimePicker=function(){e.onPanelChange(null,"time")},this.closeTimePicker=function(){e.onPanelChange(null,"date")},this.goTime=function(t,n){e.setValue(ze(e.state.value,t,n))}};Object(b.polyfill)(Ge);var $e,Xe=xe(Le(Ge)),Je=($e=p.a.Component,d()(Qe,$e),Qe.prototype.render=function(){var e=this.props,t=this.state,n=t.mode,o=t.value,i=p.a.createElement("div",{className:e.prefixCls+"-month-calendar-content"},p.a.createElement("div",{className:e.prefixCls+"-month-header-wrap"},p.a.createElement(me,{prefixCls:e.prefixCls,mode:n,value:o,locale:e.locale,disabledMonth:e.disabledDate,monthCellRender:e.monthCellRender,monthCellContentRender:e.monthCellContentRender,onMonthSelect:this.onSelect,onValueChange:this.setValue,onPanelChange:this.handlePanelChange})),p.a.createElement(Se,{prefixCls:e.prefixCls,renderFooter:e.renderFooter}));return this.renderRoot({className:e.prefixCls+"-month-calendar",children:i})},Qe);function Qe(e){s()(this,Qe);var t=c()(this,$e.call(this,e));return t.onKeyDown=function(e){var n=e.keyCode,o=e.ctrlKey||e.metaKey,i=t.state.value,r=t.props.disabledDate,a=i;switch(n){case y.a.DOWN:(a=i.clone()).add(3,"months");break;case y.a.UP:(a=i.clone()).add(-3,"months");break;case y.a.LEFT:a=i.clone(),o?a.add(-1,"years"):a.add(-1,"months");break;case y.a.RIGHT:a=i.clone(),o?a.add(1,"years"):a.add(1,"months");break;case y.a.ENTER:return r&&r(i)||t.onSelect(i),e.preventDefault(),1;default:return}if(a!==i)return t.setValue(a),e.preventDefault(),1},t.handlePanelChange=function(e,n){"date"!==n&&t.setState({mode:n})},t.state={mode:"month",value:e.value||e.defaultValue||w()(),selectedValue:e.selectedValue||e.defaultSelectedValue},t}Je.propTypes=r()({},Ee,Ie,{monthCellRender:v.a.func,value:v.a.object,defaultValue:v.a.object,selectedValue:v.a.object,defaultSelectedValue:v.a.object,disabledDate:v.a.func}),Je.defaultProps=r()({},Te,ke);var et=Object(b.polyfill)(xe(Le(Je))),tt=n(184),nt={adjustX:1,adjustY:1},ot=[0,0],it={bottomLeft:{points:["tl","tl"],overflow:nt,offset:[0,-3],targetOffset:ot},bottomRight:{points:["tr","tr"],overflow:nt,offset:[0,-3],targetOffset:ot},topRight:{points:["br","br"],overflow:nt,offset:[0,3],targetOffset:ot},topLeft:{points:["bl","bl"],overflow:nt,offset:[0,3],targetOffset:ot}},rt=n(105);function at(){}var st,lt=(st=p.a.Component,d()(ct,st),ct.prototype.componentDidUpdate=function(e,t){!t.open&&this.state.open&&(this.focusTimeout=setTimeout(this.focusCalendar,0,this))},ct.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout)},ct.getDerivedStateFromProps=function(e){var t={},n=e.value,o=e.open;return"value"in e&&(t.value=n),void 0!==o&&(t.open=o),t},ct.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.placement,o=e.style,i=e.getCalendarContainer,r=e.align,a=e.animation,s=e.disabled,l=e.dropdownClassName,c=e.transitionName,u=e.children,d=this.state;return p.a.createElement(rt.a,{popup:this.getCalendarElement(),popupAlign:r,builtinPlacements:it,popupPlacement:n,action:s&&!d.open?[]:["click"],destroyPopupOnHide:!0,getPopupContainer:i,popupStyle:o,popupAnimation:a,popupTransitionName:c,popupVisible:d.open,onPopupVisibleChange:this.onVisibleChange,prefixCls:t,popupClassName:l},p.a.cloneElement(u(d,e),{onKeyDown:this.onKeyDown}))},ct);function ct(e){s()(this,ct);var t=c()(this,st.call(this,e));ut.call(t);var n;n="open"in e?e.open:e.defaultOpen;var o=e.value||e.defaultValue;return t.saveCalendarRef=function(e,t){this[e]=t}.bind(t,"calendarInstance"),t.state={open:n,value:o},t}lt.propTypes={animation:v.a.oneOfType([v.a.func,v.a.string]),disabled:v.a.bool,transitionName:v.a.string,onChange:v.a.func,onOpenChange:v.a.func,children:v.a.func,getCalendarContainer:v.a.func,calendar:v.a.element,style:v.a.object,open:v.a.bool,defaultOpen:v.a.bool,prefixCls:v.a.string,placement:v.a.any,value:v.a.oneOfType([v.a.object,v.a.array]),defaultValue:v.a.oneOfType([v.a.object,v.a.array]),align:v.a.object,dateRender:v.a.func,onBlur:v.a.func},lt.defaultProps={prefixCls:"rc-calendar-picker",style:{},align:{},placement:"bottomLeft",defaultOpen:!1,onChange:at,onOpenChange:at,onBlur:at};var ut=function(){var e=this;this.onCalendarKeyDown=function(t){t.keyCode===y.a.ESC&&(t.stopPropagation(),e.close(e.focus))},this.onCalendarSelect=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=e.props;"value"in o||e.setState({value:t}),"keyboard"!==n.source&&"dateInputSelect"!==n.source&&(o.calendar.props.timePicker||"dateInput"===n.source)&&"todayButton"!==n.source||e.close(e.focus),o.onChange(t)},this.onKeyDown=function(t){e.state.open||t.keyCode!==y.a.DOWN&&t.keyCode!==y.a.ENTER||(e.open(),t.preventDefault())},this.onCalendarOk=function(){e.close(e.focus)},this.onCalendarClear=function(){e.close(e.focus)},this.onCalendarBlur=function(){e.setOpen(!1)},this.onVisibleChange=function(t){e.setOpen(t)},this.getCalendarElement=function(){var t=e.props,n=e.state,o=t.calendar.props,i=n.value,r=i,a={ref:e.saveCalendarRef,defaultValue:r||o.defaultValue,selectedValue:i,onKeyDown:e.onCalendarKeyDown,onOk:Object(tt.a)(o.onOk,e.onCalendarOk),onSelect:Object(tt.a)(o.onSelect,e.onCalendarSelect),onClear:Object(tt.a)(o.onClear,e.onCalendarClear),onBlur:Object(tt.a)(o.onBlur,e.onCalendarBlur)};return p.a.cloneElement(t.calendar,a)},this.setOpen=function(t,n){var o=e.props.onOpenChange;e.state.open!==t&&("open"in e.props||e.setState({open:t},n),o(t))},this.open=function(t){e.setOpen(!0,t)},this.close=function(t){e.setOpen(!1,t)},this.focus=function(){e.state.open||g.a.findDOMNode(e).focus()},this.focusCalendar=function(){e.state.open&&e.calendarInstance&&e.calendarInstance.focus()}};Object(b.polyfill)(lt);var dt=lt,ht=n(33),pt=n(18),ft=n(77),gt=n(27),mt=n(132),vt=n(186);function yt(e,t){return e?(Array.isArray(t)&&(t=t[0]),e.format(t)):""}function bt(e){return(bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(){return(_t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ot(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Et(e){var t=function(){function t(n){var o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),i=St(t).call(this,n),(o=!i||"object"!==bt(i)&&"function"!=typeof i?Ot(this):i).saveInput=function(e){o.input=e},o.clearSelection=function(e){e.preventDefault(),e.stopPropagation(),o.handleChange(null)},o.handleChange=function(e){var t=Ot(o).props;"value"in t||o.setState({value:e,showDate:e}),t.onChange(e,yt(e,t.format))},o.handleCalendarChange=function(e){o.setState({showDate:e})},o.handleOpenChange=function(e){var t=o.props.onOpenChange;"open"in o.props||o.setState({open:e}),t&&t(e)},o.renderFooter=function(){var e=o.props.renderExtraFooter,t=Ot(o).prefixCls;return e?h.createElement("div",{className:"".concat(t,"-footer-extra")},e.apply(void 0,arguments)):null},o.renderPicker=function(t){var n,i,r=t.getPrefixCls,a=o.state,s=a.value,l=a.showDate,c=a.open,u=Object(ht.default)(o.props,["onChange"]),d=u.prefixCls,p=u.locale,f=u.localeCode,g=u.suffixIcon,m=r("calendar",d);o.prefixCls=m;var v="placeholder"in u?u.placeholder:p.lang.placeholder,y=u.showTime?u.disabledTime:null,b=x()((wt(n={},"".concat(m,"-time"),u.showTime),wt(n,"".concat(m,"-month"),et===e),n));s&&f&&s.locale(f);var w={},C={},S={};u.showTime?(C={onSelect:o.handleChange},S.minWidth=195):w={onChange:o.handleChange},"mode"in u&&(C.mode=u.mode),Object(gt.a)(!("onOK"in u),"DatePicker","It should be `DatePicker[onOk]` or `MonthPicker[onOk]`, instead of `onOK`!");var O=h.createElement(e,_t({},C,{disabledDate:u.disabledDate,disabledTime:y,locale:p.lang,timePicker:u.timePicker,defaultValue:u.defaultPickerValue||Object(mt.a)(_)(),dateInputPlaceholder:v,prefixCls:m,className:b,onOk:u.onOk,dateRender:u.dateRender,format:u.format,showToday:u.showToday,monthCellContentRender:u.monthCellContentRender,renderFooter:o.renderFooter,onPanelChange:u.onPanelChange,onChange:o.handleCalendarChange,value:l})),E=!u.disabled&&u.allowClear&&s?h.createElement(pt.a,{type:"close-circle",className:"".concat(m,"-picker-clear"),onClick:o.clearSelection,theme:"filled"}):null,k=g&&(h.isValidElement(g)?h.cloneElement(g,{className:x()((wt(i={},g.props.className,g.props.className),wt(i,"".concat(m,"-picker-icon"),!0),i))}):h.createElement("span",{className:"".concat(m,"-picker-icon")},g))||h.createElement(pt.a,{type:"calendar",className:"".concat(m,"-picker-icon")}),N=Object(vt.a)(u);return h.createElement("span",{id:u.id,className:x()(u.className,u.pickerClass),style:_t(_t({},S),u.style),onFocus:u.onFocus,onBlur:u.onBlur,onMouseEnter:u.onMouseEnter,onMouseLeave:u.onMouseLeave},h.createElement(dt,_t({},u,w,{calendar:O,value:s,prefixCls:"".concat(m,"-picker-container"),style:u.popupStyle,open:c,onOpenChange:o.handleOpenChange}),(function(e){var t=e.value;return h.createElement("div",null,h.createElement("input",_t({ref:o.saveInput,disabled:u.disabled,readOnly:!0,value:yt(t,u.format),placeholder:v,className:u.pickerInputClass,tabIndex:u.tabIndex,name:u.name},N)),E,k)})))};var r=n.value||n.defaultValue;if(r&&!Object(mt.a)(_).isMoment(r))throw new Error("The value/defaultValue of DatePicker or MonthPicker must be a moment object after `antd@2.0`, see: https://u.ant.design/date-picker-value");return o.state={value:r,showDate:r,open:!1},o}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xt(e,t)}(t,h.Component),n=t,i=[{key:"getDerivedStateFromProps",value:function(e,t){var n={},o=t.open;return"open"in e&&(n.open=e.open,o=e.open||!1),"value"in e&&(n.value=e.value,e.value===t.value&&(o||e.value===t.showDate)||(n.showDate=e.value)),0<Object.keys(n).length?n:null}}],(o=[{key:"componentDidUpdate",value:function(e,t){"open"in this.props||!t.open||this.state.open||this.focus()}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){return h.createElement(ft.a,null,this.renderPicker)}}])&&Ct(n.prototype,o),i&&Ct(n,i),t}();return t.defaultProps={allowClear:!0,showToday:!0},Object(b.polyfill)(t),t}function kt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lt(e,t){return(Lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var It=function(){function e(t){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=Nt(e).call(this,t),n=!o||"object"!=typeof o&&"function"!=typeof o?Dt(this):o,Pt(Dt(n),"onInputChange",(function(e){var t=e.target.value;n.setState({str:t});var o=n.props,i=o.format,r=o.hourOptions,a=o.minuteOptions,s=o.secondOptions,l=o.disabledHours,c=o.disabledMinutes,u=o.disabledSeconds,d=o.onChange;if(t){var h=n.props.value,p=n.getProtoValue().clone(),f=w()(t,i,!0);if(!f.isValid())return void n.setState({invalid:!0});if(p.hour(f.hour()).minute(f.minute()).second(f.second()),r.indexOf(p.hour())<0||a.indexOf(p.minute())<0||s.indexOf(p.second())<0)return void n.setState({invalid:!0});var g=l(),m=c(p.hour()),v=u(p.hour(),p.minute());if(g&&0<=g.indexOf(p.hour())||m&&0<=m.indexOf(p.minute())||v&&0<=v.indexOf(p.second()))return void n.setState({invalid:!0});if(h){if(h.hour()!==p.hour()||h.minute()!==p.minute()||h.second()!==p.second()){var y=h.clone();y.hour(p.hour()),y.minute(p.minute()),y.second(p.second()),d(y)}}else h!==p&&d(p)}else d(null);n.setState({invalid:!1})})),Pt(Dt(n),"onKeyDown",(function(e){var t=n.props,o=t.onEsc,i=t.onKeyDown;27===e.keyCode&&o(),i(e)}));var i=t.value,r=t.format;return n.state={str:i&&i.format(r)||"",invalid:!1},n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lt(e,t)}(e,h.Component),t=e,(n=[{key:"componentDidMount",value:function(){var e=this;this.props.focusOnOpen&&(window.requestAnimationFrame||window.setTimeout)((function(){e.refInput.focus(),e.refInput.select()}))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,o=t.format;n!==e.value&&this.setState({str:n&&n.format(o)||"",invalid:!1})}},{key:"getProtoValue",value:function(){var e=this.props,t=e.value,n=e.defaultOpenValue;return t||n}},{key:"getInput",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.placeholder,i=t.inputReadOnly,r=this.state,a=r.invalid,s=r.str,l=a?"".concat(n,"-input-invalid"):"";return p.a.createElement("input",{className:x()("".concat(n,"-input"),l),ref:function(t){e.refInput=t},onKeyDown:this.onKeyDown,value:s,placeholder:o,onChange:this.onInputChange,readOnly:!!i})}},{key:"render",value:function(){var e=this.props.prefixCls;return p.a.createElement("div",{className:"".concat(e,"-input-wrap")},this.getInput())}}])&&kt(t.prototype,n),e}();Pt(It,"propTypes",{format:v.a.string,prefixCls:v.a.string,disabledDate:v.a.func,placeholder:v.a.string,clearText:v.a.string,value:v.a.object,inputReadOnly:v.a.bool,hourOptions:v.a.array,minuteOptions:v.a.array,secondOptions:v.a.array,disabledHours:v.a.func,disabledMinutes:v.a.func,disabledSeconds:v.a.func,onChange:v.a.func,onEsc:v.a.func,defaultOpenValue:v.a.object,currentSelectPanel:v.a.string,focusOnOpen:v.a.bool,onKeyDown:v.a.func,clearIcon:v.a.node}),Pt(It,"defaultProps",{inputReadOnly:!1});var Tt=It,Mt=n(106),jt=n.n(Mt);function Rt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function At(e){return(At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ft(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vt(e,t){return(Vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bt=function(){function e(){var t,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return o=this,i=(t=At(e)).call.apply(t,[this].concat(a)),n=!i||"object"!=typeof i&&"function"!=typeof i?Ft(o):i,Wt(Ft(n),"state",{active:!1}),Wt(Ft(n),"onSelect",(function(e){var t=n.props;(0,t.onSelect)(t.type,e)})),Wt(Ft(n),"handleMouseEnter",(function(e){var t=n.props.onMouseEnter;n.setState({active:!0}),t(e)})),Wt(Ft(n),"handleMouseLeave",(function(){n.setState({active:!1})})),Wt(Ft(n),"saveList",(function(e){n.list=e})),n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vt(e,t)}(e,h.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.scrollToSelected(0)}},{key:"componentDidUpdate",value:function(e){var t=this.props.selectedIndex;e.selectedIndex!==t&&this.scrollToSelected(120)}},{key:"getOptions",value:function(){var e=this,t=this.props,n=t.options,o=t.selectedIndex,i=t.prefixCls,r=t.onEsc;return n.map((function(t,n){var a,s=x()((Wt(a={},"".concat(i,"-select-option-selected"),o===n),Wt(a,"".concat(i,"-select-option-disabled"),t.disabled),a)),l=t.disabled?void 0:function(){e.onSelect(t.value)};return p.a.createElement("li",{role:"button",onClick:l,className:s,key:n,disabled:t.disabled,tabIndex:"0",onKeyDown:function(e){13===e.keyCode?l():27===e.keyCode&&r()}},t.value)}))}},{key:"scrollToSelected",value:function(e){var t=this.props.selectedIndex,n=g.a.findDOMNode(this),o=g.a.findDOMNode(this.list);if(o){var i=t;i<0&&(i=0),function e(t,n,o){if(o<=0)jt()((function(){t.scrollTop=n}));else{var i=(n-t.scrollTop)/o*10;jt()((function(){t.scrollTop+=i,t.scrollTop!==n&&e(t,n,o-10)}))}}(n,o.children[i].offsetTop,e)}}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.options,o=this.state.active;if(0===n.length)return null;var i=x()("".concat(t,"-select"),Wt({},"".concat(t,"-select-active"),o));return p.a.createElement("div",{className:i,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},p.a.createElement("ul",{ref:this.saveList},this.getOptions()))}}])&&Rt(t.prototype,n),e}();Wt(Bt,"propTypes",{prefixCls:v.a.string,options:v.a.array,selectedIndex:v.a.number,type:v.a.string,onSelect:v.a.func,onMouseEnter:v.a.func,onEsc:v.a.func});var Ht=Bt;function zt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ut(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yt(e,t){var n="".concat(e);e<10&&(n="0".concat(e));var o=!1;return t&&0<=t.indexOf(e)&&(o=!0),{value:n,disabled:o}}var Zt=function(){function e(){var t,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return o=this,i=(t=Kt(e)).call.apply(t,[this].concat(a)),n=!i||"object"!=typeof i&&"function"!=typeof i?Ut(o):i,Gt(Ut(n),"onItemChange",(function(e,t){var o=n.props,i=o.onChange,r=o.defaultOpenValue,a=o.use12Hours,s=o.value,l=o.isAM,c=o.onAmPmChange,u=(s||r).clone();if("hour"===e)a?l?u.hour(+t%12):u.hour(+t%12+12):u.hour(+t);else if("minute"===e)u.minute(+t);else if("ampm"===e){var d=t.toUpperCase();a&&("PM"===d&&u.hour()<12&&u.hour(u.hour()%12+12),"AM"===d&&12<=u.hour()&&u.hour(u.hour()-12)),c(d)}else u.second(+t);i(u)})),Gt(Ut(n),"onEnterSelectPanel",(function(e){(0,n.props.onCurrentSelectPanelChange)(e)})),n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qt(e,t)}(e,h.Component),t=e,(n=[{key:"getHourSelect",value:function(e){var t=this,n=this.props,o=n.prefixCls,i=n.hourOptions,r=n.disabledHours,a=n.showHour,s=n.use12Hours,l=n.onEsc;if(!a)return null;var c,u,d=r();return u=s?(c=[12].concat(i.filter((function(e){return e<12&&0<e}))),e%12||12):(c=i,e),p.a.createElement(Ht,{prefixCls:o,options:c.map((function(e){return Yt(e,d)})),selectedIndex:c.indexOf(u),type:"hour",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("hour")},onEsc:l})}},{key:"getMinuteSelect",value:function(e){var t=this,n=this.props,o=n.prefixCls,i=n.minuteOptions,r=n.disabledMinutes,a=n.defaultOpenValue,s=n.showMinute,l=n.value,c=n.onEsc;if(!s)return null;var u=r((l||a).hour());return p.a.createElement(Ht,{prefixCls:o,options:i.map((function(e){return Yt(e,u)})),selectedIndex:i.indexOf(e),type:"minute",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("minute")},onEsc:c})}},{key:"getSecondSelect",value:function(e){var t=this,n=this.props,o=n.prefixCls,i=n.secondOptions,r=n.disabledSeconds,a=n.showSecond,s=n.defaultOpenValue,l=n.value,c=n.onEsc;if(!a)return null;var u=l||s,d=r(u.hour(),u.minute());return p.a.createElement(Ht,{prefixCls:o,options:i.map((function(e){return Yt(e,d)})),selectedIndex:i.indexOf(e),type:"second",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("second")},onEsc:c})}},{key:"getAMPMSelect",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.use12Hours,i=t.format,r=t.isAM,a=t.onEsc;if(!o)return null;var s=["am","pm"].map((function(e){return i.match(/\sA/)?e.toUpperCase():e})).map((function(e){return{value:e}})),l=r?0:1;return p.a.createElement(Ht,{prefixCls:n,options:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange,onMouseEnter:function(){return e.onEnterSelectPanel("ampm")},onEsc:a})}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.defaultOpenValue,o=e.value||n;return p.a.createElement("div",{className:"".concat(t,"-combobox")},this.getHourSelect(o.hour()),this.getMinuteSelect(o.minute()),this.getSecondSelect(o.second()),this.getAMPMSelect(o.hour()))}}])&&zt(t.prototype,n),e}();Gt(Zt,"propTypes",{format:v.a.string,defaultOpenValue:v.a.object,prefixCls:v.a.string,value:v.a.object,onChange:v.a.func,onAmPmChange:v.a.func,showHour:v.a.bool,showMinute:v.a.bool,showSecond:v.a.bool,hourOptions:v.a.array,minuteOptions:v.a.array,secondOptions:v.a.array,disabledHours:v.a.func,disabledMinutes:v.a.func,disabledSeconds:v.a.func,onCurrentSelectPanelChange:v.a.func,use12Hours:v.a.bool,onEsc:v.a.func,isAM:v.a.bool});var $t=Zt;function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Jt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Qt(e){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function en(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tn(e,t){return(tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function on(){}function rn(e,t,n,o){for(var i=3<arguments.length&&void 0!==o?o:1,r=[],a=0;a<e;a+=i)t&&!(t.indexOf(a)<0)&&n||r.push(a);return r}var an=function(){function e(){var t,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return o=this,i=(t=Qt(e)).call.apply(t,[this].concat(a)),n=!i||"object"!=typeof i&&"function"!=typeof i?en(o):i,nn(en(n),"state",{}),nn(en(n),"onChange",(function(e){var t=n.props.onChange;n.setState({value:e}),t(e)})),nn(en(n),"onAmPmChange",(function(e){(0,n.props.onAmPmChange)(e)})),nn(en(n),"onCurrentSelectPanelChange",(function(e){n.setState({currentSelectPanel:e})})),nn(en(n),"disabledHours",(function(){var e=n.props,t=e.use12Hours,o=(0,e.disabledHours)();return t&&Array.isArray(o)&&(o=n.isAM()?o.filter((function(e){return e<12})).map((function(e){return 0===e?12:e})):o.map((function(e){return 12===e?12:e-12}))),o})),n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}(e,h.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e,t){return"value"in e?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{value:e.value}):null}}],(n=[{key:"close",value:function(){(0,this.props.onEsc)()}},{key:"isAM",value:function(){var e=this.props.defaultOpenValue,t=this.state.value||e;return 0<=t.hour()&&t.hour()<12}},{key:"render",value:function(){var e,t,n,o,i,r,a=this.props,s=a.prefixCls,l=a.className,c=a.placeholder,u=a.disabledMinutes,d=a.disabledSeconds,h=a.hideDisabledOptions,f=a.showHour,g=a.showMinute,m=a.showSecond,v=a.format,y=a.defaultOpenValue,b=a.clearText,_=a.onEsc,C=a.addon,S=a.use12Hours,O=a.focusOnOpen,E=a.onKeyDown,k=a.hourStep,N=a.minuteStep,D=a.secondStep,L=a.inputReadOnly,P=a.clearIcon,I=this.state,T=I.value,M=I.currentSelectPanel,j=this.disabledHours(),R=u(T?T.hour():null),A=d(T?T.hour():null,T?T.minute():null),F=rn(24,j,h,k),V=rn(60,R,h,N),W=rn(60,A,h,D),B=(e=y,t=V,n=W,o=F.slice().sort((function(t,n){return Math.abs(e.hour()-t)-Math.abs(e.hour()-n)}))[0],i=t.slice().sort((function(t,n){return Math.abs(e.minute()-t)-Math.abs(e.minute()-n)}))[0],r=n.slice().sort((function(t,n){return Math.abs(e.second()-t)-Math.abs(e.second()-n)}))[0],w()("".concat(o,":").concat(i,":").concat(r),"HH:mm:ss"));return p.a.createElement("div",{className:x()(l,"".concat(s,"-inner"))},p.a.createElement(Tt,{clearText:b,prefixCls:s,defaultOpenValue:B,value:T,currentSelectPanel:M,onEsc:_,format:v,placeholder:c,hourOptions:F,minuteOptions:V,secondOptions:W,disabledHours:this.disabledHours,disabledMinutes:u,disabledSeconds:d,onChange:this.onChange,focusOnOpen:O,onKeyDown:E,inputReadOnly:L,clearIcon:P}),p.a.createElement($t,{prefixCls:s,value:T,defaultOpenValue:B,format:v,onChange:this.onChange,onAmPmChange:this.onAmPmChange,showHour:f,showMinute:g,showSecond:m,hourOptions:F,minuteOptions:V,secondOptions:W,disabledHours:this.disabledHours,disabledMinutes:u,disabledSeconds:d,onCurrentSelectPanelChange:this.onCurrentSelectPanelChange,use12Hours:S,onEsc:_,isAM:this.isAM()}),C(this))}}])&&Jt(t.prototype,n),o&&Jt(t,o),e}();nn(an,"propTypes",{clearText:v.a.string,prefixCls:v.a.string,className:v.a.string,defaultOpenValue:v.a.object,value:v.a.object,placeholder:v.a.string,format:v.a.string,inputReadOnly:v.a.bool,disabledHours:v.a.func,disabledMinutes:v.a.func,disabledSeconds:v.a.func,hideDisabledOptions:v.a.bool,onChange:v.a.func,onAmPmChange:v.a.func,onEsc:v.a.func,showHour:v.a.bool,showMinute:v.a.bool,showSecond:v.a.bool,use12Hours:v.a.bool,hourStep:v.a.number,minuteStep:v.a.number,secondStep:v.a.number,addon:v.a.func,focusOnOpen:v.a.bool,onKeyDown:v.a.func,clearIcon:v.a.node}),nn(an,"defaultProps",{prefixCls:"rc-time-picker-panel",onChange:on,disabledHours:on,disabledMinutes:on,disabledSeconds:on,defaultOpenValue:w()(),use12Hours:!1,addon:on,onKeyDown:on,onAmPmChange:on,inputReadOnly:!1}),Object(b.polyfill)(an);var sn=an,ln=n(110),cn=n(55),un={adjustX:1,adjustY:1},dn=[0,0],hn={bottomLeft:{points:["tl","tl"],overflow:un,offset:[0,-3],targetOffset:dn},bottomRight:{points:["tr","tr"],overflow:un,offset:[0,-3],targetOffset:dn},topRight:{points:["br","br"],overflow:un,offset:[0,3],targetOffset:dn},topLeft:{points:["bl","bl"],overflow:un,offset:[0,3],targetOffset:dn}};function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function fn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function gn(e){return(gn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vn(e,t){return(vn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(){}function _n(e,t){this[e]=t}var wn=function(){function e(t){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=gn(e).call(this,t),n=!o||"object"!=typeof o&&"function"!=typeof o?mn(this):o,yn(mn(n),"onPanelChange",(function(e){n.setValue(e)})),yn(mn(n),"onAmPmChange",(function(e){(0,n.props.onAmPmChange)(e)})),yn(mn(n),"onClear",(function(e){e.stopPropagation(),n.setValue(null),n.setOpen(!1)})),yn(mn(n),"onVisibleChange",(function(e){n.setOpen(e)})),yn(mn(n),"onEsc",(function(){n.setOpen(!1),n.focus()})),yn(mn(n),"onKeyDown",(function(e){40===e.keyCode&&n.setOpen(!0)})),n.saveInputRef=_n.bind(mn(n),"picker"),n.savePanelRef=_n.bind(mn(n),"panelInstance");var i=t.defaultOpen,r=t.defaultValue,a=t.open,s=void 0===a?i:a,l=t.value,c=void 0===l?r:l;return n.state={open:s,value:c},n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vn(e,t)}(e,h.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e,t){var n={};return"value"in e&&(n.value=e.value),void 0!==e.open&&(n.open=e.open),0<Object.keys(n).length?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){yn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},n):null}}],(n=[{key:"setValue",value:function(e){var t=this.props.onChange;"value"in this.props||this.setState({value:e}),t(e)}},{key:"getFormat",value:function(){var e=this.props,t=e.format,n=e.showHour,o=e.showMinute,i=e.showSecond,r=e.use12Hours;return t||(r?[n?"h":"",o?"mm":"",i?"ss":""].filter((function(e){return!!e})).join(":").concat(" a"):[n?"HH":"",o?"mm":"",i?"ss":""].filter((function(e){return!!e})).join(":"))}},{key:"getPanelElement",value:function(){var e=this.props,t=e.prefixCls,n=e.placeholder,o=e.disabledHours,i=e.disabledMinutes,r=e.disabledSeconds,a=e.hideDisabledOptions,s=e.inputReadOnly,l=e.showHour,c=e.showMinute,u=e.showSecond,d=e.defaultOpenValue,h=e.clearText,f=e.addon,g=e.use12Hours,m=e.focusOnOpen,v=e.onKeyDown,y=e.hourStep,b=e.minuteStep,_=e.secondStep,w=e.clearIcon,C=this.state.value;return p.a.createElement(sn,{clearText:h,prefixCls:"".concat(t,"-panel"),ref:this.savePanelRef,value:C,inputReadOnly:s,onChange:this.onPanelChange,onAmPmChange:this.onAmPmChange,defaultOpenValue:d,showHour:l,showMinute:c,showSecond:u,onEsc:this.onEsc,format:this.getFormat(),placeholder:n,disabledHours:o,disabledMinutes:i,disabledSeconds:r,hideDisabledOptions:a,use12Hours:g,hourStep:y,minuteStep:b,secondStep:_,addon:f,focusOnOpen:m,onKeyDown:v,clearIcon:w})}},{key:"getPopupClassName",value:function(){var e=this.props,t=e.showHour,n=e.showMinute,o=e.showSecond,i=e.use12Hours,r=e.prefixCls,a=e.popupClassName,s=0;return t&&(s+=1),n&&(s+=1),o&&(s+=1),i&&(s+=1),x()(a,yn({},"".concat(r,"-panel-narrow"),!(t&&n&&o||i)),"".concat(r,"-panel-column-").concat(s))}},{key:"setOpen",value:function(e){var t=this.props,n=t.onOpen,o=t.onClose;this.state.open!==e&&("open"in this.props||this.setState({open:e}),(e?n:o)({open:e}))}},{key:"focus",value:function(){this.picker.focus()}},{key:"blur",value:function(){this.picker.blur()}},{key:"renderClearButton",value:function(){var e=this,t=this.state.value,n=this.props,o=n.prefixCls,i=n.allowEmpty,r=n.clearIcon,a=n.clearText,s=n.disabled;if(!i||!t||s)return null;if(p.a.isValidElement(r)){var l=(r.props||{}).onClick;return p.a.cloneElement(r,{onClick:function(){l&&l.apply(void 0,arguments),e.onClear.apply(e,arguments)}})}return p.a.createElement("a",{role:"button",className:"".concat(o,"-clear"),title:a,onClick:this.onClear,tabIndex:0},r||p.a.createElement("i",{className:"".concat(o,"-clear-icon")}))}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.placeholder,o=e.placement,i=e.align,r=e.id,a=e.disabled,s=e.transitionName,l=e.style,c=e.className,u=e.getPopupContainer,d=e.name,h=e.autoComplete,f=e.onFocus,g=e.onBlur,m=e.autoFocus,v=e.inputReadOnly,y=e.inputIcon,b=e.popupStyle,_=this.state,w=_.open,C=_.value,S=this.getPopupClassName();return p.a.createElement(rt.a,{prefixCls:"".concat(t,"-panel"),popupClassName:S,popupStyle:b,popup:this.getPanelElement(),popupAlign:i,builtinPlacements:hn,popupPlacement:o,action:a?[]:["click"],destroyPopupOnHide:!0,getPopupContainer:u,popupTransitionName:s,popupVisible:w,onPopupVisibleChange:this.onVisibleChange},p.a.createElement("span",{className:x()(t,c),style:l},p.a.createElement("input",{className:"".concat(t,"-input"),ref:this.saveInputRef,type:"text",placeholder:n,name:d,onKeyDown:this.onKeyDown,disabled:a,value:C&&C.format(this.getFormat())||"",autoComplete:h,onFocus:f,onBlur:g,autoFocus:m,onChange:bn,readOnly:!!v,id:r}),y||p.a.createElement("span",{className:"".concat(t,"-icon")}),this.renderClearButton()))}}])&&fn(t.prototype,n),o&&fn(t,o),e}();yn(wn,"propTypes",{prefixCls:v.a.string,clearText:v.a.string,value:v.a.object,defaultOpenValue:v.a.object,inputReadOnly:v.a.bool,disabled:v.a.bool,allowEmpty:v.a.bool,defaultValue:v.a.object,open:v.a.bool,defaultOpen:v.a.bool,align:v.a.object,placement:v.a.any,transitionName:v.a.string,getPopupContainer:v.a.func,placeholder:v.a.string,format:v.a.string,showHour:v.a.bool,showMinute:v.a.bool,showSecond:v.a.bool,style:v.a.object,className:v.a.string,popupClassName:v.a.string,popupStyle:v.a.object,disabledHours:v.a.func,disabledMinutes:v.a.func,disabledSeconds:v.a.func,hideDisabledOptions:v.a.bool,onChange:v.a.func,onAmPmChange:v.a.func,onOpen:v.a.func,onClose:v.a.func,onFocus:v.a.func,onBlur:v.a.func,addon:v.a.func,name:v.a.string,autoComplete:v.a.string,use12Hours:v.a.bool,hourStep:v.a.number,minuteStep:v.a.number,secondStep:v.a.number,focusOnOpen:v.a.bool,onKeyDown:v.a.func,autoFocus:v.a.bool,id:v.a.string,inputIcon:v.a.node,clearIcon:v.a.node}),yn(wn,"defaultProps",{clearText:"clear",prefixCls:"rc-time-picker",defaultOpen:!1,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{},align:{},defaultOpenValue:w()(),allowEmpty:!0,showHour:!0,showMinute:!0,showSecond:!0,disabledHours:bn,disabledMinutes:bn,disabledSeconds:bn,hideDisabledOptions:!1,placement:"bottomLeft",onChange:bn,onAmPmChange:bn,onOpen:bn,onClose:bn,onFocus:bn,onBlur:bn,addon:bn,use12Hours:!1,focusOnOpen:!1,onKeyDown:bn}),Object(b.polyfill)(wn);var Cn=wn,Sn=n(111);function On(e){return(On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xn(){return(xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function En(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function kn(e){return(kn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nn(e,t){return(Nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dn(e){return{showHour:-1<e.indexOf("H")||-1<e.indexOf("h")||-1<e.indexOf("k"),showMinute:-1<e.indexOf("m"),showSecond:-1<e.indexOf("s")}}var Ln=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==On(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,kn(e).call(this,t))).getDefaultLocale=function(){return xn(xn({},Sn.a),n.props.locale)},n.handleOpenClose=function(e){var t=e.open,o=n.props.onOpenChange;o&&o(t)},n.saveTimePicker=function(e){n.timePickerRef=e},n.handleChange=function(e){"value"in n.props||n.setState({value:e});var t=n.props,o=t.onChange,i=t.format,r=void 0===i?"HH:mm:ss":i;o&&o(e,e&&e.format(r)||"")},n.renderTimePicker=function(e){return h.createElement(ft.a,null,(function(t){var o,i,r,a=t.getPopupContainer,s=t.getPrefixCls,l=n.props,c=l.getPopupContainer,u=l.prefixCls,d=l.className,p=l.addon,f=l.placeholder,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(l,["getPopupContainer","prefixCls","className","addon","placeholder"]),m=g.size,v=Object(ht.default)(g,["defaultValue","suffixIcon","allowEmpty","allowClear"]),y=n.getDefaultFormat(),b=s("time-picker",u),_=x()(d,(o={},r=!!m,(i="".concat(b,"-").concat(m))in o?Object.defineProperty(o,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[i]=r,o));return h.createElement(Cn,xn({},Dn(y),v,{allowEmpty:n.getAllowClear(),prefixCls:b,getPopupContainer:c||a,ref:n.saveTimePicker,format:y,className:_,value:n.state.value,placeholder:void 0===f?e.placeholder:f,onChange:n.handleChange,onOpen:n.handleOpenClose,onClose:n.handleOpenClose,addon:function(e){return p?h.createElement("div",{className:"".concat(b,"-panel-addon")},p(e)):null},inputIcon:n.renderInputIcon(b),clearIcon:n.renderClearIcon(b)}))}))};var o=t.value||t.defaultValue;if(o&&!Object(mt.a)(_).isMoment(o))throw new Error("The value/defaultValue of TimePicker must be a moment object after `antd@2.0`, see: https://u.ant.design/time-picker-value");return n.state={value:o},Object(gt.a)(!("allowEmpty"in t),"TimePicker","`allowEmpty` is deprecated. Please use `allowClear` instead."),n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nn(e,t)}(e,h.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}],(n=[{key:"getDefaultFormat",value:function(){var e=this.props,t=e.format,n=e.use12Hours;return t||(n?"h:mm:ss a":"HH:mm:ss")}},{key:"getAllowClear",value:function(){var e=this.props,t=e.allowClear,n=e.allowEmpty;return"allowClear"in this.props?t:n}},{key:"focus",value:function(){this.timePickerRef.focus()}},{key:"blur",value:function(){this.timePickerRef.blur()}},{key:"renderInputIcon",value:function(e){var t=this.props.suffixIcon,n=t&&h.isValidElement(t)&&h.cloneElement(t,{className:x()(t.props.className,"".concat(e,"-clock-icon"))})||h.createElement(pt.a,{type:"clock-circle",className:"".concat(e,"-clock-icon")});return h.createElement("span",{className:"".concat(e,"-icon")},n)}},{key:"renderClearIcon",value:function(e){var t=this.props.clearIcon,n="".concat(e,"-clear");return t&&h.isValidElement(t)?h.cloneElement(t,{className:x()(t.props.className,n)}):h.createElement(pt.a,{type:"close-circle",className:n,theme:"filled"})}},{key:"render",value:function(){return h.createElement(cn.a,{componentName:"TimePicker",defaultLocale:this.getDefaultLocale()},this.renderTimePicker)}}])&&En(t.prototype,n),o&&En(t,o),e}();function Pn(e){return(Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tn(){return(Tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function Mn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function jn(e,t){return!t||"object"!==Pn(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function Rn(e){return(Rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function An(e,t){return(An=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Ln.defaultProps={align:{offset:[0,-2]},disabledHours:void 0,disabledMinutes:void 0,disabledSeconds:void 0,hideDisabledOptions:!1,placement:"bottomLeft",transitionName:"slide-up",focusOnOpen:!0},Object(b.polyfill)(Ln);var Fn={date:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",week:"gggg-wo",month:"YYYY-MM"},Vn={date:"dateFormat",dateTime:"dateTimeFormat",week:"weekFormat",month:"monthFormat"};function Wn(e,t){(Array.isArray(e)?e:[e]).forEach((function(e){e&&Object(gt.a)(!Object(mt.a)(_).isMoment(e)||e.isValid(),"DatePicker","`".concat(t,"` provides invalidate moment time. If you want to set empty value, use `null` instead."))}))}function Bn(e,t){var n=function(){function n(){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=jn(this,Rn(n).apply(this,arguments))).state={},o.savePicker=function(e){o.picker=e},o.getDefaultLocale=function(){var e=Tn(Tn({},ln.a),o.props.locale);return e.lang=Tn(Tn({},e.lang),(o.props.locale||{}).lang),e},o.handleOpenChange=function(e){(0,o.props.onOpenChange)(e)},o.handleFocus=function(e){var t=o.props.onFocus;t&&t(e)},o.handleBlur=function(e){var t=o.props.onBlur;t&&t(e)},o.handleMouseEnter=function(e){var t=o.props.onMouseEnter;t&&t(e)},o.handleMouseLeave=function(e){var t=o.props.onMouseLeave;t&&t(e)},o.renderPicker=function(n,i){var r=o.props,a=r.format,s=r.showTime,l=s?"".concat(t,"Time"):t,c=a||n[Vn[l]]||Fn[l];return h.createElement(ft.a,null,(function(t){var r,a,l,u=t.getPrefixCls,d=t.getPopupContainer,p=o.props,f=p.prefixCls,g=p.inputPrefixCls,m=p.getCalendarContainer,v=p.size,y=p.disabled,b=m||d,_=u("calendar",f),w=u("input",g),C=x()("".concat(_,"-picker"),In({},"".concat(_,"-picker-").concat(v),!!v)),S=x()("".concat(_,"-picker-input"),w,(In(r={},"".concat(w,"-lg"),"large"===v),In(r,"".concat(w,"-sm"),"small"===v),In(r,"".concat(w,"-disabled"),y),r)),O=s&&s.format||"HH:mm:ss",E=Tn(Tn({},Dn(O)),{format:O,use12Hours:s&&s.use12Hours}),k=(l=0,(a=E).showHour&&(l+=1),a.showMinute&&(l+=1),a.showSecond&&(l+=1),a.use12Hours&&(l+=1),l),N="".concat(_,"-time-picker-column-").concat(k),D=s?h.createElement(sn,Tn({},E,s,{prefixCls:"".concat(_,"-time-picker"),className:N,placeholder:n.timePickerLocale.placeholder,transitionName:"slide-up",onEsc:function(){}})):null;return h.createElement(e,Tn({},o.props,{getCalendarContainer:b,format:c,ref:o.savePicker,pickerClass:C,pickerInputClass:S,locale:n,localeCode:i,timePicker:D,onOpenChange:o.handleOpenChange,onFocus:o.handleFocus,onBlur:o.handleBlur,onMouseEnter:o.handleMouseEnter,onMouseLeave:o.handleMouseLeave}))}))},o}var o,i,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&An(e,t)}(n,h.Component),o=n,r=[{key:"getDerivedStateFromProps",value:function(e){var t=e.value;return Wn(e.defaultValue,"defaultValue"),Wn(t,"value"),{}}}],(i=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"focus",value:function(){this.picker.focus()}},{key:"blur",value:function(){this.picker.blur()}},{key:"render",value:function(){return h.createElement(cn.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}])&&Mn(o.prototype,i),r&&Mn(o,r),n}();return n.defaultProps={transitionName:"slide-up",popupStyle:{},onChange:function(){},onOk:function(){},onOpenChange:function(){},locale:{}},Object(b.polyfill)(n),n}var Hn,zn=(Hn=p.a.Component,d()(Kn,Hn),Kn.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.value,o=e.hoverValue,i=e.selectedValue,a=e.mode,s=e.direction,l=e.locale,c=e.format,u=e.placeholder,d=e.disabledDate,h=e.timePicker,f=e.disabledTime,g=e.timePickerDisabledTime,m=e.showTimePicker,v=e.onInputChange,y=e.onInputSelect,b=e.enablePrev,_=e.enableNext,w=e.clearIcon,C=e.showClear,S=e.inputMode,O=m&&h,x=O&&f?L(i,f):null,E=t+"-range",k={locale:l,value:n,prefixCls:t,showTimePicker:m},N="left"===s?0:1,D=O&&p.a.cloneElement(h,r()({showHour:!0,showMinute:!0,showSecond:!0},h.props,x,g,{onChange:v,defaultOpenValue:n,value:i[N]})),P=e.showDateInput&&p.a.createElement(We,{format:c,locale:l,prefixCls:t,timePicker:h,disabledDate:d,placeholder:u,disabledTime:f,value:n,showClear:C||!1,selectedValue:i[N],onChange:v,onSelect:y,clearIcon:w,inputMode:S});return p.a.createElement("div",{className:E+"-part "+E+"-"+s},P,p.a.createElement("div",{style:{outline:"none"}},p.a.createElement(me,r()({},k,{mode:a,enableNext:_,enablePrev:b,onValueChange:e.onValueChange,onPanelChange:e.onPanelChange,disabledMonth:e.disabledMonth})),m?p.a.createElement("div",{className:t+"-time-picker"},p.a.createElement("div",{className:t+"-time-picker-panel"},D)):null,p.a.createElement("div",{className:t+"-body"},p.a.createElement(W,r()({},k,{hoverValue:o,selectedValue:i,dateRender:e.dateRender,onSelect:e.onSelect,onDayHover:e.onDayHover,disabledDate:d,showWeekNumber:e.showWeekNumber})))))},Kn);function Kn(){return s()(this,Kn),c()(this,Hn.apply(this,arguments))}zn.propTypes={prefixCls:v.a.string,value:v.a.any,hoverValue:v.a.any,selectedValue:v.a.any,direction:v.a.any,locale:v.a.any,showDateInput:v.a.bool,showTimePicker:v.a.bool,format:v.a.any,placeholder:v.a.any,disabledDate:v.a.any,timePicker:v.a.any,disabledTime:v.a.any,onInputChange:v.a.func,onInputSelect:v.a.func,timePickerDisabledTime:v.a.object,enableNext:v.a.any,enablePrev:v.a.any,clearIcon:v.a.node,dateRender:v.a.func,inputMode:v.a.string};var Un=zn;function qn(){}function Gn(e,t){if(e===t)return 1;if(null!=e&&null!=t&&e.length===t.length){for(var n=0;n<e.length;++n)if(e[n]!==t[n])return;return 1}}function Yn(e){var t=e[0],n=e[1];return n&&null==t&&(t=n.clone().subtract(1,"month")),t&&null==n&&(n=t.clone().add(1,"month")),[t,n]}function Zn(e,t){var n,o=e.selectedValue||t&&e.defaultSelectedValue,i=Yn(e.value||t&&e.defaultValue||o);return n=i,!Array.isArray(n)||0!==n.length&&!n.every((function(e){return!e}))?i:t&&[w()(),w()().add(1,"months")]}function $n(e,t){for(var n=t?t().concat():[],o=0;o<e;o++)-1===n.indexOf(o)&&n.push(o);return n}function Xn(e,t,n){if(t){var o=this.state.selectedValue.concat(),i="left"===e?0:1;o[i]=t,o[0]&&0<this.compare(o[0],o[1])&&(o[1-i]=this.state.showTimePicker?o[i]:void 0),this.props.onInputSelect(o),this.fireSelectValueChange(o,null,n||{source:"dateInput"})}}var Jn,Qn=(Jn=p.a.Component,d()(eo,Jn),eo.getDerivedStateFromProps=function(e,t){var n={};return"value"in e&&(n.value=Zn(e,0)),"hoverValue"in e&&!Gn(t.hoverValue,e.hoverValue)&&(n.hoverValue=e.hoverValue),"selectedValue"in e&&(n.selectedValue=e.selectedValue,n.prevSelectedValue=e.selectedValue),"mode"in e&&!Gn(t.mode,e.mode)&&(n.mode=e.mode),n},eo.prototype.render=function(){var e,t,n=this.props,o=this.state,i=n.prefixCls,a=n.dateInputPlaceholder,s=n.seperator,l=n.timePicker,c=n.showOk,u=n.locale,d=n.showClear,h=n.showToday,f=n.type,g=n.clearIcon,m=o.hoverValue,v=o.selectedValue,y=o.mode,b=o.showTimePicker,_=((e={})[n.className]=!!n.className,e[i]=1,e[i+"-hidden"]=!n.visible,e[i+"-range"]=1,e[i+"-show-time-picker"]=b,e[i+"-week-number"]=n.showWeekNumber,e),w=x()(_),C={selectedValue:o.selectedValue,onSelect:this.onSelect,onDayHover:"start"===f&&v[1]||"end"===f&&v[0]||m.length?this.onDayHover:void 0},S=void 0,O=void 0;a&&(Array.isArray(a)?(S=a[0],O=a[1]):S=O=a);var E=!0===c||!1!==c&&!!l,N=x()(((t={})[i+"-footer"]=!0,t[i+"-range-bottom"]=!0,t[i+"-footer-show-ok"]=E,t)),D=this.getStartValue(),L=this.getEndValue(),P=k(D),I=P.month(),T=P.year(),M=D.year()===T&&D.month()===I||L.year()===T&&L.month()===I,j=D.clone().add(1,"months"),R=j.year()===L.year()&&j.month()===L.month(),A=n.renderFooter();return p.a.createElement("div",{ref:this.saveRoot,className:w,style:n.style,tabIndex:"0",onKeyDown:this.onKeyDown},n.renderSidebar(),p.a.createElement("div",{className:i+"-panel"},d&&v[0]&&v[1]?p.a.createElement("a",{role:"button",title:u.clear,onClick:this.clear},g||p.a.createElement("span",{className:i+"-clear-btn"})):null,p.a.createElement("div",{className:i+"-date-panel",onMouseLeave:"both"!==f?this.onDatePanelLeave:void 0,onMouseEnter:"both"!==f?this.onDatePanelEnter:void 0},p.a.createElement(Un,r()({},n,C,{hoverValue:m,direction:"left",disabledTime:this.disabledStartTime,disabledMonth:this.disabledStartMonth,format:this.getFormat(),value:D,mode:y[0],placeholder:S,onInputChange:this.onStartInputChange,onInputSelect:this.onStartInputSelect,onValueChange:this.onStartValueChange,onPanelChange:this.onStartPanelChange,showDateInput:this.props.showDateInput,timePicker:l,showTimePicker:b||"time"===y[0],enablePrev:!0,enableNext:!R||this.isMonthYearPanelShow(y[1]),clearIcon:g})),p.a.createElement("span",{className:i+"-range-middle"},s),p.a.createElement(Un,r()({},n,C,{hoverValue:m,direction:"right",format:this.getFormat(),timePickerDisabledTime:this.getEndDisableTime(),placeholder:O,value:L,mode:y[1],onInputChange:this.onEndInputChange,onInputSelect:this.onEndInputSelect,onValueChange:this.onEndValueChange,onPanelChange:this.onEndPanelChange,showDateInput:this.props.showDateInput,timePicker:l,showTimePicker:b||"time"===y[1],disabledTime:this.disabledEndTime,disabledMonth:this.disabledEndMonth,enablePrev:!R||this.isMonthYearPanelShow(y[0]),enableNext:!0,clearIcon:g}))),p.a.createElement("div",{className:N},h||n.timePicker||E||A?p.a.createElement("div",{className:i+"-footer-btn"},A,h?p.a.createElement(ve,r()({},n,{disabled:M,value:o.value[0],onToday:this.onToday,text:u.backToToday})):null,n.timePicker?p.a.createElement(be,r()({},n,{showTimePicker:b||"time"===y[0]&&"time"===y[1],onOpenTimePicker:this.onOpenTimePicker,onCloseTimePicker:this.onCloseTimePicker,timePickerDisabled:!this.hasSelectedValue()||m.length})):null,E?p.a.createElement(ye,r()({},n,{onOk:this.onOk,okDisabled:!this.isAllowedDateAndTime(v)||!this.hasSelectedValue()||m.length})):null):null)))},eo);function eo(e){s()(this,eo);var t=c()(this,Jn.call(this,e));to.call(t);var n=e.selectedValue||e.defaultSelectedValue,o=Zn(e,1);return t.state={selectedValue:n,prevSelectedValue:n,firstSelectedValue:null,hoverValue:e.hoverValue||[],value:o,showTimePicker:!1,mode:e.mode||["date","date"],panelTriggerSource:""},t}Qn.propTypes=r()({},Ie,{prefixCls:v.a.string,dateInputPlaceholder:v.a.any,seperator:v.a.string,defaultValue:v.a.any,value:v.a.any,hoverValue:v.a.any,mode:v.a.arrayOf(v.a.oneOf(["time","date","month","year","decade"])),showDateInput:v.a.bool,timePicker:v.a.any,showOk:v.a.bool,showToday:v.a.bool,defaultSelectedValue:v.a.array,selectedValue:v.a.array,onOk:v.a.func,showClear:v.a.bool,locale:v.a.object,onChange:v.a.func,onSelect:v.a.func,onValueChange:v.a.func,onHoverChange:v.a.func,onPanelChange:v.a.func,format:v.a.oneOfType([v.a.string,v.a.arrayOf(v.a.string)]),onClear:v.a.func,type:v.a.any,disabledDate:v.a.func,disabledTime:v.a.func,clearIcon:v.a.node,onKeyDown:v.a.func}),Qn.defaultProps=r()({},Te,{type:"both",seperator:"~",defaultSelectedValue:[],onValueChange:qn,onHoverChange:qn,onPanelChange:qn,disabledTime:qn,onInputSelect:qn,showToday:!0,showDateInput:!0});var to=function(){var e=this;this.onDatePanelEnter=function(){e.hasSelectedValue()&&e.fireHoverValueChange(e.state.selectedValue.concat())},this.onDatePanelLeave=function(){e.hasSelectedValue()&&e.fireHoverValueChange([])},this.onSelect=function(t){var n=e.props.type,o=e.state,i=o.selectedValue,r=o.prevSelectedValue,a=o.firstSelectedValue,s=void 0;if("both"===n)s=a?e.compare(a,t)<0?(D(r[1],t),[a,t]):(D(r[0],t),D(r[1],a),[t,a]):(D(r[0],t),[t]);else if("start"===n){D(r[0],t);var l=i[1];s=l&&0<e.compare(l,t)?[t,l]:[t]}else{var c=i[0];s=c&&e.compare(c,t)<=0?(D(r[1],t),[c,t]):(D(r[0],t),[t])}e.fireSelectValueChange(s)},this.onKeyDown=function(t){if("input"!==t.target.nodeName.toLowerCase()){var n=t.keyCode,o=t.ctrlKey||t.metaKey,i=e.state,r=i.selectedValue,a=i.hoverValue,s=i.firstSelectedValue,l=i.value,c=e.props,u=c.onKeyDown,d=c.disabledDate,h=function(n){var o=void 0,i=void 0,c=void 0;if(s?(i=n(o=1===a.length?a[0].clone():a[0].isSame(s,"day")?a[1]:a[0]),c=e.onDayHover(i)):(o=a[0]||r[0]||l[0]||w()(),c=[i=n(o)],e.fireHoverValueChange(c)),2<=c.length){if(c.some((function(e){return!function(e,t,n){var o=t,i=n;return(0<arguments.length&&void 0!==e?e:[]).some((function(e){return e.isSame(o,i)}))}(l,e,"month")}))){var u=c.slice().sort((function(e,t){return e.valueOf()-t.valueOf()}));u[0].isSame(u[1],"month")&&(u[1]=u[0].clone().add(1,"month")),e.fireValueChange(u)}}else if(1===c.length){var d=l.findIndex((function(e){return e.isSame(o,"month")}));if(-1===d&&(d=0),l.every((function(e){return!e.isSame(i,"month")}))){var h=l.slice();h[d]=i.clone(),e.fireValueChange(h)}}return t.preventDefault(),i};switch(n){case y.a.DOWN:return void h((function(e){return ze(e,1,"weeks")}));case y.a.UP:return void h((function(e){return ze(e,-1,"weeks")}));case y.a.LEFT:return void h(o?function(e){return ze(e,-1,"years")}:function(e){return ze(e,-1,"days")});case y.a.RIGHT:return void h(o?function(e){return ze(e,1,"years")}:function(e){return ze(e,1,"days")});case y.a.HOME:return void h((function(e){return Be(e)}));case y.a.END:return void h((function(e){return He(e)}));case y.a.PAGE_DOWN:return void h((function(e){return ze(e,1,"month")}));case y.a.PAGE_UP:return void h((function(e){return ze(e,-1,"month")}));case y.a.ENTER:var p;return!(p=0===a.length?h((function(e){return e})):1!==a.length&&a[0].isSame(s,"day")?a[1]:a[0])||d&&d(p)||e.onSelect(p),void t.preventDefault();default:u&&u(t)}}},this.onDayHover=function(t){var n=[],o=e.state,i=o.selectedValue,r=o.firstSelectedValue,a=e.props.type;if("start"===a&&i[1])n=e.compare(t,i[1])<0?[t,i[1]]:[t];else if("end"===a&&i[0])n=0<e.compare(t,i[0])?[i[0],t]:[];else{if(!r)return e.state.hoverValue.length&&e.setState({hoverValue:[]}),n;n=e.compare(t,r)<0?[t,r]:[r,t]}return e.fireHoverValueChange(n),n},this.onToday=function(){var t=k(e.state.value[0]),n=t.clone().add(1,"months");e.setState({value:[t,n]})},this.onOpenTimePicker=function(){e.setState({showTimePicker:!0})},this.onCloseTimePicker=function(){e.setState({showTimePicker:!1})},this.onOk=function(){var t=e.state.selectedValue;e.isAllowedDateAndTime(t)&&e.props.onOk(e.state.selectedValue)},this.onStartInputChange=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];var i=["left"].concat(n);return Xn.apply(e,i)},this.onEndInputChange=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];var i=["right"].concat(n);return Xn.apply(e,i)},this.onStartInputSelect=function(t){return Xn.apply(e,["left",t,{source:"dateInputSelect"}])},this.onEndInputSelect=function(t){return Xn.apply(e,["right",t,{source:"dateInputSelect"}])},this.onStartValueChange=function(t){var n=[].concat(e.state.value);return n[0]=t,e.fireValueChange(n)},this.onEndValueChange=function(t){var n=[].concat(e.state.value);return n[1]=t,e.fireValueChange(n)},this.onStartPanelChange=function(t,n){var o=e.props,i=e.state,r=[n,i.mode[1]],a={panelTriggerSource:"start"};"mode"in o||(a.mode=r),e.setState(a);var s=[t||i.value[0],i.value[1]];o.onPanelChange(s,r)},this.onEndPanelChange=function(t,n){var o=e.props,i=e.state,r=[i.mode[0],n],a={panelTriggerSource:"end"};"mode"in o||(a.mode=r),e.setState(a);var s=[i.value[0],t||i.value[1]];o.onPanelChange(s,r)},this.getStartValue=function(){var t=e.state,n=t.selectedValue,o=t.showTimePicker,i=t.value,r=t.mode,a=t.panelTriggerSource,s=i[0];return n[0]&&e.props.timePicker&&(s=s.clone(),D(n[0],s)),o&&n[0]&&(s=n[0]),"end"===a&&"date"===r[0]&&"date"===r[1]&&s.isSame(i[1],"month")&&(s=s.clone().subtract(1,"month")),s},this.getEndValue=function(){var t=e.state,n=t.value,o=t.selectedValue,i=t.showTimePicker,r=t.mode,a=t.panelTriggerSource,s=n[1]?n[1].clone():n[0].clone().add(1,"month");return o[1]&&e.props.timePicker&&D(o[1],s),i&&(s=o[1]?o[1]:e.getStartValue()),!i&&"end"!==a&&"date"===r[0]&&"date"===r[1]&&s.isSame(n[0],"month")&&(s=s.clone().add(1,"month")),s},this.getEndDisableTime=function(){var t=e.state,n=t.selectedValue,o=t.value,i=(0,e.props.disabledTime)(n,"end")||{},r=n&&n[0]||o[0].clone();if(n[1]&&!r.isSame(n[1],"day"))return i;var a=r.hour(),s=r.minute(),l=r.second(),c=i.disabledHours,u=i.disabledMinutes,d=i.disabledSeconds,h=u?u():[],p=d?d():[];return c=$n(a,c),u=$n(s,u),d=$n(l,d),{disabledHours:function(){return c},disabledMinutes:function(e){return e===a?u:h},disabledSeconds:function(e,t){return e===a&&t===s?d:p}}},this.isAllowedDateAndTime=function(t){return P(t[0],e.props.disabledDate,e.disabledStartTime)&&P(t[1],e.props.disabledDate,e.disabledEndTime)},this.isMonthYearPanelShow=function(e){return-1<["month","year","decade"].indexOf(e)},this.hasSelectedValue=function(){var t=e.state.selectedValue;return!!t[1]&&!!t[0]},this.compare=function(t,n){return e.props.timePicker?t.diff(n):t.diff(n,"days")},this.fireSelectValueChange=function(t,n,o){var i=e.props.timePicker,r=e.state.prevSelectedValue;if(i&&i.props.defaultValue){var a=i.props.defaultValue;!r[0]&&t[0]&&D(a[0],t[0]),!r[1]&&t[1]&&D(a[1],t[1])}if("selectedValue"in e.props||e.setState({selectedValue:t}),!e.state.selectedValue[0]||!e.state.selectedValue[1]){var s=t[0]||w()(),l=t[1]||s.clone().add(1,"months");e.setState({selectedValue:t,value:Yn([s,l])})}t[0]&&!t[1]&&(e.setState({firstSelectedValue:t[0]}),e.fireHoverValueChange(t.concat())),e.props.onChange(t),(n||t[0]&&t[1])&&(e.setState({prevSelectedValue:t,firstSelectedValue:null}),e.fireHoverValueChange([]),e.props.onSelect(t,o))},this.fireValueChange=function(t){var n=e.props;"value"in n||e.setState({value:t}),n.onValueChange(t)},this.fireHoverValueChange=function(t){var n=e.props;"hoverValue"in n||e.setState({hoverValue:t}),n.onHoverChange(t)},this.clear=function(){e.fireSelectValueChange([],!0),e.props.onClear()},this.disabledStartTime=function(t){return e.props.disabledTime(t,"start")},this.disabledEndTime=function(t){return e.props.disabledTime(t,"end")},this.disabledStartMonth=function(t){var n=e.state.value;return t.isAfter(n[1],"month")},this.disabledEndMonth=function(t){var n=e.state.value;return t.isBefore(n[0],"month")}};Object(b.polyfill)(Qn);var no=Le(Qn),oo=n(75),io=n.n(oo),ro=n(684);function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function so(e){var t,n=e.suffixIcon,o=e.prefixCls;return n&&(h.isValidElement(n)?h.cloneElement(n,{className:x()((ao(t={},n.props.className,n.props.className),ao(t,"".concat(o,"-picker-icon"),!0),t))}):h.createElement("span",{className:"".concat(o,"-picker-icon")},n))||h.createElement(pt.a,{type:"calendar",className:"".concat(o,"-picker-icon")})}function lo(e){return(lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function co(){return(co=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ho(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function po(e){return(po=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function go(e,t){return(go=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function vo(e,t){var n=mo(e,2),o=n[0],i=n[1];if(o||i)return t&&"month"===t[0]?[o,i]:[o,i&&i.isSame(o,"month")?i.clone().add(1,"month"):i]}function yo(e,t){if(t&&e&&0!==e.length){var n=mo(e,2),o=n[0],i=n[1];o&&o.locale(t),i&&i.locale(t)}}var bo=function(){function e(t){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=po(e).call(this,t),(n=!o||"object"!==lo(o)&&"function"!=typeof o?fo(this):o).savePicker=function(e){n.picker=e},n.clearSelection=function(e){e.preventDefault(),e.stopPropagation(),n.setState({value:[]}),n.handleChange([])},n.clearHoverValue=function(){return n.setState({hoverValue:[]})},n.handleChange=function(e){var t=fo(n).props;"value"in t||n.setState((function(t){var n=t.showDate;return{value:e,showDate:vo(e)||n}})),e[0]&&e[1]&&0<e[0].diff(e[1])&&(e[1]=void 0);var o=mo(e,2),i=o[0],r=o[1];"function"==typeof t.onChange&&t.onChange(e,[yt(i,t.format),yt(r,t.format)])},n.handleOpenChange=function(e){"open"in n.props||n.setState({open:e}),!1===e&&n.clearHoverValue();var t=n.props.onOpenChange;t&&t(e)},n.handleShowDateChange=function(e){return n.setState({showDate:e})},n.handleHoverChange=function(e){return n.setState({hoverValue:e})},n.handleRangeMouseLeave=function(){n.state.open&&n.clearHoverValue()},n.handleCalendarInputSelect=function(e){mo(e,1)[0]&&n.setState((function(t){var n=t.showDate;return{value:e,showDate:vo(e)||n}}))},n.handleRangeClick=function(e){"function"==typeof e&&(e=e()),n.setValue(e,!0);var t=n.props,o=t.onOk,i=t.onOpenChange;o&&o(e),i&&i(!1)},n.renderFooter=function(){var e=n.props,t=e.ranges,o=e.renderExtraFooter,i=fo(n),r=i.prefixCls,a=i.tagPrefixCls;if(!t&&!o)return null;var s=o?h.createElement("div",{className:"".concat(r,"-footer-extra"),key:"extra"},o()):null,l=t&&Object.keys(t).map((function(e){var o=t[e],i="function"==typeof o?o.call(fo(n)):o;return h.createElement(ro.a,{key:e,prefixCls:a,color:"blue",onClick:function(){return n.handleRangeClick(o)},onMouseEnter:function(){return n.setState({hoverValue:i})},onMouseLeave:n.handleRangeMouseLeave},e)}));return[l&&0<l.length?h.createElement("div",{className:"".concat(r,"-footer-extra ").concat(r,"-range-quick-selector"),key:"range"},l):null,s]},n.renderRangePicker=function(e){var t,o=e.getPrefixCls,i=fo(n),r=i.state,a=i.props,s=r.value,l=r.showDate,c=r.hoverValue,u=r.open,d=a.prefixCls,p=a.tagPrefixCls,f=a.popupStyle,g=a.style,m=a.disabledDate,v=a.disabledTime,y=a.showTime,b=a.showToday,_=a.ranges,w=a.onOk,C=a.locale,S=a.localeCode,O=a.format,E=a.dateRender,k=a.onCalendarChange,N=a.suffixIcon,D=a.separator,L=o("calendar",d),P=o("tag",p);n.prefixCls=L,n.tagPrefixCls=P,yo(s,S),yo(l,S),Object(gt.a)(!("onOK"in a),"RangePicker","It should be `RangePicker[onOk]`, instead of `onOK`!");var I=x()((uo(t={},"".concat(L,"-time"),y),uo(t,"".concat(L,"-range-with-ranges"),_),t)),T={onChange:n.handleChange},M={onOk:n.handleChange};a.timePicker?T.onChange=function(e){return n.handleChange(e)}:M={},"mode"in a&&(M.mode=a.mode);var j=Array.isArray(a.placeholder)?a.placeholder[0]:C.lang.rangePlaceholder[0],R=Array.isArray(a.placeholder)?a.placeholder[1]:C.lang.rangePlaceholder[1],A=h.createElement(no,co({},M,{seperator:D,onChange:k,format:O,prefixCls:L,className:I,renderFooter:n.renderFooter,timePicker:a.timePicker,disabledDate:m,disabledTime:v,dateInputPlaceholder:[j,R],locale:C.lang,onOk:w,dateRender:E,value:l,onValueChange:n.handleShowDateChange,hoverValue:c,onHoverChange:n.handleHoverChange,onPanelChange:a.onPanelChange,showToday:b,onInputSelect:n.handleCalendarInputSelect})),F={};a.showTime&&(F.width=g&&g.width||350);var V=mo(s,2),W=V[0],B=V[1],H=!a.disabled&&a.allowClear&&s&&(W||B)?h.createElement(pt.a,{type:"close-circle",className:"".concat(L,"-picker-clear"),onClick:n.clearSelection,theme:"filled"}):null,z=h.createElement(so,{suffixIcon:N,prefixCls:L});return h.createElement("span",{ref:n.savePicker,id:"number"==typeof a.id?a.id.toString():a.id,className:x()(a.className,a.pickerClass),style:co(co({},g),F),tabIndex:a.disabled?-1:0,onFocus:a.onFocus,onBlur:a.onBlur,onMouseEnter:a.onMouseEnter,onMouseLeave:a.onMouseLeave},h.createElement(dt,co({},a,T,{calendar:A,value:s,open:u,onOpenChange:n.handleOpenChange,prefixCls:"".concat(L,"-picker-container"),style:f}),(function(e){var t=mo(e.value,2),n=t[0],o=t[1];return h.createElement("span",{className:a.pickerInputClass},h.createElement("input",{disabled:a.disabled,readOnly:!0,value:yt(n,a.format),placeholder:j,className:"".concat(L,"-range-picker-input"),tabIndex:-1}),h.createElement("span",{className:"".concat(L,"-range-picker-separator")}," ",D," "),h.createElement("input",{disabled:a.disabled,readOnly:!0,value:yt(o,a.format),placeholder:R,className:"".concat(L,"-range-picker-input"),tabIndex:-1}),H,z)})))};var i=t.value||t.defaultValue||[],r=mo(i,2),a=r[0],s=r[1];if(a&&!Object(mt.a)(_).isMoment(a)||s&&!Object(mt.a)(_).isMoment(s))throw new Error("The value/defaultValue of RangePicker must be a moment object array after `antd@2.0`, see: https://u.ant.design/date-picker-value");var l,c=i&&(l=i,!Array.isArray(l)||0!==l.length&&!l.every((function(e){return!e})))?i:t.defaultPickerValue;return n.state={value:i,showDate:function(e){if(e)return Array.isArray(e)?e:[e,e.clone().add(1,"month")]}(c||Object(mt.a)(_)()),open:t.open,hoverValue:[]},n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&go(e,t)}(e,h.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=null;if("value"in e){var o=e.value||[];n={value:o},io()(e.value,t.value)||(n=co(co({},n),{showDate:vo(o,e.mode)||t.showDate}))}return"open"in e&&t.open!==e.open&&(n=co(co({},n),{open:e.open})),n}}],(n=[{key:"componentDidUpdate",value:function(e,t){"open"in this.props||!t.open||this.state.open||this.focus()}},{key:"setValue",value:function(e,t){this.handleChange(e),!t&&this.props.showTime||"open"in this.props||this.setState({open:!1})}},{key:"focus",value:function(){this.picker.focus()}},{key:"blur",value:function(){this.picker.blur()}},{key:"render",value:function(){return h.createElement(ft.a,null,this.renderRangePicker)}}])&&ho(t.prototype,n),o&&ho(t,o),e}();bo.defaultProps={allowClear:!0,showToday:!1,separator:"~"},Object(b.polyfill)(bo);var _o=bo;function wo(e){return(wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Co(){return(Co=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function So(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Oo(e){return(Oo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eo(e,t){return(Eo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ko=function(){function e(t){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=Oo(e).call(this,t),(n=!o||"object"!==wo(o)&&"function"!=typeof o?xo(this):o).saveInput=function(e){n.input=e},n.weekDateRender=function(e){var t=n.state.value,o=xo(n).prefixCls,i=n.props.dateRender,r=i?i(e):e.date();return t&&e.year()===t.year()&&e.week()===t.week()?h.createElement("div",{className:"".concat(o,"-selected-day")},h.createElement("div",{className:"".concat(o,"-date")},r)):h.createElement("div",{className:"".concat(o,"-date")},r)},n.handleChange=function(e){var t,o;"value"in n.props||n.setState({value:e}),n.props.onChange(e,(t=e,o=n.props.format,t&&t.format(o)||""))},n.handleOpenChange=function(e){var t=n.props.onOpenChange;"open"in n.props||n.setState({open:e}),t&&t(e)},n.clearSelection=function(e){e.preventDefault(),e.stopPropagation(),n.handleChange(null)},n.renderFooter=function(){var e=n.props,t=e.prefixCls,o=e.renderExtraFooter;return o?h.createElement("div",{className:"".concat(t,"-footer-extra")},o.apply(void 0,arguments)):null},n.renderWeekPicker=function(e){var t=e.getPrefixCls,o=n.props,i=o.prefixCls,r=o.className,a=o.disabled,s=o.pickerClass,l=o.popupStyle,c=o.pickerInputClass,u=o.format,d=o.allowClear,p=o.locale,f=o.localeCode,g=o.disabledDate,m=o.style,v=o.onFocus,y=o.onBlur,b=o.id,_=o.suffixIcon,w=o.defaultPickerValue,C=t("calendar",i);n.prefixCls=C;var S=n.state,O=S.open,E=S.value;E&&f&&E.locale(f);var k="placeholder"in n.props?n.props.placeholder:p.lang.placeholder,N=h.createElement(Xe,{showWeekNumber:!0,dateRender:n.weekDateRender,prefixCls:C,format:u,locale:p.lang,showDateInput:!1,showToday:!1,disabledDate:g,renderFooter:n.renderFooter,defaultValue:w}),D=!a&&d&&n.state.value?h.createElement(pt.a,{type:"close-circle",className:"".concat(C,"-picker-clear"),onClick:n.clearSelection,theme:"filled"}):null,L=h.createElement(so,{suffixIcon:_,prefixCls:C});return h.createElement("span",{className:x()(r,s),style:m,id:b},h.createElement(dt,Co({},n.props,{calendar:N,prefixCls:"".concat(C,"-picker-container"),value:E,onChange:n.handleChange,open:O,onOpenChange:n.handleOpenChange,style:l}),(function(e){var t=e.value;return h.createElement("span",{style:{display:"inline-block",width:"100%"}},h.createElement("input",{ref:n.saveInput,disabled:a,readOnly:!0,value:t&&t.format(u)||"",placeholder:k,className:c,onFocus:v,onBlur:y}),D,L)})))};var i=t.value||t.defaultValue;if(i&&!Object(mt.a)(_).isMoment(i))throw new Error("The value/defaultValue of WeekPicker must be a moment object after `antd@2.0`, see: https://u.ant.design/date-picker-value");return n.state={value:i,open:t.open},n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Eo(e,t)}(e,h.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e){if("value"in e||"open"in e){var t={};return"value"in e&&(t.value=e.value),"open"in e&&(t.open=e.open),t}return null}}],(n=[{key:"componentDidUpdate",value:function(e,t){"open"in this.props||!t.open||this.state.open||this.focus()}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){return h.createElement(ft.a,null,this.renderWeekPicker)}}])&&So(t.prototype,n),o&&So(t,o),e}();ko.defaultProps={format:"gggg-wo",allowClear:!0},Object(b.polyfill)(ko);var No=ko;function Do(){return(Do=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var Lo=Bn(Et(Xe),"date"),Po=Bn(Et(et),"month");Do(Lo,{RangePicker:Bn(_o,"date"),MonthPicker:Po,WeekPicker:Bn(No,"week")}),t.a=Lo},function(e,t,n){"use strict";n(46),n(705),n(103),n(706),n(683)},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return _}));var o=n(446),i=(r.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},r.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},r.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},r);function r(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}var a,s,l=new i,c=new i,u=new i;function d(e,t,n,o){void 0===n&&(n=t),void 0===o&&(o=n),l.define(e,t),c.define(e,n),u.define(e,o)}function h(e,t){return(e|(65535&t)<<16>>>0)>>>0}function p(e,t){if(0===e)return null;var n=(65535&e)>>>0,o=(4294901760&e)>>>16;return new v(0!=o?[f(n,t),f(o,t)]:[f(n,t)])}function f(e,t){var n=!!(2048&e),o=!!(256&e);return new g(2===t?o:n,!!(1024&e),!!(512&e),2===t?n:o,255&e)}d(0,"unknown"),d(1,"Backspace"),d(2,"Tab"),d(3,"Enter"),d(4,"Shift"),d(5,"Ctrl"),d(6,"Alt"),d(7,"PauseBreak"),d(8,"CapsLock"),d(9,"Escape"),d(10,"Space"),d(11,"PageUp"),d(12,"PageDown"),d(13,"End"),d(14,"Home"),d(15,"LeftArrow","Left"),d(16,"UpArrow","Up"),d(17,"RightArrow","Right"),d(18,"DownArrow","Down"),d(19,"Insert"),d(20,"Delete"),d(21,"0"),d(22,"1"),d(23,"2"),d(24,"3"),d(25,"4"),d(26,"5"),d(27,"6"),d(28,"7"),d(29,"8"),d(30,"9"),d(31,"A"),d(32,"B"),d(33,"C"),d(34,"D"),d(35,"E"),d(36,"F"),d(37,"G"),d(38,"H"),d(39,"I"),d(40,"J"),d(41,"K"),d(42,"L"),d(43,"M"),d(44,"N"),d(45,"O"),d(46,"P"),d(47,"Q"),d(48,"R"),d(49,"S"),d(50,"T"),d(51,"U"),d(52,"V"),d(53,"W"),d(54,"X"),d(55,"Y"),d(56,"Z"),d(57,"Meta"),d(58,"ContextMenu"),d(59,"F1"),d(60,"F2"),d(61,"F3"),d(62,"F4"),d(63,"F5"),d(64,"F6"),d(65,"F7"),d(66,"F8"),d(67,"F9"),d(68,"F10"),d(69,"F11"),d(70,"F12"),d(71,"F13"),d(72,"F14"),d(73,"F15"),d(74,"F16"),d(75,"F17"),d(76,"F18"),d(77,"F19"),d(78,"NumLock"),d(79,"ScrollLock"),d(80,";",";","OEM_1"),d(81,"=","=","OEM_PLUS"),d(82,",",",","OEM_COMMA"),d(83,"-","-","OEM_MINUS"),d(84,".",".","OEM_PERIOD"),d(85,"/","/","OEM_2"),d(86,"`","`","OEM_3"),d(110,"ABNT_C1"),d(111,"ABNT_C2"),d(87,"[","[","OEM_4"),d(88,"\\","\\","OEM_5"),d(89,"]","]","OEM_6"),d(90,"'","'","OEM_7"),d(91,"OEM_8"),d(92,"OEM_102"),d(93,"NumPad0"),d(94,"NumPad1"),d(95,"NumPad2"),d(96,"NumPad3"),d(97,"NumPad4"),d(98,"NumPad5"),d(99,"NumPad6"),d(100,"NumPad7"),d(101,"NumPad8"),d(102,"NumPad9"),d(103,"NumPad_Multiply"),d(104,"NumPad_Add"),d(105,"NumPad_Separator"),d(106,"NumPad_Subtract"),d(107,"NumPad_Decimal"),d(108,"NumPad_Divide"),(s=a=a||{}).toString=function(e){return l.keyCodeToStr(e)},s.fromString=function(e){return l.strToKeyCode(e)},s.toUserSettingsUS=function(e){return c.keyCodeToStr(e)},s.toUserSettingsGeneral=function(e){return u.keyCodeToStr(e)},s.fromUserSettings=function(e){return c.strToKeyCode(e)||u.strToKeyCode(e)};var g=(m.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},m.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},m.prototype.toChord=function(){return new v([this])},m.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},m);function m(e,t,n,o,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=o,this.keyCode=i}var v=(y.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t<this.parts.length;t++)if(!this.parts[t].equals(e.parts[t]))return!1;return!0},y);function y(e){if(0===e.length)throw Object(o.b)("parts");this.parts=e}var b=function(e,t,n,o,i,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=o,this.keyLabel=i,this.keyAriaLabel=r},_=function(){}},,,function(e,t,n){},,function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return b}));var o,i=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function r(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function a(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}var s=(l.prototype.reset=function(e){return this._value=e,this._pos=0,this},l.prototype.next=function(){return this._pos+=1,this},l.prototype.hasNext=function(){return this._pos<this._value.length-1},l.prototype.cmp=function(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)},l.prototype.value=function(){return this._value[this._pos]},l);function l(){this._value="",this._pos=0}var c=(u.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},u.prototype.hasNext=function(){return this._to<this._value.length},u.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},u.prototype.cmp=function(e){for(var t=0,n=e.length,o=this._from;t<n&&o<this._to;){var i=e.charCodeAt(t)-this._value.charCodeAt(o);if(0!=i)return i;t+=1,o+=1}return n===this._to-this._from?0:t<n?-1:1},u.prototype.value=function(){return this._value.substring(this._from,this._to)},u);function u(e){void 0===e&&(e=!0),this._splitOnBackslash=e}var d=function(){},h=(p.forPaths=function(){return new p(new c)},p.forStrings=function(){return new p(new s)},p.prototype.clear=function(){this._root=void 0},p.prototype.set=function(e,t){var n,o=this._iter.reset(e);for(this._root||(this._root=new d,this._root.segment=o.value()),n=this._root;;){var i=o.cmp(n.segment);if(0<i)n.left||(n.left=new d,n.left.segment=o.value()),n=n.left;else if(i<0)n.right||(n.right=new d,n.right.segment=o.value()),n=n.right;else{if(!o.hasNext())break;o.next(),n.mid||(n.mid=new d,n.mid.segment=o.value()),n=n.mid}}var r=n.value;return n.value=t,n.key=e,r},p.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var o=t.cmp(n.segment);if(0<o)n=n.left;else if(o<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0},p.prototype.findSubstr=function(e){for(var t=this._iter.reset(e),n=this._root,o=void 0;n;){var i=t.cmp(n.segment);if(0<i)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),o=n.value||o,n=n.mid}}return n&&n.value||o},p.prototype.forEach=function(e){this._forEach(this._root,e)},p.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))},p);function p(e){this._iter=e}var f=(g.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},g.prototype.get=function(e){return this.map.get(this.toKey(e))},g.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},g);function g(){this.map=new Map,this.ignoreCase=!1}var m=(v.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(v.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),v.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},v.prototype.set=function(e,t,n){void 0===n&&(n=0);var o=this._map.get(e);if(o)o.value=t,0!==n&&this.touch(o,n);else{switch(o={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(o);break;case 1:this.addItemFirst(o);break;case 2:default:this.addItemLast(o)}this._map.set(e,o),this._size++}},v.prototype.delete=function(e){return!!this.remove(e)},v.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},v.prototype.forEach=function(e,t){for(var n=this._head;n;)(t?e.bind(t):e)(n.value,n.key,this),n=n.next},v.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&e<n;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0)}else this.clear()},v.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},v.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},v.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).next=t}e.next=void 0,e.previous=void 0},v.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,o=e.previous;e===this._tail?(o.next=void 0,this._tail=o):(n.previous=o).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,o=e.previous,e===this._head?(n.previous=void 0,this._head=n):(n.previous=o).next=n,e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},v.prototype.toJSON=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),e},v);function v(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}var y,b=(i(_,y=m),_.prototype.get=function(e){return y.prototype.get.call(this,e,2)},_.prototype.peek=function(e){return y.prototype.get.call(this,e,0)},_.prototype.set=function(e,t){y.prototype.set.call(this,e,t,2),this.checkTrim()},_.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},_);function _(e,t){void 0===t&&(t=1);var n=y.call(this)||this;return n._limit=e,n._ratio=Math.min(Math.max(0,t),1),n}},function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return w})),n.d(t,"a",(function(){return o}));var o,i,r=n(1076),a=n(791),s=n(479),l=n(444),c=n(596),u=n(452),d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};function h(e){return!e||e.scheme!==c.b.file||!u.d}function p(e){return m(e)||e.authority}function f(e,t){return e===t||Object(l.n)(e,t)}function g(e,t,n){if(void 0===n&&(n=h(e)),e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!f(e.authority,t.authority))return!1;var o=e.path||"/",i=t.path||"/";return o===i||n&&Object(l.n)(o||"/",i||"/")}function m(e){return a.posix.basename(e.path)}function v(e){if(0===e.path.length)return e;if(e.scheme===c.b.file)return s.a.file(a.dirname(_(e)));var t=a.posix.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(t="/"),e.with({path:t})}function y(e){for(var t,n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return n=e.scheme===c.b.file?s.a.file(a.join.apply(a,d([_(e)],o))).path:(t=a.posix).join.apply(t,d([e.path||"/"],o)),e.with({path:n})}function b(e){return e.path.length?(t=e.scheme===c.b.file?s.a.file(a.normalize(_(e))).path:a.posix.normalize(e.path),e.with({path:t})):e;var t}function _(e){var t,n=e.path;return t=e.authority&&1<n.length&&e.scheme===c.b.file?"//"+e.authority+n:u.h&&47===n.charCodeAt(0)&&r.b(n.charCodeAt(1))&&58===n.charCodeAt(2)?n.substr(1):n,u.h&&(t=t.replace(/\//g,"\\")),t}function w(e,t,n){if(void 0===n&&(n=h(e)),e.scheme===t.scheme&&f(e.authority,t.authority)){if(e.scheme===c.b.file){var o=a.relative(e.path,t.path);return u.h?r.c(o):o}var i=e.path||"/",s=t.path||"/";if(n){for(var l=0,d=Math.min(i.length,s.length);l<d&&(i.charCodeAt(l)===s.charCodeAt(l)||i.charAt(l).toLowerCase()===s.charAt(l).toLowerCase());l++);i=s.substr(0,l)+i.substr(l)}return a.posix.relative(i,s)}}(i=o=o||{}).META_DATA_LABEL="label",i.META_DATA_DESCRIPTION="description",i.META_DATA_SIZE="size",i.META_DATA_MIME="mime",i.parseMetaData=function(e){var t=new Map;e.path.substring(e.path.indexOf(";")+1,e.path.lastIndexOf(";")).split(";").forEach((function(e){var n=e.split(":"),o=n[0],i=n[1];o&&i&&t.set(o,i)}));var n=e.path.substring(0,e.path.indexOf(";"));return n&&t.set(i.META_DATA_MIME,n),t}},function(e,t,n){"use strict";function o(){return!0}function i(){return!1}function r(e){return" "===e||"\t"===e}n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return O})),n.d(t,"a",(function(){return x})),n.d(t,"g",(function(){return k}));var a=n(446),s=n(444),l=n(450),c=n(440),u=n(466),d=n(495),h=n(575);function p(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}var f=(g.shouldRecreate=function(e){return e.hasChanged(107)||e.hasChanged(96)||e.hasChanged(25)||e.hasChanged(58)||e.hasChanged(60)||e.hasChanged(5)||e.hasChanged(7)||e.hasChanged(6)||e.hasChanged(10)||e.hasChanged(95)||e.hasChanged(49)||e.hasChanged(68)},Object.defineProperty(g.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var e=g._getElectricCharacters(this._languageIdentifier);if(e)for(var t=0,n=e;t<n.length;t++){var o=n[t];this._electricChars[o]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),g.prototype.normalizeIndentation=function(e){return d.b.normalizeIndentation(e,this.indentSize,this.insertSpaces)},g._getElectricCharacters=function(e){try{return h.a.getElectricCharacters(e.id)}catch(e){return Object(a.e)(e),null}},g._getAutoClosingPairs=function(e){try{return h.a.getAutoClosingPairs(e.id)}catch(e){return Object(a.e)(e),null}},g._getShouldAutoClose=function(e,t){switch(t){case"beforeWhitespace":return r;case"languageDefined":return g._getLanguageDefinedShouldAutoClose(e);case"always":return o;case"never":return i}},g._getLanguageDefinedShouldAutoClose=function(e){try{var t=h.a.getAutoCloseBeforeSet(e.id);return function(e){return-1!==t.indexOf(e)}}catch(e){return Object(a.e)(e),i}},g._getSurroundingPairs=function(e){try{return h.a.getSurroundingPairs(e.id)}catch(e){return Object(a.e)(e),null}},g);function g(e,t,n){this._languageIdentifier=e;var o=n.options,i=o.get(107);this.readOnly=o.get(68),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.lineHeight=o.get(49),this.pageSize=Math.max(1,Math.floor(i.height/this.lineHeight)-2),this.useTabStops=o.get(95),this.wordSeparators=o.get(96),this.emptySelectionClipboard=o.get(25),this.copyWithSyntaxHighlighting=o.get(15),this.multiCursorMergeOverlapping=o.get(58),this.multiCursorPaste=o.get(60),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:g._getShouldAutoClose(e,this.autoClosingQuotes),bracket:g._getShouldAutoClose(e,this.autoClosingBrackets)};var r=g._getAutoClosingPairs(e);if(r)for(var a=0,s=r;a<s.length;a++){var l=s[a];p(this.autoClosingPairsOpen2,l.open.charAt(l.open.length-1),l),1===l.close.length&&p(this.autoClosingPairsClose2,l.close,l)}var c=g._getSurroundingPairs(e);if(c)for(var u=0,d=c;u<d.length;u++)l=d[u],this.surroundingPairs[l.open]=l.close}var m=(v.prototype.equals=function(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)},v.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},v.prototype.move=function(e,t,n,o){return e?new v(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new l.a(t,n),o):new v(new c.a(t,n,t,n),o,new l.a(t,n),o)},v._computeSelection=function(e,t){var n,o,i,r;return o=!e.isEmpty()&&t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,e.endColumn):(n=e.startLineNumber,e.startColumn),i=t.lineNumber,r=t.column,new u.a(n,o,i,r)},v);function v(e,t,n,o){this.selectionStart=e,this.selectionStartLeftoverVisibleColumns=t,this.position=n,this.leftoverVisibleColumns=o,this.selection=v._computeSelection(this.selectionStart,this.position)}var y=(b.prototype.validateViewPosition=function(e,t){return this.viewModel.coordinatesConverter.validateViewPosition(e,t)},b.prototype.validateViewRange=function(e,t){return this.viewModel.coordinatesConverter.validateViewRange(e,t)},b.prototype.convertViewRangeToModelRange=function(e){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},b.prototype.convertViewPositionToModelPosition=function(e,t){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new l.a(e,t))},b.prototype.convertModelPositionToViewPosition=function(e){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(e)},b.prototype.convertModelRangeToViewRange=function(e){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(e)},b.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},b.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},b.prototype.getCompletelyVisibleModelRange=function(){var e=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},b.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(e)},b.prototype.getVerticalOffsetForViewLine=function(e){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(e)},b);function b(e,t,n){this.model=t,this.viewModel=n,this.config=new f(this.model.getLanguageIdentifier(),this.model.getOptions(),e)}var _=function(e){this.modelState=e,this.viewState=null},w=function(e){this.modelState=null,this.viewState=e},C=(S.fromModelState=function(e){return new _(e)},S.fromViewState=function(e){return new w(e)},S.fromModelSelection=function(e){var t=e.selectionStartLineNumber,n=e.selectionStartColumn,o=e.positionLineNumber,i=e.positionColumn,r=new m(new c.a(t,n,t,n),0,new l.a(o,i),0);return S.fromModelState(r)},S.fromModelSelections=function(e){for(var t=[],n=0,o=e.length;n<o;n++)t[n]=this.fromModelSelection(e[n]);return t},S.prototype.equals=function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)},S);function S(e,t){this.modelState=e,this.viewState=t}var O=function(e,t,n){this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter},x=(E.visibleColumnFromColumn=function(e,t,n){for(var o=e.length,i=t-1<o?t-1:o,r=0,a=0;a<i;){var l=s.u(e,i,a);if(a+=65536<=l?2:1,9===l)r=E.nextRenderTabStop(r,n);else{for(var c=s.s(l);a<i;){var u=s.u(e,i,a),d=s.s(u);if(s.b(c,d))break;a+=65536<=u?2:1,c=d}s.y(l)||s.w(l)?r+=2:r+=1}}return r},E.visibleColumnFromColumn2=function(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)},E.columnFromVisibleColumn=function(e,t,n){if(t<=0)return 1;for(var o=e.length,i=0,r=1,a=0;a<o;){var l=s.u(e,o,a);a+=65536<=l?2:1;var c=void 0;if(9===l)c=E.nextRenderTabStop(i,n);else{for(var u=s.s(l);a<o;){var d=s.u(e,o,a),h=s.s(d);if(s.b(u,h))break;a+=65536<=d?2:1,u=h}c=s.y(l)||s.w(l)?i+2:i+1}var p=a+1;if(t<=c)return c-t<t-i?p:r;i=c,r=p}return o+1},E.columnFromVisibleColumn2=function(e,t,n,o){var i=this.columnFromVisibleColumn(t.getLineContent(n),o,e.tabSize),r=t.getLineMinColumn(n);if(i<r)return r;var a=t.getLineMaxColumn(n);return a<i?a:i},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 E(){}function k(e){return"'"===e||'"'===e||"`"===e}},,,,,function(e,t,n){"use strict";n(46),n(637),n(691),n(259)},function(e,t,n){"use strict";var o=n(0),i=n.n(o),r=n(25),a=n(16),s=n.n(a),l=n(22),c=n.n(l),u=n(37),d=n.n(u),h=n(19),p=n.n(h),f=n(24),g=n.n(f),m=n(1),v=n.n(m),y=n(34),b=n.n(y),_=n(12),w=n.n(_);function C(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function S(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){0<t.total&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var o=e.data[t];Array.isArray(o)?o.forEach((function(e){n.append(t+"[]",e)})):n.append(t,e.data[t])})),n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||300<=t.status)return e.onError((o=t,i="cannot "+(n=e).method+" "+n.action+" "+o.status+"'",(r=new Error(i)).status=o.status,r.method=n.method,r.url=n.action,r),C(t));var n,o,i,r;e.onSuccess(C(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};for(var i in null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),o)o.hasOwnProperty(i)&&null!==o[i]&&t.setRequestHeader(i,o[i]);return t.send(n),{abort:function(){t.abort()}}}var O=+new Date,x=0;function E(){return"rc-upload-"+O+"-"+ ++x}function k(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),o=e.name||"",i=e.type||"",r=i.replace(/\/.*$/,"");return n.some((function(e){var t,n,a=e.trim();return"."===a.charAt(0)?(t=o.toLowerCase(),n=a.toLowerCase(),-1!==t.indexOf(n,t.length-n.length)):/\/\*$/.test(a)?r===a.replace(/\/.*$/,""):i===a}))}return!0}var N,D=function(e,t,n){function o(e,i){i=i||"",e.isFile?e.file((function(o){n(o)&&(e.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),t([o]))})):e.isDirectory&&function(e,t){var n=e.createReader(),o=[];!function e(){n.readEntries((function(n){var i=Array.prototype.slice.apply(n);o=o.concat(i),i.length?e():t(o)}))}()}(e,(function(t){t.forEach((function(t){o(t,""+i+e.name+"/")}))}))}var i=!0,r=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done);i=!0)o(s.value.webkitGetAsEntry())}catch(e){r=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(r)throw a}}},L=(N=o.Component,g()(P,N),d()(P,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(e,t){var n=this,o=this.props;if(!o.beforeUpload)return setTimeout((function(){return n.post(e)}),0);var i=o.beforeUpload(e,t);i&&i.then?i.then((function(t){var o=Object.prototype.toString.call(t);return"[object File]"===o||"[object Blob]"===o?n.post(t):n.post(e)})).catch((function(e){console})):!1!==i&&setTimeout((function(){return n.post(e)}),0)}},{key:"post",value:function(e){var t=this;if(this._isMounted){var n=this.props,o=n.data,i=n.onStart,r=n.onProgress,a=n.transformFile,s=void 0===a?function(e){return e}:a;new Promise((function(t){var o=n.action;if("function"==typeof o)return t(o(e));t(o)})).then((function(a){var l=e.uid,c=n.customRequest||S;Promise.resolve(s(e)).catch((function(e){})).then((function(s){"function"==typeof o&&(o=o(e));var u={action:a,filename:n.name,data:o,file:s,headers:n.headers,withCredentials:n.withCredentials,method:n.method||"post",onProgress:r?function(t){r(t,e)}:null,onSuccess:function(o,i){delete t.reqs[l],n.onSuccess(o,e,i)},onError:function(o,i){delete t.reqs[l],n.onError(o,i,e)}};t.reqs[l]=c(u),i(e)}))}))}}},{key:"reset",value:function(){this.setState({uid:E()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e;e&&e.uid&&(n=e.uid),t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,t=this.props,n=t.component,o=t.prefixCls,r=t.className,a=t.disabled,l=t.id,c=t.style,u=t.multiple,d=t.accept,h=t.children,p=t.directory,f=t.openFileDialogOnClick,g=w()((e={},b()(e,o,!0),b()(e,o+"-disabled",a),b()(e,r,r),e)),m=a?{}:{onClick:f?this.onClick:function(){},onKeyDown:f?this.onKeyDown:function(){},onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return i.a.createElement(n,s()({},m,{className:g,role:"button",style:c}),i.a.createElement("input",{id:l,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:d,directory:p?"directory":null,webkitdirectory:p?"webkitdirectory":null,multiple:u,onChange:this.onChange}),h)}}]),P);function P(){var e,t,n,o;c()(this,P);for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];return(t=n=p()(this,(e=P.__proto__||Object.getPrototypeOf(P)).call.apply(e,[this].concat(r)))).state={uid:E()},n.reqs={},n.onChange=function(e){var t=e.target.files;n.uploadFiles(t),n.reset()},n.onClick=function(){var e=n.fileInput;e&&e.click()},n.onKeyDown=function(e){"Enter"===e.key&&n.onClick()},n.onFileDrop=function(e){var t=n.props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(n.props.directory)D(e.dataTransfer.items,n.uploadFiles,(function(e){return k(e,n.props.accept)}));else{var o=Array.prototype.slice.call(e.dataTransfer.files).filter((function(e){return k(e,n.props.accept)}));!1===t&&(o=o.slice(0,1)),n.uploadFiles(o)}},n.uploadFiles=function(e){var t=Array.prototype.slice.call(e);t.map((function(e){return e.uid=E(),e})).forEach((function(e){n.upload(e,t)}))},n.saveFileInput=function(e){n.fileInput=e},o=t,p()(n,o)}L.propTypes={id:v.a.string,component:v.a.string,style:v.a.object,prefixCls:v.a.string,className:v.a.string,multiple:v.a.bool,directory:v.a.bool,disabled:v.a.bool,accept:v.a.string,children:v.a.any,onStart:v.a.func,data:v.a.oneOfType([v.a.object,v.a.func]),action:v.a.oneOfType([v.a.string,v.a.func]),headers:v.a.object,beforeUpload:v.a.func,customRequest:v.a.func,onProgress:v.a.func,withCredentials:v.a.bool,openFileDialogOnClick:v.a.bool,transformFile:v.a.func};var I,T=L,M=n(13),j=n.n(M),R=n(133),A=n.n(R),F={position:"absolute",top:0,opacity:0,filter:"alpha(opacity=0)",left:0,zIndex:9999},V=(I=o.Component,g()(W,I),d()(W,[{key:"componentDidMount",value:function(){this.updateIframeWH(),this.initIframe()}},{key:"componentDidUpdate",value:function(){this.updateIframeWH()}},{key:"getIframeNode",value:function(){return this.iframe}},{key:"getIframeDocument",value:function(){return this.getIframeNode().contentDocument}},{key:"getFormNode",value:function(){return this.getIframeDocument().getElementById("form")}},{key:"getFormInputNode",value:function(){return this.getIframeDocument().getElementById("input")}},{key:"getFormDataNode",value:function(){return this.getIframeDocument().getElementById("data")}},{key:"getFileForMultiple",value:function(e){return this.props.multiple?[e]:e}},{key:"getIframeHTML",value:function(e){var t="",n="";return e&&(t='<script>document.domain="'+e+'";<\/script>',n='<input name="_documentDomain" value="'+e+'" />'),'\n <!DOCTYPE html>\n <html>\n <head>\n <meta http-equiv="X-UA-Compatible" content="IE=edge" />\n <style>\n body,html {padding:0;margin:0;border:0;overflow:hidden;}\n </style>\n '+t+'\n </head>\n <body>\n <form method="post"\n encType="multipart/form-data"\n action="" id="form"\n style="display:block;height:9999px;position:relative;overflow:hidden;">\n <input id="input" type="file"\n name="'+this.props.name+'"\n style="position:absolute;top:0;right:0;height:9999px;font-size:9999px;cursor:pointer;"/>\n '+n+'\n <span id="data"></span>\n </form>\n </body>\n </html>\n '}},{key:"initIframeSrc",value:function(){this.domain&&(this.getIframeNode().src="javascript:void((function(){\n var d = document;\n d.open();\n d.domain='"+this.domain+"';\n d.write('');\n d.close();\n })())")}},{key:"initIframe",value:function(){var t=this.getIframeNode(),n=t.contentWindow,o=void 0;this.domain=this.domain||"",this.initIframeSrc();try{o=n.document}catch(e){this.domain=document.domain,this.initIframeSrc(),o=(n=t.contentWindow).document}o.open("text/html","replace"),o.write(this.getIframeHTML(this.domain)),o.close(),this.getFormInputNode().onchange=this.onChange}},{key:"endUpload",value:function(){this.state.uploading&&(this.file={},this.state.uploading=!1,this.setState({uploading:!1}),this.initIframe())}},{key:"startUpload",value:function(){this.state.uploading||(this.state.uploading=!0,this.setState({uploading:!0}))}},{key:"updateIframeWH",value:function(){var e=j.a.findDOMNode(this),t=this.getIframeNode();t.style.height=e.offsetHeight+"px",t.style.width=e.offsetWidth+"px"}},{key:"abort",value:function(e){if(e){var t=e;e&&e.uid&&(t=e.uid),t===this.file.uid&&this.endUpload()}else this.endUpload()}},{key:"post",value:function(e){var t=this,n=this.getFormNode(),o=this.getFormDataNode(),i=this.props.data,r=this.props.onStart;"function"==typeof i&&(i=i(e));var a=document.createDocumentFragment();for(var s in i)if(i.hasOwnProperty(s)){var l=document.createElement("input");l.setAttribute("name",s),l.value=i[s],a.appendChild(l)}o.appendChild(a),new Promise((function(n){var o=t.props.action;if("function"==typeof o)return n(o(e));n(o)})).then((function(t){n.setAttribute("action",t),n.submit(),o.innerHTML="",r(e)}))}},{key:"render",value:function(){var e,t=this.props,n=t.component,o=t.disabled,r=t.className,a=t.prefixCls,l=t.children,c=t.style,u=s()({},F,{display:this.state.uploading||o?"none":""}),d=w()((e={},b()(e,a,!0),b()(e,a+"-disabled",o),b()(e,r,r),e));return i.a.createElement(n,{className:d,style:s()({position:"relative",zIndex:0},c)},i.a.createElement("iframe",{ref:this.saveIframe,onLoad:this.onLoad,style:u}),l)}}]),W);function W(){var e,t,n,o;c()(this,W);for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];return(t=n=p()(this,(e=W.__proto__||Object.getPrototypeOf(W)).call.apply(e,[this].concat(r)))).state={uploading:!1},n.file={},n.onLoad=function(){if(n.state.uploading){var e=n.props,t=n.file,o=void 0;try{var i=n.getIframeDocument(),r=i.getElementsByTagName("script")[0];r&&r.parentNode===i.body&&i.body.removeChild(r),o=i.body.innerHTML,e.onSuccess(o,t)}catch(i){A()(!1,"cross domain error for Upload. Maybe server should return document.domain script. see Note from https://github.com/react-component/upload"),o="cross-domain",e.onError(i,null,t)}n.endUpload()}},n.onChange=function(){var e=n.getFormInputNode(),t=n.file={uid:E(),name:e.value&&e.value.substring(e.value.lastIndexOf("\\")+1,e.value.length)};n.startUpload();var o=n.props;if(!o.beforeUpload)return n.post(t);var i=o.beforeUpload(t);i&&i.then?i.then((function(){n.post(t)}),(function(){n.endUpload()})):!1!==i?n.post(t):n.endUpload()},n.saveIframe=function(e){n.iframe=e},o=t,p()(n,o)}V.propTypes={component:v.a.string,style:v.a.object,disabled:v.a.bool,prefixCls:v.a.string,className:v.a.string,accept:v.a.string,onStart:v.a.func,multiple:v.a.bool,children:v.a.any,data:v.a.oneOfType([v.a.object,v.a.func]),action:v.a.oneOfType([v.a.string,v.a.func]),name:v.a.string};var B=V;function H(){}var z,K=(z=o.Component,g()(U,z),d()(U,[{key:"componentDidMount",value:function(){this.props.supportServerRender&&this.setState({Component:this.getComponent()},this.props.onReady)}},{key:"getComponent",value:function(){return"undefined"!=typeof File?T:B}},{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){if(this.props.supportServerRender){var e=this.state.Component;return e?i.a.createElement(e,s()({},this.props,{ref:this.saveUploader})):null}var t=this.getComponent();return i.a.createElement(t,s()({},this.props,{ref:this.saveUploader}))}}]),U);function U(){var e,t,n,o;c()(this,U);for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];return(t=n=p()(this,(e=U.__proto__||Object.getPrototypeOf(U)).call.apply(e,[this].concat(r)))).state={Component:null},n.saveUploader=function(e){n.uploader=e},o=t,p()(n,o)}K.propTypes={component:v.a.string,style:v.a.object,prefixCls:v.a.string,action:v.a.oneOfType([v.a.string,v.a.func]),name:v.a.string,multipart:v.a.bool,directory:v.a.bool,onError:v.a.func,onSuccess:v.a.func,onProgress:v.a.func,onStart:v.a.func,data:v.a.oneOfType([v.a.object,v.a.func]),headers:v.a.object,accept:v.a.string,multiple:v.a.bool,disabled:v.a.bool,beforeUpload:v.a.func,customRequest:v.a.func,onReady:v.a.func,withCredentials:v.a.bool,supportServerRender:v.a.bool,openFileDialogOnClick:v.a.bool},K.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onReady:H,onStart:H,onError:H,onSuccess:H,supportServerRender:!1,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var q=K,G=n(638),Y=n.n(G),Z=n(674),$=n.n(Z),X=n(52);function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function Q(e){return J(J({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function ee(e,t){var n=void 0!==e.uid?"uid":"name";return t.filter((function(t){return t[n]===e[n]}))[0]}function te(e){return!!e&&0===e.indexOf("image/")}var ne=n(18),oe=n(167),ie=n(694),re=n(77);function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function le(){return(le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function ce(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ue(e,t){return!t||"object"!==ae(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function he(e,t){return(he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var pe=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=ue(this,de(e).apply(this,arguments))).handlePreview=function(e,n){var o=t.props.onPreview;if(o)return n.preventDefault(),o(e)},t.handleDownload=function(e){var n=t.props.onDownload;"function"==typeof n?n(e):e.url&&window.open(e.url)},t.handleClose=function(e){var n=t.props.onRemove;n&&n(e)},t.renderUploadList=function(e){var n,i=e.getPrefixCls,r=t.props,a=r.prefixCls,s=r.items,l=void 0===s?[]:s,c=r.listType,u=r.showPreviewIcon,d=r.showRemoveIcon,h=r.showDownloadIcon,p=r.locale,f=r.progressAttr,g=i("upload",a),m=l.map((function(e){var n,i,r,a=o.createElement(ne.a,{type:"uploading"===e.status?"loading":"paper-clip"});if("picture"===c||"picture-card"===c)if("picture-card"===c&&"uploading"===e.status)a=o.createElement("div",{className:"".concat(g,"-list-item-uploading-text")},p.uploading);else if(e.thumbUrl||e.url){var s=function(e){if(te(e.type))return!0;var t=e.thumbUrl||e.url,n=function(e){var t=(0<arguments.length&&void 0!==e?e:"").split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n}(e)?o.createElement("img",{src:e.thumbUrl||e.url,alt:e.name,className:"".concat(g,"-list-item-image")}):o.createElement(ne.a,{type:"file",className:"".concat(g,"-list-item-icon"),theme:"twoTone"});a=o.createElement("a",{className:"".concat(g,"-list-item-thumbnail"),onClick:function(n){return t.handlePreview(e,n)},href:e.url||e.thumbUrl,target:"_blank",rel:"noopener noreferrer"},s)}else a=o.createElement(ne.a,{className:"".concat(g,"-list-item-thumbnail"),type:"picture",theme:"twoTone"});if("uploading"===e.status){var l="percent"in e?o.createElement(ie.a,le({type:"line"},f,{percent:e.percent})):null;r=o.createElement("div",{className:"".concat(g,"-list-item-progress"),key:"progress"},l)}var m,v=w()((se(n={},"".concat(g,"-list-item"),!0),se(n,"".concat(g,"-list-item-").concat(e.status),!0),se(n,"".concat(g,"-list-item-list-type-").concat(c),!0),n)),y="string"==typeof e.linkProps?JSON.parse(e.linkProps):e.linkProps,b=d?o.createElement(ne.a,{type:"delete",title:p.removeFile,onClick:function(){return t.handleClose(e)}}):null,_=h&&"done"===e.status?o.createElement(ne.a,{type:"download",title:p.downloadFile,onClick:function(){return t.handleDownload(e)}}):null,C="picture-card"!==c&&o.createElement("span",{key:"download-delete",className:"".concat(g,"-list-item-card-actions ").concat("picture"===c?"picture":"")},_&&o.createElement("a",{title:p.downloadFile},_),b&&o.createElement("a",{title:p.removeFile},b)),S=w()((se(i={},"".concat(g,"-list-item-name"),!0),se(i,"".concat(g,"-list-item-name-icon-count-").concat([_,b].filter((function(e){return e})).length),!0),i)),O=e.url?[o.createElement("a",le({key:"view",target:"_blank",rel:"noopener noreferrer",className:S,title:e.name},y,{href:e.url,onClick:function(n){return t.handlePreview(e,n)}}),e.name),C]:[o.createElement("span",{key:"view",className:S,onClick:function(n){return t.handlePreview(e,n)},title:e.name},e.name),C],x=u?o.createElement("a",{href:e.url||e.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:e.url||e.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(n){return t.handlePreview(e,n)},title:p.previewFile},o.createElement(ne.a,{type:"eye-o"})):null,E="picture-card"===c&&"uploading"!==e.status&&o.createElement("span",{className:"".concat(g,"-list-item-actions")},x,"done"===e.status&&_,b);m=e.response&&"string"==typeof e.response?e.response:e.error&&e.error.statusText||p.uploadError;var k=o.createElement("span",null,a,O),N=o.createElement("div",{className:v},o.createElement("div",{className:"".concat(g,"-list-item-info")},k),E,o.createElement(X.a,{transitionName:"fade",component:""},r)),D=w()(se({},"".concat(g,"-list-picture-card-container"),"picture-card"===c));return o.createElement("div",{key:e.uid,className:D},"error"===e.status?o.createElement(oe.a,{title:m},N):o.createElement("span",null,N))})),v=w()((se(n={},"".concat(g,"-list"),!0),se(n,"".concat(g,"-list-").concat(c),!0),n)),y="picture-card"===c?"animate-inline":"animate";return o.createElement(X.a,{transitionName:"".concat(g,"-").concat(y),component:"div",className:v},m)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&he(e,t)}(e,o.Component),t=e,(n=[{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.listType,o=t.items,i=t.previewFile;"picture"!==n&&"picture-card"!==n||(o||[]).forEach((function(t){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",i&&i(t.originFileObj).then((function(n){t.thumbUrl=n||"",e.forceUpdate()})))}))}},{key:"render",value:function(){return o.createElement(re.a,null,this.renderUploadList)}}])&&ce(t.prototype,n),e}();pe.defaultProps={listType:"text",progressAttr:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!0,showPreviewIcon:!0,previewFile:function(e){return new Promise((function(t){if(te(e.type)){var n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var o=n.getContext("2d"),i=new Image;i.onload=function(){var e=i.width,r=i.height,a=200,s=200,l=0,c=0;e<r?c=-((s=r*(200/e))-a)/2:l=-((a=e*(200/r))-s)/2,o.drawImage(i,l,c,a,s);var u=n.toDataURL();document.body.removeChild(n),t(u)},i.src=window.URL.createObjectURL(e)}else t("")}))}};var fe=n(55),ge=n(94),me=n(27);function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(){return(be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function _e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e){return(we=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Se=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==ve(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,we(e).call(this,t))).saveUpload=function(e){n.upload=e},n.onStart=function(e){var t=n.state.fileList,o=Q(e);o.status="uploading";var i=t.concat(),r=$()(i,(function(e){return e.uid===o.uid}));-1===r?i.push(o):i[r]=o,n.onChange({file:o,fileList:i}),window.File&&!Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).TEST_IE||n.autoUpdateProgress(0,o)},n.onSuccess=function(e,t,o){n.clearProgressTimer();try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}var i=n.state.fileList,r=ee(t,i);r&&(r.status="done",r.response=e,r.xhr=o,n.onChange({file:be({},r),fileList:i}))},n.onProgress=function(e,t){var o=n.state.fileList,i=ee(t,o);i&&(i.percent=e.percent,n.onChange({event:e,file:be({},i),fileList:o}))},n.onError=function(e,t,o){n.clearProgressTimer();var i=n.state.fileList,r=ee(o,i);r&&(r.error=e,r.response=t,r.status="error",n.onChange({file:be({},r),fileList:i}))},n.handleRemove=function(e){var t=n.props.onRemove,o=n.state.fileList;Promise.resolve("function"==typeof t?t(e):t).then((function(t){if(!1!==t){var i,r,a,s,l=(r=o,a=void 0!==(i=e).uid?"uid":"name",(s=r.filter((function(e){return e[a]!==i[a]}))).length===r.length?null:s);l&&(e.status="removed",n.upload&&n.upload.abort(e),n.onChange({file:e,fileList:l}))}}))},n.onChange=function(e){"fileList"in n.props||n.setState({fileList:e.fileList});var t=n.props.onChange;t&&t(e)},n.onFileDrop=function(e){n.setState({dragState:e.type})},n.beforeUpload=function(e,t){var o=n.props.beforeUpload,i=n.state.fileList;if(!o)return!0;var r=o(e,t);return!1===r?(n.onChange({file:e,fileList:Y()(i.concat(t.map(Q)),(function(e){return e.uid}))}),!1):!r||!r.then||r},n.renderUploadList=function(e){var t=n.props,i=t.showUploadList,r=t.listType,a=t.onPreview,s=t.onDownload,l=t.previewFile,c=t.disabled,u=t.locale,d=i.showRemoveIcon,h=i.showPreviewIcon,p=i.showDownloadIcon,f=n.state.fileList;return o.createElement(pe,{listType:r,items:f,previewFile:l,onPreview:a,onDownload:s,onRemove:n.handleRemove,showRemoveIcon:!c&&d,showPreviewIcon:h,showDownloadIcon:p,locale:be(be({},e),u)})},n.renderUpload=function(e){var t,i=e.getPrefixCls,r=n.props,a=r.prefixCls,s=r.className,l=r.showUploadList,c=r.listType,u=r.type,d=r.disabled,h=r.children,p=r.style,f=n.state,g=f.fileList,m=f.dragState,v=i("upload",a),y=be(be({onStart:n.onStart,onError:n.onError,onProgress:n.onProgress,onSuccess:n.onSuccess},n.props),{prefixCls:v,beforeUpload:n.beforeUpload});delete y.className,delete y.style;var b=l?o.createElement(fe.a,{componentName:"Upload",defaultLocale:ge.a.Upload},n.renderUploadList):null;if("drag"===u){var _,C=w()(v,(ye(_={},"".concat(v,"-drag"),!0),ye(_,"".concat(v,"-drag-uploading"),g.some((function(e){return"uploading"===e.status}))),ye(_,"".concat(v,"-drag-hover"),"dragover"===m),ye(_,"".concat(v,"-disabled"),d),_),s);return o.createElement("span",null,o.createElement("div",{className:C,onDrop:n.onFileDrop,onDragOver:n.onFileDrop,onDragLeave:n.onFileDrop,style:p},o.createElement(q,be({},y,{ref:n.saveUpload,className:"".concat(v,"-btn")}),o.createElement("div",{className:"".concat(v,"-drag-container")},h))),b)}var S=w()(v,(ye(t={},"".concat(v,"-select"),!0),ye(t,"".concat(v,"-select-").concat(c),!0),ye(t,"".concat(v,"-disabled"),d),t));h&&!d||delete y.id;var O=o.createElement("div",{className:S,style:h?void 0:{display:"none"}},o.createElement(q,be({},y,{ref:n.saveUpload})));return"picture-card"===c?o.createElement("span",{className:w()(s,"".concat(v,"-picture-card-wrapper"))},b,O):o.createElement("span",{className:s},O,b)},n.state={fileList:t.fileList||t.defaultFileList||[],dragState:"drop"},Object(me.a)("fileList"in t||!("value"in t),"Upload","`value` is not validate prop, do you mean `fileList`?"),n}var t,n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ce(e,t)}(e,o.Component),t=e,i=[{key:"getDerivedStateFromProps",value:function(e){return"fileList"in e?{fileList:e.fileList||[]}:null}}],(n=[{key:"componentWillUnmount",value:function(){this.clearProgressTimer()}},{key:"clearProgressTimer",value:function(){clearInterval(this.progressTimer)}},{key:"autoUpdateProgress",value:function(e,t){var n,o=this,i=(n=.1,function(e){var t=e;return.98<=t||(t+=n,(n-=.01)<.001&&(n=.001)),t}),r=0;this.clearProgressTimer(),this.progressTimer=setInterval((function(){r=i(r),o.onProgress({percent:100*r},t)}),200)}},{key:"render",value:function(){return o.createElement(re.a,null,this.renderUpload)}}])&&_e(t.prototype,n),i&&_e(t,i),e}();Se.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:function(){return!0},showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0},Object(r.polyfill)(Se);var Oe=Se;function xe(e){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(){return(Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function ke(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ne(e,t){return!t||"object"!==xe(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Le(e,t){return(Le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pe=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ne(this,De(e).apply(this,arguments))}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Le(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){var e=this.props;return o.createElement(Oe,Ee({},e,{type:"drag",style:Ee(Ee({},e.style),{height:e.height})}))}}])&&ke(t.prototype,n),e}();Oe.Dragger=Pe,t.a=Oe},function(e,t,n){},function(e,t,n){var o=n(467),i=n(460);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||o(e,t,n)}},function(e,t,n){var o=n(509)(Object.getPrototypeOf,Object);e.exports=o},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var o=n(510),i=n(729),r=n(475);e.exports=function(e){return r(e)?o(e,!0):i(e)}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=u(n(0)),p=u(n(1)),f=n(476),g=d(n(12)),m=d(n(742)),v=d(n(743)),y=d(n(568)),b=d(n(746)),_=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=s(this,l(e).apply(this,arguments))).handleRowHover=function(e,n){t.props.store.setState({currentHoverKey:e?n:null})},t.renderRows=function(e,n){for(var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],i=t.context.table,r=i.columnManager,a=i.components,s=i.props,l=s.prefixCls,c=s.childrenColumnName,u=s.rowClassName,d=s.rowRef,p=s.onRowClick,f=s.onRowDoubleClick,g=s.onRowContextMenu,m=s.onRowMouseEnter,v=s.onRowMouseLeave,_=s.onRow,w=t.props,C=w.getRowKey,S=w.fixed,O=w.expander,x=w.isAnyColumnsFixed,E=[],k=function(i){var s=e[i],w=C(s,i),k="string"==typeof u?u:u(s,i,n),N={};r.isAnyColumnsFixed()&&(N.onHover=t.handleRowHover);var D;D="left"===S?r.leftLeafColumns():"right"===S?r.rightLeafColumns():t.getColumns(r.leafColumns());var L="".concat(l,"-row"),P=h.createElement(b.default,Object.assign({},O.props,{fixed:S,index:i,prefixCls:L,record:s,key:w,rowKey:w,onRowClick:p,needIndentSpaced:O.needIndentSpaced,onExpandedChange:O.handleExpandChange}),(function(e){return h.createElement(y.default,Object.assign({fixed:S,indent:n,className:k,record:s,index:i,prefixCls:L,childrenColumnName:c,columns:D,onRow:_,onRowDoubleClick:f,onRowContextMenu:g,onRowMouseEnter:m,onRowMouseLeave:v},N,{rowKey:w,ancestorKeys:o,ref:d(s,i,n),components:a,isAnyColumnsFixed:x},e))}));E.push(P),O.renderRows(t.renderRows,E,s,i,n,S,w,o)},N=0;N<e.length;N+=1)k(N);return E},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(e,h.Component),t=e,(n=[{key:"getColumns",value:function(e){var t=this.props,n=t.columns,o=void 0===n?[]:n,a=t.fixed,s=this.context.table.props.prefixCls;return(e||o).map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{className:e.fixed&&!a?g.default("".concat(s,"-fixed-columns-in-body"),e.className):e.className})}))}},{key:"render",value:function(){var e=this.context.table,t=e.components,n=e.props,o=n.prefixCls,i=n.scroll,r=n.data,a=n.getBodyWrapper,s=this.props,l=s.expander,c=s.tableClassName,u=s.hasHead,d=s.hasBody,p=s.fixed,f={};!p&&i.x&&(f.width=!0===i.x?"max-content":i.x);var g,y=d?t.table:"table",b=t.body.wrapper;d&&(g=h.createElement(b,{className:"".concat(o,"-tbody")},this.renderRows(r,0)),a&&(g=a(g)));var _=this.getColumns();return h.createElement(y,{className:c,style:f,key:"table"},h.createElement(m.default,{columns:_,fixed:p}),u&&h.createElement(v.default,{expander:l,columns:_,fixed:p}),g)}}])&&a(t.prototype,n),e}();_.contextTypes={table:p.any},t.default=f.connect()(_)},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=d(n(0)),f=h(n(13)),g=h(n(266)),m=n(476),v=n(25),y=h(n(12)),b=h(n(745)),_=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=l(this,c(e).apply(this,arguments))).state={},t.onTriggerEvent=function(e,n,o){var i=t.props,r=i.record,a=i.index;return function(){o&&o();for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];var l=i[0];n&&n(r,a,l),e&&e.apply(void 0,i)}},t.onMouseEnter=function(){var e=t.props;(0,e.onHover)(!0,e.rowKey)},t.onMouseLeave=function(){var e=t.props;(0,e.onHover)(!1,e.rowKey)},t}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(e,p.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e,t){return t.visible||!t.visible&&e.visible?{shouldRender:!0,visible:e.visible}:{visible:e.visible}}}],(n=[{key:"componentDidMount",value:function(){this.state.shouldRender&&this.saveRowRef()}},{key:"shouldComponentUpdate",value:function(e){return!(!this.props.visible&&!e.visible)}},{key:"componentDidUpdate",value:function(){this.state.shouldRender&&!this.rowRef&&this.saveRowRef()}},{key:"setExpandedRowHeight",value:function(){var e=this.props,t=e.store,n=e.rowKey,o=t.getState().expandedRowsHeight;o=r({},o,a({},n,this.rowRef.getBoundingClientRect().height)),t.setState({expandedRowsHeight:o})}},{key:"setRowHeight",value:function(){var e=this.props,t=e.store,n=e.rowKey,o=t.getState().fixedColumnsBodyRowsHeight,i=this.rowRef.getBoundingClientRect().height;t.setState({fixedColumnsBodyRowsHeight:r({},o,a({},n,i))})}},{key:"getStyle",value:function(){var e=this.props,t=e.height,n=e.visible;return t&&t!==this.style.height&&(this.style=r({},this.style,{height:t})),n||this.style.display||(this.style=r({},this.style,{display:"none"})),this.style}},{key:"saveRowRef",value:function(){this.rowRef=f.default.findDOMNode(this);var e=this.props,t=e.isAnyColumnsFixed,n=e.fixed,o=e.expandedRow,i=e.ancestorKeys;t&&this.rowRef&&(!n&&o&&this.setExpandedRowHeight(),!n&&0<=i.length&&this.setRowHeight())}},{key:"render",value:function(){if(!this.state.shouldRender)return null;var e=this.props,t=e.prefixCls,n=e.columns,o=e.record,i=e.rowKey,a=e.index,s=e.onRow,l=e.indent,c=e.indentSize,u=e.hovered,d=e.height,h=e.visible,f=e.components,m=e.hasExpandIcon,v=e.renderExpandIcon,_=e.renderExpandIconCell,w=e.onRowClick,C=e.onRowDoubleClick,S=e.onRowMouseEnter,O=e.onRowMouseLeave,x=e.onRowContextMenu,E=f.body.row,k=f.body.cell,N=this.props.className;u&&(N+=" ".concat(t,"-hover"));var D=[];_(D);for(var L=0;L<n.length;L+=1){var P=n[L];g.default(void 0===P.onCellClick,"column[onCellClick] is deprecated, please use column[onCell] instead."),D.push(p.createElement(b.default,{prefixCls:t,record:o,indentSize:c,indent:l,index:a,column:P,key:P.key||P.dataIndex,expandIcon:m(L)&&v(),component:k}))}var I=s(o,a)||{},T=I.className,M=I.style,j=function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],0<=t.indexOf(n)||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(I,["className","style"]),R={height:d};h||(R.display="none"),R=r({},R,{},M);var A=y.default(t,N,"".concat(t,"-level-").concat(l),T);return p.createElement(E,Object.assign({},j,{onClick:this.onTriggerEvent(j.onClick,w),onDoubleClick:this.onTriggerEvent(j.onDoubleClick,C),onMouseEnter:this.onTriggerEvent(j.onMouseEnter,S,this.onMouseEnter),onMouseLeave:this.onTriggerEvent(j.onMouseLeave,O,this.onMouseLeave),onContextMenu:this.onTriggerEvent(j.onContextMenu,x),className:A,style:R,"data-row-key":i}),D)}}])&&s(t.prototype,n),o&&s(t,o),e}();_.defaultProps={onRow:function(){},onHover:function(){},hasExpandIcon:function(){},renderExpandIcon:function(){},renderExpandIconCell:function(){}},v.polyfill(_),t.default=m.connect((function(e,t){var n,o,i,r,a,s,l=e.currentHoverKey,c=e.expandedRowKeys,u=void 0===c?[]:c,d=t.rowKey,h=t.ancestorKeys;return{visible:0===h.length||h.every((function(e){return u.includes(e)})),hovered:l===d,height:(o=t,i=(n=e).expandedRowsHeight,r=n.fixedColumnsBodyRowsHeight,a=o.fixed,s=o.rowKey,a?i[s]?i[s]:r[s]?r[s]:null:null)}}))(_)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return null}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(0)),c=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,r(e).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(e,l.Component),e}();(t.default=c).isTableColumnGroup=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(465),i=n(944);function r(){this.data=new Map}var a=new(r.prototype.add=function(e,t){i.a(o.j(e)),i.a(o.i(t)),i.a(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)},r.prototype.as=function(e){return this.data.get(e)||null},r)},function(e,t,n){"use strict";n.d(t,"i",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"h",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"k",(function(){return y})),n.d(t,"b",(function(){return _})),n.d(t,"m",(function(){return w})),n.d(t,"e",(function(){return C})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return O})),n.d(t,"l",(function(){return x})),n.d(t,"n",(function(){return k})),n.d(t,"o",(function(){return N})),n.d(t,"p",(function(){return D})),n.d(t,"r",(function(){return L})),n.d(t,"q",(function(){return P}));var o=n(445),i=n(490),r=n(461),a=n(451),s=Object(r.Tb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},o.a("lineHighlight","Background color for the highlight of line at the cursor position.")),l=Object(r.Tb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},o.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),c=Object(r.Tb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},o.a("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),u=Object(r.Tb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:r.b},o.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),d=Object(r.Tb)("editor.symbolHighlightBackground",{dark:r.t,light:r.t,hc:null},o.a("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),h=Object(r.Tb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:r.b},o.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),p=Object(r.Tb)("editorCursor.foreground",{dark:"#AEAFAD",light:i.a.black,hc:i.a.white},o.a("caret","Color of the editor cursor.")),f=Object(r.Tb)("editorCursor.background",null,o.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),g=Object(r.Tb)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},o.a("editorWhitespaces","Color of whitespace characters in the editor.")),m=Object(r.Tb)("editorIndentGuide.background",{dark:g,light:g,hc:g},o.a("editorIndentGuides","Color of the editor indentation guides.")),v=Object(r.Tb)("editorIndentGuide.activeBackground",{dark:g,light:g,hc:g},o.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),y=Object(r.Tb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:i.a.white},o.a("editorLineNumbers","Color of editor line numbers.")),b=Object(r.Tb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:r.b},o.a("editorActiveLineNumber","Color of editor active line number"),!1,o.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),_=Object(r.Tb)("editorLineNumber.activeForeground",{dark:b,light:b,hc:b},o.a("editorActiveLineNumber","Color of editor active line number")),w=Object(r.Tb)("editorRuler.foreground",{dark:"#5A5A5A",light:i.a.lightgrey,hc:i.a.white},o.a("editorRuler","Color of the editor rulers.")),C=Object(r.Tb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},o.a("editorCodeLensForeground","Foreground color of editor code lenses")),S=Object(r.Tb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},o.a("editorBracketMatchBackground","Background color behind matching brackets")),O=Object(r.Tb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:r.e},o.a("editorBracketMatchBorder","Color for matching brackets boxes")),x=Object(r.Tb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},o.a("editorOverviewRulerBorder","Color of the overview ruler border.")),E=Object(r.Tb)("editorGutter.background",{dark:r.o,light:r.o,hc:r.o},o.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),k=Object(r.Tb)("editorUnnecessaryCode.border",{dark:null,light:null,hc:i.a.fromHex("#fff").transparent(.8)},o.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),N=Object(r.Tb)("editorUnnecessaryCode.opacity",{dark:i.a.fromHex("#000a"),light:i.a.fromHex("#0007"),hc:null},o.a("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.")),D=Object(r.Tb)("editorOverviewRuler.errorForeground",{dark:new i.a(new i.c(255,18,18,.7)),light:new i.a(new i.c(255,18,18,.7)),hc:new i.a(new i.c(255,50,50,1))},o.a("overviewRuleError","Overview ruler marker color for errors.")),L=Object(r.Tb)("editorOverviewRuler.warningForeground",{dark:r.P,light:r.P,hc:r.O},o.a("overviewRuleWarning","Overview ruler marker color for warnings.")),P=Object(r.Tb)("editorOverviewRuler.infoForeground",{dark:r.H,light:r.H,hc:r.G},o.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(a.e)((function(e,t){var n=e.getColor(r.o);n&&t.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+n+"; }");var o=e.getColor(r.x);o&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+o+"; }");var i=e.getColor(E);i&&t.addRule(".monaco-editor .margin { background-color: "+i+"; }");var a=e.getColor(c);a&&t.addRule(".monaco-editor .rangeHighlight { background-color: "+a+"; }");var s=e.getColor(u);s&&t.addRule(".monaco-editor .rangeHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+s+"; }");var l=e.getColor(d);l&&t.addRule(".monaco-editor .symbolHighlight { background-color: "+l+"; }");var p=e.getColor(h);p&&t.addRule(".monaco-editor .symbolHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+p+"; }");var f=e.getColor(g);f&&t.addRule(".vs-whitespace { color: "+f+" !important; }")}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return f}));var o=n(571),i=n(448),r=n(789),a=Object(i.c)("configurationService");function s(e,t){var n=Object.create(null);for(var o in e)l(n,o,e[o],t);return n}function l(e,t,n,o){for(var i=t.split("."),r=i.pop(),a=e,s=0;s<i.length;s++){var l=i[s],c=a[l];switch(typeof c){case"undefined":c=a[l]=Object.create(null);break;case"object":break;default:return void o("Ignoring "+t+" as "+i.slice(0,s+1).join(".")+" is "+JSON.stringify(c))}a=c}"object"==typeof a?a[r]=n:o("Ignoring "+t+" as "+i.join(".")+" is "+JSON.stringify(a))}function c(e,t){!function e(t,n){var o=n.shift();if(0!==n.length){if(-1!==Object.keys(t).indexOf(o)){var i=t[o];"object"!=typeof i||Array.isArray(i)||(e(i,n),0===Object.keys(i).length&&delete t[o])}}else delete t[o]}(e,t.split("."))}function u(e,t,n){var o=function(e,t){for(var n=e,o=0,i=t;o<i.length;o++){var r=i[o];if("object"!=typeof n||null===n)return;n=n[r]}return n}(e,t.split("."));return void 0===o?n:o}function d(){var e=o.a.as(r.a.Configuration).getConfigurationProperties();return Object.keys(e)}function h(){var e=Object.create(null),t=o.a.as(r.a.Configuration).getConfigurationProperties();for(var n in t)l(e,n,t[n].default,(function(e){}));return e}function p(e){return e.substring(1,e.length-1)}function f(e,t,n){var o=e.inspect(t),i=e.inspect(n);return void 0!==o.userValue||void 0!==o.workspaceValue||void 0!==o.workspaceFolderValue?o.value:void 0!==i.userValue||void 0!==i.workspaceValue||void 0!==i.workspaceFolderValue?i.value:o.defaultValue}},,function(e,t,n){"use strict";var o=n(442),i=n(439),r=n(444),a=n(882),s=n(825),l=n(949),c=(u.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},u.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},u.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;var o=t.findTokenIndexAtOffset(n-2),i=t.getStandardTokenType(o);return e.isOK(i)},u.prototype.getSurroundingPairs=function(){return this._surroundingPairs},u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t",u);function u(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((function(e){return new s.b(e)})):e.brackets?this._autoClosingPairs=e.brackets.map((function(e){return new s.b({open:e[0],close:e[1]})})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){var t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new s.b({open:t.open,close:t.close||""}))}this._autoCloseBefore="string"==typeof e.autoCloseBefore?e.autoCloseBefore:u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}var d=n(950),h=(p.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets;t<n.length;t++)for(var o=0,i=n[t].close;o<i.length;o++){var r=i[o],a=r.charAt(r.length-1);e.push(a)}return e.filter((function(e,t,n){return n.indexOf(e)===t}))},p.prototype.onElectricCharacter=function(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var o=t.findTokenIndexAtOffset(n-1);if(Object(l.b)(t.getStandardTokenType(o)))return null;var i=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,n-1)+e,a=d.a.findPrevBracketInRange(i,1,r,0,r.length);if(!a)return null;var s=r.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[s])return null;var c=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:s}:null},p);function p(e){this._richEditBrackets=e}var f=(g.prototype.shouldIncrease=function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))},g.prototype.shouldDecrease=function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))},g.prototype.shouldIndentNextLine=function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))},g.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))},g.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},g);function g(e){this._indentationRules=e}var m=n(446),v=(y.prototype.onEnter=function(e,t,n,o){if(3<=e)for(var i=0,r=this._regExpRules.length;i<r;i++){var a=this._regExpRules[i];if([{reg:a.beforeText,text:n},{reg:a.afterText,text:o},{reg:a.oneLineAboveText,text:t}].every((function(e){return!e.reg||e.reg.test(e.text)})))return a.action}if(2<=e&&0<n.length&&0<o.length)for(i=0,r=this._brackets.length;i<r;i++)if((l=this._brackets[i]).openRegExp.test(n)&&l.closeRegExp.test(o))return{indentAction:s.a.IndentOutdent};if(2<=e&&0<n.length)for(i=0,r=this._brackets.length;i<r;i++){var l;if((l=this._brackets[i]).openRegExp.test(n))return{indentAction:s.a.Indent}}return null},y._createOpenBracketRegExp=function(e){var t=r.p(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),y._safeRegExp(t+="\\s*$")},y._createCloseBracketRegExp=function(e){var t=r.p(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),y._safeRegExp(t="^\\s*"+t)},y._safeRegExp=function(e){try{return new RegExp(e)}catch(e){return Object(m.e)(e),null}},y);function y(e){var t=this;(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((function(e){var n=y._createOpenBracketRegExp(e[0]),o=y._createCloseBracketRegExp(e[1]);n&&o&&t._brackets.push({open:e[0],openRegExp:n,close:e[1],closeRegExp:o})})),this._regExpRules=e.onEnterRules||[]}n.d(t,"a",(function(){return S}));var b=(Object.defineProperty(_.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new d.b(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new h(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),_.prototype.onEnter=function(e,t,n,o){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,o):null},_._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}},_._handleComments=function(e){var t=e.comments;if(!t)return null;var n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){var o=t.blockComment,i=o[0],r=o[1];n.blockCommentStartToken=i,n.blockCommentEndToken=r}return n},_);function _(e,t,n){this._languageIdentifier=e,this._brackets=null;var o=this._electricCharacter=null;t&&(o=t._conf),this._conf=_._mergeConf(o,n),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new v(this._conf):null,this.comments=_._handleComments(this._conf),this.characterPair=new c(this._conf),this.wordDefinition=this._conf.wordPattern||a.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new f(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}var w=function(e){this.languageIdentifier=e};function C(){this._entries=new Map,this._onDidChange=new o.a,this.onDidChange=this._onDidChange.event}var S=new(C.prototype.register=function(e,t){var n=this,o=this._getRichEditSupport(e.id),r=new b(e,o,t);return this._entries.set(e.id,r),this._onDidChange.fire(new w(e)),Object(i.h)((function(){n._entries.get(e.id)===r&&(n._entries.set(e.id,o),n._onDidChange.fire(new w(e)))}))},C.prototype._getRichEditSupport=function(e){return this._entries.get(e)},C.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null},C.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},C.prototype.onElectricCharacter=function(e,t,n){var o=Object(l.a)(t,n-1),i=this._getElectricCharacterSupport(o.languageId);return i?i.onElectricCharacter(e,o,n-o.firstCharOffset):null},C.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t&&t.comments||null},C.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null},C.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},C.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},C.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},C.prototype.shouldAutoClosePair=function(e,t,n){var o=Object(l.a)(t,n-1);return c.shouldAutoClosePair(e,o,n-o.firstCharOffset)},C.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return t?Object(a.c)(t.wordDefinition||null):Object(a.c)(null)},C.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},C.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null},C.prototype.getPrecedingValidLine=function(e,t,n){var o=e.getLanguageIdAtPosition(t,0);if(1<t){var i=void 0,r=-1;for(i=t-1;1<=i;i--){if(e.getLanguageIdAtPosition(i,0)!==o)return r;var a=e.getLineContent(i);if(!n.shouldIgnore(a)&&!/^\s+$/.test(a)&&""!==a)return i;r=i}}return-1},C.prototype.getInheritIndentForLine=function(e,t,n,o){if(void 0===o&&(o=!0),e<4)return null;var i=this.getIndentRulesSupport(t.getLanguageIdentifier().id);if(!i)return null;if(n<=1)return{indentation:"",action:null};var a=this.getPrecedingValidLine(t,n,i);if(a<0)return null;if(a<1)return{indentation:"",action:null};var l=t.getLineContent(a);if(i.shouldIncrease(l)||i.shouldIndentNextLine(l))return{indentation:r.t(l),action:s.a.Indent,line:a};if(i.shouldDecrease(l))return{indentation:r.t(l),action:null,line:a};if(1===a)return{indentation:r.t(t.getLineContent(a)),action:null,line:a};var c=a-1,u=i.getIndentMetadata(t.getLineContent(c));if(!(3&u)&&4&u){for(var d=0,h=c-1;0<h;h--)if(!i.shouldIndentNextLine(t.getLineContent(h))){d=h;break}return{indentation:r.t(t.getLineContent(d+1)),action:null,line:d+1}}if(o)return{indentation:r.t(t.getLineContent(a)),action:null,line:a};for(h=a;0<h;h--){var p=t.getLineContent(h);if(i.shouldIncrease(p))return{indentation:r.t(p),action:s.a.Indent,line:h};if(i.shouldIndentNextLine(p)){d=0;for(var f=h-1;0<f;f--)if(!i.shouldIndentNextLine(t.getLineContent(h))){d=f;break}return{indentation:r.t(t.getLineContent(d+1)),action:null,line:d+1}}if(i.shouldDecrease(p))return{indentation:r.t(p),action:null,line:h}}return{indentation:r.t(t.getLineContent(1)),action:null,line:1}},C.prototype.getGoodIndentForLine=function(e,t,n,o,i){if(e<4)return null;var a=this._getRichEditSupport(n);if(!a)return null;var l=this.getIndentRulesSupport(n);if(!l)return null;var c=this.getInheritIndentForLine(e,t,o),u=t.getLineContent(o);if(c){var d=c.line;if(void 0!==d){var h=a.onEnter(e,"",t.getLineContent(d),"");if(h){var p=r.t(t.getLineContent(d));return h.removeText&&(p=p.substring(0,p.length-h.removeText)),h.indentAction===s.a.Indent||h.indentAction===s.a.IndentOutdent?p=i.shiftIndent(p):h.indentAction===s.a.Outdent&&(p=i.unshiftIndent(p)),l.shouldDecrease(u)&&(p=i.unshiftIndent(p)),h.appendText&&(p+=h.appendText),r.t(p)}}return l.shouldDecrease(u)?c.action===s.a.Indent?c.indentation:i.unshiftIndent(c.indentation):c.action===s.a.Indent?i.shiftIndent(c.indentation):c.indentation}return null},C.prototype.getIndentForEnter=function(e,t,n,o){if(e<4)return null;t.forceTokenization(n.startLineNumber);var i,a,c=t.getLineTokens(n.startLineNumber),u=Object(l.a)(c,n.startColumn-1),d=u.getLineContent(),h=!1;i=0<u.firstCharOffset&&c.getLanguageId(0)!==u.languageId?(h=!0,d.substr(0,n.startColumn-1-u.firstCharOffset)):c.getLineContent().substring(0,n.startColumn-1),a=n.isEmpty()?d.substr(n.startColumn-1-u.firstCharOffset):this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-u.firstCharOffset);var p=this.getIndentRulesSupport(u.languageId);if(!p)return null;var f=i,g=r.t(i),m={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?f:t.getLineContent(e)}},v=r.t(c.getLineContent()),y=this.getInheritIndentForLine(e,m,n.startLineNumber+1);if(!y){var b=h?v:g;return{beforeEnter:b,afterEnter:b}}var _=h?v:y.indentation;return y.action===s.a.Indent&&(_=o.shiftIndent(_)),p.shouldDecrease(a)&&(_=o.unshiftIndent(_)),{beforeEnter:h?v:g,afterEnter:_}},C.prototype.getIndentActionForType=function(e,t,n,o,i){if(e<4)return null;var r=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),a=this.getIndentRulesSupport(r.languageId);if(!a)return null;var l,c=r.getLineContent(),u=c.substr(0,n.startColumn-1-r.firstCharOffset);if(l=n.isEmpty()?c.substr(n.startColumn-1-r.firstCharOffset):this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-r.firstCharOffset),a.shouldDecrease(u+l)||!a.shouldDecrease(u+o+l))return null;var d=this.getInheritIndentForLine(e,t,n.startLineNumber,!1);if(!d)return null;var h=d.indentation;return d.action!==s.a.Indent&&(h=i.unshiftIndent(h)),h},C.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))},C.prototype.getEnterAction=function(e,t,n){var o=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),i=this._getRichEditSupport(o.languageId);if(!i)return null;var r,a=o.getLineContent(),l=a.substr(0,n.startColumn-1-o.firstCharOffset);r=n.isEmpty()?a.substr(n.startColumn-1-o.firstCharOffset):this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-o.firstCharOffset);var c="";if(1<n.startLineNumber&&0===o.firstCharOffset){var u=this.getScopedLineTokens(t,n.startLineNumber-1);u.languageId===o.languageId&&(c=u.getLineContent())}var d=i.onEnter(e,c,l,r);if(!d)return null;var h=d.indentAction,p=d.appendText,f=d.removeText||0;p=p||(h===s.a.Indent||h===s.a.IndentOutdent?"\t":"");var g=this.getIndentationAtPosition(t,n.startLineNumber,n.startColumn);return f&&(g=g.substring(0,g.length-f)),{indentAction:h,appendText:p,removeText:f,indentation:g}},C.prototype.getIndentationAtPosition=function(e,t,n){var o=e.getLineContent(t),i=r.t(o);return i.length>n-1&&(i=i.substring(0,n-1)),i},C.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var o=e.getLineTokens(t),i=void 0===n?e.getLineMaxColumn(t)-1:n-1;return Object(l.a)(o,i)},C.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},C)},,function(e,t,n){"use strict";n(46),n(762)},function(e,t,n){"use strict";t.__esModule=!0;var o,i=(o=n(580))&&o.__esModule?o:{default:o};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,i.default)(e)}},function(e,t,n){"use strict";var o,i=n(0),r=n.n(i),a=n(12),s=n.n(a),l=n(54),c=n.n(l),u=n(16),d=n.n(u),h=n(22),p=n.n(h),f=n(19),g=n.n(f),m=n(24),v=n.n(m),y=n(1),b=n.n(y),_=n(23),w=n(37),C=n.n(w),S=(o=r.a.Component,v()(O,o),C()(O,[{key:"componentDidUpdate",value:function(){this.props.disabled&&this.state.active&&this.setState({active:!1})}},{key:"triggerEvent",value:function(e,t,n){var o="on"+e,i=this.props.children;i.props[o]&&i.props[o](n),t!==this.state.active&&this.setState({active:t})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.disabled,o=e.activeClassName,i=e.activeStyle,a=n?void 0:{onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchCancel,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseLeave},l=r.a.Children.only(t);if(n||!this.state.active)return r.a.cloneElement(l,a);var c=l.props,u=c.style,h=c.className;return!1!==i&&(i&&(u=d()({},u,i)),h=s()(h,o)),r.a.cloneElement(l,d()({className:h,style:u},a))}}]),O);function O(){p()(this,O);var e=g()(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments));return e.state={active:!1},e.onTouchStart=function(t){e.triggerEvent("TouchStart",!0,t)},e.onTouchMove=function(t){e.triggerEvent("TouchMove",!1,t)},e.onTouchEnd=function(t){e.triggerEvent("TouchEnd",!1,t)},e.onTouchCancel=function(t){e.triggerEvent("TouchCancel",!1,t)},e.onMouseDown=function(t){e.triggerEvent("MouseDown",!0,t)},e.onMouseUp=function(t){e.triggerEvent("MouseUp",!1,t)},e.onMouseLeave=function(t){e.triggerEvent("MouseLeave",!1,t)},e}var x=S;S.defaultProps={disabled:!1};var E,k=(E=i.Component,v()(N,E),N.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.disabled,o=c()(e,["prefixCls","disabled"]);return r.a.createElement(x,{disabled:n,activeClassName:t+"-handler-active"},r.a.createElement("span",o))},N);function N(){return p()(this,N),g()(this,E.apply(this,arguments))}k.propTypes={prefixCls:b.a.string,disabled:b.a.bool,onTouchStart:b.a.func,onTouchEnd:b.a.func,onMouseDown:b.a.func,onMouseUp:b.a.func,onMouseLeave:b.a.func};var D=k;function L(){}function P(e){e.preventDefault()}function I(e){return null!=e}function T(e,t){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}var M,j=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,R=(M=r.a.Component,v()(A,M),A.prototype.componentDidMount=function(){this.componentDidUpdate()},A.prototype.componentDidUpdate=function(e){var t=this.props,n=t.value,o=t.onChange,i=t.max,r=t.min,a=this.state.focused;if(e){if(!T(e.value,n)||!T(e.max,i)||!T(e.min,r)){var s,l=a?n:this.getValidValue(n);s=this.pressingUpOrDown?l:this.inputting?this.rawInput:this.toPrecisionAsStep(l),this.setState({value:l,inputValue:s})}var c="value"in this.props?n:this.state.value;"max"in this.props&&e.max!==i&&"number"==typeof c&&i<c&&o&&o(i),"min"in this.props&&e.min!==r&&"number"==typeof c&&c<r&&o&&o(r)}try{if(void 0!==this.cursorStart&&this.state.focused)if(this.partRestoreByAfter(this.cursorAfter)||this.state.value===this.props.value){if(this.currentValue===this.input.value)switch(this.lastKeyCode){case _.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case _.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{var u=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===_.a.BACKSPACE?u=this.cursorStart-1:this.lastKeyCode===_.a.DELETE&&(u=this.cursorStart):u=this.input.value.length,this.fixCaret(u,u)}}catch(e){}this.lastKeyCode=null,this.pressingUpOrDown&&(this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus(),this.pressingUpOrDown=!1)},A.prototype.componentWillUnmount=function(){this.stop()},A.prototype.getCurrentValidValue=function(e){var t=e;return t=""===t?"":this.isNotCompleteNumber(parseFloat(t,10))?this.state.value:this.getValidValue(t),this.toNumber(t)},A.prototype.getRatio=function(e){var t=1;return e.metaKey||e.ctrlKey?t=.1:e.shiftKey&&(t=10),t},A.prototype.getValueFromEvent=function(e){var t=e.target.value.trim().replace(/\u3002/g,".");return I(this.props.decimalSeparator)&&(t=t.replace(this.props.decimalSeparator,".")),t},A.prototype.getValidValue=function(e,t,n){var o=1<arguments.length&&void 0!==t?t:this.props.min,i=2<arguments.length&&void 0!==n?n:this.props.max,r=parseFloat(e,10);return isNaN(r)?e:(r<o&&(r=o),i<r&&(r=i),r)},A.prototype.setValue=function(e,t){var n=this.props.precision,o=this.isNotCompleteNumber(parseFloat(e,10))?null:parseFloat(e,10),i=this.state,r=i.value,a=void 0===r?null:r,s=i.inputValue,l=void 0===s?null:s,c="number"==typeof o?o.toFixed(n):""+o,u=o!==a||c!==""+l;return"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},t):this.setState({value:o,inputValue:this.toPrecisionAsStep(e)},t),u&&this.props.onChange(o),o},A.prototype.getPrecision=function(e){if(I(this.props.precision))return this.props.precision;var t=e.toString();if(0<=t.indexOf("e-"))return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return 0<=t.indexOf(".")&&(n=t.length-t.indexOf(".")-1),n},A.prototype.getMaxPrecision=function(e,t){var n=1<arguments.length&&void 0!==t?t:1,o=this.props,i=o.precision,r=o.step;if(I(i))return i;var a=this.getPrecision(n),s=this.getPrecision(r),l=this.getPrecision(e);return e?Math.max(l,a+s):a+s},A.prototype.getPrecisionFactor=function(e,t){var n=1<arguments.length&&void 0!==t?t:1,o=this.getMaxPrecision(e,n);return Math.pow(10,o)},A.prototype.fixCaret=function(e,t){if(void 0!==e&&void 0!==t&&this.input&&this.input.value)try{var n=this.input.selectionStart,o=this.input.selectionEnd;e===n&&t===o||this.input.setSelectionRange(e,t)}catch(e){}},A.prototype.focus=function(){this.input.focus(),this.recordCursorPosition()},A.prototype.blur=function(){this.input.blur()},A.prototype.formatWrapper=function(e){return this.props.formatter?this.props.formatter(e):e},A.prototype.toPrecisionAsStep=function(e){if(this.isNotCompleteNumber(e)||""===e)return e;var t=Math.abs(this.getMaxPrecision(e));return isNaN(t)?e.toString():Number(e).toFixed(t)},A.prototype.isNotCompleteNumber=function(e){return isNaN(e)||""===e||null===e||e&&e.toString().indexOf(".")===e.toString().length-1},A.prototype.toNumber=function(e){var t=this.props.precision,n=this.state.focused,o=e&&16<e.length&&n;return this.isNotCompleteNumber(e)||o?e:I(t)?Math.round(e*Math.pow(10,t))/Math.pow(10,t):Number(e)},A.prototype.upStep=function(e,t){var n=this.props.step,o=this.getPrecisionFactor(e,t),i=Math.abs(this.getMaxPrecision(e,t)),r=((o*e+o*n*t)/o).toFixed(i);return this.toNumber(r)},A.prototype.downStep=function(e,t){var n=this.props.step,o=this.getPrecisionFactor(e,t),i=Math.abs(this.getMaxPrecision(e,t)),r=((o*e-o*n*t)/o).toFixed(i);return this.toNumber(r)},A.prototype.step=function(e,t,n,o){var i=this,r=2<arguments.length&&void 0!==n?n:1,a=o;this.stop(),t&&(t.persist(),t.preventDefault());var s=this.props;if(!s.disabled){var l=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(l)){var c=this[e+"Step"](l,r),u=c>s.max||c<s.min;c>s.max?c=s.max:c<s.min&&(c=s.min),this.setValue(c),this.setState({focused:!0}),u||(this.autoStepTimer=setTimeout((function(){i[e](t,r,!0)}),a?200:600))}}},A.prototype.render=function(){var e,t=d()({},this.props),n=t.prefixCls,o=t.disabled,i=t.readOnly,a=t.useTouch,l=t.autoComplete,u=t.upHandler,h=t.downHandler,p=(c()(t,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler"]),s()(((e={})[n]=!0,e[t.className]=!!t.className,e[n+"-disabled"]=o,e[n+"-focused"]=this.state.focused,e))),f="",g="",m=this.state.value;if(m||0===m)if(isNaN(m))f=n+"-handler-up-disabled",g=n+"-handler-down-disabled";else{var v=Number(m);v>=t.max&&(f=n+"-handler-up-disabled"),v<=t.min&&(g=n+"-handler-down-disabled")}var y={};for(var b in t)!t.hasOwnProperty(b)||"data-"!==b.substr(0,5)&&"aria-"!==b.substr(0,5)&&"role"!==b||(y[b]=t[b]);var _,w=!t.readOnly&&!t.disabled,C=this.getInputDisplayValue(),S=void 0;_=a?(S={onTouchStart:w&&!f?this.up:L,onTouchEnd:this.stop},{onTouchStart:w&&!g?this.down:L,onTouchEnd:this.stop}):(S={onMouseDown:w&&!f?this.up:L,onMouseUp:this.stop,onMouseLeave:this.stop},{onMouseDown:w&&!g?this.down:L,onMouseUp:this.stop,onMouseLeave:this.stop});var O=!!f||o||i,x=!!g||o||i;return r.a.createElement("div",{className:p,style:t.style,title:t.title,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseOver:t.onMouseOver,onMouseOut:t.onMouseOut},r.a.createElement("div",{className:n+"-handler-wrap"},r.a.createElement(D,d()({ref:this.saveUp,disabled:O,prefixCls:n,unselectable:"unselectable"},S,{role:"button","aria-label":"Increase Value","aria-disabled":!!O,className:n+"-handler "+n+"-handler-up "+f}),u||r.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:P})),r.a.createElement(D,d()({ref:this.saveDown,disabled:x,prefixCls:n,unselectable:"unselectable"},_,{role:"button","aria-label":"Decrease Value","aria-disabled":!!x,className:n+"-handler "+n+"-handler-down "+g}),h||r.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:P}))),r.a.createElement("div",{className:n+"-input-wrap"},r.a.createElement("input",d()({role:"spinbutton","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":m,required:t.required,type:t.type,placeholder:t.placeholder,onClick:t.onClick,onMouseUp:this.onMouseUp,className:n+"-input",tabIndex:t.tabIndex,autoComplete:l,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:w?this.onKeyDown:L,onKeyUp:w?this.onKeyUp:L,autoFocus:t.autoFocus,maxLength:t.maxLength,readOnly:t.readOnly,disabled:t.disabled,max:t.max,min:t.min,step:t.step,name:t.name,title:t.title,id:t.id,onChange:this.onChange,ref:this.saveInput,value:C,pattern:t.pattern},y))))},A);function A(e){p()(this,A);var t=g()(this,M.call(this,e));F.call(t);var n;n="value"in e?e.value:e.defaultValue,t.state={focused:e.autoFocus};var o=t.getValidValue(t.toNumber(n));return t.state=d()({},t.state,{inputValue:t.toPrecisionAsStep(o),value:o}),t}R.propTypes={value:b.a.oneOfType([b.a.number,b.a.string]),defaultValue:b.a.oneOfType([b.a.number,b.a.string]),focusOnUpDown:b.a.bool,autoFocus:b.a.bool,onChange:b.a.func,onPressEnter:b.a.func,onKeyDown:b.a.func,onKeyUp:b.a.func,prefixCls:b.a.string,tabIndex:b.a.oneOfType([b.a.string,b.a.number]),disabled:b.a.bool,onFocus:b.a.func,onBlur:b.a.func,readOnly:b.a.bool,max:b.a.number,min:b.a.number,step:b.a.oneOfType([b.a.number,b.a.string]),upHandler:b.a.node,downHandler:b.a.node,useTouch:b.a.bool,formatter:b.a.func,parser:b.a.func,onMouseEnter:b.a.func,onMouseLeave:b.a.func,onMouseOver:b.a.func,onMouseOut:b.a.func,onMouseUp:b.a.func,precision:b.a.number,required:b.a.bool,pattern:b.a.string,decimalSeparator:b.a.string},R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",min:-j,step:1,style:{},onChange:L,onKeyDown:L,onPressEnter:L,onFocus:L,onBlur:L,parser:function(e){return e.replace(/[^\w\.-]+/g,"")},required:!1,autoComplete:"off"};var F=function(){var t=this;this.onKeyDown=function(e){for(var n=arguments.length,o=Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var r=t.props,a=r.onKeyDown,s=r.onPressEnter;if(e.keyCode===_.a.UP){var l=t.getRatio(e);t.up(e,l),t.stop()}else if(e.keyCode===_.a.DOWN){var c=t.getRatio(e);t.down(e,c),t.stop()}else e.keyCode===_.a.ENTER&&s&&s(e);t.recordCursorPosition(),t.lastKeyCode=e.keyCode,a&&a.apply(void 0,[e].concat(o))},this.onKeyUp=function(e){for(var n=arguments.length,o=Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var r=t.props.onKeyUp;t.stop(),t.recordCursorPosition(),r&&r.apply(void 0,[e].concat(o))},this.onChange=function(e){var n=t.props.onChange;t.state.focused&&(t.inputting=!0),t.rawInput=t.props.parser(t.getValueFromEvent(e)),t.setState({inputValue:t.rawInput}),n(t.toNumber(t.rawInput))},this.onMouseUp=function(){var e=t.props.onMouseUp;t.recordCursorPosition(),e&&e.apply(void 0,arguments)},this.onFocus=function(){var e;t.setState({focused:!0}),(e=t.props).onFocus.apply(e,arguments)},this.onBlur=function(){var e=t.props.onBlur;t.inputting=!1,t.setState({focused:!1});var n=t.getCurrentValidValue(t.state.inputValue),o=t.setValue(n);if(e){var i=t.input.value,r=t.getInputDisplayValue({focus:!1,value:o});t.input.value=r,e.apply(void 0,arguments),t.input.value=i}},this.getInputDisplayValue=function(e){var n=e||t.state,o=n.focused,i=n.inputValue,r=n.value,a=void 0;null==(a=o?i:t.toPrecisionAsStep(r))&&(a="");var s=t.formatWrapper(a);return I(t.props.decimalSeparator)&&(s=s.toString().replace(".",t.props.decimalSeparator)),s},this.recordCursorPosition=function(){try{t.cursorStart=t.input.selectionStart,t.cursorEnd=t.input.selectionEnd,t.currentValue=t.input.value,t.cursorBefore=t.input.value.substring(0,t.cursorStart),t.cursorAfter=t.input.value.substring(t.cursorEnd)}catch(e){}},this.restoreByAfter=function(e){if(void 0===e)return!1;var n=t.input.value,o=n.lastIndexOf(e);if(-1===o)return!1;var i=t.cursorBefore.length;return t.lastKeyCode===_.a.DELETE&&t.cursorBefore.charAt(i-1)===e[0]?(t.fixCaret(i,i),!0):o+e.length===n.length&&(t.fixCaret(o,o),!0)},this.partRestoreByAfter=function(e){return void 0!==e&&Array.prototype.some.call(e,(function(n,o){var i=e.substring(o);return t.restoreByAfter(i)}))},this.stop=function(){t.autoStepTimer&&clearTimeout(t.autoStepTimer)},this.down=function(e,n,o){t.pressingUpOrDown=!0,t.step("down",e,n,o)},this.up=function(e,n,o){t.pressingUpOrDown=!0,t.step("up",e,n,o)},this.saveUp=function(e){t.upHandler=e},this.saveDown=function(e){t.downHandler=e},this.saveInput=function(e){t.input=e}},V=R,W=n(18),B=n(77);function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function q(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return $}));var Z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},$=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=q(this,G(e).apply(this,arguments))).saveInputNumber=function(e){t.inputNumberRef=e},t.renderInputNumber=function(e){var n,o=e.getPrefixCls,r=t.props,a=r.className,l=r.size,c=r.prefixCls,u=Z(r,["className","size","prefixCls"]),d=o("input-number",c),h=s()((K(n={},"".concat(d,"-lg"),"large"===l),K(n,"".concat(d,"-sm"),"small"===l),n),a),p=i.createElement(W.a,{type:"up",className:"".concat(d,"-handler-up-inner")}),f=i.createElement(W.a,{type:"down",className:"".concat(d,"-handler-down-inner")});return i.createElement(V,z({ref:t.saveInputNumber,className:h,upHandler:p,downHandler:f,prefixCls:d},u))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(e,i.Component),t=e,(n=[{key:"focus",value:function(){this.inputNumberRef.focus()}},{key:"blur",value:function(){this.inputNumberRef.blur()}},{key:"render",value:function(){return i.createElement(B.a,null,this.renderInputNumber)}}])&&U(t.prototype,n),e}();$.defaultProps={step:1}},function(e,t,n){e.exports={default:n(581),__esModule:!0}},function(e,t,n){n(271),n(582),e.exports=n(62).Array.from},function(e,t,n){"use strict";var o=n(177),i=n(85),r=n(137),a=n(583),s=n(584),l=n(270),c=n(585),u=n(586);i(i.S+i.F*!n(588)((function(e){Array.from(e)})),"Array",{from:function(e,t,n){var i,d,h,p,f=r(e),g="function"==typeof this?this:Array,m=arguments.length,v=1<m?t:void 0,y=void 0!==v,b=0,_=u(f);if(y&&(v=o(v,2<m?n:void 0,2)),null==_||g==Array&&s(_))for(d=new g(i=l(f.length));b<i;b++)c(d,b,y?v(f[b],b):f[b]);else for(p=_.call(f),d=new g;!(h=p.next()).done;b++)c(d,b,y?a(p,v,[h.value,b],!0):h.value);return d.length=b,d}})},function(e,t,n){var o=n(96);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&o(r.call(e)),t}}},function(e,t,n){var o=n(135),i=n(83)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||r[i]===e)}},function(e,t,n){"use strict";var o=n(76),i=n(108);e.exports=function(e,t,n){t in e?o.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var o=n(587),i=n(83)("iterator"),r=n(135);e.exports=n(62).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||r[o(e)]}},function(e,t,n){var o=n(178),i=n(83)("toStringTag"),r="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:r?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var o=n(83)("iterator"),i=!1;try{var r=[7][o]();r.return=function(){i=!0},Array.from(r,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r=[7],a=r[o]();a.next=function(){return{done:n=!0}},r[o]=function(){return a},e(r)}catch(e){}return n}},function(e,t,n){"use strict";n(46),n(796)},function(e,t,n){var o=n(631);e.exports=function(e){var t=o(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var o=n(518),i={getForm:function(){return{getFieldsValue:this.fieldsStore.getFieldsValue,getFieldValue:this.fieldsStore.getFieldValue,getFieldInstance:this.getFieldInstance,setFieldsValue:this.setFieldsValue,setFields:this.setFields,setFieldsInitialValue:this.fieldsStore.setFieldsInitialValue,getFieldDecorator:this.getFieldDecorator,getFieldProps:this.getFieldProps,getFieldsError:this.fieldsStore.getFieldsError,getFieldError:this.fieldsStore.getFieldError,isFieldValidating:this.fieldsStore.isFieldValidating,isFieldsValidating:this.fieldsStore.isFieldsValidating,isFieldsTouched:this.fieldsStore.isFieldsTouched,isFieldTouched:this.fieldsStore.isFieldTouched,isSubmitting:this.isSubmitting,submit:this.submit,validateFields:this.validateFields,resetFields:this.resetFields}}};t.a=function(e){return Object(o.a)(e,[i])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(113),i=Object.prototype.hasOwnProperty,r=Array.prototype.splice,a=Object.prototype.toString;function s(e){return a.call(e).slice(8,-1)}var l=Object.assign||function(e,t){return c(t).forEach((function(n){i.call(t,n)&&(e[n]=t[n])})),e},c="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function u(e){return Array.isArray(e)?l(e.constructor(e.length),e):"Map"===s(e)?new Map(e):"Set"===s(e)?new Set(e):e&&"object"==typeof e?l(Object.create(Object.getPrototypeOf(e)),e):e}var d=(Object.defineProperty(h.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),h.prototype.extend=function(e,t){this.commands[e]=t},h.prototype.update=function(e,t){var n=this,r="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(r)||o(!Array.isArray(r),"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."),o("object"==typeof r&&null!==r,"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: %s.",Object.keys(this.commands).join(", "));var a=e;return c(r).forEach((function(t){if(i.call(n.commands,t)){var o=e===a;a=n.commands[t](r[t],a,r,e),o&&n.isEquals(a,e)&&(a=e)}else{var l="Map"===s(e)?n.update(e.get(t),r[t]):n.update(e[t],r[t]),c="Map"===s(a)?a.get(t):a[t];n.isEquals(l,c)&&(void 0!==l||i.call(e,t))||(a===e&&(a=u(e)),"Map"===s(a)?a.set(t,l):a[t]=l)}})),a},h);function h(){this.commands=l({},p),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new h).update}}t.Context=d;var p={$push:function(e,t,n){return g(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return g(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,i){var a,s;return a=t,s=n,o(Array.isArray(a),"Expected $splice target to be an array; got %s",a),v(s.$splice),e.forEach((function(e){v(e),t===i&&e.length&&(t=u(i)),r.apply(t,e)})),t},$set:function(e,t,n){var i;return i=n,o(1===Object.keys(i).length,"Cannot have more than one key in an object with $set"),e},$toggle:function(e,t){m(e,"$toggle");var n=e.length?u(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,o){return m(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===o&&(t=u(o)),delete t[e])})),t},$add:function(e,t,n,o){return y(t,"$add"),m(e,"$add"),"Map"===s(t)?e.forEach((function(e){var n=e[0],i=e[1];t===o&&t.get(n)!==i&&(t=u(o)),t.set(n,i)})):e.forEach((function(e){t!==o||t.has(e)||(t=u(o)),t.add(e)})),t},$remove:function(e,t,n,o){return y(t,"$remove"),m(e,"$remove"),e.forEach((function(e){t===o&&t.has(e)&&(t=u(o)),t.delete(e)})),t},$merge:function(e,t,n,i){var r,a;return r=t,o((a=e)&&"object"==typeof a,"update(): $merge expects a spec of type 'object'; got %s",a),o(r&&"object"==typeof r,"update(): $merge expects a target of type 'object'; got %s",r),c(e).forEach((function(n){e[n]!==t[n]&&(t===i&&(t=u(i)),t[n]=e[n])})),t},$apply:function(e,t){var n;return o("function"==typeof(n=e),"update(): expected spec of $apply to be a function; got %s.",n),e(t)}},f=new d;function g(e,t,n){o(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e),m(t[n],n)}function m(e,t){o(Array.isArray(e),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",t,e)}function v(e){o(Array.isArray(e),"update(): expected spec of $splice to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",e)}function y(e,t){var n=s(e);o("Map"===n||"Set"===n,"update(): %s expects a target of type Set or Map; got %s",t,n)}t.isEquals=f.update.isEquals,t.extend=f.extend,t.default=f.update,t.default.default=e.exports=l(t.default,t)},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p}));var o,i=n(478),r=n(1072),a=n(452),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=(c.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},c.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},c);function c(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);var t=r.a.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}var u,d=(s(h,u=l),h);function h(e){var t=u.call(this,e)||this;return t.dataTransfer=e.dataTransfer,t}var p=(f.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},f.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},f);function f(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){var o=e,r=e;if(void 0!==o.wheelDeltaY?this.deltaY=o.wheelDeltaY/120:void 0!==r.VERTICAL_AXIS&&r.axis===r.VERTICAL_AXIS?this.deltaY=-r.detail/3:"wheel"===e.type&&((s=e).deltaMode===s.DOM_DELTA_LINE?this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40),void 0!==o.wheelDeltaX)i.k&&a.h?this.deltaX=-o.wheelDeltaX/120:this.deltaX=o.wheelDeltaX/120;else if(void 0!==r.HORIZONTAL_AXIS&&r.axis===r.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){var s;(s=e).deltaMode===s.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)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return l}));var o,i,r=n(479),a=n(452);function s(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}(i=o=o||{}).inMemory="inmemory",i.vscode="vscode",i.internal="private",i.walkThrough="walkThrough",i.walkThroughSnippet="walkThroughSnippet",i.http="http",i.https="https",i.file="file",i.mailto="mailto",i.untitled="untitled",i.data="data",i.command="command",i.vscodeRemote="vscode-remote",i.vscodeRemoteResource="vscode-remote-resource",i.userData="vscode-userdata";var l=new(s.prototype.setPreferredWebSchema=function(e){this._preferredWebSchema=e},s.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],s=this._connectionTokens[t],l="path="+encodeURIComponent(e.path);return"string"==typeof s&&(l+="&tkn="+encodeURIComponent(s)),r.a.from({scheme:a.g?this._preferredWebSchema:o.vscodeRemoteResource,authority:n+":"+i,path:"/vscode-remote-resource",query:l})},s)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o,i,r=n(443),a=n(701),s=n(595),l=n(439),c=n(702),u=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(d,i=l.a),d.prototype.onclick=function(e,t){this._register(r.j(e,r.d.CLICK,(function(e){return t(new s.b(e))})))},d.prototype.onmousedown=function(e,t){this._register(r.j(e,r.d.MOUSE_DOWN,(function(e){return t(new s.b(e))})))},d.prototype.onmouseover=function(e,t){this._register(r.j(e,r.d.MOUSE_OVER,(function(e){return t(new s.b(e))})))},d.prototype.onnonbubblingmouseout=function(e,t){this._register(r.k(e,(function(e){return t(new s.b(e))})))},d.prototype.onkeydown=function(e,t){this._register(r.j(e,r.d.KEY_DOWN,(function(e){return t(new a.a(e))})))},d.prototype.onkeyup=function(e,t){this._register(r.j(e,r.d.KEY_UP,(function(e){return t(new a.a(e))})))},d.prototype.oninput=function(e,t){this._register(r.j(e,r.d.INPUT,t))},d.prototype.onblur=function(e,t){this._register(r.j(e,r.d.BLUR,t))},d.prototype.onfocus=function(e,t){this._register(r.j(e,r.d.FOCUS,t))},d.prototype.ignoreGesture=function(e){c.b.ignoreTarget(e)},d);function d(){return null!==i&&i.apply(this,arguments)||this}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var o=n(448),i=Object(o.c)("modelService");function r(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},function(e,t,n){"use strict";var o,i,r,a;n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u})),(i=o=o||{})[i.Left=1]="Left",i[i.Center=2]="Center",i[i.Right=4]="Right",i[i.Full=7]="Full",(a=r=r||{})[a.Inline=1]="Inline",a[a.Gutter=2]="Gutter";var s=(l.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},l.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}},l);function l(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)}var c=function(e,t){this.range=e,this.matches=t},u=function(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}},function(e,t,n){"use strict";var o=n(0),i=n(601);if(void 0===o)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var r=(new o.Component).updater;e.exports=i(o.Component,o.isValidElement,r)},function(e,t,n){"use strict";var o=n(97),i=n(602),r=n(603);e.exports=function(e,t,n){var a=[],s={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},c={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)u(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=o({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=o({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=h(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=o({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(t)for(var n in t){var o=t[n];if(t.hasOwnProperty(n)){if(r(!(n in c),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){var i=l.hasOwnProperty(n)?l[n]:null;return r("DEFINE_MANY_MERGED"===i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=h(e[n],o)}e[n]=o}}}(e,t)},autobind:function(){}};function u(e,n){if(n){r("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),r(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o,i,a,l=e.prototype,u=l.__reactAutoBindPairs;for(var d in n.hasOwnProperty("mixins")&&c.mixins(e,n.mixins),n)if(n.hasOwnProperty(d)&&"mixins"!==d){var f=n[d],g=l.hasOwnProperty(d);if(o=g,i=d,a=s.hasOwnProperty(i)?s[i]:null,v.hasOwnProperty(i)&&r("OVERRIDE_BASE"===a,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",i),o&&r("DEFINE_MANY"===a||"DEFINE_MANY_MERGED"===a,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",i),c.hasOwnProperty(d))c[d](e,f);else{var m=s.hasOwnProperty(d);if("function"!=typeof f||m||g||!1===n.autobind)if(g){var y=s[d];r(m&&("DEFINE_MANY_MERGED"===y||"DEFINE_MANY"===y),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",y,d),"DEFINE_MANY_MERGED"===y?l[d]=h(l[d],f):"DEFINE_MANY"===y&&(l[d]=p(l[d],f))}else l[d]=f;else u.push(d,f),l[d]=f}}}}function d(e,t){for(var n in r(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(r(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function h(e,t){return function(){var n=e.apply(this,arguments),o=t.apply(this,arguments);if(null==n)return o;if(null==o)return n;var i={};return d(i,n),d(i,o),i}}function p(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function f(){}var g={componentDidMount:function(){this.__isMounted=!0}},m={componentWillUnmount:function(){this.__isMounted=!1}},v={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}};return o(f.prototype,e.prototype,v),function(e){var t=function(e,o,a){this.__reactAutoBindPairs.length&&function(e){for(var t,n=e.__reactAutoBindPairs,o=0;o<n.length;o+=2){var i=n[o],r=n[o+1];e[i]=(t=e,r.bind(t))}}(this),this.props=e,this.context=o,this.refs=i,this.updater=a||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;r("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var o in t.prototype=new f,(t.prototype.constructor=t).prototype.__reactAutoBindPairs=[],a.forEach(u.bind(null,t)),u(t,g),u(t,e),u(t,m),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),r(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),s)t.prototype[o]||(t.prototype[o]=null);return t}}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports=function(e,t,n,o,i,r,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,i,r,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(437),s=(o=n(605))&&o.__esModule?o:{default:o},l=n(625);function c(e){this.rules=null,this._messages=l.messages,this.define(e)}c.prototype={messages:function(e){return e&&(this._messages=(0,a.deepMerge)((0,l.newMessages)(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===e?"undefined":r(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var o=this,s=e,u=1<arguments.length&&void 0!==t?t:{},d=2<arguments.length&&void 0!==n?n:function(){};if("function"==typeof u&&(d=u,u={}),!this.rules||0===Object.keys(this.rules).length)return d&&d(),Promise.resolve();if(u.messages){var h=this.messages();h===l.messages&&(h=(0,l.newMessages)()),(0,a.deepMerge)(h,u.messages),u.messages=h}else u.messages=this.messages();var p=void 0,f=void 0,g={};(u.keys||Object.keys(this.rules)).forEach((function(t){p=o.rules[t],f=s[t],p.forEach((function(n){var r=n;"function"==typeof r.transform&&(s===e&&(s=i({},s)),f=s[t]=r.transform(f)),(r="function"==typeof r?{validator:r}:i({},r)).validator=o.getValidationMethod(r),r.field=t,r.fullField=r.fullField||t,r.type=o.getType(r),r.validator&&(g[t]=g[t]||[],g[t].push({rule:r,value:f,source:s,field:t}))}))}));var m={};return(0,a.asyncMap)(g,u,(function(e,t){var n=e.rule,o=!("object"!==n.type&&"array"!==n.type||"object"!==r(n.fields)&&"object"!==r(n.defaultField));function s(e,t){return i({},t,{fullField:n.fullField+"."+e})}function l(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];if(Array.isArray(r)||(r=[r]),!u.suppressWarning&&r.length&&c.warning("async-validator:",r),r.length&&n.message&&(r=[].concat(n.message)),r=r.map((0,a.complementError)(n)),u.first&&r.length)return m[n.field]=1,t(r);if(o){if(n.required&&!e.value)return r=n.message?[].concat(n.message).map((0,a.complementError)(n)):u.error?[u.error(n,(0,a.format)(u.messages.required,n.field))]:[],t(r);var l={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(l[d]=n.defaultField);for(var h in l=i({},l,e.rule.fields))if(l.hasOwnProperty(h)){var p=Array.isArray(l[h])?l[h]:[l[h]];l[h]=p.map(s.bind(null,h))}var f=new c(l);f.messages(u.messages),e.rule.options&&(e.rule.options.messages=u.messages,e.rule.options.error=u.error),f.validate(e.value,e.rule.options||u,(function(e){var n=[];r&&r.length&&n.push.apply(n,r),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(r)}o=o&&(n.required||!n.required&&e.value),n.field=e.field;var d=void 0;n.asyncValidator?d=n.asyncValidator(n,e.value,l,e.source,u):n.validator&&(!0===(d=n.validator(n,e.value,l,e.source,u))?l():!1===d?l(n.message||n.field+" fails"):d instanceof Array?l(d):d instanceof Error&&l(d.message)),d&&d.then&&d.then((function(){return l()}),(function(e){return l(e)}))}),(function(e){!function(e){var t,n,o=void 0,i=[];for(o=0;o<e.length;o++)t=e[o],Array.isArray(t)?i=i.concat.apply(i,t):i.push(t);n=i.length?(0,a.convertFieldsError)(i):i=null,d(i,n)}(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!s.default.hasOwnProperty(e.type))throw new Error((0,a.format)("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?s.default.required:s.default[this.getType(e)]||!1}},c.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");s.default[e]=t},c.warning=a.warning,c.messages=l.messages,t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=v(n(606)),i=v(n(612)),r=v(n(613)),a=v(n(614)),s=v(n(615)),l=v(n(616)),c=v(n(617)),u=v(n(618)),d=v(n(619)),h=v(n(620)),p=v(n(621)),f=v(n(622)),g=v(n(623)),m=v(n(624));function v(e){return e&&e.__esModule?e:{default:e}}t.default={string:o.default,method:i.default,number:r.default,boolean:a.default,regexp:s.default,integer:l.default,float:c.default,array:u.default,object:d.default,enum:h.default,pattern:p.default,date:f.default,url:m.default,hex:m.default,email:m.default,required:g.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t,"string")&&!e.required)return n();i.default.required(e,t,o,s,a,"string"),(0,r.isEmptyValue)(t,"string")||(i.default.type(e,t,o,s,a),i.default.range(e,t,o,s,a),i.default.pattern(e,t,o,s,a),!0===e.whitespace&&i.default.whitespace(e,t,o,s,a))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,i,r){!/^\s+$/.test(t)&&""!==t||i.push(o.format(r.messages.whitespace,e.fullField))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437)),a=(o=n(516))&&o.__esModule?o:{default:o},s={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},l={integer:function(e){return l.number(e)&&parseInt(e,10)===e},float:function(e){return l.number(e)&&!l.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":i(e))&&!l.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(s.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(s.url)},hex:function(e){return"string"==typeof e&&!!e.match(s.hex)}};t.default=function(e,t,n,o,s){if(e.required&&void 0===t)(0,a.default)(e,t,n,o,s);else{var c=e.type;-1<["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(c)?l[c](t)||o.push(r.format(s.messages.types[c],e.fullField,e.type)):c&&(void 0===t?"undefined":i(t))!==e.type&&o.push(r.format(s.messages.types[c],e.fullField,e.type))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,i,r){var a="number"==typeof e.len,s="number"==typeof e.min,l="number"==typeof e.max,c=t,u=null,d="number"==typeof t,h="string"==typeof t,p=Array.isArray(t);if(d?u="number":h?u="string":p&&(u="array"),!u)return!1;p&&(c=t.length),h&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?c!==e.len&&i.push(o.format(r.messages[u].len,e.fullField,e.len)):s&&!l&&c<e.min?i.push(o.format(r.messages[u].min,e.fullField,e.min)):l&&!s&&c>e.max?i.push(o.format(r.messages[u].max,e.fullField,e.max)):s&&l&&(c<e.min||c>e.max)&&i.push(o.format(r.messages[u].range,e.fullField,e.min,e.max))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,i,r){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&i.push(o.format(r.messages.enum,e.fullField,e.enum.join(", ")))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,i,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||i.push(o.format(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||i.push(o.format(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,o,s,a),void 0!==t&&i.default.type(e,t,o,s,a)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),(0,r.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,o,s,a),void 0!==t&&(i.default.type(e,t,o,s,a),i.default.range(e,t,o,s,a))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(437),r=(o=n(441))&&o.__esModule?o:{default:o};t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t)&&!e.required)return n();r.default.required(e,t,o,s,a),void 0!==t&&r.default.type(e,t,o,s,a)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,o,s,a),(0,r.isEmptyValue)(t)||i.default.type(e,t,o,s,a)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,o,s,a),void 0!==t&&(i.default.type(e,t,o,s,a),i.default.range(e,t,o,s,a))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,o,s,a),void 0!==t&&(i.default.type(e,t,o,s,a),i.default.range(e,t,o,s,a))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t,"array")&&!e.required)return n();i.default.required(e,t,o,s,a,"array"),(0,r.isEmptyValue)(t,"array")||(i.default.type(e,t,o,s,a),i.default.range(e,t,o,s,a))}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,o,s,a),void 0!==t&&i.default.type(e,t,o,s,a)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,o,s,a),t&&i.default.enum(e,t,o,s,a)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t,"string")&&!e.required)return n();i.default.required(e,t,o,s,a),(0,r.isEmptyValue)(t,"string")||i.default.pattern(e,t,o,s,a)}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();if(i.default.required(e,t,o,s,a),!(0,r.isEmptyValue)(t)){var l=void 0;l="number"==typeof t?new Date(t):t,i.default.type(e,l,o,s,a),l&&i.default.range(e,l.getTime(),o,s,a)}}n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=(o=n(441))&&o.__esModule?o:{default:o};t.default=function(e,t,n,o,a){var s=[],l=Array.isArray(t)?"array":void 0===t?"undefined":i(t);r.default.required(e,t,o,s,a,l),n(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=(o=n(441))&&o.__esModule?o:{default:o},r=n(437);t.default=function(e,t,n,o,a){var s=e.type,l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t,s)&&!e.required)return n();i.default.required(e,t,o,l,a,s),(0,r.isEmptyValue)(t,s)||i.default.type(e,t,o,l,a)}n(l)}},function(e,t,n){"use strict";function o(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.newMessages=o,t.messages=o()},function(e,t,n){var o=n(493),i=n(634),r=n(492),a=n(168),s=n(487);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,h=e;null!=h&&++c<u;){var p=s(t[c]),f=n;if(c!=d){var g=h[p];void 0===(f=l?l(g,p,h):void 0)&&(f=a(g)?g:r(t[c+1])?[]:{})}o(h,p,f),h=h[p]}return e}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){},function(e,t,n){var o=n(630),i=n(633);e.exports=function(e,t){return null!=e&&i(e,t,o)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var o=n(272);e.exports=function(e){return e?(e=o(e))!==1/0&&e!==-1/0?e==e?e:0:17976931348623157e292*(e<0?-1:1):0===e?e:0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(51),i=Object(o.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return d})),n(1319);var o,i,r,a=n(445),s=n(452),l=n(443);function c(e){(o=document.createElement("div")).className="monaco-aria-container",(i=document.createElement("div")).className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),o.appendChild(i),(r=document.createElement("div")).className="monaco-status",r.setAttribute("role","status"),r.setAttribute("aria-atomic","true"),o.appendChild(r),e.appendChild(o)}function u(e,t){f(i,e,t)}function d(e,t){s.e?u(e,t):f(r,e,t)}var h=0,p=void 0;function f(e,t,n){if(o){if(!n)switch(p===t?h++:(p=t,h=0),h){case 0:break;case 1:t=a.a("repeated","{0} (occurred again)",t);break;default:t=a.a("repeatedNtimes","{0} (occurred {1} times)",t,h)}l.t(e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d}));var o=n(479),i=n(448),r=n(439),a=n(444),s=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},l=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},c=Object(i.c)("openerService"),u=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return r.a.None},registerValidator:function(){return r.a.None},registerExternalUriResolver:function(){return r.a.None},setExternalOpener:function(){},open:function(){return s(this,void 0,void 0,(function(){return l(this,(function(e){return[2,!1]}))}))},resolveExternalUri:function(e){return s(this,void 0,void 0,(function(){return l(this,(function(t){return[2,{resolved:e,dispose:function(){}}]}))}))}});function d(e,t){return o.a.isUri(e)?Object(a.n)(e.scheme,t):Object(a.O)(e,t+":")}},function(e,t,n){},function(e,t,n){var o=n(533),i=n(666);e.exports=function(e,t){return e&&e.length?i(e,o(t,2)):[]}},function(e,t,n){var o=n(640),i=n(660),r=n(541);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?r(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}},function(e,t,n){var o=n(481),i=n(534);e.exports=function(e,t,n,r){var a=n.length,s=a,l=!r;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new o;if(r)var f=r(d,h,u,e,t,p);if(!(void 0===f?i(h,d,3,r,p):f))return!1}}return!0}},function(e,t,n){var o=n(481),i=n(535),r=n(645),a=n(647),s=n(656),l=n(458),c=n(473),u=n(474),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),b=l(t),_=y?h:s(e),w=b?h:s(t),C=(_=_==d?p:_)==p,S=(w=w==d?p:w)==p,O=_==w;if(O&&c(e)){if(!c(t))return!1;C=!(y=!0)}if(O&&!C)return v=v||new o,y||u(e)?i(e,t,n,g,m,v):r(e,t,_,n,g,m,v);if(!(1&n)){var x=C&&f.call(e,"__wrapped__"),E=S&&f.call(t,"__wrapped__");if(x||E)return m(x?e.value():e,E?t.value():t,n,g,v=v||new o)}return O&&(v=v||new o,a(e,t,n,g,m,v))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var o=n(175),i=n(508),r=n(460),a=n(535),s=n(646),l=n(491),c=o?o.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,o,c,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var f=1&o;if(p=p||l,e.size!=t.size&&!f)return!1;var g=h.get(e);if(g)return g==t;o|=2,h.set(e,t);var m=a(p(e),p(t),o,c,d,h);return h.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}},function(e,t,n){var o=n(648),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,r,a,s){var l=1&n,c=o(e),u=c.length;if(u!=o(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var p=s.get(e);if(p&&s.get(t))return p==t;var f=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var m=e[h=c[d]],v=t[h];if(r)var y=l?r(v,m,h,t,e,s):r(m,v,h,e,t,s);if(!(void 0===y?m===v||a(m,v,n,r,s):y)){f=!1;break}g=g||"constructor"==h}if(f&&!g){var b=e.constructor,_=t.constructor;b!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _)&&(f=!1)}return s.delete(e),s.delete(t),f}},function(e,t,n){var o=n(649),i=n(651),r=n(538);e.exports=function(e){return o(e,r,i)}},function(e,t,n){var o=n(650),i=n(458);e.exports=function(e,t,n){var r=t(e);return i(e)?r:o(r,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}},function(e,t,n){var o=n(652),i=n(653),r=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),o(a(e),(function(t){return r.call(e,t)})))}:i;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,r=[];++n<o;){var a=e[n];t(a,n,e)&&(r[i++]=a)}return r}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var o=n(485),i=n(655),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))r.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var o=n(509)(Object.keys,Object);e.exports=o},function(e,t,n){var o=n(657),i=n(502),r=n(658),a=n(539),s=n(659),l=n(263),c=n(675),u="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",g=c(o),m=c(i),v=c(r),y=c(a),b=c(s),_=l;(o&&_(new o(new ArrayBuffer(1)))!=f||i&&_(new i)!=u||r&&_(r.resolve())!=d||a&&_(new a)!=h||s&&_(new s)!=p)&&(_=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,o=n?c(n):"";if(o)switch(o){case g:return f;case m:return u;case v:return d;case y:return h;case b:return p}return t}),e.exports=_},function(e,t,n){var o=n(457)(n(166),"DataView");e.exports=o},function(e,t,n){var o=n(457)(n(166),"Promise");e.exports=o},function(e,t,n){var o=n(457)(n(166),"WeakMap");e.exports=o},function(e,t,n){var o=n(540),i=n(538);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,o(a)]}return t}},function(e,t,n){var o=n(534),i=n(511),r=n(662),a=n(543),s=n(540),l=n(541),c=n(487);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?r(n,e):o(t,a,3)}}},function(e,t,n){var o=n(663),i=n(633);e.exports=function(e,t){return null!=e&&i(e,t,o)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var o=n(627),i=n(665),r=n(543),a=n(487);e.exports=function(e){return r(e)?o(a(e)):i(e)}},function(e,t,n){var o=n(676);e.exports=function(e){return function(t){return o(t,e)}}},function(e,t,n){var o=n(536),i=n(667),r=n(671),a=n(537),s=n(672),l=n(491);e.exports=function(e,t,n){var c=-1,u=i,d=e.length,h=!0,p=[],f=p;if(n)h=!1,u=r;else if(200<=d){var g=t?null:s(e);if(g)return l(g);h=!1,u=a,f=new o}else f=t?[]:p;e:for(;++c<d;){var m=e[c],v=t?t(m):m;if(m=n||0!==m?m:0,h&&v==v){for(var y=f.length;y--;)if(f[y]===v)continue e;t&&f.push(v),p.push(m)}else u(f,v,n)||(f!==p&&f.push(v),p.push(m))}return p}},function(e,t,n){var o=n(668);e.exports=function(e,t){return!(null==e||!e.length)&&-1<o(e,t,0)}},function(e,t,n){var o=n(542),i=n(669),r=n(670);e.exports=function(e,t,n){return t==t?r(e,t,n):o(e,i,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var o=n-1,i=e.length;++o<i;)if(e[o]===t)return o;return-1}},function(e,t){e.exports=function(e,t,n){for(var o=-1,i=null==e?0:e.length;++o<i;)if(n(t,e[o]))return!0;return!1}},function(e,t,n){var o=n(539),i=n(673),r=n(491),a=o&&1/r(new o([,-0]))[1]==1/0?function(e){return new o(e)}:i;e.exports=a},function(e,t){e.exports=function(){}},function(e,t,n){var o=n(542),i=n(533),r=n(590),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:r(n);return l<0&&(l=a(s+l,0)),o(e,i(t,3),l)}},,,,,,function(e,t,n){"use strict";n(46),n(710),n(273),n(470),n(260),n(515),n(104),n(498)},function(e,t,n){},function(e,t,n){"use strict";function o(e){return i.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)}var i=n(0),r=n(33),a=n(711),s=n.n(a),l=n(1),c=n(12),u=n.n(c),d=n(75),h=n.n(d),p=n(25),f=n(13),g=n(556),m=n(750),v=n.n(m),y=n(506),b=n(18),_=n(92),w=n(462);function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function S(e,t){var n=1<arguments.length&&void 0!==t?t:"children",o=[];return function e(t){t.forEach((function(t){if(t[n]){var i=C({},t);delete i[n],o.push(i),0<t[n].length&&e(t[n])}else o.push(t)}))}(0<arguments.length&&void 0!==e?e:[]),o}function O(e,t,n){var o=2<arguments.length&&void 0!==n?n:"children";return e.map((function(e,n){var i={};return e[o]&&(i[o]=O(e[o],t,o)),C(C({},t(e,n)),i)}))}function x(e,t){return e.reduce((function(e,n){if(t(n)&&e.push(n),n.children){var o=x(n.children,t);e.push.apply(e,function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(o))}return e}),[])}function E(e){var t=[];return i.Children.forEach(e,(function(e){if(i.isValidElement(e)){var n=C({},e.props);e.key&&(n.key=e.key),e.type&&e.type.__ANT_TABLE_COLUMN_GROUP&&(n.children=E(n.children)),t.push(n)}})),t}function k(e,t){var n=1<arguments.length&&void 0!==t?t:{};return(e||[]).forEach((function(e){var t=e.value,o=e.children;n[t.toString()]=t,k(o,n)})),n}function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()}var j=function(){function e(t){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=P(e).call(this,t),(n=!o||"object"!==N(o)&&"function"!=typeof o?I(this):o).setNeverShown=function(e){var t=f.findDOMNode(I(n));!v()(t,".ant-table-scroll")||(n.neverShown=!!e.fixed)},n.setSelectedKeys=function(e){var t=e.selectedKeys;n.setState({selectedKeys:t})},n.handleClearFilters=function(){n.setState({selectedKeys:[]},n.handleConfirm)},n.handleConfirm=function(){n.setVisible(!1),n.setState({},n.confirmFilter)},n.onVisibleChange=function(e){n.setVisible(e);var t=n.props.column;e||t.filterDropdown instanceof Function||n.confirmFilter()},n.handleMenuItemClick=function(e){var t=n.state.selectedKeys;if(e.keyPath&&!(e.keyPath.length<=1)){var o=n.state.keyPathOfSelectedItem;t&&0<=t.indexOf(e.key)?delete o[e.key]:o[e.key]=e.keyPath,n.setState({keyPathOfSelectedItem:o})}},n.renderFilterIcon=function(){var e,t=n.props,o=t.column,r=t.locale,a=t.prefixCls,s=t.selectedKeys,l=s&&0<s.length,c=o.filterIcon;"function"==typeof c&&(c=c(l));var d=u()((D(e={},"".concat(a,"-selected"),l),D(e,"".concat(a,"-open"),n.getDropdownVisible()),e));return c?i.isValidElement(c)?i.cloneElement(c,{title:c.props.title||r.filterTitle,className:u()("".concat(a,"-icon"),d,c.props.className),onClick:M}):i.createElement("span",{className:u()("".concat(a,"-icon"),d)},c):i.createElement(b.a,{title:r.filterTitle,type:"filter",theme:"filled",className:d,onClick:M})};var r="filterDropdownVisible"in t.column&&t.column.filterDropdownVisible;return n.state={selectedKeys:t.selectedKeys,valueKeys:k(t.column.filters),keyPathOfSelectedItem:{},visible:r,prevProps:t},n}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}(e,i.Component),t=e,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.column,o=t.prevProps,i={prevProps:e};return"selectedKeys"in e&&!h()(o.selectedKeys,e.selectedKeys)&&(i.selectedKeys=e.selectedKeys),h()((o.column||{}).filters,(e.column||{}).filters)||(i.valueKeys=k(e.column.filters)),"filterDropdownVisible"in n&&(i.visible=n.filterDropdownVisible),i}}],(n=[{key:"componentDidMount",value:function(){var e=this.props.column;this.setNeverShown(e)}},{key:"componentDidUpdate",value:function(){var e=this.props.column;this.setNeverShown(e)}},{key:"getDropdownVisible",value:function(){return!this.neverShown&&this.state.visible}},{key:"setVisible",value:function(e){var t=this.props.column;"filterDropdownVisible"in t||this.setState({visible:e}),t.onFilterDropdownVisibleChange&&t.onFilterDropdownVisibleChange(e)}},{key:"hasSubMenu",value:function(){var e=this.props.column.filters;return(void 0===e?[]:e).some((function(e){return!!(e.children&&0<e.children.length)}))}},{key:"confirmFilter",value:function(){var e=this.props,t=e.column,n=e.selectedKeys,o=e.confirmFilter,i=this.state,r=i.selectedKeys,a=i.valueKeys,s=t.filterDropdown;h()(r,n)||o(t,s?r:r.map((function(e){return a[e]})).filter((function(e){return void 0!==e})))}},{key:"renderMenus",value:function(e){var t=this,n=this.props,o=n.dropdownPrefixCls,r=n.prefixCls;return e.map((function(e){if(e.children&&0<e.children.length){var n=t.state.keyPathOfSelectedItem,a=Object.keys(n).some((function(t){return 0<=n[t].indexOf(e.value)})),s=u()("".concat(r,"-dropdown-submenu"),D({},"".concat(o,"-submenu-contain-selected"),a));return i.createElement(g.d,{title:e.text,popupClassName:s,key:e.value.toString()},t.renderMenus(e.children))}return t.renderMenuItem(e)}))}},{key:"renderMenuItem",value:function(e){var t=this.props.column,n=this.state.selectedKeys,o=!("filterMultiple"in t)||t.filterMultiple,r=(n||[]).map((function(e){return e.toString()})),a=o?i.createElement(_.a,{checked:0<=r.indexOf(e.value.toString())}):i.createElement(w.a,{checked:0<=r.indexOf(e.value.toString())});return i.createElement(g.b,{key:e.value},a,i.createElement("span",null,e.text))}},{key:"render",value:function(){var e=this,t=this.state.selectedKeys,n=this.props,r=n.column,a=n.locale,s=n.prefixCls,l=n.dropdownPrefixCls,c=n.getPopupContainer,d=!("filterMultiple"in r)||r.filterMultiple,h=u()(D({},"".concat(l,"-menu-without-submenu"),!this.hasSubMenu())),p=r.filterDropdown;p instanceof Function&&(p=p({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(t){return e.setSelectedKeys({selectedKeys:t})},selectedKeys:t,confirm:this.handleConfirm,clearFilters:this.handleClearFilters,filters:r.filters,visible:this.getDropdownVisible()}));var f=p?i.createElement(o,{className:"".concat(s,"-dropdown")},p):i.createElement(o,{className:"".concat(s,"-dropdown")},i.createElement(g.e,{multiple:d,onClick:this.handleMenuItemClick,prefixCls:"".concat(l,"-menu"),className:h,onSelect:this.setSelectedKeys,onDeselect:this.setSelectedKeys,selectedKeys:t&&t.map((function(e){return e.toString()})),getPopupContainer:c},this.renderMenus(r.filters)),i.createElement("div",{className:"".concat(s,"-dropdown-btns")},i.createElement("a",{className:"".concat(s,"-dropdown-link confirm"),onClick:this.handleConfirm},a.filterConfirm),i.createElement("a",{className:"".concat(s,"-dropdown-link clear"),onClick:this.handleClearFilters},a.filterReset)));return i.createElement(y.a,{trigger:["click"],placement:"bottomRight",overlay:f,visible:this.getDropdownVisible(),onVisibleChange:this.onVisibleChange,getPopupContainer:c,forceRender:!0},this.renderFilterIcon())}}])&&L(t.prototype,n),r&&L(t,r),e}();j.defaultProps={column:{}},Object(p.polyfill)(j);var R=j;function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function W(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var z=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==F(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,B(e).call(this,t))).state={checked:n.getCheckState(t)},n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(e,i.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.subscribe()}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"getCheckState",value:function(e){var t=e.store,n=e.defaultSelection,o=e.rowIndex;return t.getState().selectionDirty?0<=t.getState().selectedRowKeys.indexOf(o):0<=t.getState().selectedRowKeys.indexOf(o)||0<=n.indexOf(o)}},{key:"subscribe",value:function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe((function(){var t=e.getCheckState(e.props);e.setState({checked:t})}))}},{key:"render",value:function(){var e=this.props,t=e.type,n=e.rowIndex,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["type","rowIndex"]),r=this.state.checked;return"radio"===t?i.createElement(w.a,V({checked:r,value:n},o)):i.createElement(_.a,V({checked:r},o))}}])&&W(t.prototype,n),e}(),K=n(507);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(){return(Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function $(e){var t=e.store,n=e.getCheckboxPropsByItem,o=e.getRecordKey,i=e.data,r=e.type;return e.byDefaultChecked?i[r]((function(e,t){return n(e,t).defaultChecked})):i[r]((function(e,n){return 0<=t.getState().selectedRowKeys.indexOf(o(e,n))}))}function X(e){var t=e.store,n=e.data;if(!n.length)return!1;var o=$(Z(Z({},e),{data:n,type:"some",byDefaultChecked:!1}))&&!$(Z(Z({},e),{data:n,type:"every",byDefaultChecked:!1})),i=$(Z(Z({},e),{data:n,type:"some",byDefaultChecked:!0}))&&!$(Z(Z({},e),{data:n,type:"every",byDefaultChecked:!0}));return t.getState().selectionDirty?o:o||i}function J(e){var t=e.store,n=e.data;return!!n.length&&(t.getState().selectionDirty?$(Z(Z({},e),{data:n,type:"every",byDefaultChecked:!1})):$(Z(Z({},e),{data:n,type:"every",byDefaultChecked:!1}))||$(Z(Z({},e),{data:n,type:"every",byDefaultChecked:!0})))}var Q=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,G(e).call(this,t))).state={checked:!1,indeterminate:!1},n.handleSelectAllChange=function(e){var t=e.target.checked;n.props.onSelect(t?"all":"removeAll",0,null)},n.defaultSelections=t.hideDefaultSelections?[]:[{key:"all",text:t.locale.selectAll},{key:"invert",text:t.locale.selectInvert}],n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(e,i.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=J(e),o=X(e),i={};return o!==t.indeterminate&&(i.indeterminate=o),n!==t.checked&&(i.checked=n),i}}],(n=[{key:"componentDidMount",value:function(){this.subscribe()}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"setCheckState",value:function(e){var t=J(e),n=X(e);this.setState((function(e){var o={};return n!==e.indeterminate&&(o.indeterminate=n),t!==e.checked&&(o.checked=t),o}))}},{key:"subscribe",value:function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe((function(){e.setCheckState(e.props)}))}},{key:"renderMenus",value:function(e){var t=this;return e.map((function(e,n){return i.createElement(K.a.Item,{key:e.key||n},i.createElement("div",{onClick:function(){t.props.onSelect(e.key,n,e.onSelect)}},e.text))}))}},{key:"render",value:function(){var e,t,n,o=this.props,r=o.disabled,a=o.prefixCls,s=o.selections,l=o.getPopupContainer,c=this.state,d=c.checked,h=c.indeterminate,p="".concat(a,"-selection"),f=null;if(s){var g=Array.isArray(s)?this.defaultSelections.concat(s):this.defaultSelections,m=i.createElement(K.a,{className:"".concat(p,"-menu"),selectedKeys:[]},this.renderMenus(g));f=0<g.length?i.createElement(y.a,{overlay:m,getPopupContainer:l},i.createElement("div",{className:"".concat(p,"-down")},i.createElement(b.a,{type:"down"}))):null}return i.createElement("div",{className:p},i.createElement(_.a,{className:u()((e={},t="".concat(p,"-select-all-custom"),n=f,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),checked:d,indeterminate:h,disabled:r,onChange:this.handleSelectAllChange}),f)}}])&&q(t.prototype,n),o&&q(t,o),e}();Object(p.polyfill)(Q);var ee=Q;function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e,t){return!t||"object"!==te(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var re=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ne(this,oe(e).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ie(e,t)}(e,i.Component),e}();function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e,t){return!t||"object"!==ae(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ue=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),se(this,le(e).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ce(e,t)}(e,i.Component),e}();function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(){return(he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function pe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function fe(e,t){return!t||"object"!==de(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){var t=0<arguments.length&&void 0!==e?e:"tr";return function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=fe(this,ge(e).call(this,t))).store=t.store;var o=n.store.getState().selectedRowKeys;return n.state={selected:0<=o.indexOf(t.rowKey)},n}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}(e,i.Component),n=e,(o=[{key:"componentDidMount",value:function(){this.subscribe()}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"subscribe",value:function(){var e=this,t=this.props,n=t.store,o=t.rowKey;this.unsubscribe=n.subscribe((function(){var t=0<=e.store.getState().selectedRowKeys.indexOf(o);t!==e.state.selected&&e.setState({selected:t})}))}},{key:"render",value:function(){var e,n,o,a=Object(r.default)(this.props,["prefixCls","rowKey","store"]),s=u()(this.props.className,(e={},n="".concat(this.props.prefixCls,"-row-selected"),o=this.state.selected,n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e));return i.createElement(t,he(he({},a),{className:s}),this.props.children)}}])&&pe(n.prototype,o),e}()}ue.__ANT_TABLE_COLUMN_GROUP=!0;var ye=n(106),be=n.n(ye);var _e=n(499),we=n(60),Ce=n(23);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oe(){return(Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function xe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ee(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var De={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},Le=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Ee(this,ke(e).apply(this,arguments))).onKeyDown=function(e){e.keyCode===Ce.a.ENTER&&e.preventDefault()},t.onKeyUp=function(e){var n=e.keyCode,o=t.props.onClick;n===Ce.a.ENTER&&o&&o()},t.setRef=function(e){t.div=e},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ne(e,t)}(e,i.Component),t=e,(n=[{key:"focus",value:function(){this.div&&this.div.focus()}},{key:"blur",value:function(){this.div&&this.div.blur()}},{key:"render",value:function(){var e=this.props,t=e.style,n=e.noStyle,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["style","noStyle"]);return i.createElement("div",Oe({role:"button",tabIndex:0,ref:this.setRef},o,{onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,style:Oe(Oe({},n?null:De),t)}))}}])&&xe(t.prototype,n),e}(),Pe=n(55),Ie=n(94),Te=n(77),Me=n(27);function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ve(e,t,n){return t&&Fe(e.prototype,t),n&&Fe(e,n),e}function We(e,t){return!t||"object"!==je(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function He(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function ze(){return(ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function Ke(){}function Ue(e){e.stopPropagation()}function qe(e){return e.rowSelection||{}}function Ge(e,t){return e.key||e.dataIndex||t}function Ye(e,t){return e&&t&&e.key&&e.key===t.key||e===t||h()(e,t,(function(e,t){return"function"==typeof e&&"function"==typeof t?e===t||e.toString()===t.toString():Array.isArray(e)&&Array.isArray(t)?e===t||h()(e,t):void 0}))}function Ze(e){var t=0<arguments.length&&void 0!==e?e:{},n=t&&t.body&&t.body.row;return ze(ze({},t),{body:ze(ze({},t.body),{row:ve(n)})})}var $e={onChange:Ke,onShowSizeChange:Ke},Xe={};function Je(e,t){return x(t||(e||{}).columns||[],(function(e){return void 0!==e.filteredValue}))}function Qe(e,t){var n={};return Je(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0).forEach((function(e){var t=Ge(e);n[t]=e.filteredValue})),n}var et=function(){function e(t){var n;Ae(this,e),(n=We(this,Be(e).call(this,t))).setTableRef=function(e){n.rcTable=e},n.getCheckboxPropsByItem=function(e,t){var o=qe(n.props);if(!o.getCheckboxProps)return{};var i=n.getRecordKey(e,t);if(!n.props.checkboxPropsCache[i]){n.props.checkboxPropsCache[i]=o.getCheckboxProps(e)||{};var r=n.props.checkboxPropsCache[i];Object(Me.a)(!("checked"in r||"defaultChecked"in r),"Table","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")}return n.props.checkboxPropsCache[i]},n.getRecordKey=function(e,t){var o=n.props.rowKey,i="function"==typeof o?o(e,t):e[o];return Object(Me.a)(void 0!==i,"Table","Each record in dataSource of table should have a unique `key` prop, or set `rowKey` of Table to an unique primary key, see https://u.ant.design/table-row-key"),void 0===i?t:i},n.onRow=function(e,t,o){var i=n.props.onRow;return ze(ze({},i?i(t,o):{}),{prefixCls:e,store:n.props.store,rowKey:n.getRecordKey(t,o)})},n.generatePopupContainerFunc=function(e){var t=n.props.scroll,o=n.rcTable;return e||(t&&o?function(){return o.tableNode}:void 0)},n.scrollToFirstRow=function(){var e=n.props.scroll;e&&!1!==e.scrollToFirstRowOnChange&&function(e,t){var n=1<arguments.length&&void 0!==t?t:{},o=n.getContainer,i=void 0===o?function(){return window}:o,r=n.callback,a=n.duration,s=void 0===a?450:a,l=i(),c=function(e,t){if("undefined"==typeof window)return 0;var n="scrollTop",o=e===window,i=o?e.pageYOffset:e[n];return o&&"number"!=typeof i&&(i=document.documentElement[n]),i}(l),u=Date.now();be()((function t(){var n,o,i,a=Date.now()-u,d=(n=s<a?s:a,i=e-(o=c),(n/=s/2)<1?i/2*n*n*n+o:i/2*((n-=2)*n*n+2)+o);l===window?window.scrollTo(window.pageXOffset,d):l.scrollTop=d,a<s?be()(t):"function"==typeof r&&r()}))}(0,{getContainer:function(){return n.rcTable.bodyTable}})},n.handleFilter=function(e,t){var o=n.props,i=ze({},n.state.pagination),r=ze(ze({},n.state.filters),Re({},Ge(e),t)),a=[];O(n.state.columns,(function(e){e.children||a.push(Ge(e))})),Object.keys(r).forEach((function(e){a.indexOf(e)<0&&delete r[e]})),o.pagination&&(i.current=1,i.onChange(i.current));var s={pagination:i,filters:{}},l=ze({},r);Je(n.state).forEach((function(e){var t=Ge(e);t&&delete l[t]})),0<Object.keys(l).length&&(s.filters=l),"object"===je(o.pagination)&&"current"in o.pagination&&(s.pagination=ze(ze({},i),{current:n.state.pagination.current})),n.setState(s,(function(){n.scrollToFirstRow(),n.props.store.setState({selectionDirty:!1});var e=n.props.onChange;e&&e.apply(null,n.prepareParamsArguments(ze(ze({},n.state),{selectionDirty:!1,filters:r,pagination:i})))}))},n.handleSelect=function(e,t,o){var i=o.target.checked,r=o.nativeEvent,a=n.props.store.getState().selectionDirty?[]:n.getDefaultSelection(),s=n.props.store.getState().selectedRowKeys.concat(a),l=n.getRecordKey(e,t),c=n.state.pivot,u=n.getFlatCurrentPageData(),d=t;if(n.props.expandedRowRender&&(d=u.findIndex((function(e){return n.getRecordKey(e,t)===l}))),r.shiftKey&&void 0!==c&&d!==c){for(var h=[],p=Math.sign(c-d),f=Math.abs(c-d),g=0,m=function(){var e=d+g*p;g+=1;var t=u[e],o=n.getRecordKey(t,e);n.getCheckboxPropsByItem(t,e).disabled||(s.includes(o)?i||(s=s.filter((function(e){return o!==e})),h.push(o)):i&&(s.push(o),h.push(o)))};g<=f;)m();n.setState({pivot:d}),n.props.store.setState({selectionDirty:!0}),n.setSelectedRowKeys(s,{selectWay:"onSelectMultiple",record:e,checked:i,changeRowKeys:h,nativeEvent:r})}else i?s.push(n.getRecordKey(e,d)):s=s.filter((function(e){return l!==e})),n.setState({pivot:d}),n.props.store.setState({selectionDirty:!0}),n.setSelectedRowKeys(s,{selectWay:"onSelect",record:e,checked:i,changeRowKeys:void 0,nativeEvent:r})},n.handleRadioSelect=function(e,t,o){var i=o.target.checked,r=o.nativeEvent,a=[n.getRecordKey(e,t)];n.props.store.setState({selectionDirty:!0}),n.setSelectedRowKeys(a,{selectWay:"onSelect",record:e,checked:i,changeRowKeys:void 0,nativeEvent:r})},n.handleSelectRow=function(e,t,o){var i,r=n.getFlatCurrentPageData(),a=n.props.store.getState().selectionDirty?[]:n.getDefaultSelection(),s=n.props.store.getState().selectedRowKeys.concat(a),l=r.filter((function(e,t){return!n.getCheckboxPropsByItem(e,t).disabled})).map((function(e,t){return n.getRecordKey(e,t)})),c=[],u="onSelectAll";switch(e){case"all":l.forEach((function(e){s.indexOf(e)<0&&(s.push(e),c.push(e))})),u="onSelectAll",i=!0;break;case"removeAll":l.forEach((function(e){0<=s.indexOf(e)&&(s.splice(s.indexOf(e),1),c.push(e))})),i=!(u="onSelectAll");break;case"invert":l.forEach((function(e){s.indexOf(e)<0?s.push(e):s.splice(s.indexOf(e),1),c.push(e),u="onSelectInvert"}))}n.props.store.setState({selectionDirty:!0});var d=n.props.rowSelection,h=2;if(d&&d.hideDefaultSelections&&(h=0),h<=t&&"function"==typeof o)return o(l);n.setSelectedRowKeys(s,{selectWay:u,checked:i,changeRowKeys:c})},n.handlePageChange=function(e){var t=n.props,o=ze({},n.state.pagination);o.current=e||o.current||1;for(var i=arguments.length,r=new Array(1<i?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];o.onChange.apply(o,[o.current].concat(r));var s={pagination:o};t.pagination&&"object"===je(t.pagination)&&"current"in t.pagination&&(s.pagination=ze(ze({},o),{current:n.state.pagination.current})),n.setState(s,n.scrollToFirstRow),n.props.store.setState({selectionDirty:!1});var l=n.props.onChange;l&&l.apply(null,n.prepareParamsArguments(ze(ze({},n.state),{selectionDirty:!1,pagination:o})))},n.handleShowSizeChange=function(e,t){var o=n.state.pagination;o.onShowSizeChange(e,t);var i=ze(ze({},o),{pageSize:t,current:e});n.setState({pagination:i},n.scrollToFirstRow);var r=n.props.onChange;r&&r.apply(null,n.prepareParamsArguments(ze(ze({},n.state),{pagination:i})))},n.renderExpandIcon=function(e){return function(t){var n=t.expandable,o=t.expanded,r=t.needIndentSpaced,a=t.record,s=t.onExpand;return n?i.createElement(Pe.a,{componentName:"Table",defaultLocale:Ie.a.Table},(function(t){var n;return i.createElement(Le,{className:u()("".concat(e,"-row-expand-icon"),(Re(n={},"".concat(e,"-row-collapsed"),!o),Re(n,"".concat(e,"-row-expanded"),o),n)),onClick:function(e){s(a,e)},"aria-label":o?t.collapse:t.expand,noStyle:!0})})):r?i.createElement("span",{className:"".concat(e,"-row-expand-icon ").concat(e,"-row-spaced")}):null}},n.renderSelectionBox=function(e){return function(t,o,r){var a=n.getRecordKey(o,r),s=n.getCheckboxPropsByItem(o,r);return i.createElement("span",{onClick:Ue},i.createElement(z,ze({type:e,store:n.props.store,rowIndex:a,onChange:function(t){return"radio"===e?n.handleRadioSelect(o,r,t):n.handleSelect(o,r,t)},defaultSelection:n.getDefaultSelection()},s)))}},n.renderTable=function(e){var t,o=e.prefixCls,a=e.renderEmpty,l=e.dropdownPrefixCls,c=e.contextLocale,d=e.getPopupContainer,h=n.props,p=h.showHeader,f=h.locale,g=h.getPopupContainer,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(h,["showHeader","locale","getPopupContainer"]),v=Object(r.default)(m,["style"]),y=n.getCurrentPageData(),b=n.props.expandedRowRender&&!1!==n.props.expandIconAsCell,_=g||d,w=ze(ze({},c),f);f&&f.emptyText||(w.emptyText=a("Table"));var C=u()("".concat(o,"-").concat(n.props.size),(Re(t={},"".concat(o,"-bordered"),n.props.bordered),Re(t,"".concat(o,"-empty"),!y.length),Re(t,"".concat(o,"-without-column-header"),!p),t)),S=n.renderRowSelection({prefixCls:o,locale:w,getPopupContainer:_}),O=n.renderColumnsDropdown({columns:S,prefixCls:o,dropdownPrefixCls:l,locale:w,getPopupContainer:_}).map((function(e,t){var n=ze({},e);return n.key=Ge(n,t),n})),x=O[0]&&"selection-column"===O[0].key?1:0;return"expandIconColumnIndex"in v&&(x=v.expandIconColumnIndex),i.createElement(s.a,ze({ref:n.setTableRef,key:"table",expandIcon:n.renderExpandIcon(o)},v,{onRow:function(e,t){return n.onRow(o,e,t)},components:n.state.components,prefixCls:o,data:y,columns:O,showHeader:p,className:C,expandIconColumnIndex:x,expandIconAsCell:b,emptyText:w.emptyText}))},n.renderComponent=function(e){var t=e.getPrefixCls,o=e.renderEmpty,r=e.getPopupContainer,a=n.props,s=a.prefixCls,l=a.dropdownPrefixCls,c=a.style,d=a.className,h=n.getCurrentPageData(),p=n.props.loading;"boolean"==typeof p&&(p={spinning:p});var f=t("table",s),g=t("dropdown",l),m=i.createElement(Pe.a,{componentName:"Table",defaultLocale:Ie.a.Table},(function(e){return n.renderTable({prefixCls:f,renderEmpty:o,dropdownPrefixCls:g,contextLocale:e,getPopupContainer:r})})),v=n.hasPagination()&&h&&0!==h.length?"".concat(f,"-with-pagination"):"".concat(f,"-without-pagination");return i.createElement("div",{className:u()("".concat(f,"-wrapper"),d),style:c},i.createElement(we.a,ze({},p,{className:p.spinning?"".concat(v," ").concat(f,"-spin-holder"):""}),n.renderPagination(f,"top"),m,n.renderPagination(f,"bottom")))};var o=t.expandedRowRender,a=t.columns;Object(Me.a)(!("columnsPageRange"in t||"columnsPageSize"in t),"Table","`columnsPageRange` and `columnsPageSize` are removed, please use fixed columns instead, see: https://u.ant.design/fixed-columns."),o&&(a||[]).some((function(e){return!!e.fixed}))&&Object(Me.a)(!1,"Table","`expandedRowRender` and `Column.fixed` are not compatible. Please use one of them at one time.");var l=a||E(t.children);return n.state=ze(ze({},n.getDefaultSortOrder(l||[])),{filters:n.getDefaultFilters(l),pagination:n.getDefaultPagination(t),pivot:void 0,prevProps:t,components:Ze(t.components),columns:l}),n}return He(e,i.Component),Ve(e,[{key:"componentDidUpdate",value:function(){var e=this.state,t=e.columns,n=e.sortColumn,o=e.sortOrder;if(0<this.getSortOrderColumns(t).length){var i=this.getSortStateFromColumns(t);Ye(i.sortColumn,n)&&i.sortOrder===o||this.setState(i)}}},{key:"getDefaultSelection",value:function(){var e=this;return qe(this.props).getCheckboxProps?this.getFlatData().filter((function(t,n){return e.getCheckboxPropsByItem(t,n).defaultChecked})).map((function(t,n){return e.getRecordKey(t,n)})):[]}},{key:"getDefaultPagination",value:function(e){var t,n,o="object"===je(e.pagination)?e.pagination:{};return"current"in o?t=o.current:"defaultCurrent"in o&&(t=o.defaultCurrent),"pageSize"in o?n=o.pageSize:"defaultPageSize"in o&&(n=o.defaultPageSize),this.hasPagination(e)?ze(ze(ze({},$e),o),{current:t||1,pageSize:n||10}):{}}},{key:"getSortOrderColumns",value:function(e){return x(e||(this.state||{}).columns||[],(function(e){return"sortOrder"in e}))}},{key:"getDefaultFilters",value:function(e){var t=Qe(this.state,e);return ze(ze({},x(e||[],(function(e){return void 0!==e.defaultFilteredValue})).reduce((function(e,t){return e[Ge(t)]=t.defaultFilteredValue,e}),{})),t)}},{key:"getDefaultSortOrder",value:function(e){var t=this.getSortStateFromColumns(e),n=x(e||[],(function(e){return null!=e.defaultSortOrder}))[0];return n&&!t.sortColumn?{sortColumn:n,sortOrder:n.defaultSortOrder}:t}},{key:"getSortStateFromColumns",value:function(e){var t=this.getSortOrderColumns(e).filter((function(e){return e.sortOrder}))[0];return t?{sortColumn:t,sortOrder:t.sortOrder}:{sortColumn:null,sortOrder:null}}},{key:"getMaxCurrent",value:function(e){var t=this.state.pagination,n=t.current,o=t.pageSize;return e<=(n-1)*o?Math.floor((e-1)/o)+1:n}},{key:"getSorterFn",value:function(e){var t=e||this.state,n=t.sortOrder,o=t.sortColumn;if(n&&o&&"function"==typeof o.sorter)return function(e,t){var i=o.sorter(e,t,n);return 0!==i?"descend"===n?-i:i:0}}},{key:"getCurrentPageData",value:function(){var e,t,n=this.getLocalData(),o=this.state;return e=this.hasPagination()?(t=o.pagination.pageSize,this.getMaxCurrent(o.pagination.total||n.length)):(t=Number.MAX_VALUE,1),(n.length>t||t===Number.MAX_VALUE)&&(n=n.slice((e-1)*t,e*t)),n}},{key:"getFlatData",value:function(){var e=this.props.childrenColumnName;return S(this.getLocalData(null,!1),e)}},{key:"getFlatCurrentPageData",value:function(){var e=this.props.childrenColumnName;return S(this.getCurrentPageData(),e)}},{key:"getLocalData",value:function(e,t){var n=this,o=!(1<arguments.length&&void 0!==t)||t,i=e||this.state,r=this.props.dataSource||[];r=r.slice(0);var a=this.getSorterFn(i);return a&&(r=this.recursiveSort(r,a)),o&&i.filters&&Object.keys(i.filters).forEach((function(e){var t=n.findColumn(e);if(t){var o=i.filters[e]||[];if(0!==o.length){var a=t.onFilter;r=a?r.filter((function(e){return o.some((function(t){return a(t,e)}))})):r}}})),r}},{key:"setSelectedRowKeys",value:function(e,t){var n=this,o=t.selectWay,i=t.record,r=t.checked,a=t.changeRowKeys,s=t.nativeEvent,l=qe(this.props);!l||"selectedRowKeys"in l||this.props.store.setState({selectedRowKeys:e});var c=this.getFlatData();if(l.onChange||l[o]){var u=c.filter((function(t,o){return 0<=e.indexOf(n.getRecordKey(t,o))}));if(l.onChange&&l.onChange(e,u),"onSelect"===o&&l.onSelect)l.onSelect(i,r,u,s);else if("onSelectMultiple"===o&&l.onSelectMultiple){var d=c.filter((function(e,t){return 0<=a.indexOf(n.getRecordKey(e,t))}));l.onSelectMultiple(r,u,d)}else if("onSelectAll"===o&&l.onSelectAll){var h=c.filter((function(e,t){return 0<=a.indexOf(n.getRecordKey(e,t))}));l.onSelectAll(r,u,h)}else"onSelectInvert"===o&&l.onSelectInvert&&l.onSelectInvert(e)}}},{key:"toggleSortOrder",value:function(e){var t,n=e.sortDirections||this.props.sortDirections,o=this.state,i=o.sortOrder;if(Ye(o.sortColumn,e)&&void 0!==i){var r=n.indexOf(i)+1;t=r===n.length?void 0:n[r]}else t=n[0];var a={sortOrder:t,sortColumn:t?e:null};0===this.getSortOrderColumns().length&&this.setState(a,this.scrollToFirstRow);var s=this.props.onChange;s&&s.apply(null,this.prepareParamsArguments(ze(ze({},this.state),a),e))}},{key:"hasPagination",value:function(e){return!1!==(e||this.props).pagination}},{key:"isSortColumn",value:function(e){var t=this.state.sortColumn;return!(!e||!t)&&Ge(t)===Ge(e)}},{key:"prepareParamsArguments",value:function(e,t){var n=ze({},e.pagination);delete n.onChange,delete n.onShowSizeChange;var o=e.filters,i={},r=t;return e.sortColumn&&e.sortOrder&&(r=e.sortColumn,i.column=e.sortColumn,i.order=e.sortOrder),r&&(i.field=r.dataIndex,i.columnKey=Ge(r)),[n,o,i,{currentDataSource:this.getLocalData(e)}]}},{key:"findColumn",value:function(e){var t;return O(this.state.columns,(function(n){Ge(n)===e&&(t=n)})),t}},{key:"recursiveSort",value:function(e,t){var n=this,o=this.props.childrenColumnName,i=void 0===o?"children":o;return e.sort(t).map((function(e){return e[i]?ze(ze({},e),Re({},i,n.recursiveSort(e[i],t))):e}))}},{key:"renderPagination",value:function(e,t){if(!this.hasPagination())return null;var n="default",o=this.state.pagination;o.size?n=o.size:"middle"!==this.props.size&&"small"!==this.props.size||(n="small");var r=o.position||"bottom",a=o.total||this.getLocalData().length;return 0<a&&(r===t||"both"===r)?i.createElement(_e.a,ze({key:"pagination-".concat(t)},o,{className:u()(o.className,"".concat(e,"-pagination")),onChange:this.handlePageChange,total:a,size:n,current:this.getMaxCurrent(a),onShowSizeChange:this.handleShowSizeChange})):null}},{key:"renderRowSelection",value:function(e){var t=this,n=e.prefixCls,o=e.locale,r=e.getPopupContainer,s=this.props.rowSelection,l=this.state.columns.concat();if(s){var c=this.getFlatCurrentPageData().filter((function(e,n){return!s.getCheckboxProps||!t.getCheckboxPropsByItem(e,n).disabled})),d=u()("".concat(n,"-selection-column"),Re({},"".concat(n,"-selection-column-custom"),s.selections)),h=Re({key:"selection-column",render:this.renderSelectionBox(s.type),className:d,fixed:s.fixed,width:s.columnWidth,title:s.columnTitle},a.INTERNAL_COL_DEFINE,{className:"".concat(n,"-selection-col")});if("radio"!==s.type){var p=c.every((function(e,n){return t.getCheckboxPropsByItem(e,n).disabled}));h.title=h.title||i.createElement(ee,{store:this.props.store,locale:o,data:c,getCheckboxPropsByItem:this.getCheckboxPropsByItem,getRecordKey:this.getRecordKey,disabled:p,prefixCls:n,onSelect:this.handleSelectRow,selections:s.selections,hideDefaultSelections:s.hideDefaultSelections,getPopupContainer:this.generatePopupContainerFunc(r)})}"fixed"in s?h.fixed=s.fixed:l.some((function(e){return"left"===e.fixed||!0===e.fixed}))&&(h.fixed="left"),l[0]&&"selection-column"===l[0].key?l[0]=h:l.unshift(h)}return l}},{key:"renderColumnsDropdown",value:function(e){var t=this,n=e.prefixCls,o=e.dropdownPrefixCls,r=e.columns,a=e.locale,s=e.getPopupContainer,l=this.state,c=l.sortOrder,d=l.filters;return O(r,(function(e,r){var l,h,p,f=Ge(e,r),g=e.onHeaderCell,m=t.isSortColumn(e);if(e.filters&&0<e.filters.length||e.filterDropdown){var v=f in d?d[f]:[];h=i.createElement(R,{locale:a,column:e,selectedKeys:v,confirmFilter:t.handleFilter,prefixCls:"".concat(n,"-filter"),dropdownPrefixCls:o||"ant-dropdown",getPopupContainer:t.generatePopupContainerFunc(s),key:"filter-dropdown"})}if(e.sorter){var y=e.sortDirections||t.props.sortDirections,_=m&&"ascend"===c,w=m&&"descend"===c,C=-1!==y.indexOf("ascend")&&i.createElement(b.a,{className:"".concat(n,"-column-sorter-up ").concat(_?"on":"off"),type:"caret-up",theme:"filled"}),S=-1!==y.indexOf("descend")&&i.createElement(b.a,{className:"".concat(n,"-column-sorter-down ").concat(w?"on":"off"),type:"caret-down",theme:"filled"});p=i.createElement("div",{title:a.sortTitle,className:u()("".concat(n,"-column-sorter-inner"),C&&S&&"".concat(n,"-column-sorter-inner-full")),key:"sorter"},C,S),g=function(n){var o={};e.onHeaderCell&&(o=ze({},e.onHeaderCell(n)));var i=o.onClick;return o.onClick=function(){t.toggleSortOrder(e),i&&i.apply(void 0,arguments)},o}}return ze(ze({},e),{className:u()(e.className,(Re(l={},"".concat(n,"-column-has-actions"),p||h),Re(l,"".concat(n,"-column-has-filters"),h),Re(l,"".concat(n,"-column-has-sorters"),p),Re(l,"".concat(n,"-column-sort"),m&&c),l)),title:[i.createElement("span",{key:"title",className:"".concat(n,"-header-column")},i.createElement("div",{className:p?"".concat(n,"-column-sorters"):void 0},i.createElement("span",{className:"".concat(n,"-column-title")},t.renderColumnTitle(e.title)),i.createElement("span",{className:"".concat(n,"-column-sorter")},p))),h],onHeaderCell:g})}))}},{key:"renderColumnTitle",value:function(e){var t=this.state,n=t.filters,o=t.sortOrder,i=t.sortColumn;return e instanceof Function?e({filters:n,sortOrder:o,sortColumn:i}):e}},{key:"render",value:function(){return i.createElement(Te.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o,i=t.prevProps,r=e.columns||E(e.children),a=ze(ze({},t),{prevProps:e,columns:r});if("pagination"in e||"pagination"in i){var s=ze(ze(ze({},$e),t.pagination),e.pagination);s.current=s.current||1,s.pageSize=s.pageSize||10,a=ze(ze({},a),{pagination:!1!==e.pagination?s:Xe})}if(e.rowSelection&&"selectedRowKeys"in e.rowSelection?e.store.setState({selectedRowKeys:e.rowSelection.selectedRowKeys||[]}):i.rowSelection&&!e.rowSelection&&e.store.setState({selectedRowKeys:[]}),"dataSource"in e&&e.dataSource!==i.dataSource&&e.store.setState({selectionDirty:!1}),e.setCheckboxPropsCache({}),0<Je(a,a.columns).length){var l=Qe(a,a.columns),c=ze({},a.filters);Object.keys(l).forEach((function(e){c[e]=l[e]})),n=a,o=c,Object.keys(o).length===Object.keys(n.filters).length&&!Object.keys(o).some((function(e){return o[e]!==n.filters[e]}))||(a=ze(ze({},a),{filters:c}))}if(!function(e,t){var n=0<arguments.length&&void 0!==e?e:{},o=1<arguments.length&&void 0!==t?t:{};return n===o||["table","header","body"].every((function(e){return h()(n[e],o[e])}))}(e.components,i.components)){var u=Ze(e.components);a=ze(ze({},a),{components:u})}return a}}]),e}();et.propTypes={dataSource:l.array,columns:l.array,prefixCls:l.string,useFixedHeader:l.bool,rowSelection:l.object,className:l.string,size:l.string,loading:l.oneOfType([l.bool,l.object]),bordered:l.bool,onChange:l.func,locale:l.object,dropdownPrefixCls:l.string,sortDirections:l.array,getPopupContainer:l.func},et.defaultProps={dataSource:[],useFixedHeader:!1,className:"",size:"default",loading:!1,bordered:!1,indentSize:20,locale:{},rowKey:"key",showHeader:!0,sortDirections:["ascend","descend"],childrenColumnName:"children"},Object(p.polyfill)(et);var tt=function(){function e(t){var n;return Ae(this,e),(n=We(this,Be(e).call(this,t))).setCheckboxPropsCache=function(e){return n.CheckboxPropsCache=e},n.CheckboxPropsCache={},n.store=function(e){var t=e,n=[];return{setState:function(e){t=A(A({},t),e);for(var o=0;o<n.length;o++)n[o]()},getState:function(){return t},subscribe:function(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}}}}({selectedRowKeys:qe(t).selectedRowKeys||[],selectionDirty:!1}),n}return He(e,i.Component),Ve(e,[{key:"render",value:function(){return i.createElement(et,ze({},this.props,{store:this.store,checkboxPropsCache:this.CheckboxPropsCache,setCheckboxPropsCache:this.setCheckboxPropsCache}))}}]),e}();tt.displayName="withStore(Table)",tt.Column=re,tt.ColumnGroup=ue;var nt=tt;t.a=nt},function(e,t,n){"use strict";n(46),n(687)},function(e,t,n){"use strict";var o=n(0),i=n(12),r=n.n(i),a=n(33),s=n(25),l=n(18),c=n(77);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},y=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=f(this,g(e).apply(this,arguments))).handleClick=function(){var e=t.props,n=e.checked,o=e.onChange;o&&o(!n)},t.renderCheckableTag=function(e){var n,i=e.getPrefixCls,a=t.props,s=a.prefixCls,l=a.className,c=a.checked,u=v(a,["prefixCls","className","checked"]),p=i("tag",s),f=r()(p,(h(n={},"".concat(p,"-checkable"),!0),h(n,"".concat(p,"-checkable-checked"),c),n),l);return delete u.onChange,o.createElement("span",d({},u,{className:f,onClick:t.handleClick}))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){return o.createElement(c.a,null,this.renderCheckableTag)}}])&&p(t.prototype,n),e}(),b=n(632),_=n(27),w=n(181);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N=new RegExp("^(".concat(b.a.join("|"),")(-inverse)?$")),D=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,E(e).call(this,t))).state={visible:!0},n.handleIconClick=function(e){e.stopPropagation(),n.setVisible(!1,e)},n.renderTag=function(e){var t=n.props,i=t.children,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(t,["children"]),s="onClick"in r||i&&"a"===i.type,l=Object(a.default)(r,["onClose","afterClose","color","visible","closable","prefixCls"]);return s?o.createElement(w.a,null,o.createElement("span",O({},l,{className:n.getTagClassName(e),style:n.getTagStyle()}),i,n.renderCloseIcon())):o.createElement("span",O({},l,{className:n.getTagClassName(e),style:n.getTagStyle()}),i,n.renderCloseIcon())},Object(_.a)(!("afterClose"in t),"Tag","'afterClose' will be deprecated, please use 'onClose', we will remove this in the next version."),n}var t,n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(e,o.Component),t=e,i=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:null}}],(n=[{key:"getTagStyle",value:function(){var e=this.props,t=e.color,n=e.style,o=this.isPresetColor();return O({backgroundColor:t&&!o?t:void 0},n)}},{key:"getTagClassName",value:function(e){var t,n=e.getPrefixCls,o=this.props,i=o.prefixCls,a=o.className,s=o.color,l=this.state.visible,c=this.isPresetColor(),u=n("tag",i);return r()(u,(S(t={},"".concat(u,"-").concat(s),c),S(t,"".concat(u,"-has-color"),s&&!c),S(t,"".concat(u,"-hidden"),!l),t),a)}},{key:"setVisible",value:function(e,t){var n=this.props,o=n.onClose,i=n.afterClose;o&&o(t),i&&!o&&i(),t.defaultPrevented||"visible"in this.props||this.setState({visible:e})}},{key:"isPresetColor",value:function(){var e=this.props.color;return!!e&&N.test(e)}},{key:"renderCloseIcon",value:function(){return this.props.closable?o.createElement(l.a,{type:"close",onClick:this.handleIconClick}):null}},{key:"render",value:function(){return o.createElement(c.a,null,this.renderTag)}}])&&x(t.prototype,n),i&&x(t,i),e}();D.CheckableTag=y,D.defaultProps={closable:!1},Object(s.polyfill)(D),t.a=D},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var o=n(442),i=function(e,t,n){function i(e){return r.fire(e)}var r=new o.a({onFirstListenerAdd:function(){e.addEventListener(t,i,n)},onLastListenerRemove:function(){e.removeEventListener(t,i,n)}});return r.event};function r(e){return o.b.map(e,(function(e){return e.preventDefault(),e.stopPropagation(),e}))}},function(e,t,n){},function(e,t,n){"use strict";n(1328);var o,i,r=n(478),a=n(443),s=n(488),l=n(595),c=n(793),u=n(597),d=n(453),h=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(p,i=u.a),p.prototype._arrowMouseDown=function(e){var t=this;this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet((function(){t._mousedownRepeatTimer.cancelAndSet((function(){return t._onActivate()}),1e3/24)}),200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,c.b,(function(e){}),(function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()})),e.preventDefault()},p);function p(e){var t=i.call(this)||this;return t._onActivate=e.onActivate,t.bgDomNode=document.createElement("div"),t.bgDomNode.className="arrow-background",t.bgDomNode.style.position="absolute",t.bgDomNode.style.width=e.bgWidth+"px",t.bgDomNode.style.height=e.bgHeight+"px",void 0!==e.top&&(t.bgDomNode.style.top="0px"),void 0!==e.left&&(t.bgDomNode.style.left="0px"),void 0!==e.bottom&&(t.bgDomNode.style.bottom="0px"),void 0!==e.right&&(t.bgDomNode.style.right="0px"),t.domNode=document.createElement("div"),t.domNode.className=e.className,t.domNode.style.position="absolute",t.domNode.style.width="11px",t.domNode.style.height="11px",void 0!==e.top&&(t.domNode.style.top=e.top+"px"),void 0!==e.left&&(t.domNode.style.left=e.left+"px"),void 0!==e.bottom&&(t.domNode.style.bottom=e.bottom+"px"),void 0!==e.right&&(t.domNode.style.right=e.right+"px"),t._mouseMoveMonitor=t._register(new c.a),t.onmousedown(t.bgDomNode,(function(e){return t._arrowMouseDown(e)})),t.onmousedown(t.domNode,(function(e){return t._arrowMouseDown(e)})),t._mousedownRepeatTimer=t._register(new d.c),t._mousedownScheduleRepeatTimer=t._register(new d.e),t}var f,g,m=n(439),v=((f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(y,g=m.a),y.prototype.applyVisibilitySetting=function(e){return 2!==this._visibility&&(3===this._visibility||e)},y.prototype.setShouldBeVisible=function(e){var t=this.applyVisibilitySetting(e);this._shouldBeVisible!==t&&(this._shouldBeVisible=t,this.ensureVisibility())},y.prototype.setIsNeeded=function(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())},y.prototype.setDomNode=function(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},y.prototype.ensureVisibility=function(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)},y.prototype._reveal=function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((function(){e._domNode&&e._domNode.setClassName(e._visibleClassName)}),0))},y.prototype._hide=function(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))},y);function y(e,t,n){var o=g.call(this)||this;return o._visibility=e,o._visibleClassName=t,o._invisibleClassName=n,o._domNode=null,o._isVisible=!1,o._isNeeded=!1,o._shouldBeVisible=!1,o._revealTimer=o._register(new d.e),o}var b,_,w=n(452),C=((b=function(e,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(S,_=u.a),S.prototype._createArrow=function(e){var t=this._register(new h(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)},S.prototype._createSlider=function(e,t,n,o){var i=this;this.slider=Object(s.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof n&&this.slider.setWidth(n),"number"==typeof o&&this.slider.setHeight(o),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(),i._sliderMouseDown(e,(function(){})))})),this.onclick(this.slider.domNode,(function(e){e.leftButton&&e.stopPropagation()}))},S.prototype._onElementSize=function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},S.prototype._onElementScrollSize=function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},S.prototype._onElementScrollPosition=function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},S.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},S.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},S.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()))},S.prototype._domNodeMouseDown=function(e){e.target===this.domNode.domNode&&this._onMouseDown(e)},S.prototype.delegateMouseDown=function(e){var t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),o=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),i=this._sliderMousePosition(e);n<=i&&i<=o?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(function(){}))):this._onMouseDown(e)},S.prototype._onMouseDown=function(e){var t,n;if(e.target===this.domNode.domNode&&"number"==typeof e.browserEvent.offsetX&&"number"==typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{var o=a.C(this.domNode.domNode);t=e.posx-o.left,n=e.posy-o.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t,n))),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(function(){})))},S.prototype._sliderMouseDown=function(e,t){var n=this,o=this._sliderMousePosition(e),i=this._sliderOrthogonalMousePosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,c.b,(function(e){var t=n._sliderOrthogonalMousePosition(e),a=Math.abs(t-i);if(w.h&&140<a)n._setDesiredScrollPositionNow(r.getScrollPosition());else{var s=n._sliderMousePosition(e)-o;n._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(s))}}),(function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()})),this._host.onDragStart()},S.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},S);function S(e){var t=_.call(this)||this;return t._lazyRender=e.lazyRender,t._host=e.host,t._scrollable=e.scrollable,t._scrollbarState=e.scrollbarState,t._visibilityController=t._register(new v(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),t._visibilityController.setIsNeeded(t._scrollbarState.isNeeded()),t._mouseMoveMonitor=t._register(new c.a),t._shouldRender=!0,t.domNode=Object(s.b)(document.createElement("div")),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t._visibilityController.setDomNode(t.domNode),t.domNode.setPosition("absolute"),t.onmousedown(t.domNode.domNode,(function(e){return t._domNodeMouseDown(e)})),t}var O=(x.prototype.clone=function(){return new x(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},x.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)},x.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)},x.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)},x._computeValues=function(e,t,n,o,i){var r=Math.max(0,n-e),a=Math.max(0,r-2*t),s=0<o&&n<o;if(!s)return{computedAvailableSize:Math.round(r),computedIsNeeded:s,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};var l=Math.round(Math.max(20,Math.floor(n*a/o))),c=(a-l)/(o-n),u=i*c;return{computedAvailableSize:Math.round(r),computedIsNeeded:s,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(u)}},x.prototype._refreshComputedValues=function(){var e=x._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition},x.prototype.getArrowSize=function(){return this._arrowSize},x.prototype.getScrollPosition=function(){return this._scrollPosition},x.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},x.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},x.prototype.isNeeded=function(){return this._computedIsNeeded},x.prototype.getSliderSize=function(){return this._computedSliderSize},x.prototype.getSliderPosition=function(){return this._computedSliderPosition},x.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},x.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},x);function x(e,t,n,o,i,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=o,this._scrollSize=i,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}var E,k,N=((E=function(e,t){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)},function(e,t){function n(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(D,k=C),D.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},D.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},D.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},D.prototype._mouseDownRelativePosition=function(e,t){return e},D.prototype._sliderMousePosition=function(e){return e.posx},D.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},D.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},D);function D(e,t,n){var o=this,i=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(o=k.call(this,{lazyRender:t.lazyRender,host:n,scrollbarState:new O(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,i.width,i.scrollWidth,r.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e})||this,t.horizontalHasArrows){var a=(t.arrowSize-11)/2,s=(t.horizontalScrollbarSize-11)/2;o._createArrow({className:"left-arrow",top:s,left:a,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new l.c(null,1,0))}}),o._createArrow({className:"right-arrow",top:s,left:void 0,bottom:void 0,right:a,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new l.c(null,-1,0))}})}return o._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize),o}var L,P,I=((L=function(e,t){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(T,P=C),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);function T(e,t,n){var o=this,i=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(o=P.call(this,{lazyRender:t.lazyRender,host:n,scrollbarState:new O(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,i.height,i.scrollHeight,r.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e})||this,t.verticalHasArrows){var a=(t.arrowSize-11)/2,s=(t.verticalScrollbarSize-11)/2;o._createArrow({className:"up-arrow",top:a,left:s,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:function(){return o._host.onMouseWheel(new l.c(null,0,1))}}),o._createArrow({className:"down-arrow",top:void 0,left:s,bottom:a,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:function(){return o._host.onMouseWheel(new l.c(null,0,-1))}})}return o._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0),o}var M=n(442),j=n(1082);n.d(t,"b",(function(){return U})),n.d(t,"c",(function(){return Y})),n.d(t,"a",(function(){return X}));var R,A=(R=function(e,t){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),F=function(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0},V=(W.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;for(var e=1,t=0,n=1,o=this._rear;;){var i=o===this._front?e:Math.pow(2,-n);if(e-=i,t+=this._memory[o].score*i,o===this._front)break;o=(this._capacity+o-1)%this._capacity,n++}return t<=.5},W.prototype.accept=function(e,t,n){var o=new F(e,t,n);o.score=this._computeScore(o),-1===this._front&&-1===this._rear?(this._memory[0]=o,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]=o)},W.prototype._computeScore=function(e){if(0<Math.abs(e.deltaX)&&0<Math.abs(e.deltaY))return 1;var t=.5;return-1===this._front&&-1===this._rear||this._memory[this._rear],(0<Math.abs(e.deltaX-Math.round(e.deltaX))||0<Math.abs(e.deltaY-Math.round(e.deltaY)))&&(t+=.25),Math.min(Math.max(t,0),1)},W.INSTANCE=new W,W);function W(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}var B,H=(A(z,B=u.a),z.prototype.dispose=function(){this._mouseWheelToDispose=Object(m.f)(this._mouseWheelToDispose),B.prototype.dispose.call(this)},z.prototype.getDomNode=function(){return this._domNode},z.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},z.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},z.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},z.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},z.prototype.updateClassName=function(e){this._options.className=e,w.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},z.prototype.updateOptions=function(e){var t=Q(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()},z.prototype._setListeningToMouseWheel=function(e){var t=this;0<this._mouseWheelToDispose.length!==e&&(this._mouseWheelToDispose=Object(m.f)(this._mouseWheelToDispose),e)&&this._mouseWheelToDispose.push(a.j(this._listenOnDomNode,r.f?"mousewheel":"wheel",(function(e){t._onMouseWheel(new l.c(e))}),{passive:!1}))},z.prototype._onMouseWheel=function(e){var t,n=V.INSTANCE;if(n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var o=e.deltaY*this._options.mouseWheelScrollSensitivity,i=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(o=(t=[i,o])[0],i=t[1]);var r=!w.e&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||i||(i=o,o=0),e.browserEvent&&e.browserEvent.altKey&&(i*=this._options.fastScrollSensitivity,o*=this._options.fastScrollSensitivity);var a=this._scrollable.getFutureScrollPosition(),s={};if(o){var l=a.scrollTop-50*o;this._verticalScrollbar.writeScrollPosition(s,l)}if(i){var c=a.scrollLeft-50*i;this._horizontalScrollbar.writeScrollPosition(s,c)}s=this._scrollable.validateScrollPosition(s),a.scrollLeft===s.scrollLeft&&a.scrollTop===s.scrollTop||(this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(s):this._scrollable.setScrollPositionNow(s),this._shouldRender=!0)}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},z.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()},z.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},z.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=0<e.scrollTop,n=0<e.scrollLeft;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},z.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},z.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},z.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},z.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},z.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},z.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},z.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((function(){return e._hide()}),500)},z);function z(e,t,n){var o=B.call(this)||this;o._onScroll=o._register(new M.a),o.onScroll=o._onScroll.event,e.style.overflow="hidden",o._options=Q(t),o._scrollable=n,o._register(o._scrollable.onScroll((function(e){o._onDidScroll(e),o._onScroll.fire(e)})));var i={onMouseWheel:function(e){return o._onMouseWheel(e)},onDragStart:function(){return o._onDragStart()},onDragEnd:function(){return o._onDragEnd()}};return o._verticalScrollbar=o._register(new I(o._scrollable,o._options,i)),o._horizontalScrollbar=o._register(new N(o._scrollable,o._options,i)),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(e),o._domNode.appendChild(o._horizontalScrollbar.domNode.domNode),o._domNode.appendChild(o._verticalScrollbar.domNode.domNode),o._options.useShadows?(o._leftShadowDomNode=Object(s.b)(document.createElement("div")),o._leftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._leftShadowDomNode.domNode),o._topShadowDomNode=Object(s.b)(document.createElement("div")),o._topShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topShadowDomNode.domNode),o._topLeftShadowDomNode=Object(s.b)(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 d.e),o._isDragging=!1,o._mouseIsOver=!1,o._shouldRender=!0,o._revealOnScroll=!0,o}var K,U=(A(q,K=H),q.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},q.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},q);function q(e,t){var n=this;(t=t||{}).mouseWheelSmoothScroll=!1;var o=new j.a(0,(function(e){return a.W(e)}));return(n=K.call(this,e,t,o)||this)._register(o),n}var G,Y=(A(Z,G=H),Z);function Z(e,t,n){return G.call(this,e,t,n)||this}var $,X=(A(J,$=U),J.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})},J);function J(e,t){var n=$.call(this,e,t)||this;return n._element=e,n.onScroll((function(e){e.scrollTopChanged&&(n._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(n._element.scrollLeft=e.scrollLeft)})),n.scanDomNode(),n}function Q(e){var t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,w.e&&(t.className+=" mac"),t}},,,function(e,t,n){"use strict";n(46),n(797)},function(e,t,n){"use strict";var o=n(169),i=n.n(o)()({});t.a=i},function(e,t){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,o=e.length;n<o&&!1!==t(e[n],n);n++);}}},function(e,t,n){"use strict";var o=n(1),i=n.n(o),r=n(0),a=n.n(r),s=n(12),l=n.n(s),c=n(33),u=n(18),d=n(77),h=n(51);function p(e){return!e||e<0?0:100<e?100:e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function m(e){var t=e.from,n=void 0===t?"#1890ff":t,o=e.to,i=void 0===o?"#1890ff":o,r=e.direction,a=void 0===r?"to right":r,s=y(e,["from","to","direction"]);if(0===Object.keys(s).length)return{backgroundImage:"linear-gradient(".concat(a,", ").concat(n,", ").concat(i,")")};var l=function(e){for(var t=[],n=0,o=Object.entries(e);n<o.length;n++){var i=g(o[n],2),r=i[0],a=i[1],s=parseFloat(r.replace(/%/g,""));if(isNaN(s))return{};t.push({key:s,value:a})}return(t=t.sort((function(e,t){return e.key-t.key}))).map((function(e){var t=e.key,n=e.value;return"".concat(n," ").concat(t,"%")})).join(", ")}(s);return{backgroundImage:"linear-gradient(".concat(a,", ").concat(l,")")}}function v(e){var t,n=e.prefixCls,o=e.percent,i=e.successPercent,a=e.strokeWidth,s=e.size,l=e.strokeColor,c=e.strokeLinecap,u=e.children;t=l&&"string"!=typeof l?m(l):{background:l};var d=f({width:"".concat(p(o),"%"),height:a||("small"===s?6:8),borderRadius:"square"===c?0:""},t),h={width:"".concat(p(i),"%"),height:a||("small"===s?6:8),borderRadius:"square"===c?0:""},g=void 0!==i?r.createElement("div",{className:"".concat(n,"-success-bg"),style:h}):null;return r.createElement("div",null,r.createElement("div",{className:"".concat(n,"-outer")},r.createElement("div",{className:"".concat(n,"-inner")},r.createElement("div",{className:"".concat(n,"-bg"),style:d}),g)),u)}var y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};function b(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function w(e,t,n){return(w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=C(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var O=function(e){return function(){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_(this,C(t).apply(this,arguments))}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(){var e=this,t=Date.now(),n=!1;Object.keys(this.paths).forEach((function(o){var i=e.paths[o];if(i){n=!0;var r=i.style;r.transitionDuration=".3s, .3s, .3s, .06s",e.prevTimeStamp&&t-e.prevTimeStamp<100&&(r.transitionDuration="0s, 0s")}})),n&&(this.prevTimeStamp=Date.now())}},{key:"render",value:function(){return w(C(t.prototype),"render",this).call(this)}}])&&b(n.prototype,o),t}()},x={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},E=i.a.oneOfType([i.a.number,i.a.string]),k={className:i.a.string,percent:i.a.oneOfType([E,i.a.arrayOf(E)]),prefixCls:i.a.string,strokeColor:i.a.oneOfType([i.a.string,i.a.arrayOf(i.a.oneOfType([i.a.string,i.a.object])),i.a.object]),strokeLinecap:i.a.oneOf(["butt","round","square"]),strokeWidth:E,style:i.a.object,trailColor:i.a.string,trailWidth:E};function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function D(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var T=function(){function e(){var t,n,o,i,r,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return o=this,n=!(i=(t=L(e)).call.apply(t,[this].concat(c)))||"object"!=typeof i&&"function"!=typeof i?P(o):i,s={},(a="paths")in(r=P(n))?Object.defineProperty(r,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[a]=s,n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(e,r.Component),t=e,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=t.percent,i=t.prefixCls,r=t.strokeColor,s=t.strokeLinecap,l=t.strokeWidth,c=t.style,u=t.trailColor,d=t.trailWidth,h=t.transition,p=function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],0<=t.indexOf(n)||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete p.gapPosition;var f=Array.isArray(o)?o:[o],g=Array.isArray(r)?r:[r],m=l/2,v=100-l/2,y="M ".concat("round"===s?m:0,",").concat(m,"\n L ").concat("round"===s?v:100,",").concat(m),b="0 0 100 ".concat(l),_=0;return a.a.createElement("svg",N({className:"".concat(i,"-line ").concat(n),viewBox:b,preserveAspectRatio:"none",style:c},p),a.a.createElement("path",{className:"".concat(i,"-line-trail"),d:y,strokeLinecap:s,stroke:u,strokeWidth:d||l,fillOpacity:"0"}),f.map((function(t,n){var o={strokeDasharray:"".concat(t,"px, 100px"),strokeDashoffset:"-".concat(_,"px"),transition:h||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},r=g[n]||g[g.length-1];return _+=t,a.a.createElement("path",{key:n,className:"".concat(i,"-line-path"),d:y,strokeLinecap:s,stroke:r,strokeWidth:l,fillOpacity:"0",ref:function(t){e.paths[n]=t},style:o})})))}}])&&D(t.prototype,n),e}();function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(n,!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(){return(R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function A(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}T.propTypes=k,T.defaultProps=x,O(T);var H=0;function z(e){return+e.replace("%","")}function K(e){return Array.isArray(e)?e:[e]}function U(e,t,n,o,i,r){var a=4<arguments.length&&void 0!==i?i:0,s=50-o/2,l=0,c=-s,u=0,d=-2*s;switch(5<arguments.length?r:void 0){case"left":l=-s,u=2*s,d=c=0;break;case"right":u=-2*(l=s),d=c=0;break;case"bottom":d=2*(c=s)}var h="M 50,50 m ".concat(l,",").concat(c,"\n a ").concat(s,",").concat(s," 0 1 1 ").concat(u,",").concat(-d,"\n a ").concat(s,",").concat(s," 0 1 1 ").concat(-u,",").concat(d),p=2*Math.PI*s;return{pathString:h,pathStyle:{stroke:n,strokeDasharray:"".concat(t/100*(p-a),"px ").concat(p,"px"),strokeDashoffset:"-".concat(a/2+e/100*(p-a),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"}}}var q=function(){function e(){var t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,t=!(n=F(e).call(this))||"object"!=typeof n&&"function"!=typeof n?V(this):n,B(V(t),"paths",{}),B(V(t),"gradientId",0),t.gradientId=H,H+=1,t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&W(e,t)}(e,r.Component),t=e,(n=[{key:"getStokeList",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.percent,i=t.strokeColor,r=t.strokeWidth,s=t.strokeLinecap,l=t.gapDegree,c=t.gapPosition,u=K(o),d=K(i),h=0;return u.map((function(t,o){var i=d[o]||d[d.length-1],u="[object Object]"===Object.prototype.toString.call(i)?"url(#".concat(n,"-gradient-").concat(e.gradientId,")"):"",p=U(h,t,i,r,l,c),f=p.pathString,g=p.pathStyle;return h+=t,a.a.createElement("path",{key:o,className:"".concat(n,"-circle-path"),d:f,stroke:u,strokeLinecap:s,strokeWidth:0===t?0:r,fillOpacity:"0",style:g,ref:function(t){e.paths[o]=t}})}))}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.strokeWidth,o=e.trailWidth,i=e.gapDegree,r=e.gapPosition,s=e.trailColor,l=e.strokeLinecap,c=e.style,u=e.className,d=e.strokeColor,h=function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],0<=t.indexOf(n)||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor"]),p=U(0,100,s,n,i,r),f=p.pathString,g=p.pathStyle;delete h.percent;var m=K(d).find((function(e){return"[object Object]"===Object.prototype.toString.call(e)}));return a.a.createElement("svg",R({className:"".concat(t,"-circle ").concat(u),viewBox:"0 0 100 100",style:c},h),m&&a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"".concat(t,"-gradient-").concat(this.gradientId),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(m).sort((function(e,t){return z(e)-z(t)})).map((function(e,t){return a.a.createElement("stop",{key:t,offset:e,stopColor:m[e]})})))),a.a.createElement("path",{className:"".concat(t,"-circle-trail"),d:f,stroke:s,strokeLinecap:l,strokeWidth:o||n,fillOpacity:"0",style:g}),this.getStokeList().reverse())}}])&&A(t.prototype,n),e}();q.propTypes=j({},k,{gapPosition:i.a.oneOf(["top","bottom","left","right"])}),q.defaultProps=j({},x,{gapPosition:"top"});var G=O(q),Y={normal:"#108ee9",exception:"#ff5500",success:"#87d068"};function Z(e){var t,n,o,i,a,s,c,u=e.prefixCls,d=e.width,h=e.strokeWidth,f=e.trailColor,g=e.strokeLinecap,m=e.gapPosition,v=e.gapDegree,y=e.type,b=e.children,_=d||120,w={width:_,height:_,fontSize:.15*_+6},C=h||6,S=m||"dashboard"===y&&"bottom"||"top",O=v||("dashboard"===y?75:void 0),x=(n=(t=e).progressStatus,o=t.successPercent,i=t.strokeColor||Y[n],o?[Y.success,i]:i),E="[object Object]"===Object.prototype.toString.call(x),k=l()("".concat(u,"-inner"),(a={},c=E,(s="".concat(u,"-circle-gradient"))in a?Object.defineProperty(a,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[s]=c,a));return r.createElement("div",{className:k,style:w},r.createElement(G,{percent:function(e){var t=e.percent,n=e.successPercent,o=p(t);if(!n)return o;var i=p(n);return[n,p(o-i)]}(e),strokeWidth:C,trailWidth:C,strokeColor:x,strokeLinecap:g,trailColor:f,prefixCls:u,gapDegree:O,gapPosition:S}),b)}function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function Q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e,t){return(ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var oe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},ie=Object(h.a)("line","circle","dashboard"),re=Object(h.a)("normal","exception","active","success"),ae=function(){function e(){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=ee(e).apply(this,arguments),(t=!o||"object"!==$(o)&&"function"!=typeof o?te(n):o).renderProgress=function(e){var n,o,i=e.getPrefixCls,a=te(t).props,s=a.prefixCls,u=a.className,d=a.size,h=a.type,p=a.showInfo,f=oe(a,["prefixCls","className","size","type","showInfo"]),g=i("progress",s),m=t.getProgressStatus(),y=t.renderProcessInfo(g,m);"line"===h?o=r.createElement(v,J({},t.props,{prefixCls:g}),y):"circle"!==h&&"dashboard"!==h||(o=r.createElement(Z,J({},t.props,{prefixCls:g,progressStatus:m}),y));var b=l()(g,(X(n={},"".concat(g,"-").concat("dashboard"===h?"circle":h),!0),X(n,"".concat(g,"-status-").concat(m),!0),X(n,"".concat(g,"-show-info"),p),X(n,"".concat(g,"-").concat(d),d),n),u);return r.createElement("div",J({},Object(c.default)(f,["status","format","trailColor","successPercent","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent"]),{className:b}),o)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ne(e,t)}(e,r.Component),t=e,(n=[{key:"getPercentNumber",value:function(){var e=this.props,t=e.successPercent,n=e.percent,o=void 0===n?0:n;return parseInt(void 0!==t?t.toString():o.toString(),10)}},{key:"getProgressStatus",value:function(){var e=this.props.status;return re.indexOf(e)<0&&100<=this.getPercentNumber()?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var n,o=this.props,i=o.showInfo,a=o.format,s=o.type,l=o.percent,c=o.successPercent;if(!i)return null;var d="circle"===s||"dashboard"===s?"":"-circle";return a||"exception"!==t&&"success"!==t?n=(a||function(e){return"".concat(e,"%")})(p(l),p(c)):"exception"===t?n=r.createElement(u.a,{type:"close".concat(d),theme:"line"===s?"filled":"outlined"}):"success"===t&&(n=r.createElement(u.a,{type:"check".concat(d),theme:"line"===s?"filled":"outlined"})),r.createElement("span",{className:"".concat(e,"-text"),title:"string"==typeof n?n:void 0},n)}},{key:"render",value:function(){return r.createElement(d.a,null,this.renderProgress)}}])&&Q(t.prototype,n),e}();ae.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:"#f3f3f3",size:"default",gapDegree:0,strokeLinecap:"round"},ae.propTypes={status:o.oneOf(re),type:o.oneOf(ie),showInfo:o.bool,percent:o.number,width:o.number,strokeWidth:o.number,strokeLinecap:o.oneOf(["round","square"]),strokeColor:o.oneOfType([o.string,o.object]),trailColor:o.string,format:o.func,gapDegree:o.number},t.a=ae},function(e,t,n){"use strict";n(104);var o=n(60),i=n(4),r=n(8),a=n(7),s=n(10),l=n(9),c=n(11),u=n(0),d=n.n(u),h=(n(50),n(29)),p=(n(268),n(95)),f=(n(63),n(21)),g=(n(103),n(47)),m=(n(470),n(462)),v=n(74),y=n(176),b=n(191),_=n(28),w=n(6),C=n.n(w),S=n(190),O=n(180),x=n(784),E=(n(681),window.$),k=m.a.Group,N=g.a.Search;window._header_componentHandler=null;var D=function(e){function t(e){var n;return Object(r.a)(this,t),(n=Object(s.a)(this,Object(l.a)(t).call(this,e))).componentDidUpdate=function(e){void 0===n.state.mygetHelmetapi2&&n.getAppdata()},n.componentDidUpdate=function(e){},n.openNotification=function(e){f.a.open({message:"\u63d0\u793a",description:e})},n.getCookie=function(e){var t,n=RegExp("(^| )"+e+"=([^;]+)(;|$)");return(t=document.cookie.match(n))?decodeURIComponent(t[2]):null},n.delCookie=function(e){var t=new Date;t.setTime(t.getTime()-1);var o=n.getCookie(e);null!=o&&(document.cookie=e+"="+o+";expires="+t.toGMTString())},n.onLogout=function(){n.delCookie("autologin_trustie"),C.a.get("/accounts/logout.json",{}).then((function(e){1===e.data.status&&(n.setState({user:void 0}),window.location.href="/login",p.a.success("\u9000\u51fa\u6210\u529f"))}))},n.tojoinclass=function(){var e=n.state.user;void 0===e||e&&""===e.login?n.setState({isRender:!0}):e&&!1===e.profile_completed?n.setState({AccountProfiletype:!0}):n.setState({Addcoursestypes:!0})},n.tojoinitem=function(){if(n.props.user&&void 0===n.props.user.email||n.props.user&&null===n.props.user.email||n.props.user&&""===n.props.user.email)n.openNotification("\u8bf7\u5148\u7ed1\u5b9a\u90ae\u7bb1\uff0c\u8c22\u8c22");else{var e=n.state.user;void 0===e||e&&""===e.login?n.setState({isRender:!0}):e&&!1===e.profile_completed?n.setState({AccountProfiletype:!0}):n.setState({tojoinitemtype:!0})}},n.submitstatevalue=function(e,t,o){n.setState({Addcoursestypes:!1,tojoinitemtype:!1,tojoinclasstitle:void 0,rolearr:["",""],Checkboxteacherchecked:!1,Checkboxstudentchecked:!1,Checkboxteachingchecked:!1,Checkboxteachertype:!1,Checkboxteachingtype:!1,code_notice:!1,checked_notice:!1,submitapplicationssum:e,submitapplications:!0,submitapplicationsvalue:t,submitapplicationsvaluedata:o,RadioGroupvalue:void 0})},n.onChangeRadioGroup=function(e){n.setState({RadioGroupvalue:e.target.value})},n.submitsubmitapplications=function(){var e=n.state,t=e.submitapplicationssum,o=e.submitapplicationsvaluedata;n.setState({submitapplications:!1,RadioGroupvalue:void 0}),0===t?null!=o&&(window.location.href="/courses/"+o):1===t&&null!=o&&(window.location.href="/projects/"+o)},n.hidesubmitapplications=function(){n.setState({Addcoursestypes:!1,tojoinitemtype:!1,tojoinclasstitle:void 0,rolearr:["",""],Checkboxteacherchecked:!1,Checkboxstudentchecked:!1,Checkboxteachingchecked:!1,Checkboxteachertype:!1,Checkboxteachingtype:!1,code_notice:!1,checked_notice:!1,submitapplications:!1,RadioGroupvalue:void 0})},n.educoderlogin=function(){n.setState({isRender:!0})},n.educoderloginysl=function(){C.a.get("/accounts/logout.json").then((function(e){void 0!==e&&(window.location.href="/")})).catch((function(e){}))},n.hideAddcoursestypes=function(){n.setState({Addcoursestypes:!1})},n.HideAddcoursestypess=function(e){n.setState({Addcoursestypes:!1,mydisplay:!0,occupation:e})},n.ModalCancelsy=function(){n.setState({mydisplay:!1})},n.hidetojoinclass=function(){n.setState({tojoinclasstype:!1,tojoinitemtype:!1,tojoinclasstitle:void 0,rolearr:["",""],Checkboxteacherchecked:!1,Checkboxstudentchecked:!1,Checkboxteachingchecked:!1,Checkboxteachertype:!1,Checkboxteachingtype:!1,code_notice:!1,checked_notice:!1,RadioGroupvalue:void 0})},n.submittojoinclass=function(e){var t=n.state,o=t.tojoinclasstitle,i=t.rolearr,r=t.RadioGroupvalue;if(void 0!==o){var a=i;if(o.length<6)n.setState({code_notice:!0});else if(""!==o&&void 0!==o){n.setState({code_notice:!1});for(var s=[],l=0,c=0;c<a.length;c++)""!=a[c]?s.push(a[c]):l+=1;(2!==l||0!==e)&&(1!==e||void 0!==r)?(1===e&&C.a.post("/project_applies.json",{code:o,role:r}).then((function(e){1===e.data.status?n.submitstatevalue(1,"\u60a8\u8f93\u5165\u7684\u9080\u8bf7\u7801\u9519\u8bef"):2===e.data.status?n.submitstatevalue(1,"\u60a8\u5df2\u7ecf\u662f\u8be5\u9879\u76ee\u6210\u5458",e.data.project):3===e.data.status?n.submitstatevalue(1,"\u8bf7\u9009\u62e9\u4e00\u4e2a\u89d2\u8272"):4===e.data.status?n.submitstatevalue(1,"\u60a8\u7684\u7533\u8bf7\u5df2\u63d0\u4ea4\uff0c\u8bf7\u7b49\u5f85\u9879\u76ee\u7ba1\u7406\u5458\u5ba1\u6279"):5===e.data.status?n.submitstatevalue(1,"\u60a8\u5df2\u7ecf\u7533\u8bf7\u52a0\u5165\u8be5\u9879\u76ee\u4e86\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85"):6===e.data.status?n.submitstatevalue(1,"\u60a8\u5df2\u6210\u529f\u52a0\u5165\u9879\u76ee",e.data.project):0===e.data.status&&("reporter"===r?(n.openNotification("\u60a8\u52a0\u5165\u9879\u76ee\u6210\u529f!"),window.location.href="/projects/".concat(e.data.project_id)):n.openNotification("\u60a8\u7684\u7533\u8bf7\u5df2\u63d0\u4ea4\uff0c\u8bf7\u7b49\u5f85\u9879\u76ee\u7ba1\u7406\u5458\u5ba1\u6279!"))})),n.hidetojoinclass()):n.setState({checked_notice:!0})}else n.setState({code_notice:!0})}else n.setState({code_notice:!0})},n.cancelModulationModels=function(){n.setState({isRenders:!1})},n.inputjoinclassvalue=function(e){7<=e.target.value.length?n.openNotification("\u8bf7\u8f93\u51656\u4f4d\u9879\u76ee\u9080\u8bf7\u7801!"):n.setState({tojoinclasstitle:e.target.value})},n.showSearchOpen=function(e){n.setState({showSearchOpentype:!0})},n.hideshowSearchOpen=function(e){!0===n.state.setevaluatinghides&&n.setState({showSearchOpentype:!1,setevaluatinghides:!1})},n.onKeywordSearchKeyDown=function(e){var t="/search?value=".concat(e);n.props.history.push(t)},n.onKeywordSearchKeyDowns=function(){n.setState({setevaluatinghides:!1})},n.setevaluatinghides=function(){n.setState({setevaluatinghides:!0})},n.getUser=function(e,t){if("projects"===t&&(n.props.user&&void 0===n.props.user.email||n.props.user&&null===n.props.user.email||n.props.user&&""===n.props.user.email))n.openNotification("\u8bf7\u5148\u7ed1\u5b9a\u90ae\u7bb1\uff0c\u8c22\u8c22");else{var o=n.state.user;void 0===o||o&&""===o.login?n.setState({isRender:!0}):o&&!1===o.profile_completed?n.setState({AccountProfiletype:!0}):"newshixuns"===t&&n.props&&n.props.current_user&&!1===n.props.current_user.is_shixun_marker?n.setgoshowqqgtounp(!0):void 0===e&&""===e||(window.location.href=e)}},n.Modifyloginvalue=function(){n.setState({isRender:!1})},n.hideAccountProfile=function(){n.setState({AccountProfiletype:!1})},n.headtypesonClick=function(e,t){n.setState({headtypess:e,headtypesonClickbool:t})},n.gettablogourlnull=function(){n.setState({mygetHelmetapi2:void 0}),document.title="EduCoder";var e=document.createElement("link"),t=document.getElementById("dynamic-favicon");e.id="dynamic-favicon",e.rel="shortcut icon",e.href="/react/build/./favicon.ico",t&&document.head.removeChild(t),document.head.appendChild(e)},n.gettablogourldata=function(e){document.title=e.data.setting.name;var t=document.createElement("link"),n=document.getElementById("dynamic-favicon");t.id="dynamic-favicon",t.rel="shortcut icon",t.href="/"+e.data.setting.tab_logo_url,n&&document.head.removeChild(n),document.head.appendChild(t)},n.handleVisibleChanges=function(e){n.setState({visiblemyss:e})},n.getAppdata=function(){try{var e=JSON.parse(localStorage.getItem("chromesetting")),t=JSON.parse(localStorage.getItem("chromesettingresponse"));n.setState({mygetHelmetapi2:e}),e.tab_logo_url?n.gettablogourldata(t):n.gettablogourlnull()}catch(e){n.geturlsdata()}},n.geturlsdata=function(){C.a.get("/setting.json").then((function(e){if(e)if(e.data){n.setState({mygetHelmetapi2:e.data.setting}),localStorage.setItem("chromesetting",JSON.stringify(e.data.setting)),localStorage.setItem("chromesettingresponse",JSON.stringify(e));try{e.data.setting.tab_logo_url?n.gettablogourldata(e):n.gettablogourlnull()}catch(e){n.gettablogourlnull()}}else n.gettablogourlnull();else n.gettablogourlnull()})).catch((function(e){n.gettablogourlnull()}))},n.matchpaths=function(e){var t=n.props.match;return"/forums"===e&&"/forums"===t.path||!(!e.startsWith("/shixuns")||!t.path.startsWith("/shixuns"))||!(!e.startsWith("/paths")||!t.path.startsWith("/paths"))||!(!e.startsWith("/courses")||!t.path.startsWith("/courses"))||!(!e.startsWith("/competitions")||!t.path.startsWith("/competitions"))||!(!e.startsWith("/crowdsourcing")||!t.path.startsWith("/crowdsourcing"))||!(!e.startsWith("/moop_cases")||!t.path.startsWith("/moop_cases"))||!(!e.startsWith("/developer")||!t.path.startsWith("/developer"))},n.setgoshowqqgtounp=function(e){n.setState({goshowqqgtounp:e})},n.state={Addcoursestypes:!1,tojoinitemtype:!1,tojoinclasstitle:void 0,rolearr:["",""],Checkboxteacherchecked:!1,Checkboxstudentchecked:!1,Checkboxteachingchecked:!1,Checkboxteachertype:!1,Checkboxteachingtype:!1,code_notice:!1,checked_notice:!1,RadioGroupvalue:void 0,submitapplications:!1,isRender:!1,showSearchOpentype:!1,showTrial:!1,setevaluatinghides:!1,occupation:0,mydisplay:!1,headtypesonClickbool:!1,headtypess:"/",mygetHelmetapi2:null,goshowqqgtounp:!1,visiblemyss:!1},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){var e,t;this.getAppdata(),window._header_componentHandler=this,E(".edu-menu-panel").hover((function(){e&&(t&&t!=this&&E(t).find(".edu-menu-list").hide(),clearTimeout(e),e=null),E(t=this).find(".edu-menu-list").show()}),(function(){var t=this;e=setTimeout((function(){E(t).find(".edu-menu-list").hide()}),800)}));try{window.sessionStorage.setItem("yslgeturls",JSON.stringify(window.location.href))}catch(t){}}},{key:"componentWillReceiveProps",value:function(e){this.setState({user:e.user})}},{key:"render",value:function(){var e=this,t=this.props.match,n=this.state,o=n.Addcoursestypes,i=n.tojoinitemtype,r=n.tojoinclasstitle,a=n.code_notice,s=n.checked_notice,l=n.AccountProfiletype,c=n.submitapplications,u=n.submitapplicationsvalue,p=n.user,f=n.isRender,w=n.showSearchOpentype,C=(n.headtypesonClickbool,n.headtypess,n.mygetHelmetapi2),E=n.goshowqqgtounp,D=!1,L=!1,P=!1,I=!1,T=!1,M=!1;if("/forums"===t.path?D=!0:t.path.startsWith("/shixuns")?L=!0:t.path.startsWith("/paths")?P=!0:t.path.startsWith("/courses")?I=!0:t.path.startsWith("/crowdsourcing")||(t.path.startsWith("/moop_cases")?T=!0:t.path.startsWith("/competitions")&&(M=!0)),C&&C.navbar&&0<C.navbar.length)if("/"===t.path);else for(var j=0;j<C.navbar.length;j++)if(t.path===C.navbar[j].link){C.navbar[j].link;break}var R=!1,A=!1,F=!1;return this.props&&null!=this.props.mygetHelmetapi&&this.props.mygetHelmetapi.navbar.map((function(e,t){var n=RegExp(e.link);"/shixuns".match(n)&&!0===e.hidden&&(R=!0),"/paths".match(n)&&!0===e.hidden&&(A=!0),"/courses".match(n)&&!0===e.hidden&&(F=!0)})),d.a.createElement("div",{className:"questiontypes",style:{width:"93px",height:"80px"}},d.a.createElement("a",{href:"/question"},d.a.createElement("p",{className:"questiontype"},"\u8bd5\u9898\u5e93")),d.a.createElement("p",{className:"questiontypeheng"}),d.a.createElement("a",{href:"/paperlibrary"},d.a.createElement("p",{className:"questiontype"},"\u8bd5\u5377\u5e93")),d.a.createElement("p",{className:"questiontypeheng"})),d.a.createElement("div",{className:"newHeaders",id:"nHeader"},d.a.createElement("style",null,"\n\t\t\t\t\t body .questionbanks .ant-popover-inner-content {\n\t\t\t\t\t\t padding:0px !important;\n\t\t\t\t\t }\n\t\t\t\t\t"),!0===f?d.a.createElement(O.a,Object.assign({Modifyloginvalue:function(){return e.Modifyloginvalue()}},this.props,this.state)):"",!0===l?d.a.createElement(y.a,Object.assign({hideAccountProfile:function(){return e.hideAccountProfile()}},this.props,this.state)):"",!0===E?d.a.createElement(x.a,Object.assign({},this.state,this.props,{setgoshowqqgtounp:function(t){return e.setgoshowqqgtounp(t)}})):"",d.a.createElement("a",{href:"/",onClick:function(){return e.headtypesonClick("/",!1)},className:"fl mr30 ml25 mt10"},null===C?"":void 0===C||null===C.nav_logo_url||void 0===C.nav_logo_url?d.a.createElement("img",{alt:"\u9ad8\u6821\u667a\u80fd\u5316\u6559\u5b66\u4e0e\u5b9e\u8bad\u5e73\u53f0",className:"logoimg",style:{heigth:"40px"},src:Object(_.L)("images/educoder/headNavLogo.png?1526520218")}):d.a.createElement("img",{alt:"\u9ad8\u6821\u667a\u80fd\u5316\u6559\u5b66\u4e0e\u5b9e\u8bad\u5e73\u53f0",className:"logoimg",style:{heigth:"40px"},src:Object(_.L)(C.nav_logo_url)})),d.a.createElement("style",null,"\n\t\t\t\t\t\t.educontents{\n\t\t\t\t\t\t\tmargin: 0px auto;\n\t\t\t\t\t\t\tbox-sizing: border-box;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t"),null===C?"":void 0!==C&&null!==C.navbar&&void 0!==C.navbar&&0<C.navbar.length?d.a.createElement("div",{className:"head-nav pr",id:"head-navpre1"},d.a.createElement("ul",{id:"header-nav"},C.navbar&&C.navbar.map((function(t,n){var o=new RegExp("http"),i=!1;return t.link&&(i=!0===o.test(t.link)),d.a.createElement("li",{key:n,onClick:function(){return e.headtypesonClick(t.link,!0)},className:"".concat(!0===e.matchpaths(t.link)?"pr active":"pr"),style:0==t.hidden?{display:"block"}:{display:"none"}},!0===i?d.a.createElement("a",{href:t.link},t.name):d.a.createElement(v.b,{to:t.link},t.name))})),d.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t\t.queyppors {\n top: 63px !important;\n }\n\n\t\t\t\t\t\t\t\t\t\t\t .questionbanks .ant-popover-inner-content {\n\t\t\t\t\t\t\t\t\t\t\t padding:0px !important;\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t"),d.a.createElement("li",{style:{display:void 0===this.props.Headertop||null===this.props.Headertop.auth?"none":"block"}},d.a.createElement("a",{href:void 0===this.props.Headertop?"":this.props.Headertop.auth},"\u5de5\u7a0b\u8ba4\u8bc1")),d.a.createElement("li",{className:"fl edu-menu-panel careershover ",style:{display:void 0!==this.props.Headertop&&0<this.props.Headertop.career_url.length?"block":"none"}},d.a.createElement("a",null,"\u804c\u4e1a\u8def\u5f84"),d.a.createElement("div",{style:{display:void 0!==this.props.Headertop&&0<this.props.Headertop.career_url.length?"block":"none"}},d.a.createElement("ul",{className:"edu-menu-list edu-menu-listnew ",style:{top:"60px"}},void 0===this.props.Headertop?"":this.props.Headertop.career_url.map((function(e,t){return d.a.createElement("li",{key:t},d.a.createElement("i",{className:"iconfont icon-java left careersiconfont",style:{color:"#000 important"}}),d.a.createElement("a",{style:{width:"83%"},href:e.url},e.name))}))))))):d.a.createElement("div",{className:"head-nav pr",id:"head-navpre3"},d.a.createElement("ul",{id:"header-nav"},d.a.createElement("li",{className:"".concat(!0===P?"pr active":"pr")},d.a.createElement(v.b,{to:void 0===this.props.Headertop?"":"/paths"},"\u5b9e\u8df5\u8bfe\u7a0b")),d.a.createElement("li",{className:"".concat(!0===I?"pr active":"pr")},d.a.createElement(v.b,{to:void 0===this.props.Headertop?"":"/courses"},"\u6559\u5b66\u8bfe\u5802")),d.a.createElement("li",{className:"".concat(!0===L?"pr active":"pr")},d.a.createElement(v.b,{to:"/shixuns"},"\u5b9e\u8bad\u9879\u76ee")),d.a.createElement("li",{className:"fl edu-menu-panel careershover ",style:{display:void 0!==this.props.Headertop&&0<this.props.Headertop.career_url.length?"block":"none"}},d.a.createElement("a",null,"\u804c\u4e1a\u8def\u5f84"),d.a.createElement("div",{style:{display:void 0!==this.props.Headertop&&0<this.props.Headertop.career_url.length?"block":"none"}},d.a.createElement("ul",{className:"edu-menu-list edu-menu-listnew ",style:{top:"60px"}},void 0===this.props.Headertop?"":this.props.Headertop.career_url.map((function(e,t){return d.a.createElement("li",{key:t},d.a.createElement("i",{className:"iconfont icon-java left careersiconfont",style:{color:"#000 important"}}),d.a.createElement("a",{style:{width:"83%"},href:e.url},e.name))}))))),d.a.createElement("li",{className:"".concat(!0===M?"pr active":"pr")},d.a.createElement("a",{href:void 0===this.props.Headertop?"":this.props.Headertop.competitions_url},"\u5728\u7ebf\u7ade\u8d5b")),d.a.createElement("li",{className:"".concat(!0===T?"pr active":"pr")}," ",d.a.createElement(v.b,{to:"/moop_cases"},"\u6559\u5b66\u6848\u4f8b")),d.a.createElement("li",{className:"".concat(!0===D?"active":"")}," ",d.a.createElement(v.b,{to:void 0===this.props.Headertop?"":this.props.Headertop.topic_url},"\u4ea4\u6d41\u95ee\u7b54")),d.a.createElement("li",{style:{display:void 0===this.props.Headertop||null===this.props.Headertop.auth?"none":"block"}},d.a.createElement("a",{href:void 0===this.props.Headertop?"":this.props.Headertop.auth},"\u5de5\u7a0b\u8ba4\u8bc1")))),d.a.createElement("style",null,"\n .posi-searchs{\n opacity: 1;\n position: absolute;\n top: -2px;\n background: #fff;\n z-index:10000;\n right: 185px;\n }\n\t\t\t\t\t\t\t\t"),d.a.createElement("div",{className:"posi-searchs"},d.a.createElement("div",{className:"search-all clearfix"},d.a.createElement("div",{className:"fl pr search-clear edu-menu-panel",style:{display:"none"}},d.a.createElement("input",{type:"hidden",id:"search_type",value:"1"}),d.a.createElement("span",{className:"searchkey"},"\u5b9e\u8bad"),d.a.createElement("i",{className:"fa fa-angle-down ml5 font-16"}),d.a.createElement("ul",{id:"searchkey",className:"edu-menu-list edu-txt-center",style:{minWidth:"80px",right:"-10px",top:"50px"}},d.a.createElement("li",null,d.a.createElement("a",null,"\u5b9e\u8bad")),d.a.createElement("li",null,d.a.createElement("a",null,"\u8bfe\u5802")),d.a.createElement("li",null,d.a.createElement("a",null,"\u7528\u6237")))),!0===w?d.a.createElement("div",{className:"HeaderSearch",onBlur:function(t){return e.hideshowSearchOpen(t)},onMouseLeave:function(){return e.setevaluatinghides()}},d.a.createElement(N,{id:"HeaderSearchs",placeholder:"\u5b9e\u8df5\u8bfe\u7a0b/\u6559\u5b66\u8bfe\u5802/\u5b9e\u8bad\u9879\u76ee/\u4ea4\u6d41\u95ee\u7b54",onInput:function(){return e.onKeywordSearchKeyDowns()},onSearch:function(t){return e.onKeywordSearchKeyDown(t)},style:{width:300,height:32},autoFocus:!0})):"")),void 0===p||""===p.login?d.a.createElement("span",{className:"font-15 fr mt17 ml5 mr25"},d.a.createElement("a",{onClick:function(){return e.educoderlogin()},className:"mr5 color-white"},"\u767b\u5f55"),d.a.createElement("em",{className:"vertical-line"}),d.a.createElement("a",{href:"/register",className:"mr5 color-white"},"\u6ce8\u518c")):d.a.createElement("div",{className:"fr edu-menu-panel mr25",style:{height:"60px"}},d.a.createElement("a",{href:"/users/".concat(void 0===this.props.current_user?"":this.props.current_user.login,"/courses"),className:"fl ml15"},d.a.createElement("img",{alt:"\u5934\u50cf",className:"radius mt13",height:"34",id:"nh_user_logo",name:"avatar_image",src:Object(_.L)("images/"+p.image_url),width:"34"})),d.a.createElement("ul",{className:"edu-menu-list",style:{top:"60px"}},d.a.createElement("li",null,d.a.createElement(v.b,{to:"/users/".concat(this.props.current_user.login,"/courses")},"\u6211\u7684\u4e2a\u4eba\u4e3b\u9875")),!0===F?"":d.a.createElement("li",null,d.a.createElement(v.b,{to:"/users/".concat(void 0===this.props.current_user?"":this.props.current_user.login,"/courses")},this.props.user&&!1===this.props.user.main_site?"\u6211\u7684\u8bfe\u5802":"\u6211\u7684\u6559\u5b66\u8bfe\u5802")),!0===R?"":d.a.createElement("li",null,d.a.createElement(v.b,{to:"/users/".concat(void 0===this.props.current_user?"":this.props.current_user.login,"/shixuns")},"\u6211\u7684\u5b9e\u8bad\u9879\u76ee")),!0===A?"":d.a.createElement("li",null,d.a.createElement(v.b,{to:"/users/".concat(void 0===this.props.current_user?"":this.props.current_user.login,"/paths")},this.props.user&&!1===this.props.user.main_site?"\u6211\u7684\u8bfe\u7a0b":"\u6211\u7684\u5b9e\u8df5\u8bfe\u7a0b")),this.props.user&&!0===this.props.user.main_site?d.a.createElement("li",null,d.a.createElement(v.b,{to:"/users/".concat(void 0===this.props.current_user?"":this.props.current_user.login,"/projects")},"\u6211\u7684\u5f00\u53d1\u9879\u76ee")):"",d.a.createElement("li",{style:{display:void 0===this.props.Headertop||null===this.props.Headertop.customer_management_url||""===this.props.Headertop.customer_management_url?"none":"block"}},d.a.createElement("a",{href:void 0===this.props.Headertop?"":this.props.Headertop.customer_management_url},"\u5ba2\u6237\u7ba1\u7406")),this.props.Headertop&&this.props.Headertop.college_identifier&&d.a.createElement("li",null,d.a.createElement("a",{href:"/colleges/".concat(this.props.Headertop.college_identifier,"/statistics")},"\u5b66\u9662\u7edf\u8ba1")),this.props.Headertop&&this.props.Headertop.laboratory_user&&d.a.createElement("li",null,d.a.createElement("a",{href:this.props.Headertop.laboratory_admin_url},"\u540e\u53f0\u7ba1\u7406")),d.a.createElement("li",null,d.a.createElement("a",{href:"/account/profile"},"\u8d26\u53f7\u7ba1\u7406")),d.a.createElement("li",{className:"bor-top-greyE"},d.a.createElement("a",{onClick:function(){return e.educoderloginysl()}},"\u9000\u51fa")))),d.a.createElement("div",{className:"fr head-right"},!0!==w&&this.props.user&&!0===this.props.user.main_site?d.a.createElement("a",{id:"search-open",className:"fl mr30 headIcon",onClick:function(t){return e.showSearchOpen(t)}},d.a.createElement("i",{className:"iconfont icon-sousuo color-white"})):"",d.a.createElement("div",{className:"fl mr30 edu-menu-panel headIcon"},d.a.createElement("i",{className:"iconfont icon-tianjiafangda color-white"}),d.a.createElement("div",{className:"edu-menu-list",style:{top:"60px",width:"240px"}},d.a.createElement("div",{className:"overPart"}),d.a.createElement("ul",{className:!0===F&&this.props.user&&!1===this.props.user.main_site?"fl headwith100b edu-txt-center pr ul-leftline":"fl with50 edu-txt-center pr ul-leftline"},this.props.current_user&&"\u5b66\u751f"===this.props.current_user.user_identity||!1!==F?"":d.a.createElement("li",null,d.a.createElement("a",{onClick:function(){return e.getUser("/courses/new")}},this.props.user&&!1===this.props.user.main_site?"\u65b0\u5efa\u8bfe\u5802":"\u65b0\u5efa\u6559\u5b66\u8bfe\u5802")),!0===R?"":d.a.createElement("li",null,d.a.createElement("a",{onClick:function(){return e.getUser("/shixuns/new","newshixuns")}},"\u65b0\u5efa\u5b9e\u8bad\u9879\u76ee")),this.props.user&&!1===this.props.user.main_site||void 0===this.props.Headertop?"":d.a.createElement("li",null,d.a.createElement("a",{onClick:function(){return e.getUser("/paths/new")}},"\u65b0\u5efa\u5b9e\u8df5\u8bfe\u7a0b")),this.props.user&&!0===this.props.user.main_site||void 0===this.props.Headertop||!0===A||!(this.props.user&&!0===this.props.user.admin||this.props.user&&!0===this.props.user.is_teacher||this.props.user&&!0===this.props.user.business)?"":d.a.createElement("li",null,d.a.createElement("a",{onClick:function(){return e.getUser("/paths/new")}},"\u65b0\u5efa\u5b9e\u8df5\u8bfe\u7a0b")),this.props.user&&!0===this.props.user.main_site?d.a.createElement("li",null,d.a.createElement("a",{onClick:function(){return e.getUser("/projects/new","projects")},target:"_blank"},"\u65b0\u5efa\u5f00\u53d1\u9879\u76ee")):""),!0===F&&this.props.user&&!1===this.props.user.main_site?"":d.a.createElement("ul",{className:"fl with50 edu-txt-center"},!0===F?"":d.a.createElement("li",null,d.a.createElement("a",{onClick:this.tojoinclass},this.props.user&&!1===this.props.user.main_site?"\u52a0\u5165\u8bfe\u5802":"\u52a0\u5165\u6559\u5b66\u8bfe\u5802")),!0===o?d.a.createElement(S.a,{Addcoursestype:o,hideAddcoursestype:this.hideAddcoursestypes,HideAddcoursestypess:function(t){return e.HideAddcoursestypess(t)}}):"",d.a.createElement(b.a,Object.assign({},this.props,this.state,{ModalCancelsy:this.ModalCancelsy})),this.props.user&&!0===this.props.user.main_site?d.a.createElement("li",null,d.a.createElement("a",{onClick:this.tojoinitem},"\u52a0\u5165\u5f00\u53d1\u9879\u76ee")):"",!0===i?d.a.createElement(h.a,{keyboard:!1,title:"\u52a0\u5165\u9879\u76ee",visible:i,closable:!1,footer:null},d.a.createElement("div",{className:"task_popup_con"},d.a.createElement("div",{className:"mr15"},d.a.createElement("ul",null,d.a.createElement("li",{className:"clearfix mb10"},d.a.createElement("label",{className:"panel-form-label fl"},"\u9879\u76ee\u9080\u8bf7\u7801\uff1a"),d.a.createElement(g.a,{type:"text",className:"input-60-40 fl mt5",name:"invite_code",style:{width:"275px"},placeholder:"\u8bf7\u8f93\u51656\u4f4d\u5f00\u53d1\u9879\u76ee\u9080\u8bf7\u7801",value:r,onInput:this.inputjoinclassvalue})),d.a.createElement("p",{id:"none_invite_code_notice",className:"color-orange none f12",style:{marginLeft:"90px",display:!0===a?"block":"none"}},"\u8bf7\u8f93\u51656\u4f4d\u9879\u76ee\u9080\u8bf7\u7801"),d.a.createElement("li",{className:"clearfix "},d.a.createElement("label",{className:"panel-form-label fl"},"\u8eab\u4efd\uff1a"),d.a.createElement(k,{className:"mt10",onChange:this.onChangeRadioGroup},d.a.createElement(m.a,{value:"manager"},"\u7ba1\u7406\u4eba\u5458"),d.a.createElement(m.a,{value:"developer"},"\u5f00\u53d1\u4eba\u5458"),d.a.createElement(m.a,{value:"reporter"},"\u62a5\u544a\u4eba\u5458"))),d.a.createElement("p",{id:"none_checked_notice",className:"color-orange none f12",style:{marginLeft:"90px",display:!0===s?"block":"none"}},"\u8bf7\u9009\u62e9\u4e00\u4e2a\u8eab\u4efd"),d.a.createElement("li",{className:"clearfix mt10 edu-txt-center"},d.a.createElement("a",{className:"task-btn mr10",onClick:function(){return e.hidetojoinclass(1)}},"\u53d6\u6d88"),d.a.createElement("a",{className:"task-btn task-btn-orange ml20",onClick:function(){return e.submittojoinclass(1)}},"\u786e\u5b9a")))))):""))),this.props.user&&!0===this.props.user.main_site?d.a.createElement("div",{className:"fl mr30 edu-menu-panel headIcon"},void 0===p||""===p.login?"":d.a.createElement("a",{href:"/messages/".concat(p.login,"/user_tidings"),style:{position:"relative"}},d.a.createElement("i",{className:"iconfont icon-xiaoxilingdang color-white"}),d.a.createElement("span",{className:"newslight",style:{display:void 0!==this.props.Headertop&&!0===this.props.Headertop.new_message?"block":"none"}}))):"",d.a.createElement(h.a,{keyboard:!1,title:"\u63d0\u793a",visible:c,closable:!1,footer:null},d.a.createElement("div",{className:"task_popup_con ml30"},d.a.createElement("div",{className:"mr15"},d.a.createElement("ul",null,d.a.createElement("div",{className:"task-popup-content"},d.a.createElement("p",{className:"task-popup-text-center font-16"},u)),d.a.createElement("li",{className:"clearfix mt10 edu-txt-center"},d.a.createElement("a",{className:"task-btn mr10",onClick:this.hidesubmitapplications},"\u53d6\u6d88"),d.a.createElement("a",{className:"task-btn task-btn-orange ml20",onClick:this.submitsubmitapplications},"\u786e\u5b9a"))))))))}}]),t}(u.Component),L=n(832),P=n(833),I=function(e){function t(e){var n;return Object(r.a)(this,t),(n=Object(s.a)(this,Object(l.a)(t).call(this,e))).gotoback=function(){null!=n.props.AccountPhoneemailtype?(n.setState({AccountPhoneemailtype:!1}),n.props.hideAccountProfile()):(window.location.href="/",n.setState({AccountPhoneemailtype:!1}))},n.state={AccountPhoneemailtype:!1},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){var e=this;null!=this.props.AccountPhoneemailtype&&this.setState({AccountPhoneemailtype:this.props.AccountPhoneemailtype}),C.a.interceptors.response.use((function(t){return null!=t&&t&&402===t.data.status&&e.setState({AccountPhoneemailtype:!0}),t}),(function(e){}))}},{key:"render",value:function(){var e=this,t=this.props;return t.content,t.okText,t.okHref,d.a.createElement(h.a,{keyboard:!1,title:"\u63d0\u793a",visible:this.state.AccountPhoneemailtype,closable:!1,footer:null,destroyOnClose:!0,centered:!0,width:"530px"},d.a.createElement("div",{className:"task-popup-content"},d.a.createElement("p",{className:"task-popup-text-center font-16"}," \u60a8\u9700\u8981\u5b8c\u6210\u624b\u673a\u53f7\u7801\u6216\u8005\u90ae\u7bb1\u7684\u7ed1\u5b9a\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd"),d.a.createElement("div",{className:"clearfix mt30 edu-txt-center"},d.a.createElement("a",{className:"task-btn mr30",onClick:function(){return e.gotoback()}},"\u7a0d\u540e\u7ed1\u5b9a"),d.a.createElement("a",{className:"task-btn task-btn-orange",href:"/account/secure"}," ","\u7acb\u5373\u7ed1\u5b9a"))))}}]),t}(u.Component);n.d(t,"a",(function(){return j}));var T=window.$,M="";function j(e){return function(t){function n(e){var t;return Object(r.a)(this,n),(t=Object(s.a)(this,Object(l.a)(n).call(this,e))).showShixun=function(){var e=t.props.match.params.shixunId,n="/api/v1/shixuns/".concat(e,"/show_shixun");t.setState({tpmLoading:!0}),C.a.get(n,{withCredentials:!0}).then((function(e){e.data&&e.data.shixun&&(t.initCommonState(e.data.current_user),e.data.tpmLoading=!1,t.setState(e.data))})).catch((function(e){}))},t.aboutFocus=function(){var e=t.state,n=e.creator,o=e.watched,i="/api/v1/users/".concat(n.owner_id,"/").concat(o?"unwatch":"watch","?object_id=").concat(n.owner_id,"&object_type=user");C.a.get(i,{}).then((function(e){1==e.data.status&&t.setState({watched:!o})})).catch((function(e){}))},t.keyupListener=function(e){"Escape"===e.key&&t.setState({globalLoading:!1})},t.isSuperAdmin=function(){return t.state.coursedata&&0===t.state.coursedata.course_identity},t.isCourseAdmin=function(){return t.state.coursedata&&2===t.state.coursedata.course_identity},t.isClassManagement=function(){return t.state.coursedata&&t.state.coursedata.course_identity<2},t.isAdminOrCreator=function(){return t.state.coursedata&&t.state.coursedata.course_identity<3},t.isAdminOrTeacher=function(){return t.state.coursedata&&t.state.coursedata.course_identity<4},t.isAdmin=function(){return t.state.coursedata&&t.state.coursedata.course_identity<5},t.isStudent=function(){return t.state.coursedata&&5===t.state.coursedata.course_identity},t.isAdminOrStudent=function(){return t.state.coursedata&&t.state.coursedata.course_identity<=5},t.isNotMember=function(){return t.state.coursedata&&6<=t.state.coursedata.course_identity},t.isCourseEnd=function(){return!!t.state.current_user&&t.state.current_user.course_is_end},t.gettablogourlnull=function(){t.setState({mygetHelmetapi:void 0}),document.title="EduCoder";var e=document.createElement("link"),n=document.getElementById("dynamic-favicon");e.id="dynamic-favicon",e.rel="shortcut icon",e.href="/react/build/./favicon.ico",n&&document.head.removeChild(n),document.head.appendChild(e)},t.gettablogourldata=function(e){document.title=e.data.setting.name;var t=document.createElement("link"),n=document.getElementById("dynamic-favicon");t.id="dynamic-favicon",t.rel="shortcut icon",t.href="/"+e.data.setting.tab_logo_url,n&&document.head.removeChild(n),document.head.appendChild(t)},t.getAppdata=function(){try{var e=JSON.parse(localStorage.getItem("chromesetting")),n=JSON.parse(localStorage.getItem("chromesettingresponse"));t.setState({mygetHelmetapi:e}),e.tab_logo_url?t.gettablogourldata(n):t.gettablogourlnull()}catch(e){t.getAppdatausr()}},t.getAppdatausr=function(){C.a.get("/setting.json").then((function(e){if(e)if(e.data){t.setState({mygetHelmetapi:e.data.setting}),localStorage.setItem("chromesetting",JSON.stringify(e.data.setting)),localStorage.setItem("chromesettingresponse",JSON.stringify(e));try{e.data.setting.tab_logo_url?t.gettablogourldata(e):t.gettablogourlnull()}catch(e){t.gettablogourlnull()}}else t.gettablogourlnull();else t.gettablogourlnull()})).catch((function(e){t.gettablogourlnull()}))},t.fetchUser=function(){var e,n=t.props.location.pathname.split("/");"courses"==n[1]&&n[2]&&(e=parseInt(n[2]));var o;o="{}"===JSON.stringify(t.state.dataquerys)?{course_id:isNaN(e)?void 0:e,school:1}:{course_id:isNaN(e)?void 0:e,school:1,chinaoocTimestamp:t.state.dataquerys.chinaoocTimestamp,websiteName:t.state.dataquerys.websiteName,chinaoocKey:t.state.dataquerys.chinaoocKey},C.a.get("/users/get_user_info.json",{params:o}).then((function(e){void 0!==e&&e.data&&(t.initCommonState(e.data),t.setState({tpmLoading:!1,coursedata:{course_identity:0<=e.data.course_identity?e.data.course_identity:void 0,course_public:e.data.course_public,name:e.data.course_name,userid:e.data.user_id}}))})).catch((function(e){}))},t.foo=function(e){var t,n={},o=/[\?\&](\w+)(=?)(\w*)/g;do{if(t=o.exec(e)){var i=t[1],r=t[3];t[2]||(r=void 0),n[i]=r}}while(t);return n},t.hideLoginDialog=function(){t.setState({isRender:!1,isloginCancel:void 0})},t.showLoginDialog=function(){t.setState({isRender:!0,isloginCancel:"iscancel"})},t.checkIfLogin=function(){return t.state.current_user&&""!=t.state.current_user.login},t.hideAccountProfile=function(){t.setState({AccountProfiletype:!1})},t.showProfileCompleteDialog=function(){t.dialogObj={},t.setState({AccountProfiletype:!0})},t.showhideAccountPhoneemailDialog=function(){t.dialogObj={},t.setState({AccountPhoneemailtype:!0})},t.hideAccountPhoneemailtype=function(){t.setState({AccountPhoneemailtype:!1})},t.checkIfProfileCompleted=function(){return t.state.current_user&&t.state.current_user.profile_completed},t.showaccountprofileDialog=function(){t.dialogObj={content:"\u60a8\u9700\u8981\u53bb\u5b8c\u6210\u60a8\u7684\u4e2a\u4eba\u8d44\u6599\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd",okText:"\u7acb\u5373\u5b8c\u6210",okHref:"/account/profile"},t.setState({AccountProfiletype:!0})},t.showProfessionalCertificationDialog=function(){t.dialogObj={content:"\u60a8\u9700\u8981\u53bb\u5b8c\u6210\u60a8\u7684\u804c\u4e1a\u8ba4\u8bc1\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd",okText:"\u7acb\u5373\u5b8c\u6210",okHref:"/account/certification"},t.setState({AccountProfiletype:!0})},t.checkIfProfessionalCertification=function(){return t.state.current_user&&t.state.current_user.professional_certification},t.ShowOnlinePdf=function(e){return C()({method:"get",url:e,responseType:"arraybuffer"}).then((function(e){var n=[];n.push(e.data),t.url=window.URL.createObjectURL(new Blob(n,{type:"application/pdf"})),window.open(t.url)}))},t.DownloadFileA=function(e,t){var n=document.createElement("a");document.body.appendChild(n),n.href=t,n.download=e;var o=document.createEvent("MouseEvents");o.initEvent("click",!1,!1),n.dispatchEvent(o),document.body.removeChild(n)},t.DownloadOpenPdf=function(e,t){!0===e?window.open(t):window.location.href=t},t.slowDownload=function(e,n){t._gLoadingTip=n||"\u6b63\u5728\u751f\u6210\u6587\u4ef6\uff0c\u8bf7\u7a0d\u540e...",t.setState({globalLoading:!0});var o=e;Object(_.I)({url:o,successCallback:function(){t.setState({globalLoading:!1})},failCallback:function(){t.setState({globalLoading:!1})}})},t.yslslowCheckresults=function(e){t._gLoadingTip=e||"\u6210\u7ee9\u8ba1\u7b97\u4e2d\uff0c\u8bf7\u7a0d\u5019...",t.setState({globalLoading:!0})},t.yslslowCheckresultsNo=function(){t.setState({globalLoading:!1})},t.showGlobalLoading=function(e){t._gLoadingTip=e||"\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u7a0d\u540e...",t.setState({globalLoading:!0})},t.hideGlobalLoading=function(){t.setState({globalLoading:!1})},t.MdifHasAnchorJustScorll=function(){var e=decodeURI(t.props.location.hash).replace("#","");if(e){var n=document.getElementsByName(e);n&&0<n.length&&n[n.length-1].scrollIntoView()}},t.scrollToAnchor=function(e){if(e){var t=document.getElementById(e);t&&t.scrollIntoView()}},window.$("#root").css("position","relative"),t.state={tpmLoading:!0,resLoading:!0,Headertop:void 0,Footerdown:void 0,coursedata:{},isRender:!1,AccountProfiletype:!1,AccountPhoneemailtype:!1,globalLoading:!1,dataquerys:{},isloginCancel:void 0,mygetHelmetapi:null},t}return Object(c.a)(n,t),Object(a.a)(n,[{key:"initCommonState",value:function(e){var t=Object.assign({},Object(i.a)({},e),{image_url:"".concat(e.image_url)});this.setState({user:t,current_user:t})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keyup",this.keyupListener)}},{key:"componentDidMount",value:function(){var e=this;window.addEventListener("keyup",this.keyupListener),"/"===this.props.match.path||("/403"===this.props.match.path?document.title="\u4f60\u6ca1\u6709\u6743\u9650\u8bbf\u95ee":"/nopage"===this.props.match.path?document.title="\u6ca1\u6709\u627e\u5230\u8be5\u9875\u9762":"/shixuns"===this.props.match.path?document.title="\u5b9e\u8bad\u9879\u76ee":"/paths"===this.props.match.path?document.title="\u5b9e\u8df5\u8bfe\u7a0b":"/courses"===this.props.match.path&&(document.title="\u7ffb\u8f6c\u8bfe\u5802")),T.ajaxSetup({cache:!0});var t=this.props.location.search,n={};try{var o=this.foo(t);"{}"===JSON.stringify(o)?this.setState({dataquerys:{}}):(this.setState({dataquerys:o}),n=o)}catch(t){this.setState({dataquerys:{}})}this.fetchUser(n),C.a.get("/users/get_navigation_info.json",{}).then((function(t){null!=t&&200===t.status&&e.setState({Headertop:t.data.top,Footerdown:t.data.down})})),this.getAppdata()}},{key:"render",value:function(){var t=this,n=this.state,i=n.Headertop,r=n.Footerdown,a=n.isRender,s=n.AccountProfiletype,l=n.AccountPhoneemailtype,c={isSuperAdmin:this.isSuperAdmin,isAdminOrCreator:this.isAdminOrCreator,isClassManagement:this.isClassManagement,isCourseAdmin:this.isCourseAdmin,isAdmin:this.isAdmin,isAdminOrTeacher:this.isAdminOrTeacher,isStudent:this.isStudent,isAdminOrStudent:this.isAdminOrStudent,isNotMember:this.isNotMember,isCourseEnd:this.isCourseEnd,isUserid:this.state.coursedata&&this.state.coursedata.userid,fetchUser:this.fetchUser,showLoginDialog:this.showLoginDialog,checkIfLogin:this.checkIfLogin,showProfileCompleteDialog:this.showProfileCompleteDialog,showhideAccountPhoneemailDialog:this.showhideAccountPhoneemailDialog,checkIfProfileCompleted:this.checkIfProfileCompleted,showaccountprofileDialog:this.showaccountprofileDialog,checkIfProfessionalCertification:this.checkIfProfessionalCertification,showProfessionalCertificationDialog:this.showProfessionalCertificationDialog,ShowOnlinePdf:function(e){return t.ShowOnlinePdf(e)},DownloadFileA:function(e,n){return t.DownloadFileA(e,n)},DownloadOpenPdf:function(e,n){return t.DownloadOpenPdf(e,n)},slowDownload:this.slowDownload,showGlobalLoading:this.showGlobalLoading,hideGlobalLoading:this.hideGlobalLoading,yslslowCheckresults:this.yslslowCheckresults,yslslowCheckresultsNo:this.yslslowCheckresultsNo,MdifHasAnchorJustScorll:this.MdifHasAnchorJustScorll,scrollToAnchor:this.scrollToAnchor},u=this.props&&this.props.match&&this.props.match.path;return d.a.createElement("div",{className:"indexHOC"},!0===a?d.a.createElement(O.a,Object.assign({Modifyloginvalue:function(){return t.hideLoginDialog()}},this.props,this.state)):"",!0===s?d.a.createElement(y.a,Object.assign({hideAccountProfile:function(){return t.hideAccountProfile()}},this.props,this.state,this.dialogObj)):"",!0===l?d.a.createElement(I,Object.assign({hideAccountProfile:function(){return t.hideAccountPhoneemailtype()}},this.props,this.state,this.dialogObj)):"",u&&"/question"===u?"":d.a.createElement(P.a,Object.assign({},this.props,this.state,{Headertop:i})),d.a.createElement("style",null,"\n\t\t\t\t\t\t\t.newContainers{\n\t\t\t\t\t\t\t min-width: 1200px;\n max-width: unset;\n height: 100%;\n min-height: 100%;\n\t\t\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.newHeaders{\n\t\t\t\t\t\t\t // position: fixed;\n\t\t\t\t\t\t\t\tmax-width: unset;\n\t\t\t\t\t\t\t\tbackground: #24292D !important;\n\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\theight: 60px !important;\n\t\t\t\t\t\t\t\tmin-width: 1200px;\n\t\t\t\t\t\t\t\tz-index: 1000;\n\t\t\t\t\t\t\t\t-moz-box-shadow: 0px 0px 12px rgba(0,0,0,0.1);\n\t\t\t\t\t\t\t\tbox-shadow: 0px 0px 12px rgba(0,0,0,0.1);\n\t\t\t\t\t\t\t}\n\n .globalSpin {\n max-height: 700px !important;\n }\n .indexHOC > .ant-spin-nested-loading {\n background: #000;\n }\n .indexHOC > .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {\n top: 50% !important;\n }\n\n .globalSpin .ant-spin-text {\n text-shadow: none !important;\n color: #fff;\n }\n .globalSpin .ant-spin-dot-item {\n background-color: #fff;\n }\n\t\t\t\t\t\t\t"),d.a.createElement(D,Object.assign({},this.state,this.props)),d.a.createElement(o.a,{spinning:this.state.globalLoading,delay:0,className:"globalSpin",size:"large",tip:this._gLoadingTip||"\u52a0\u8f7d\u4e2d..."},d.a.createElement("div",{className:"newContainer newContainers"},d.a.createElement(e,Object.assign({initCommonState:function(e){return t.initCommonState(e)}},this.props,this.state,{showShixun:this.showShixun,aboutFocus:this.aboutFocus},c)))),d.a.createElement(L.a,Object.assign({},this.state,this.props,{Footerdown:r})))}}]),n}(d.a.Component)}"3007"===window.location.port&&(M="https://test-newweb.educoder.net"),window.indexHOCLoaded||(window.indexHOCLoaded=!0,T("head").append(T('<link rel="stylesheet" type="text/css" />').attr("href","".concat(M,"/stylesheets/css/edu-common.css?3"))),T("head").append(T('<link rel="stylesheet" type="text/css" />').attr("href","".concat(M,"/stylesheets/educoder/edu-main.css?3"))),T("head").append(T('<link rel="stylesheet" type="text/css" />').attr("href","".concat(M,"/stylesheets/educoder/edu-all.css?3"))))},,function(e,t,n){"use strict";var o=n(169),i=n.n(o),r=n(0),a=n(25),s=n(12),l=n.n(s),c=n(33),u=n(783),d=n(77),h=n(18);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function y(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return k}));"undefined"!=typeof window&&(window.matchMedia||(window.matchMedia=function(e){return{media:e,matches:!1,addListener:function(){},removeListener:function(){}}}));var C,S={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},O=i()({}),x=(C=0,function(){return C+=1,"".concat(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").concat(C)}),E=function(){function e(t){var n,o,i;return m(this,e),(n=b(this,_(e).call(this,t))).responsiveHandler=function(e){n.setState({below:e.matches});var t=n.props.onBreakpoint;t&&t(e.matches),n.state.collapsed!==e.matches&&n.setCollapsed(e.matches,"responsive")},n.setCollapsed=function(e,t){"collapsed"in n.props||n.setState({collapsed:e});var o=n.props.onCollapse;o&&o(e,t)},n.toggle=function(){var e=!n.state.collapsed;n.setCollapsed(e,"clickTrigger")},n.belowShowChange=function(){n.setState((function(e){return{belowShow:!e.belowShow}}))},n.renderSider=function(e){var t,o=e.getPrefixCls,i=n.props,a=i.prefixCls,s=i.className,u=i.theme,d=i.collapsible,p=i.reverseArrow,m=i.trigger,v=i.style,y=i.width,b=i.collapsedWidth,_=i.zeroWidthTriggerStyle,w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(i,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle"]),C=o("layout-sider",a),S=Object(c.default)(w,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),O=n.state.collapsed?b:y,x=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(O)?"".concat(O,"px"):String(O),E=0===parseFloat(String(b||0))?r.createElement("span",{onClick:n.toggle,className:"".concat(C,"-zero-width-trigger ").concat(C,"-zero-width-trigger-").concat(p?"right":"left"),style:_},r.createElement(h.a,{type:"bars"})):null,k={expanded:p?r.createElement(h.a,{type:"right"}):r.createElement(h.a,{type:"left"}),collapsed:p?r.createElement(h.a,{type:"left"}):r.createElement(h.a,{type:"right"})}[n.state.collapsed?"collapsed":"expanded"],N=null!==m?E||r.createElement("div",{className:"".concat(C,"-trigger"),onClick:n.toggle,style:{width:x}},m||k):null,D=g(g({},v),{flex:"0 0 ".concat(x),maxWidth:x,minWidth:x,width:x}),L=l()(s,C,"".concat(C,"-").concat(u),(f(t={},"".concat(C,"-collapsed"),!!n.state.collapsed),f(t,"".concat(C,"-has-trigger"),d&&null!==m&&!E),f(t,"".concat(C,"-below"),!!n.state.below),f(t,"".concat(C,"-zero-width"),0===parseFloat(x)),t));return r.createElement("aside",g({className:L},S,{style:D}),r.createElement("div",{className:"".concat(C,"-children")},n.props.children),d||n.state.below&&E?N:null)},n.uniqueId=x("ant-sider-"),"undefined"!=typeof window&&(o=window.matchMedia),o&&t.breakpoint&&t.breakpoint in S&&(n.mql=o("(max-width: ".concat(S[t.breakpoint],")"))),i="collapsed"in t?t.collapsed:t.defaultCollapsed,n.state={collapsed:i,below:!1},n}return w(e,r.Component),y(e,[{key:"componentDidMount",value:function(){this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),this.props.siderHook&&this.props.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){this.mql&&this.mql.removeListener(this.responsiveHandler),this.props.siderHook&&this.props.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var e=this.state.collapsed,t=this.props.collapsedWidth;return r.createElement(O.Provider,{value:{siderCollapsed:e,collapsedWidth:t}},r.createElement(d.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(e){return"collapsed"in e?{collapsed:e.collapsed}:null}}]),e}();E.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"},Object(a.polyfill)(E);var k=function(){function e(){return m(this,e),b(this,_(e).apply(this,arguments))}return w(e,r.Component),y(e,[{key:"render",value:function(){var e=this;return r.createElement(u.a.Consumer,null,(function(t){return r.createElement(E,g({},t,e.props))}))}}]),e}()},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return i})),n.d(t,"f",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"e",(function(){return v}));var o,i,r,a,s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l={done:!0,value:void 0};r=i=i||{},a={next:function(){return l}},r.empty=function(){return a},r.single=function(e){var t=!1;return{next:function(){return t?l:{done:!(t=!0),value:e}}}},r.fromArray=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.length),{next:function(){return n<=t?l:{done:!1,value:e[t++]}}}},r.fromNativeIterator=function(e){return{next:function(){var t=e.next();return t.done?l:{done:!1,value:t.value}}}},r.from=function(e){return e?Array.isArray(e)?r.fromArray(e):e:r.empty()},r.map=function(e,t){return{next:function(){var n=e.next();return n.done?l:{done:!1,value:t(n.value)}}}},r.filter=function(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return l;if(t(n.value))return{done:!1,value:n.value}}}}},r.forEach=function(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)},r.collect=function(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY);var n=[];if(0===t)return n;for(var o=0,i=e.next();!i.done&&(n.push(i.value),!(++o>=t));i=e.next());return n},r.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0;return{next:function(){if(n>=e.length)return l;var t=e[n].next();return t.done?(n++,this.next()):t}}},r.chain=function(e){return new c(e)};var c=(u.prototype.next=function(){return this.it.next()},u);function u(e){this.it=e}function d(e){return Array.isArray(e)?i.fromArray(e):e||i.empty()}var h=(p.prototype.first=function(){return this.index=this.start,this.current()},p.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},p.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},p);function p(e,t,n,o){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===o&&(o=t-1),this.items=e,this.start=t,this.end=n,this.index=o}var f,g=(s(m,f=h),m.prototype.current=function(){return f.prototype.current.call(this)},m.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},m.prototype.first=function(){return this.index=this.start,this.current()},m.prototype.last=function(){return this.index=this.end-1,this.current()},m.prototype.parent=function(){return null},m);function m(e,t,n,o){return void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===o&&(o=t-1),f.call(this,e,t,n,o)||this}var v=(y.prototype.next=function(){return this.fn(this.iterator.next())},y);function y(e,t){this.iterator=e,this.fn=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(478),i=n(548),r=n(452),a=new Array(230),s=new Array(112);!function(){for(var e=0;e<s.length;e++)s[e]=-1;function t(e,t){a[e]=t,s[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),o.i?t(91,57):o.h?(t(59,80),t(107,81),t(109,83),r.e&&t(224,57)):o.m&&(t(91,57),r.e?t(93,57):t(92,57))}();var l=r.e?256:2048,c=r.e?2048:256,u=(d.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},d.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},d.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},d.prototype.equals=function(e){return this._asKeybinding===e},d.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|=l),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=c),t|e},d.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new i.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},d);function d(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=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return i.b.fromString(t)}return a[e.keyCode]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return h}));var o,i,r,a=n(459),s=n(439),l=n(443),c=n(881),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});(r=i=i||{}).Tap="-monaco-gesturetap",r.Change="-monaco-gesturechange",r.Start="-monaco-gesturestart",r.End="-monaco-gesturesend",r.Contextmenu="-monaco-gesturecontextmenu";var d,h=(u(p,d=s.a),p.addTarget=function(e){return p.isTouchDevice()?(p.INSTANCE||(p.INSTANCE=new p),p.INSTANCE.targets.push(e),{dispose:function(){p.INSTANCE.targets=p.INSTANCE.targets.filter((function(t){return t!==e}))}}):s.a.None},p.ignoreTarget=function(e){return p.isTouchDevice()?(p.INSTANCE||(p.INSTANCE=new p),p.INSTANCE.ignoreTargets.push(e),{dispose:function(){p.INSTANCE.ignoreTargets=p.INSTANCE.ignoreTargets.filter((function(t){return t!==e}))}}):s.a.None},p.isTouchDevice=function(){return"ontouchstart"in window||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints},p.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),d.prototype.dispose.call(this)},p.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,o=e.targetTouches.length;n<o;n++){var r=e.targetTouches.item(n);this.activeTouches[r.identifier]={id:r.identifier,initialTarget:r.target,initialTimeStamp:t,initialPageX:r.pageX,initialPageY:r.pageY,rollingTimestamps:[t],rollingPageX:[r.pageX],rollingPageY:[r.pageY]};var a=this.newGestureEvent(i.Start,r.target);a.pageX=r.pageX,a.pageY=r.pageY,this.dispatchEvent(a)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},p.prototype.onTouchEnd=function(e){for(var t=Date.now(),n=Object.keys(this.activeTouches).length,o=function(o){var s=e.changedTouches.item(o);if(!r.activeTouches.hasOwnProperty(String(s.identifier)))return"continue";var l=r.activeTouches[s.identifier],c=Date.now()-l.initialTimeStamp;if(c<p.HOLD_DELAY&&Math.abs(l.initialPageX-a.v(l.rollingPageX))<30&&Math.abs(l.initialPageY-a.v(l.rollingPageY))<30)(u=r.newGestureEvent(i.Tap,l.initialTarget)).pageX=a.v(l.rollingPageX),u.pageY=a.v(l.rollingPageY),r.dispatchEvent(u);else if(p.HOLD_DELAY<=c&&Math.abs(l.initialPageX-a.v(l.rollingPageX))<30&&Math.abs(l.initialPageY-a.v(l.rollingPageY))<30){var u;(u=r.newGestureEvent(i.Contextmenu,l.initialTarget)).pageX=a.v(l.rollingPageX),u.pageY=a.v(l.rollingPageY),r.dispatchEvent(u)}else if(1===n){var d=a.v(l.rollingPageX),h=a.v(l.rollingPageY),f=a.v(l.rollingTimestamps)-l.rollingTimestamps[0],g=d-l.rollingPageX[0],m=h-l.rollingPageY[0],v=r.targets.filter((function(e){return l.initialTarget instanceof Node&&e.contains(l.initialTarget)}));r.inertia(v,t,Math.abs(g)/f,0<g?1:-1,d,Math.abs(m)/f,0<m?1:-1,h)}r.dispatchEvent(r.newGestureEvent(i.End,l.initialTarget)),delete r.activeTouches[s.identifier]},r=this,s=0,l=e.changedTouches.length;s<l;s++)o(s);this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},p.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n.tapCount=0,n},p.prototype.dispatchEvent=function(e){var t=this;if(e.type===i.Tap){var n,o=(new Date).getTime();n=o-this._lastSetTapCountTime>p.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=o,e.tapCount=n}else e.type!==i.Change&&e.type!==i.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(n){e.initialTarget instanceof Node&&n.contains(e.initialTarget)&&(n.dispatchEvent(e),t.dispatched=!0)}))},p.prototype.inertia=function(e,t,n,o,r,a,s,c){var u=this;this.handle=l.W((function(){var l=Date.now(),d=l-t,h=0,f=0,g=!0;0<(n+=p.SCROLL_FRICTION*d)&&(g=!1,h=o*n*d),0<(a+=p.SCROLL_FRICTION*d)&&(g=!1,f=s*a*d);var m=u.newGestureEvent(i.Change);m.translationX=h,m.translationY=f,e.forEach((function(e){return e.dispatchEvent(m)})),g||u.inertia(e,l,n,o,r+h,a,s,c+f)}))},p.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,o=e.changedTouches.length;n<o;n++){var r=e.changedTouches.item(n);if(this.activeTouches.hasOwnProperty(String(r.identifier))){var s=this.activeTouches[r.identifier],l=this.newGestureEvent(i.Change,s.initialTarget);l.translationX=r.pageX-a.v(s.rollingPageX),l.translationY=r.pageY-a.v(s.rollingPageY),l.pageX=r.pageX,l.pageY=r.pageY,this.dispatchEvent(l),3<s.rollingPageX.length&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(r.pageX),s.rollingPageY.push(r.pageY),s.rollingTimestamps.push(t)}}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},p.SCROLL_FRICTION=-.005,p.HOLD_DELAY=700,p.CLEAR_TAP_COUNT_TIME=400,function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);3<r&&a&&Object.defineProperty(t,n,a)}([c.a],p,"isTouchDevice",null),p);function p(){var e=d.call(this)||this;return e.dispatched=!1,e.activeTouches={},e.handle=null,e.targets=[],e.ignoreTargets=[],e._lastSetTapCountTime=0,e._register(l.j(document,"touchstart",(function(t){return e.onTouchStart(t)}))),e._register(l.j(document,"touchend",(function(t){return e.onTouchEnd(t)}))),e._register(l.j(document,"touchmove",(function(t){return e.onTouchMove(t)}))),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var o,i,r=n(439),a=n(442),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=(s(c,i=r.a),Object.defineProperty(c.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),c.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(c.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),c.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(c.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),c.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(c.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),c.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(c.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),c.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},c.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},c);function c(e,t,n,o,r){void 0===t&&(t=""),void 0===n&&(n=""),void 0===o&&(o=!0);var s=i.call(this)||this;return s._onDidChange=s._register(new a.a),s.onDidChange=s._onDidChange.event,s._enabled=!0,s._checked=!1,s._id=e,s._label=t,s._cssClass=n,s._enabled=o,s._actionCallback=r,s}var u,d=(s(h,u=r.a),h.prototype.run=function(e,t){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,o;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(i){switch(i.label){case 0:if(!e.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:e}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.runAction(e,t)];case 2:return n=i.sent(),this._onDidRun.fire({action:e,result:n}),[3,4];case 3:return o=i.sent(),this._onDidRun.fire({action:e,error:o}),[3,4];case 4:return[2]}}))}))},h.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n)},h);function h(){var e=null!==u&&u.apply(this,arguments)||this;return e._onDidBeforeRun=e._register(new a.a),e.onDidBeforeRun=e._onDidBeforeRun.event,e._onDidRun=e._register(new a.a),e.onDidRun=e._onDidRun.event,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(440),i=(r.insert=function(e,t){return{range:new o.a(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},r.delete=function(e){return{range:e,text:null}},r.replace=function(e,t){return{range:e,text:t}},r.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},r);function r(){}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var o=n(478),i=n(442),r=n(439),a=n(452),s=(l.prototype.fulfill=function(e){this.width=e},l);function l(e,t){this.chr=e,this.type=t,this.width=0}var c=(u.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},u.prototype._createDomElements=function(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";var t=document.createElement("div");t.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),t.style.fontWeight=this._bareFontInfo.fontWeight,t.style.fontSize=this._bareFontInfo.fontSize+"px",t.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,t.style.lineHeight=this._bareFontInfo.lineHeight+"px",t.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(t);var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight="bold",n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(n);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",e.appendChild(o);for(var i=[],r=0,a=this._requests;r<a.length;r++){var s=a[r],l=void 0;0===s.type&&(l=t),2===s.type&&(l=n),1===s.type&&(l=o),l.appendChild(document.createElement("br"));var c=document.createElement("span");u._render(c,s),l.appendChild(c),i.push(c)}this._container=e,this._testElements=i},u._render=function(e,t){if(" "===t.chr){for(var n=" ",o=0;o<8;o++)n+=n;e.innerHTML=n}else{var i=t.chr;for(o=0;o<8;o++)i+=i;e.textContent=i}},u.prototype._readFromDomElements=function(){for(var e=0,t=this._requests.length;e<t;e++){var n=this._requests[e],o=this._testElements[e];n.fulfill(o.offsetWidth/256)}},u);function u(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}var d=n(1087),h=n(945),p=n(530),f=n(946);n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return O}));var g,m=(g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=(y.prototype.has=function(e){var t=e.getId();return!!this._values[t]},y.prototype.get=function(e){var t=e.getId();return this._values[t]},y.prototype.put=function(e,t){var n=e.getId();this._keys[n]=e,this._values[n]=t},y.prototype.remove=function(e){var t=e.getId();delete this._keys[t],delete this._values[t]},y.prototype.getValues=function(){var e=this;return Object.keys(this._keys).map((function(t){return e._values[t]}))},y);function y(){this._keys=Object.create(null),this._values=Object.create(null)}function b(){w.INSTANCE.clearCache()}var _,w=(m(C,_=r.a),C.prototype.dispose=function(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),_.prototype.dispose.call(this)},C.prototype.clearCache=function(){this._cache=new v,this._onDidChange.fire()},C.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))},C.prototype._evictUntrustedReadings=function(){for(var e=this._cache.getValues(),t=!1,n=0,o=e.length;n<o;n++){var i=e[n];i.isTrusted||(t=!0,this._cache.remove(i))}t&&this._onDidChange.fire()},C.prototype.readConfiguration=function(e){if(!this._cache.has(e)){var t=C._actualReadConfiguration(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new f.b({zoomLevel:o.c(),fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)},C.createRequest=function(e,t,n,o){var i=new s(e,t);return n.push(i),o&&o.push(i),i},C._actualReadConfiguration=function(e){var t=[],n=[],i=this.createRequest("n",0,t,n),r=this.createRequest("\uff4d",0,t,null),a=this.createRequest(" ",0,t,n),s=this.createRequest("0",0,t,n),l=this.createRequest("1",0,t,n),u=this.createRequest("2",0,t,n),d=this.createRequest("3",0,t,n),h=this.createRequest("4",0,t,n),g=this.createRequest("5",0,t,n),m=this.createRequest("6",0,t,n),v=this.createRequest("7",0,t,n),y=this.createRequest("8",0,t,n),b=this.createRequest("9",0,t,n),_=this.createRequest("\u2192",0,t,n),w=this.createRequest("\uffeb",0,t,null),C=this.createRequest("\xb7",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),new c(e,t).read();for(var S=Math.max(s.width,l.width,u.width,d.width,h.width,g.width,m.width,v.width,y.width,b.width),O=e.fontFeatureSettings===p.d.OFF,x=n[0].width,E=1,k=n.length;O&&E<k;E++){var N=x-n[E].width;if(N<-.001||.001<N){O=!1;break}}var D=!0;O&&w.width!==x&&(D=!1),w.width>_.width&&(D=!1);var L=2e3<o.b();return new f.b({zoomLevel:o.c(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:O,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:D,spaceWidth:a.width,middotWidth:C.width,maxDigitWidth:S},L)},C.INSTANCE=new C,C);function C(){var e=_.call(this)||this;return e._onDidChange=e._register(new i.a),e.onDidChange=e._onDidChange.event,e._cache=new v,e._evictUntrustedReadingsTimeout=-1,e}var S,O=(m(x,S=h.a),x.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"},x.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)},x.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},x.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},x.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},x.prototype.dispose=function(){S.prototype.dispose.call(this)},x.prototype._getExtraEditorClassName=function(){var e="";return o.k||o.n||(e+="no-user-select "),a.e&&(e+="mac "),e},x.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:o.m||o.h,pixelRatio:o.a(),zoomLevel:o.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},x.prototype.readConfiguration=function(e){return w.INSTANCE.readConfiguration(e)},x);function x(e,t,n,i){void 0===n&&(n=null);var r=S.call(this,e,t)||this;return r.accessibilityService=i,r._elementSizeObserver=r._register(new d.a(n,t.dimension,(function(){return r._onReferenceDomElementSizeChanged()}))),r._register(w.INSTANCE.onDidChange((function(){return r._onCSSBasedConfigurationChanged()}))),r._validatedOptions.get(9)&&r._elementSizeObserver.startObserving(),r._register(o.o((function(e){return r._recomputeOptions()}))),r._register(r.accessibilityService.onDidChangeScreenReaderOptimized((function(){return r._recomputeOptions()}))),r._recomputeOptions(),r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(0),i=n(1),r=n(12),a=n.n(r),s=n(692),l=n(77);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},v=i.oneOfType([i.object,i.number]),y=function(){function e(){var t,n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,i=p(e).apply(this,arguments),(t=!i||"object"!==d(i)&&"function"!=typeof i?f(n):i).renderCol=function(e){var n,i=e.getPrefixCls,r=f(t).props,l=r.prefixCls,h=r.span,p=r.order,g=r.offset,v=r.push,y=r.pull,b=r.className,_=r.children,w=m(r,["prefixCls","span","order","offset","push","pull","className","children"]),C=i("col",l),S={};["xs","sm","md","lg","xl","xxl"].forEach((function(e){var t,n={},o=r[e];"number"==typeof o?n.span=o:"object"===d(o)&&(n=o||{}),delete w[e],S=u(u({},S),(c(t={},"".concat(C,"-").concat(e,"-").concat(n.span),void 0!==n.span),c(t,"".concat(C,"-").concat(e,"-order-").concat(n.order),n.order||0===n.order),c(t,"".concat(C,"-").concat(e,"-offset-").concat(n.offset),n.offset||0===n.offset),c(t,"".concat(C,"-").concat(e,"-push-").concat(n.push),n.push||0===n.push),c(t,"".concat(C,"-").concat(e,"-pull-").concat(n.pull),n.pull||0===n.pull),t))}));var O=a()(C,(c(n={},"".concat(C,"-").concat(h),void 0!==h),c(n,"".concat(C,"-order-").concat(p),p),c(n,"".concat(C,"-offset-").concat(g),g),c(n,"".concat(C,"-push-").concat(v),v),c(n,"".concat(C,"-pull-").concat(y),y),n),b,S);return o.createElement(s.a.Consumer,null,(function(e){var t=e.gutter,n=w.style;return t&&(n=u(u(u({},0<t[0]?{paddingLeft:t[0]/2,paddingRight:t[0]/2}:{}),0<t[1]?{paddingTop:t[1]/2,paddingBottom:t[1]/2}:{}),n)),o.createElement("div",u({},w,{style:n,className:O}),_)}))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){return o.createElement(l.a,null,this.renderCol)}}])&&h(t.prototype,n),e}();y.propTypes={span:i.number,order:i.number,offset:i.number,push:i.number,pull:i.number,className:i.string,children:i.node,xs:v,sm:v,md:v,lg:v,xl:v,xxl:v}},function(e,t,n){"use strict";var o,i=n(0),r=n(12),a=n.n(r),s=n(1),l=n(77),c=n(692),u=n(51);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}"undefined"!=typeof window&&(window.matchMedia||(window.matchMedia=function(e){return{media:e,matches:!1,addListener:function(){},removeListener:function(){}}}),o=n(798));var p=["xxl","xl","lg","md","sm","xs"],f={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},g=[],m=-1,v={},y={dispatch:function(e){return v=e,!(g.length<1)&&(g.forEach((function(e){e.func(v)})),!0)},subscribe:function(e){0===g.length&&this.register();var t=(++m).toString();return g.push({token:t,func:e}),e(v),t},unsubscribe:function(e){0===(g=g.filter((function(t){return t.token!==e}))).length&&this.unregister()},unregister:function(){Object.keys(f).map((function(e){return o.unregister(f[e])}))},register:function(){var e=this;Object.keys(f).map((function(t){return o.register(f[t],{match:function(){var n=h(h({},v),d({},t,!0));e.dispatch(n)},unmatch:function(){var n=h(h({},v),d({},t,!1));e.dispatch(n)},destroy:function(){}})}))}};function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return D}));var E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},k=Object(u.a)("top","middle","bottom","stretch"),N=Object(u.a)("start","end","center","space-around","space-between"),D=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=S(this,O(e).apply(this,arguments))).state={screens:{}},t.renderRow=function(e){var n,o=e.getPrefixCls,r=t.props,s=r.prefixCls,l=r.type,u=r.justify,d=r.align,h=r.className,p=r.style,f=r.children,g=E(r,["prefixCls","type","justify","align","className","style","children"]),m=o("row",s),v=t.getGutter(),y=a()((w(n={},m,!l),w(n,"".concat(m,"-").concat(l),l),w(n,"".concat(m,"-").concat(l,"-").concat(u),l&&u),w(n,"".concat(m,"-").concat(l,"-").concat(d),l&&d),n),h),b=_(_(_({},0<v[0]?{marginLeft:v[0]/-2,marginRight:v[0]/-2}:{}),0<v[1]?{marginTop:v[1]/-2,marginBottom:v[1]/-2}:{}),p),C=_({},g);return delete C.gutter,i.createElement(c.a.Provider,{value:{gutter:v}},i.createElement("div",_({},C,{className:y,style:b}),f))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(e,i.Component),t=e,(n=[{key:"componentDidMount",value:function(){var e=this;this.token=y.subscribe((function(t){var n=e.props.gutter;"object"!==b(n)&&(!Array.isArray(n)||"object"!==b(n[0])&&"object"!==b(n[1]))||e.setState({screens:t})}))}},{key:"componentWillUnmount",value:function(){y.unsubscribe(this.token)}},{key:"getGutter",value:function(){var e=[0,0],t=this.props.gutter,n=this.state.screens;return(Array.isArray(t)?t:[t,0]).forEach((function(t,o){if("object"===b(t))for(var i=0;i<p.length;i++){var r=p[i];if(n[r]&&void 0!==t[r]){e[o]=t[r];break}}else e[o]=t||0})),e}},{key:"render",value:function(){return i.createElement(l.a,null,this.renderRow)}}])&&C(t.prototype,n),e}();D.defaultProps={gutter:0},D.propTypes={type:s.oneOf(["flex"]),align:s.oneOf(k),justify:s.oneOf(N),className:s.string,children:s.node,gutter:s.oneOfType([s.object,s.number,s.array]),prefixCls:s.string}},function(e,t,n){},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(712)),r=o(n(569));t.Column=r.default;var a=o(n(570));t.ColumnGroup=a.default;var s=n(468);t.INTERNAL_COL_DEFINE=s.INTERNAL_COL_DEFINE,t.default=i.default},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var d=c(n(0)),h=c(n(1)),p=u(n(75)),f=u(n(713)),g=u(n(266)),m=n(476),v=u(n(714)),y=u(n(187)),b=u(n(12)),_=n(25),w=n(468),C=u(n(740)),S=u(n(741)),O=u(n(748)),x=u(n(569)),E=u(n(570)),k=u(n(749)),N=function(){function e(t){var n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,i=a(e).call(this,t),(n=!i||"object"!==o(i)&&"function"!=typeof i?s(this):i).state={},n.getRowKey=function(e,t){var o=n.props.rowKey,i="function"==typeof o?o(e,t):e[o];return g.default(void 0!==i,"Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key."),void 0===i?t:i},n.handleWindowResize=function(){n.syncFixedTableRowHeight(),n.setScrollPositionClassName()},n.syncFixedTableRowHeight=function(){var e=n.tableNode.getBoundingClientRect();if(!(void 0!==e.height&&e.height<=0)){var t=n.props.prefixCls,o=n.headTable?n.headTable.querySelectorAll("thead"):n.bodyTable.querySelectorAll("thead"),i=n.bodyTable.querySelectorAll(".".concat(t,"-row"))||[],r=[].map.call(o,(function(e){return e.getBoundingClientRect().height||"auto"})),a=n.store.getState(),s=[].reduce.call(i,(function(e,t){var n=t.getAttribute("data-row-key"),o=t.getBoundingClientRect().height||a.fixedColumnsBodyRowsHeight[n]||"auto";return e[n]=o,e}),{});p.default(a.fixedColumnsHeadRowsHeight,r)&&p.default(a.fixedColumnsBodyRowsHeight,s)||n.store.setState({fixedColumnsHeadRowsHeight:r,fixedColumnsBodyRowsHeight:s})}},n.handleBodyScrollLeft=function(e){if(e.currentTarget===e.target){var t=e.target,o=n.props.scroll,i=void 0===o?{}:o,r=s(n),a=r.headTable,l=r.bodyTable;t.scrollLeft!==n.lastScrollLeft&&i.x&&(t===l&&a?a.scrollLeft=t.scrollLeft:t===a&&l&&(l.scrollLeft=t.scrollLeft),n.setScrollPositionClassName()),n.lastScrollLeft=t.scrollLeft}},n.handleBodyScrollTop=function(e){var t=e.target;if(e.currentTarget===t){var o=n.props.scroll,i=void 0===o?{}:o,r=s(n),a=r.headTable,l=r.bodyTable,c=r.fixedColumnsBodyLeft,u=r.fixedColumnsBodyRight;if(t.scrollTop!==n.lastScrollTop&&i.y&&t!==a){var d=t.scrollTop;c&&t!==c&&(c.scrollTop=d),u&&t!==u&&(u.scrollTop=d),l&&t!==l&&(l.scrollTop=d)}n.lastScrollTop=t.scrollTop}},n.handleBodyScroll=function(e){n.handleBodyScrollLeft(e),n.handleBodyScrollTop(e)},n.handleWheel=function(e){var t=n.props.scroll,o=void 0===t?{}:t;if(window.navigator.userAgent.match(/Trident\/7\./)&&o.y){e.preventDefault();var i,r=e.deltaY,a=e.target,l=s(n),c=l.bodyTable,u=l.fixedColumnsBodyLeft,d=l.fixedColumnsBodyRight;i=n.lastScrollTop?n.lastScrollTop+r:r,u&&a!==u&&(u.scrollTop=i),d&&a!==d&&(d.scrollTop=i),c&&a!==c&&(c.scrollTop=i)}},n.saveRef=function(e){return function(t){n[e]=t}},n.saveTableNodeRef=function(e){n.tableNode=e},["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach((function(e){g.default(void 0===t[e],"".concat(e," is deprecated, please use onRow instead."))})),g.default(void 0===t.getBodyWrapper,"getBodyWrapper is deprecated, please use custom components instead."),n.columnManager=new C.default(t.columns,t.children),n.store=m.create({currentHoverKey:null,fixedColumnsHeadRowsHeight:[],fixedColumnsBodyRowsHeight:{}}),n.setScrollPosition("left"),n.debouncedWindowResize=w.debounce(n.handleWindowResize,150),n}var t,n,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(e,d.Component),t=e,c=[{key:"getDerivedStateFromProps",value:function(e,t){return e.columns&&e.columns!==t.columns?{columns:e.columns,children:null}:e.children!==t.children?{columns:null,children:e.children}:null}}],(n=[{key:"getChildContext",value:function(){return{table:{props:this.props,columnManager:this.columnManager,saveRef:this.saveRef,components:v.default({table:"table",header:{wrapper:"thead",row:"tr",cell:"th"},body:{wrapper:"tbody",row:"tr",cell:"td"}},this.props.components)}}}},{key:"componentDidMount",value:function(){this.columnManager.isAnyColumnsFixed()&&(this.handleWindowResize(),this.resizeEvent=f.default(window,"resize",this.debouncedWindowResize)),this.headTable&&(this.headTable.scrollLeft=0),this.bodyTable&&(this.bodyTable.scrollLeft=0)}},{key:"componentDidUpdate",value:function(e){this.columnManager.isAnyColumnsFixed()&&(this.handleWindowResize(),this.resizeEvent||(this.resizeEvent=f.default(window,"resize",this.debouncedWindowResize))),0<e.data.length&&0===this.props.data.length&&this.hasScrollX()&&this.resetScrollX()}},{key:"componentWillUnmount",value:function(){this.resizeEvent&&this.resizeEvent.remove(),this.debouncedWindowResize&&this.debouncedWindowResize.cancel()}},{key:"setScrollPosition",value:function(e){if(this.scrollPosition=e,this.tableNode){var t=this.props.prefixCls;"both"===e?y.default(this.tableNode).remove(new RegExp("^".concat(t,"-scroll-position-.+$"))).add("".concat(t,"-scroll-position-left")).add("".concat(t,"-scroll-position-right")):y.default(this.tableNode).remove(new RegExp("^".concat(t,"-scroll-position-.+$"))).add("".concat(t,"-scroll-position-").concat(e))}}},{key:"setScrollPositionClassName",value:function(){var e=this.bodyTable,t=0===e.scrollLeft,n=e.scrollLeft+1>=e.children[0].getBoundingClientRect().width-e.getBoundingClientRect().width;t&&n?this.setScrollPosition("both"):t?this.setScrollPosition("left"):n?this.setScrollPosition("right"):"middle"!==this.scrollPosition&&this.setScrollPosition("middle")}},{key:"isTableLayoutFixed",value:function(){var e=this.props,t=e.tableLayout,n=e.columns,o=void 0===n?[]:n,i=e.useFixedHeader,r=e.scroll,a=void 0===r?{}:r;return void 0!==t?"fixed"===t:!!o.some((function(e){return!!e.ellipsis}))||!(!i&&!a.y)||!(!a.x||!0===a.x||"max-content"===a.x)}},{key:"resetScrollX",value:function(){this.headTable&&(this.headTable.scrollLeft=0),this.bodyTable&&(this.bodyTable.scrollLeft=0)}},{key:"hasScrollX",value:function(){var e=this.props.scroll;return"x"in(void 0===e?{}:e)}},{key:"renderMainTable",value:function(){var e=this.props,t=e.scroll,n=e.prefixCls,o=this.columnManager.isAnyColumnsFixed(),i=o||t.x||t.y,r=[this.renderTable({columns:this.columnManager.groupedColumns(),isAnyColumnsFixed:o}),this.renderEmptyText(),this.renderFooter()];return i?d.createElement("div",{className:"".concat(n,"-scroll")},r):r}},{key:"renderLeftFixedTable",value:function(){var e=this.props.prefixCls;return d.createElement("div",{className:"".concat(e,"-fixed-left")},this.renderTable({columns:this.columnManager.leftColumns(),fixed:"left"}))}},{key:"renderRightFixedTable",value:function(){var e=this.props.prefixCls;return d.createElement("div",{className:"".concat(e,"-fixed-right")},this.renderTable({columns:this.columnManager.rightColumns(),fixed:"right"}))}},{key:"renderTable",value:function(e){var t=e.columns,n=e.fixed,o=e.isAnyColumnsFixed,i=this.props,r=i.prefixCls,a=i.scroll,s=(void 0===a?{}:a).x||n?"".concat(r,"-fixed"):"";return[d.createElement(S.default,{key:"head",columns:t,fixed:n,tableClassName:s,handleBodyScrollLeft:this.handleBodyScrollLeft,expander:this.expander}),d.createElement(O.default,{key:"body",columns:t,fixed:n,tableClassName:s,getRowKey:this.getRowKey,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,expander:this.expander,isAnyColumnsFixed:o})]}},{key:"renderTitle",value:function(){var e=this.props,t=e.title,n=e.prefixCls;return t?d.createElement("div",{className:"".concat(n,"-title"),key:"title"},t(this.props.data)):null}},{key:"renderFooter",value:function(){var e=this.props,t=e.footer,n=e.prefixCls;return t?d.createElement("div",{className:"".concat(n,"-footer"),key:"footer"},t(this.props.data)):null}},{key:"renderEmptyText",value:function(){var e=this.props,t=e.emptyText,n=e.prefixCls;if(e.data.length)return null;var o="".concat(n,"-placeholder");return d.createElement("div",{className:o,key:"emptyText"},"function"==typeof t?t():t)}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.prefixCls;this.state.columns?this.columnManager.reset(n.columns):this.state.children&&this.columnManager.reset(null,n.children);var r=b.default(n.prefixCls,n.className,(i(e={},"".concat(o,"-fixed-header"),n.useFixedHeader||n.scroll&&n.scroll.y),i(e,"".concat(o,"-scroll-position-left ").concat(o,"-scroll-position-right"),"both"===this.scrollPosition),i(e,"".concat(o,"-scroll-position-").concat(this.scrollPosition),"both"!==this.scrollPosition),i(e,"".concat(o,"-layout-fixed"),this.isTableLayoutFixed()),e)),a=this.columnManager.isAnyColumnsLeftFixed(),s=this.columnManager.isAnyColumnsRightFixed(),l=w.getDataAndAriaProps(n);return d.createElement(m.Provider,{store:this.store},d.createElement(k.default,Object.assign({},n,{columnManager:this.columnManager,getRowKey:this.getRowKey}),(function(e){return t.expander=e,d.createElement("div",Object.assign({ref:t.saveTableNodeRef,className:r,style:n.style,id:n.id},l),t.renderTitle(),d.createElement("div",{className:"".concat(o,"-content")},t.renderMainTable(),a&&t.renderLeftFixedTable(),s&&t.renderRightFixedTable()))})))}}])&&r(t.prototype,n),c&&r(t,c),e}();N.childContextTypes={table:h.any,components:h.any},N.Column=x.default,N.ColumnGroup=E.default,N.defaultProps={data:[],useFixedHeader:!1,rowKey:"key",rowClassName:function(){return""},onRow:function(){},onHeaderRow:function(){},prefixCls:"rc-table",bodyStyle:{},style:{},showHeader:!0,scroll:{},rowRef:function(){return null},emptyText:function(){return"No Data"}},_.polyfill(N),t.default=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){var a=i.default.unstable_batchedUpdates?function(e){i.default.unstable_batchedUpdates(n,e)}:n;return(0,o.default)(e,t,a,r)};var o=r(n(188)),i=r(n(13));function r(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var o=n(715),i=n(731)((function(e,t,n){o(e,t,n)}));e.exports=i},function(e,t,n){var o=n(481),i=n(563),r=n(716),a=n(718),s=n(168),l=n(566),c=n(565);e.exports=function e(t,n,u,d,h){t!==n&&r(n,(function(r,l){if(h=h||new o,s(r))a(t,n,l,u,e,d,h);else{var p=d?d(c(t,l),r,l+"",t,n,h):void 0;void 0===p&&(p=r),i(t,l,p)}}),l)}},function(e,t,n){var o=n(717)();e.exports=o},function(e,t){e.exports=function(e){return function(t,n,o){for(var i=-1,r=Object(t),a=o(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(r[l],l,r))break}return t}}},function(e,t,n){var o=n(563),i=n(719),r=n(720),a=n(722),s=n(723),l=n(547),c=n(458),u=n(725),d=n(473),h=n(512),p=n(168),f=n(726),g=n(474),m=n(565),v=n(727);e.exports=function(e,t,n,y,b,_,w){var C=m(e,n),S=m(t,n),O=w.get(S);if(O)o(e,n,O);else{var x=_?_(C,S,n+"",e,t,w):void 0,E=void 0===x;if(E){var k=c(S),N=!k&&d(S),D=!k&&!N&&g(S);x=S,k||N||D?x=c(C)?C:u(C)?a(C):N?i(S,!(E=!1)):D?r(S,!(E=!1)):[]:f(S)||l(S)?l(x=C)?x=v(C):p(C)&&!h(C)||(x=s(S)):E=!1}E&&(w.set(S,x),b(x,S,y,_,w),w.delete(S)),o(e,n,x)}}},function(e,t,n){(function(e){var o=n(166),i=t&&!t.nodeType&&t,r=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=r&&r.exports===i?o.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,o=s?s(n):new e.constructor(n);return e.copy(o),o}}).call(this,n(262)(e))},function(e,t,n){var o=n(721);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var o=n(508);e.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}},function(e,t){e.exports=function(e,t){var n=-1,o=e.length;for(t=t||Array(o);++n<o;)t[n]=e[n];return t}},function(e,t,n){var o=n(724),i=n(564),r=n(485);e.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:o(i(e))}},function(e,t,n){var o=n(168),i=Object.create;function r(){}e.exports=function(e){if(!o(e))return{};if(i)return i(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}},function(e,t,n){var o=n(475),i=n(261);e.exports=function(e){return i(e)&&o(e)}},function(e,t,n){var o=n(263),i=n(564),r=n(261),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=o(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},function(e,t,n){var o=n(728),i=n(566);e.exports=function(e){return o(e,i(e))}},function(e,t,n){var o=n(493),i=n(467);e.exports=function(e,t,n,r){var a=!n;n=n||{};for(var s=-1,l=t.length;++s<l;){var c=t[s],u=r?r(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),(a?i:o)(n,c,u)}return n}},function(e,t,n){var o=n(168),i=n(485),r=n(730),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return r(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var o=n(732),i=n(739);e.exports=function(e){return o((function(t,n){var o=-1,r=n.length,a=1<r?n[r-1]:void 0,s=2<r?n[2]:void 0;for(a=3<e.length&&"function"==typeof a?(r--,a):void 0,s&&i(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++o<r;){var l=n[o];l&&e(t,l,o,a)}return t}))}},function(e,t,n){var o=n(486),i=n(733),r=n(735);e.exports=function(e,t){return r(i(e,t,o),e+"")}},function(e,t,n){var o=n(734),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=i(r.length-t,0),l=Array(s);++a<s;)l[a]=r[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=r[a];return c[t]=n(l),o(e,this,c)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var o=n(736),i=n(738)(o);e.exports=i},function(e,t,n){var o=n(737),i=n(477),r=n(486),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:r;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,o=0;return function(){var i=n(),r=16-(i-o);if(o=i,0<r){if(800<=++t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var o=n(460),i=n(475),r=n(492),a=n(168);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&r(t,n.length):"string"==s&&t in n)&&o(n[t],e)}},function(e,t,n){"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(0)),c=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cached={},this.columns=t||this.normalize(n)}var t,n;return t=e,(n=[{key:"isAnyColumnsFixed",value:function(){var e=this;return this._cache("isAnyColumnsFixed",(function(){return e.columns.some((function(e){return!!e.fixed}))}))}},{key:"isAnyColumnsLeftFixed",value:function(){var e=this;return this._cache("isAnyColumnsLeftFixed",(function(){return e.columns.some((function(e){return"left"===e.fixed||!0===e.fixed}))}))}},{key:"isAnyColumnsRightFixed",value:function(){var e=this;return this._cache("isAnyColumnsRightFixed",(function(){return e.columns.some((function(e){return"right"===e.fixed}))}))}},{key:"leftColumns",value:function(){var e=this;return this._cache("leftColumns",(function(){return e.groupedColumns().filter((function(e){return"left"===e.fixed||!0===e.fixed}))}))}},{key:"rightColumns",value:function(){var e=this;return this._cache("rightColumns",(function(){return e.groupedColumns().filter((function(e){return"right"===e.fixed}))}))}},{key:"leafColumns",value:function(){var e=this;return this._cache("leafColumns",(function(){return e._leafColumns(e.columns)}))}},{key:"leftLeafColumns",value:function(){var e=this;return this._cache("leftLeafColumns",(function(){return e._leafColumns(e.leftColumns())}))}},{key:"rightLeafColumns",value:function(){var e=this;return this._cache("rightLeafColumns",(function(){return e._leafColumns(e.rightColumns())}))}},{key:"groupedColumns",value:function(){var e=this;return this._cache("groupedColumns",(function(){return function e(t,n,o,r){var a=1<arguments.length&&void 0!==n?n:0,s=2<arguments.length&&void 0!==o?o:{},l=3<arguments.length&&void 0!==r?r:[];function c(e){var t=l.length-a;e&&!e.children&&1<t&&(!e.rowSpan||e.rowSpan<t)&&(e.rowSpan=t)}l[a]=l[a]||[];var u=[];return t.forEach((function(n,o){var r=i({},n);l[a].push(r),s.colSpan=s.colSpan||0,r.children&&0<r.children.length?(r.children=e(r.children,a+1,r,l),s.colSpan+=r.colSpan):s.colSpan+=1;for(var d=0;d<l[a].length-1;d+=1)c(l[a][d]);o+1===t.length&&c(r),u.push(r)})),u}(e.columns)}))}},{key:"normalize",value:function(e){var t=this,n=[];return l.Children.forEach(e,(function(e){if(l.isValidElement(e)){var o=i({},e.props);e.key&&(o.key=e.key),e.type.isTableColumnGroup&&(o.children=t.normalize(o.children)),n.push(o)}})),n}},{key:"reset",value:function(e,t){this.columns=e||this.normalize(t),this._cached={}}},{key:"_cache",value:function(e,t){return e in this._cached||(this._cached[e]=t()),this._cached[e]}},{key:"_leafColumns",value:function(e){var t=this,n=[];return e.forEach((function(e){e.children?n.push.apply(n,function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(t._leafColumns(e.children))):n.push(e)})),n}}])&&a(t.prototype,n),e}();t.default=c},function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),a=o(n(1)),s=i(n(12)),l=n(468),c=i(n(567));(t.default=function(e,t){var n,o,i,a=t.table,u=a.props,d=u.prefixCls,h=u.scroll,p=u.showHeader,f=e.columns,g=e.fixed,m=e.tableClassName,v=e.handleBodyScrollLeft,y=e.expander,b=a.saveRef,_=a.props.useFixedHeader,w={},C=l.measureScrollbar({direction:"vertical"});if(h.y){_=!0;var S=l.measureScrollbar({direction:"horizontal",prefixCls:d});0<S&&!g&&(w.marginBottom="-".concat(S,"px"),w.paddingBottom="0px",w.minWidth="".concat(C,"px"),w.overflowX="scroll",w.overflowY=0===C?"hidden":"scroll")}return _&&p?r.createElement("div",{key:"headTable",ref:g?null:b("headTable"),className:s.default("".concat(d,"-header"),(n={},o="".concat(d,"-hide-scrollbar"),i=0<C,o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n)),style:w,onScroll:v},r.createElement(c.default,{tableClassName:m,hasHead:!0,hasBody:!1,fixed:g,columns:f,expander:y})):null}).contextTypes={table:a.any}},function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};function i(e,t){var n,o=t.table,i=o.props,a=i.prefixCls,l=i.expandIconAsCell,c=e.fixed,u=[];return l&&"right"!==c&&u.push(r.createElement("col",{className:"".concat(a,"-expand-icon-col"),key:"rc-table-expand-icon-col"})),n="left"===c?o.columnManager.leftLeafColumns():"right"===c?o.columnManager.rightLeafColumns():o.columnManager.leafColumns(),u=u.concat(n.map((function(e){var t=e.key,n=e.dataIndex,o=e.width,i=e[s.INTERNAL_COL_DEFINE],a=void 0!==t?t:n;return r.createElement("col",Object.assign({key:a,style:{width:o,minWidth:o}},i))}))),r.createElement("colgroup",null,u)}Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),a=o(n(1)),s=n(468);i.contextTypes={table:a.any},t.default=i},function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),a=o(n(1)),s=i(n(744));function l(e,t){var n=t.table,o=n.components,i=n.props,a=i.prefixCls,l=i.showHeader,c=i.onHeaderRow,u=e.expander,d=e.columns,h=e.fixed;if(!l)return null;var p=function e(t){var n=t.columns,o=void 0===n?[]:n,i=t.currentRow,r=void 0===i?0:i,a=t.rows,s=void 0===a?[]:a,l=t.isLast,c=void 0===l||l;return s[r]=s[r]||[],o.forEach((function(t,n){if(t.rowSpan&&s.length<t.rowSpan)for(;s.length<t.rowSpan;)s.push([]);var i=c&&n===o.length-1,a={key:t.key,className:t.className||"",children:t.title,isLast:i,column:t};t.children&&e({columns:t.children,currentRow:r+1,rows:s,isLast:i}),"colSpan"in t&&(a.colSpan=t.colSpan),"rowSpan"in t&&(a.rowSpan=t.rowSpan),0!==a.colSpan&&s[r].push(a)})),s.filter((function(e){return 0<e.length}))}({columns:d});u.renderExpandIndentCell(p,h);var f=o.header.wrapper;return r.createElement(f,{className:"".concat(a,"-thead")},p.map((function(e,t){return r.createElement(s.default,{prefixCls:a,key:t,index:t,fixed:h,columns:d,rows:p,row:e,components:o,onHeaderRow:c})})))}l.contextTypes={table:a.any},t.default=l},function(e,t,n){"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(0)),c=n(476),u=s(n(12));t.default=c.connect((function(e,t){return{height:(n=t,o=e.fixedColumnsHeadRowsHeight,i=n.columns,r=n.rows,a=n.fixed,s=o[0],a&&s&&i?"auto"===s?"auto":s/r.length:null)};var n,o,i,r,a,s}))((function(e){var t=e.row,n=e.index,o=e.height,a=e.components,s=e.onHeaderRow,c=e.prefixCls,d=a.header.row,h=a.header.cell,p=s(t.map((function(e){return e.column})),n),f=p?p.style:{},g=i({height:1<t.length&&0===n&&o&&"auto"!==o?parseInt(o.toString(),10):o},f);return l.createElement(d,Object.assign({},p,{style:g}),t.map((function(e,t){var n,o=e.column,a=e.isLast,s=function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],0<=t.indexOf(n)||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["column","isLast"]),d=o.onHeaderCell?o.onHeaderCell(o):{};return o.align&&(d.style=i({},d.style,{textAlign:o.align})),d.className=u.default(d.className,o.className,(r(n={},"".concat(c,"-align-").concat(o.align),!!o.align),r(n,"".concat(c,"-row-cell-ellipsis"),!!o.ellipsis),r(n,"".concat(c,"-row-cell-break-word"),!!o.width),r(n,"".concat(c,"-row-cell-last"),a),n)),l.createElement(h,Object.assign({},s,d,{key:o.key||o.dataIndex||t}))})))}))},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=d(n(0)),f=h(n(12)),g=h(n(511));function m(e){return e&&!p.isValidElement(e)&&"[object Object]"===Object.prototype.toString.call(e)}var v=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=l(this,c(e).apply(this,arguments))).handleClick=function(e){var n=t.props,o=n.record,i=n.column.onCellClick;i&&i(o,e)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(e,p.Component),t=e,(n=[{key:"render",value:function(){var e,t,n=this.props,o=n.record,i=n.indentSize,s=n.prefixCls,l=n.indent,c=n.index,u=n.expandIcon,d=n.column,h=n.component,v=d.dataIndex,y=d.render,b=d.className,_=void 0===b?"":b;t="number"==typeof v||v&&0!==v.length?g.default(o,v):o;var w,C,S={};y&&m(t=y(t,o,c))&&(w=(S=t.props||S).colSpan,C=S.rowSpan,t=t.children),d.onCell&&(S=r({},S,{},d.onCell(o,c))),m(t)&&(t=null);var O=u?p.createElement("span",{style:{paddingLeft:"".concat(i*l,"px")},className:"".concat(s,"-indent indent-level-").concat(l)}):null;if(0===C||0===w)return null;d.align&&(S.style=r({textAlign:d.align},S.style));var x=f.default(_,(a(e={},"".concat(s,"-cell-ellipsis"),!!d.ellipsis),a(e,"".concat(s,"-cell-break-word"),!!d.width),e));if(d.ellipsis)if("string"==typeof t)S.title=t;else if(t){var E=t.props;E&&E.children&&"string"==typeof E.children&&(S.title=E.children)}return p.createElement(h,Object.assign({className:x,onClick:this.handleClick},S),O,u,t)}}])&&s(t.prototype,n),e}();t.default=v},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=l(n(0)),d=n(476),h=c(n(747)),p=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=r(this,a(e).apply(this,arguments))).hasExpandIcon=function(e){var n=t.props,o=n.expandRowByClick,i=n.expandIcon;return!t.expandIconAsCell&&e===t.expandIconColumnIndex&&(!!i||!o)},t.handleExpandChange=function(e,n){var o=t.props,i=o.onExpandedChange,r=o.expanded,a=o.rowKey;t.expandable&&i(!r,e,n,a)},t.handleRowClick=function(e,n,o){var i=t.props,r=i.expandRowByClick,a=i.onRowClick;r&&t.handleExpandChange(e,o),a&&a(e,n,o)},t.renderExpandIcon=function(){var e=t.props,n=e.prefixCls,o=e.expanded,i=e.record,r=e.needIndentSpaced,a=e.expandIcon;return a?a({prefixCls:n,expanded:o,record:i,needIndentSpaced:r,expandable:t.expandable,onExpand:t.handleExpandChange}):u.createElement(h.default,{expandable:t.expandable,prefixCls:n,onExpand:t.handleExpandChange,needIndentSpaced:r,expanded:o,record:i})},t.renderExpandIconCell=function(e){if(t.expandIconAsCell){var n=t.props.prefixCls;e.push(u.createElement("td",{className:"".concat(n,"-expand-icon-cell"),key:"rc-table-expand-icon-cell"},t.renderExpandIcon()))}},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(e,u.Component),t=e,(n=[{key:"componentWillUnmount",value:function(){this.handleDestroy()}},{key:"handleDestroy",value:function(){var e=this.props,t=e.onExpandedChange,n=e.rowKey,o=e.record;this.expandable&&t(!1,o,null,n,!0)}},{key:"render",value:function(){var e=this.props,t=e.childrenColumnName,n=e.expandedRowRender,o=e.indentSize,i=e.record,r=e.fixed,a=e.expanded;this.expandIconAsCell="right"!==r&&this.props.expandIconAsCell,this.expandIconColumnIndex="right"!==r?this.props.expandIconColumnIndex:-1;var s=i[t];this.expandable=!(!s&&!n);var l={indentSize:o,expanded:a,onRowClick:this.handleRowClick,hasExpandIcon:this.hasExpandIcon,renderExpandIcon:this.renderExpandIcon,renderExpandIconCell:this.renderExpandIconCell};return this.props.children(l)}}])&&i(t.prototype,n),e}();t.default=d.connect((function(e,t){var n=e.expandedRowKeys,o=void 0===n?[]:n,i=t.rowKey;return{expanded:o.includes(i)}}))(p)},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=l(n(0)),d=c(n(75)),h=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,a(e).apply(this,arguments))}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(e,u.Component),t=e,(n=[{key:"shouldComponentUpdate",value:function(e){return!d.default(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.expandable,n=e.prefixCls,o=e.onExpand,i=e.needIndentSpaced,r=e.expanded,a=e.record;if(t){var s=r?"expanded":"collapsed";return u.createElement("span",{className:"".concat(n,"-expand-icon ").concat(n,"-").concat(s),onClick:function(e){return o(a,e)}})}return i?u.createElement("span",{className:"".concat(n,"-expand-icon ").concat(n,"-spaced")}):null}}])&&i(t.prototype,n),e}();t.default=h},function(e,t,n){"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(0)),c=a(n(1)),u=n(468),d=s(n(567));(t.default=function(e,t){var n=t.table,o=n.props,r=o.prefixCls,a=o.scroll,s=e.columns,c=e.fixed,h=e.tableClassName,p=e.getRowKey,f=e.handleBodyScroll,g=e.handleWheel,m=e.expander,v=e.isAnyColumnsFixed,y=n.saveRef,b=n.props.useFixedHeader,_=i({},n.props.bodyStyle),w={};if((a.x||c)&&(_.overflowX=_.overflowX||"scroll",_.WebkitTransform="translate3d (0, 0, 0)"),a.y){c?(w.maxHeight=_.maxHeight||a.y,w.overflowY=_.overflowY||"scroll"):_.maxHeight=_.maxHeight||a.y,_.overflowY=_.overflowY||"scroll",b=!0;var C=u.measureScrollbar({direction:"vertical"});0<C&&c&&(_.marginBottom="-".concat(C,"px"),_.paddingBottom="0px")}var S,O=l.createElement(d.default,{tableClassName:h,hasHead:!b,hasBody:!0,fixed:c,columns:s,expander:m,getRowKey:p,isAnyColumnsFixed:v});if(c&&s.length)return"left"===s[0].fixed||!0===s[0].fixed?S="fixedColumnsBodyLeft":"right"===s[0].fixed&&(S="fixedColumnsBodyRight"),delete _.overflowX,delete _.overflowY,l.createElement("div",{key:"bodyTable",className:"".concat(r,"-body-outer"),style:i({},_)},l.createElement("div",{className:"".concat(r,"-body-inner"),style:w,ref:y(S),onWheel:g,onScroll:f},O));var x=a&&(a.x||a.y);return l.createElement("div",{tabIndex:x?-1:void 0,key:"bodyTable",className:"".concat(r,"-body"),style:_,ref:y("bodyTable"),onWheel:g,onScroll:f},O)}).contextTypes={table:c.any}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=d(n(0)),f=n(476),g=n(25),m=h(n(75)),v=h(n(568)),y=n(468),b=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=l(this,c(e).call(this,t))).handleExpandChange=function(e,t,o,i){var r=4<arguments.length&&void 0!==arguments[4]&&arguments[4];o&&o.stopPropagation();var s=n.props,l=s.onExpandedRowsChange,c=s.onExpand,u=n.store.getState().expandedRowKeys;e?u=[].concat(a(u),[i]):-1!==u.indexOf(i)&&(u=y.remove(u,i)),n.props.expandedRowKeys||n.store.setState({expandedRowKeys:u}),n.latestExpandedRows&&m.default(n.latestExpandedRows,u)||l(n.latestExpandedRows=u),r||c(e,t)},n.renderExpandIndentCell=function(e,t){var o=n.props,a=o.prefixCls;if(o.expandIconAsCell&&"right"!==t&&e.length){var s={key:"rc-table-expand-icon-cell",className:"".concat(a,"-expand-icon-th"),title:"",rowSpan:e.length};e[0].unshift(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s,{column:s}))}},n.renderRows=function(e,t,o,i,r,s,l,c){var u=n.props,d=u.expandedRowClassName,h=u.expandedRowRender,p=o[u.childrenColumnName],f=[].concat(a(c),[l]),g=r+1;h&&t.push(n.renderExpandedRow(o,i,h,d(o,i,r),f,g,s)),p&&t.push.apply(t,a(e(p,g,f)))};var o=t.data,s=t.childrenColumnName,u=t.defaultExpandAllRows,d=t.expandedRowKeys,h=t.defaultExpandedRowKeys,p=t.getRowKey,f=[],g=a(o);if(u)for(var v=0;v<g.length;v+=1){var b=g[v];f.push(p(b,v)),g=g.concat(b[s]||[])}else f=d||h;return n.columnManager=t.columnManager,n.store=t.store,n.store.setState({expandedRowsHeight:{},expandedRowKeys:f}),n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(e,p.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.handleUpdated()}},{key:"componentDidUpdate",value:function(){"expandedRowKeys"in this.props&&this.store.setState({expandedRowKeys:this.props.expandedRowKeys}),this.handleUpdated()}},{key:"handleUpdated",value:function(){this.latestExpandedRows=null}},{key:"renderExpandedRow",value:function(e,t,n,o,i,r,a){var s,l=this,c=this.props,u=c.prefixCls,d=c.expandIconAsCell,h=c.indentSize,f=i[i.length-1],g="".concat(f,"-extra-row");s="left"===a?this.columnManager.leftLeafColumns().length:"right"===a?this.columnManager.rightLeafColumns().length:this.columnManager.leafColumns().length;var m=[{key:"extra-row",render:function(){var o=l.store.getState().expandedRowKeys,i=(void 0===o?[]:o).includes(f);return{props:{colSpan:s},children:"right"!==a?n(e,t,r,i):" "}}}];return d&&"right"!==a&&m.unshift({key:"expand-icon-placeholder",render:function(){return null}}),p.createElement(v.default,{key:g,columns:m,className:o,rowKey:g,ancestorKeys:i,prefixCls:"".concat(u,"-expanded-row"),indentSize:h,indent:r,fixed:a,components:{body:{row:"tr",cell:"td"}},expandedRow:!0})}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.childrenColumnName,o=e.children,i=t.some((function(e){return e[n]}));return o({props:this.props,needIndentSpaced:i,renderRows:this.renderRows,handleExpandChange:this.handleExpandChange,renderExpandIndentCell:this.renderExpandIndentCell})}}])&&s(t.prototype,n),e}();b.defaultProps={expandIconAsCell:!1,expandedRowClassName:function(){return""},expandIconColumnIndex:0,defaultExpandAllRows:!1,defaultExpandedRowKeys:[],childrenColumnName:"children",indentSize:15,onExpand:function(){},onExpandedRowsChange:function(){}},g.polyfill(b),t.default=f.connect()(b)},function(e,t,n){var o=n(751);e.exports=function(e,t,n){for(n=n||document,e={parentNode:e};(e=e.parentNode)&&e!==n;)if(o(e,t))return e}},function(e,t,n){"use strict";e.exports=function(e,t){var n=window.Element.prototype,o=n.matches||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;if(!e||1!==e.nodeType)return!1;var i=e.parentNode;if(o)return o.call(e,t);for(var r=i.querySelectorAll(t),a=r.length,s=0;s<a;s++)if(r[s]===e)return!0;return!1}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return f})),n.d(t,"f",(function(){return g}));var o,i,r,a,s,l,c,u,d,h,p,f,g,m=n(445);(i=o=o||{}).noSelection=m.a("noSelection","No selection"),i.singleSelectionRange=m.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),i.singleSelection=m.a("singleSelection","Line {0}, Column {1}"),i.multiSelectionRange=m.a("multiSelectionRange","{0} selections ({1} characters selected)"),i.multiSelection=m.a("multiSelection","{0} selections"),i.emergencyConfOn=m.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),i.openingDocs=m.a("openingDocs","Now opening the Editor Accessibility documentation page."),i.readonlyDiffEditor=m.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),i.editableDiffEditor=m.a("editableDiffEditor"," in a pane of a diff editor."),i.readonlyEditor=m.a("readonlyEditor"," in a read-only code editor"),i.editableEditor=m.a("editableEditor"," in a code editor"),i.changeConfigToOnMac=m.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),i.changeConfigToOnWinLinux=m.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),i.auto_on=m.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),i.auto_off=m.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),i.tabFocusModeOnMsg=m.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),i.tabFocusModeOnMsgNoKb=m.a("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."),i.tabFocusModeOffMsg=m.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),i.tabFocusModeOffMsgNoKb=m.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),i.openDocMac=m.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),i.openDocWinLinux=m.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),i.outroMsg=m.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),i.showAccessibilityHelpAction=m.a("showAccessibilityHelpAction","Show Accessibility Help"),(r||(r={})).inspectTokensAction=m.a("inspectTokens","Developer: Inspect Tokens"),(s=a=a||{}).gotoLineLabelValidLineAndColumn=m.a("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),s.gotoLineLabelValidLine=m.a("gotoLineLabelValidLine","Go to line {0}"),s.gotoLineLabelEmptyWithLineLimit=m.a("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),s.gotoLineLabelEmptyWithLineAndColumnLimit=m.a("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),s.gotoLineAriaLabel=m.a("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),s.gotoLineActionInput=m.a("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),s.gotoLineActionLabel=m.a("gotoLineActionLabel","Go to Line..."),(c=l=l||{}).ariaLabelEntryWithKey=m.a("ariaLabelEntryWithKey","{0}, {1}, commands"),c.ariaLabelEntry=m.a("ariaLabelEntry","{0}, commands"),c.quickCommandActionInput=m.a("quickCommandActionInput","Type the name of an action you want to execute"),c.quickCommandActionLabel=m.a("quickCommandActionLabel","Command Palette"),(d=u=u||{}).entryAriaLabel=m.a("entryAriaLabel","{0}, symbols"),d.quickOutlineActionInput=m.a("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),d.quickOutlineActionLabel=m.a("quickOutlineActionLabel","Go to Symbol..."),d._symbols_=m.a("symbols","symbols ({0})"),d._modules_=m.a("modules","modules ({0})"),d._class_=m.a("class","classes ({0})"),d._interface_=m.a("interface","interfaces ({0})"),d._method_=m.a("method","methods ({0})"),d._function_=m.a("function","functions ({0})"),d._property_=m.a("property","properties ({0})"),d._variable_=m.a("variable","variables ({0})"),d._variable2_=m.a("variable2","variables ({0})"),d._constructor_=m.a("_constructor","constructors ({0})"),d._call_=m.a("call","calls ({0})"),(p=h=h||{}).editorViewAccessibleLabel=m.a("editorViewAccessibleLabel","Editor content"),p.accessibilityHelpMessageIE=m.a("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),p.accessibilityHelpMessage=m.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options."),(f||(f={})).toggleHighContrast=m.a("toggleHighContrast","Toggle High Contrast Theme"),(g||(g={})).bulkEditServiceSummary=m.a("bulkEditServiceSummary","Made {0} edits in {1} files")},function(e,t,n){"use strict";n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return O}));var o,i=n(703),r=n(448),a=n(456),s=n(489),l=n(442),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){return function(n,o){t(n,o,e)}},h=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};function p(e){return void 0!==e.command}var f=Object(r.c)("menuService"),g=(m.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)}}},m.prototype.getCommand=function(e){return this._commands.get(e)},m.prototype.getCommands=function(){var e=new Map;return this._commands.forEach((function(t,n){return e.set(n,t)})),e},m.prototype.appendMenuItem=function(e,t){var n=this,o=this._menuItems.get(e);return o?o.push(t):(o=[t],this._menuItems.set(e,o)),this._onDidChangeMenu.fire(e),{dispose:function(){var i=o.indexOf(t);0<=i&&(o.splice(i,1),n._onDidChangeMenu.fire(e))}}},m.prototype.getMenuItems=function(e){var t=(this._menuItems.get(e)||[]).slice(0);return 0===e&&this._appendImplicitItems(t),t},m.prototype._appendImplicitItems=function(e){for(var t=new Set,n=0,o=e.filter((function(e){return p(e)}));n<o.length;n++){var i=o[n],r=i.command,a=i.alt;t.add(r.id),a&&t.add(a.id)}this._commands.forEach((function(n,o){t.has(o)||e.push({command:n})}))},new m);function m(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new l.a,this.onDidChangeMenu=this._onDidChangeMenu.event}var v,y=(c(b,v=i.a),b.prototype.run=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._commandService).executeCommand.apply(e,h([this.id],t))},b=u([d(2,s.b)],b));function b(e,t,n){var o=v.call(this,e,t)||this;return o._commandService=n,o}var _,w=(c(C,_=i.a),C);function C(e){var t=this;return(t="string"==typeof e.title?_.call(this,"",e.title,"submenu")||this:_.call(this,"",e.title.value,"submenu")||this).item=e,t}var S,O=(c(x,S=y),x.prototype.dispose=function(){this.alt&&this.alt.dispose(),S.prototype.dispose.call(this)},x.prototype.run=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[];return this._options.arg&&(n=h(n,[this._options.arg])),this._options.shouldForwardArgs&&(n=h(n,e)),S.prototype.run.apply(this,n)},x=u([d(3,a.c),d(4,s.b)],x));function x(e,t,n,o,i){var r=this;return(r="string"==typeof e.title?S.call(this,e.id,e.title,i)||this:S.call(this,e.id,e.title.value,i)||this)._cssClass=void 0,r._enabled=!e.precondition||o.contextMatchesRules(e.precondition),r._checked=Boolean(e.toggled&&o.contextMatchesRules(e.toggled)),r._options=n||{},r.item=e,r.alt=t?new x(t,void 0,r._options,o,i):void 0,r}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u}));var o=n(884),i=n(454);function r(){}var a=new(r.prototype.clone=function(){return this},r.prototype.equals=function(e){return this===e},r),s="vs.editor.nullMode",l=new i.r(s,0);function c(e,t,n,i){return new o.b([new o.a(i,"",e)],n)}function u(e,t,n,i){var r=new Uint32Array(2);return r[0]=i,r[1]=(e<<0|16384|2<<23)>>>0,new o.c(r,null===n?a:n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var o=n(448),i=Object(o.c)("contextViewService"),r=Object(o.c)("contextMenuService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("editorWorkerService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var o=n(448),i=n(456),r=Object(o.c)("accessibilityService"),a=new i.d("accessibilityModeEnabled",!1)},function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"f",(function(){return b})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return w})),n.d(t,"a",(function(){return O})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return F}));var o=n(553),i=n(444);function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){for(var o=0,i=e.length;o<i;o++){var r=e[o](t,n);if(r)return r}return null}}var a=function(e,t,n){return!n||n.length<t.length?null:(e?i.O(n,t):0===n.indexOf(t))?0<t.length?[{start:0,end:t.length}]:[]:null}.bind(void 0,!0);function s(e){return 97<=e&&e<=122}function l(e){return 65<=e&&e<=90}function c(e){return 48<=e&&e<=57}var u=new Set;function d(e){return s(e)||l(e)||c(e)}function h(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function p(e,t){for(var n=t;n<e.length;n++){var o=e.charCodeAt(n);if(l(o)||c(o)||0<n&&!d(e.charCodeAt(n-1)))return n}return e.length}function f(e,t,n,o){if(n===e.length)return[];if(o===t.length)return null;if(e[n]!==t[o].toLowerCase())return null;var i=null,r=o+1;for(i=f(e,t,n+1,o+1);!i&&(r=p(t,r))<t.length;)i=f(e,t,n+1,r),r++;return null===i?null:h({start:o,end:o+1},i)}function g(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){for(var t,n=0,o=0,i=0,r=0,a=0;a<e.length;a++)l(i=e.charCodeAt(a))&&n++,s(i)&&o++,32!==(t=i)&&9!==t&&10!==t&&13!==t||r++;return 0!==n&&0!==o||0!==r?n<=5:e.length<=30}(e))return null;if(60<t.length)return null;var n,o,i,r,a,u,h,g=function(e){for(var t=0,n=0,o=0,i=0,r=0,a=0;a<e.length;a++)l(r=e.charCodeAt(a))&&t++,s(r)&&n++,d(r)&&o++,c(r)&&i++;return{upperPercent:t/e.length,lowerPercent:n/e.length,alphaPercent:o/e.length,numericPercent:i/e.length}}(t);if(r=(i=g).upperPercent,a=i.lowerPercent,u=i.alphaPercent,h=i.numericPercent,!(.2<a&&r<.8&&.6<u&&h<.2)){if(o=(n=g).upperPercent,!(0===n.lowerPercent&&.6<o))return null;t=t.toLowerCase()}var m=null,v=0;for(e=e.toLowerCase();v<t.length&&null===(m=f(e,t,0,v));)v=p(t,v+1);return m}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach((function(e){return u.add(e.charCodeAt(0))}));var m=r(a,g,(function(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]})),v=r(a,g,(function(e,t){return function e(t,n,o,i){if(o===t.length)return[];if(i===n.length)return null;if(t[o]!==n[i])return e(t,n,o,i+1);var r;return(r=e(t,n,o+1,i+1))?h({start:i,end:i+1},r):null}(e.toLowerCase(),t.toLowerCase(),0,0)})),y=new o.a(1e4);function b(e,t,n){if(void 0===n&&(n=!1),"string"!=typeof e||"string"!=typeof t)return null;var o=y.get(e);o||(o=new RegExp(i.k(e),"i"),y.set(e,o));var r=o.exec(t);return r?[{start:r.index,end:r.index+r[0].length}]:(n?v:m)(e,t)}function _(e,t,n,o,i,r){var a=P(e,t,0,o,i,0,!0);if(a)return a;for(var s=0,l=0,c=r,u=0;u<t.length&&u<C;++u){var d=i.indexOf(t.charAt(u),c);if(0<=d)l+=1,s+=Math.pow(2,d),c=d+1;else if(0!==s)break}return[l,s,r]}function w(e){if(void 0===e)return[];for(var t=e[1].toString(2),n=[],o=e[2];o<C;o++)if("1"===t[t.length-(o+1)]){var i=n[n.length-1];i&&i.end===o?i.end=o+1:n.push({start:o,end:o+1})}return n}var C=128;function S(){for(var e=[],t=[0],n=1;n<=C;n++)t.push(-n);for(n=0;n<=C;n++){var o=t.slice(0);o[0]=-n,e.push(o)}return e}var O,x,E=S(),k=S(),N=S();function D(e,t){if(!(t<0||t>=e.length))switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return 1;default:return}}function L(e,t,n){return t[e]!==n[e]}function P(e,t,n,o,i,r,a){var s=e.length>C?C:e.length,l=o.length>C?C:o.length;if(!(s<=n||l<=r||l-r<s-n)&&function(e,t,n,o,i,r){for(;t<n&&i<r;)e[t]===o[i]&&(t+=1),i+=1;return t===n}(t,n,s,i,r,l)){var c=1,u=1,d=n,h=r;for(c=1,d=n;d<s;c++,d++)for(u=1,h=r;h<l;u++,h++){var p=I(e,t,d,n,o,i,h);k[c][u]=p;var f=E[c-1][u-1]+(1<p?1:p),g=E[c-1][u]+-1,m=E[c][u-1]+-1;g<=m?f<m?(E[c][u]=m,N[c][u]=4):m===f?(E[c][u]=m,N[c][u]=6):(E[c][u]=f,N[c][u]=2):f<g?(E[c][u]=g,N[c][u]=1):g===f?(E[c][u]=g,N[c][u]=3):(E[c][u]=f,N[c][u]=2)}if(T=0,R=r,A=a,function e(t,n,o,i,r){if(!(10<=T||o<-25)){for(var a=0;0<t&&0<n;){var s=k[t][n],l=N[t][n];if(4===l)--n,r?o-=5:0!==i&&--o,r=!1,a=0;else{if(!(2&l))return;if(4&l&&e(t,n-1,0!==i?o-1:o,i,r),o+=s,--t,--n,r=!0,i+=Math.pow(2,n+R),1===s){if(a+=1,0===t&&!A)return}else o+=1+a*(s-1),a=0}}T+=1,j<(o-=3<=n?9:3*n)&&(j=o,M=i)}}(c-1,u-1,s===l?1:0,0,!(j=-100)),0!==T)return[j,M,r]}}function I(e,t,n,o,i,r,a){return t[n]!==r[a]?-1:a!==n-o&&(!L(a,i,r)||0!==a&&L(a-1,i,r))?D(r,a)&&(0===a||!D(r,a-1))||D(r,a-1)||function(e,t){if(!(t<0||t>=e.length))switch(e.charCodeAt(t)){case 32:case 9:return 1;default:return}}(r,a-1)?5:1:e[n]===i[a]?7:5}(x=O=O||{}).Default=Object.freeze([-100,0,0]),x.isDefault=function(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]};var T=0,M=0,j=0,R=0,A=!1;function F(e,t,n,o,i,r,a){return function(e,t,n,o,i,r,a,s){var l=P(e,t,n,o,i,r,s);if(3<=e.length)for(var c=Math.min(7,e.length-1),u=n+1;u<c;u++){var d=V(e,u);if(d){var h=P(d,d.toLowerCase(),n,o,i,r,s);h&&(h[0]-=3,(!l||h[0]>l[0])&&(l=h))}}return l}(e,t,n,o,i,r,0,a)}function V(e,t){if(!(t+1>=e.length)){var n=e[t],o=e[t+1];if(n!==o)return e.slice(0,t)+o+n+e.slice(t+2)}}},function(e,t,n){"use strict";var o,i=n(444),r=n(484),a=n(439),s=n(449),l=n(456),c=n(786),u=n(448),d=n(792),h=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=Object(u.c)("IEditorCancelService"),f=new l.d("cancellableOperation",!1);function g(){this._tokens=new WeakMap}Object(d.b)(p,(g.prototype.add=function(e,t){var n,o=this._tokens.get(e);return o||(o=e.invokeWithinContext((function(e){return{key:f.bindTo(e.get(l.c)),tokens:new c.a}})),this._tokens.set(e,o)),o.key.set(!0),n=o.tokens.push(t),function(){n&&(n(),o.key.set(!o.tokens.isEmpty()),n=void 0)}},g.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()))}},g),!0);var m,v,y=(h(b,m=r.b),b.prototype.dispose=function(){this._unregister(),m.prototype.dispose.call(this)},b);function b(e,t){var n=m.call(this,t)||this;return n.editor=e,n._unregister=e.invokeWithinContext((function(t){return t.get(p).add(e,n)})),n}function _(){return v.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:f})||this}Object(s.g)((h(_,v=s.c),_.prototype.runEditorCommand=function(e,t){e.get(p).cancel(t)},new _)),n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return E})),n.d(t,"d",(function(){return D})),n.d(t,"c",(function(){return P}));var w,C=(w=function(e,t){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=(O.prototype._equals=function(e){if(!(e instanceof O))return!1;var t=e;return this.modelVersionId===t.modelVersionId&&this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))},O.prototype.validate=function(e){return this._equals(new O(e,this.flags))},O);function O(e,t){if(this.flags=t,0!=(1&this.flags)){var n=e.getModel();this.modelVersionId=n?i.r("{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)}var x,E=(C(k,x=y),k.prototype.dispose=function(){this._listener.dispose(),x.prototype.dispose.call(this)},k);function k(e,t,n){var o=x.call(this,e,n)||this;return o.editor=e,o._listener=new a.b,4&t&&o._listener.add(e.onDidChangeCursorPosition((function(e){return o.cancel()}))),2&t&&o._listener.add(e.onDidChangeCursorSelection((function(e){return o.cancel()}))),8&t&&o._listener.add(e.onDidScrollChange((function(e){return o.cancel()}))),1&t&&(o._listener.add(e.onDidChangeModel((function(e){return o.cancel()}))),o._listener.add(e.onDidChangeModelContent((function(e){return o.cancel()})))),o}var N,D=(C(L,N=r.b),L.prototype.dispose=function(){this._listener.dispose(),N.prototype.dispose.call(this)},L);function L(e,t){var n=N.call(this,t)||this;return n._listener=e.onDidChangeContent((function(){return n.cancel()})),n}var P=(I.capture=function(e){var t=null,n=0;if(0!==e.getScrollTop()){var o=e.getVisibleRanges();if(0<o.length){t=o[0].getStartPosition();var i=e.getTopForPosition(t.lineNumber,t.column);n=e.getScrollTop()-i}}return new I(t,n)},I.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},I);function I(e,t){this._visiblePosition=e,this._visiblePositionScrollDelta=t}},function(e,t,n){},function(e,t,n){},,,,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return _})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return k})),n(1324);var o,i,r=n(452),a=n(445),s=n(439),l=n(703),c=n(443),u=n(465),d=n(702),h=n(701),p=n(442),f=n(888),g=n(478),m=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=(m(y,i=s.a),y.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(y.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new l.b)),this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),y.prototype.getAction=function(){return this._action},y.prototype.isEnabled=function(){return this._action.enabled},y.prototype.setActionContext=function(e){this._context=e},y.prototype.render=function(e){var t=this,n=this.element=e;this._register(d.b.addTarget(e));var o=this.options&&this.options.draggable;o&&(e.draggable=!0,g.h&&this._register(c.j(e,c.d.DRAG_START,(function(e){var n;return null===(n=e.dataTransfer)||void 0===n?void 0:n.setData(f.a.TEXT,t._action.label)})))),this._register(c.j(n,d.a.Tap,(function(e){return t.onClick(e)}))),this._register(c.j(n,c.d.MOUSE_DOWN,(function(e){o||c.c.stop(e,!0),t._action.enabled&&0===e.button&&c.f(n,"active")}))),this._register(c.j(n,c.d.CLICK,(function(e){c.c.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):r.i((function(){return t.onClick(e)}))}))),this._register(c.j(n,c.d.DBLCLICK,(function(e){c.c.stop(e,!0)}))),[c.d.MOUSE_UP,c.d.MOUSE_OUT].forEach((function(e){t._register(c.j(n,e,(function(e){c.c.stop(e),c.P(n,"active")})))}))},y.prototype.onClick=function(e){var t;c.c.stop(e,!0),u.l(this._context)?t=e:(t=this._context,u.i(t)&&(t.event=e)),this.actionRunner.run(this._action,t)},y.prototype.focus=function(){this.element&&(this.element.focus(),c.f(this.element,"focused"))},y.prototype.blur=function(){this.element&&(this.element.blur(),c.P(this.element,"focused"))},y.prototype.updateEnabled=function(){},y.prototype.updateLabel=function(){},y.prototype.updateTooltip=function(){},y.prototype.updateClass=function(){},y.prototype.updateChecked=function(){},y.prototype.dispose=function(){this.element&&(c.R(this.element),this.element=void 0),i.prototype.dispose.call(this)},y);function y(e,t,n){var o=i.call(this)||this;return o.options=n,o._context=e||o,(o._action=t)instanceof l.a&&o._register(t.onDidChange((function(e){o.element&&o.handleActionChangeEvent(e)}))),o}var b,_=(m(w,b=l.a),w.ID="vs.actions.separator",w);function w(e){var t=b.call(this,w.ID,e,e?"separator text":"separator")||this;return t.checked=!1,t.enabled=!1,t}var C,S=(m(O,C=v),O.prototype.render=function(e){C.prototype.render.call(this,e),this.element&&(this.label=c.q(this.element,c.a("a.action-label"))),this.label&&(this._action.id===_.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&&(c.q(this.element,c.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},O.prototype.focus=function(){C.prototype.focus.call(this),this.label&&this.label.focus()},O.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},O.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=a.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)},O.prototype.updateClass=function(){this.cssClass&&this.label&&c.Q(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(c.f(this.label,"codicon"),this.cssClass&&c.g(this.label,this.cssClass)),this.updateEnabled()):this.label&&c.P(this.label,"codicon")},O.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),c.P(this.label,"disabled"),this.label.tabIndex=0),this.element&&c.P(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),c.f(this.label,"disabled"),c.S(this.label)),this.element&&c.f(this.element,"disabled"))},O.prototype.updateChecked=function(){this.label&&(this.getAction().checked?c.f(this.label,"checked"):c.P(this.label,"checked"))},O);function O(e,t,n){void 0===n&&(n={});var o=C.call(this,e,t,n)||this;return o.options=n,o.options.icon=void 0!==n.icon&&n.icon,o.options.label=void 0===n.label||n.label,o.cssClass="",o}var x,E={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},k=(m(N,x=s.a),N.prototype.isTriggerKeyEvent=function(e){var t=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach((function(n){t=t||e.equals(n)})),t},N.prototype.updateFocusedItem=function(){for(var e=0;e<this.actionsList.children.length;e++){var t=this.actionsList.children[e];if(c.K(document.activeElement,t)){this.focusedItem=e;break}}},Object.defineProperty(N.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}),N.prototype.getContainer=function(){return this.domNode},N.prototype.push=function(e,t){var n=this;void 0===t&&(t={});var o=Array.isArray(e)?e:[e],i=u.h(t.index)?t.index:null;o.forEach((function(e){var o,r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation"),n._register(c.j(r,c.d.CONTEXT_MENU,(function(e){e.preventDefault(),e.stopPropagation()}))),n.options.actionViewItemProvider&&(o=n.options.actionViewItemProvider(e)),(o=o||new S(n.context,e,t)).actionRunner=n._actionRunner,o.setActionContext(n.context),o.render(r),null===i||i<0||i>=n.actionsList.children.length?(n.actionsList.appendChild(r),n.viewItems.push(o)):(n.actionsList.insertBefore(r,n.actionsList.children[i]),n.viewItems.splice(i,0,o),i++)}))},N.prototype.clear=function(){this.viewItems=Object(s.f)(this.viewItems),c.t(this.actionsList)},N.prototype.isEmpty=function(){return 0===this.viewItems.length},N.prototype.focus=function(e){var t=!1,n=void 0;void 0===e?t=!0:"number"==typeof e?n=e:"boolean"==typeof e&&(t=e),t&&void 0===this.focusedItem?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())},N.prototype.focusNext=function(){void 0===this.focusedItem&&(this.focusedItem=this.viewItems.length-1);for(var e,t=this.focusedItem;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,e=this.viewItems[this.focusedItem],this.focusedItem!==t&&!e.isEnabled(););this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},N.prototype.focusPrevious=function(){void 0===this.focusedItem&&(this.focusedItem=0);for(var e,t=this.focusedItem;this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),e=this.viewItems[this.focusedItem],this.focusedItem!==t&&!e.isEnabled(););this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0)},N.prototype.updateFocus=function(e,t){void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t});for(var n=0;n<this.viewItems.length;n++){var o=this.viewItems[n];n===this.focusedItem?u.g(o.isEnabled)&&(o.isEnabled()&&u.g(o.focus)?o.focus(e):this.actionsList.focus({preventScroll:t})):u.g(o.blur)&&o.blur()}},N.prototype.doTrigger=function(e){if(void 0!==this.focusedItem){var t=this.viewItems[this.focusedItem];if(t instanceof v){var n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}},N.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},N.prototype.run=function(e,t){return this._actionRunner.run(e,t)},N.prototype.dispose=function(){Object(s.f)(this.viewItems),this.viewItems=[],c.R(this.getContainer()),x.prototype.dispose.call(this)},N);function N(e,t){void 0===t&&(t=E);var n,o,i=x.call(this)||this;switch(i._onDidBlur=i._register(new p.a),i.onDidBlur=i._onDidBlur.event,i._onDidCancel=i._register(new p.a),i.onDidCancel=i._onDidCancel.event,i._onDidRun=i._register(new p.a),i.onDidRun=i._onDidRun.event,i._onDidBeforeRun=i._register(new p.a),i.onDidBeforeRun=i._onDidBeforeRun.event,i.options=t,i._context=t.context,i.options.triggerKeys||(i.options.triggerKeys=E.triggerKeys),i.options.actionRunner?i._actionRunner=i.options.actionRunner:(i._actionRunner=new l.b,i._register(i._actionRunner)),i._register(i._actionRunner.onDidRun((function(e){return i._onDidRun.fire(e)}))),i._register(i._actionRunner.onDidBeforeRun((function(e){return i._onDidBeforeRun.fire(e)}))),i.viewItems=[],i.focusedItem=void 0,i.domNode=document.createElement("div"),!(i.domNode.className="monaco-action-bar")!==t.animated&&c.f(i.domNode,"animated"),i.options.orientation){case 0:n=15,o=17;break;case 1:n=17,o=15,i.domNode.className+=" reverse";break;case 2:n=16,o=18,i.domNode.className+=" vertical";break;case 3:n=18,o=16,i.domNode.className+=" vertical reverse"}return i._register(c.j(i.domNode,c.d.KEY_DOWN,(function(e){var t=new h.a(e),r=!0;t.equals(n)?i.focusPrevious():t.equals(o)?i.focusNext():t.equals(9)?i.cancel():i.isTriggerKeyEvent(t)?i.options.triggerKeys&&i.options.triggerKeys.keyDown&&i.doTrigger(t):r=!1,r&&(t.preventDefault(),t.stopPropagation())}))),i._register(c.j(i.domNode,c.d.KEY_UP,(function(e){var t=new h.a(e);i.isTriggerKeyEvent(t)?(i.options.triggerKeys&&!i.options.triggerKeys.keyDown&&i.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&i.updateFocusedItem()}))),i.focusTracker=i._register(c.Z(i.domNode)),i._register(i.focusTracker.onDidBlur((function(){document.activeElement!==i.domNode&&c.K(document.activeElement,i.domNode)||(i._onDidBlur.fire(),i.focusedItem=void 0)}))),i._register(i.focusTracker.onDidFocus((function(){return i.updateFocusedItem()}))),i.actionsList=document.createElement("ul"),i.actionsList.className="actions-container",i.actionsList.setAttribute("role","toolbar"),i.options.ariaLabel&&i.actionsList.setAttribute("aria-label",i.options.ariaLabel),i.domNode.appendChild(i.actionsList),e.appendChild(i.domNode),i}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return h}));var o,i,r,a,s,l=n(448),c=n(445),u=n(889);function d(e,t){var n=[s];return e.source?n.push(e.source.replace("\xa6","\xa6")):n.push(s),e.code?"string"==typeof e.code?n.push(e.code.replace("\xa6","\xa6")):n.push(e.code.value.replace("\xa6","\xa6")):n.push(s),void 0!==e.severity&&null!==e.severity?n.push(o.toString(e.severity)):n.push(s),e.message&&t?n.push(e.message.replace("\xa6","\xa6")):n.push(s),void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(s),void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(s),void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(s),void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(s),n.push(s),n.join("\xa6")}(i=o=o||{})[i.Hint=1]="Hint",i[i.Info=2]="Info",i[i.Warning=4]="Warning",i[i.Error=8]="Error",function(e){e.compare=function(e,t){return t-e};var t=Object.create(null);t[e.Error]=Object(c.a)("sev.error","Error"),t[e.Warning]=Object(c.a)("sev.warning","Warning"),t[e.Info]=Object(c.a)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case u.a.Error:return e.Error;case u.a.Warning:return e.Warning;case u.a.Info:return e.Info;case u.a.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return u.a.Error;case e.Warning:return u.a.Warning;case e.Info:return u.a.Info;case e.Hint:return u.a.Ignore}}}(o=o||{}),a=r=r||{},s="",a.makeKey=function(e){return d(e,!0)},a.makeKeyOptionalMessage=d;var h=Object(l.c)("markerService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("editorProgressService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return p}));var o,i,r,a=n(448),s=n(442),l=n(439),c=n(465),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=Object(a.c)("storageService");(r=i=i||{})[r.NONE=0]="NONE",r[r.SHUTDOWN=1]="SHUTDOWN";var h,p=(u(f,h=l.a),f.prototype.getCache=function(e){return 0===e?this.globalCache:this.workspaceCache},f.prototype.get=function(e,t,n){var o=this.getCache(t).get(e);return Object(c.l)(o)?n:o},f.prototype.getBoolean=function(e,t,n){var o=this.getCache(t).get(e);return Object(c.l)(o)?n:"true"===o},f.prototype.store=function(e,t,n){if(Object(c.l)(t))return this.remove(e,n);var o=String(t);return this.getCache(n).get(e)===o||(this.getCache(n).set(e,o),this._onDidChangeStorage.fire({scope:n,key:e})),Promise.resolve()},f.prototype.remove=function(e,t){return this.getCache(t).delete(e)&&this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()},f);function f(){var e=null!==h&&h.apply(this,arguments)||this;return e._onDidChangeStorage=e._register(new s.a),e.onDidChangeStorage=e._onDidChangeStorage.event,e._onWillSaveState=e._register(new s.a),e.onWillSaveState=e._onWillSaveState.event,e.globalCache=new Map,e.workspaceCache=new Map,e}},function(e,t,n){"use strict";function o(e){return e&&"string"==typeof e.id}n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},r={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return u}));var o=n(444),i=function(e,t,n,o){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|o},r=function(e,t){this.tabSize=e,this.data=t},a=function(e,t,n,o,i,r){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=o,this.startVisibleColumn=i,this.tokens=r},s=(l.isBasicASCII=function(e,t){return!t||o.v(e)},l.containsRTL=function(e,t,n){return!(t||!n)&&o.i(e)},l);function l(e,t,n,o,i,r,a,s,c,u){this.minColumn=e,this.maxColumn=t,this.content=n,this.continuesWithWrappedLine=o,this.isBasicASCII=l.isBasicASCII(n,r),this.containsRTL=l.containsRTL(n,this.isBasicASCII,i),this.tokens=a,this.inlineDecorations=s,this.tabSize=c,this.startVisibleColumn=u}var c=function(e,t,n){this.range=e,this.inlineClassName=t,this.type=n},u=function(e,t){this.range=e,this.options=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("modeService")},function(e,t,n){"use strict";n(46),n(812),n(513),n(515)},function(e,t,n){"use strict";var o=n(0),i=n(1),r=n(12),a=n.n(r),s=n(496),l=n(33),c=n(480),u=n(18),d=n(77);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},b=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=g(this,m(e).apply(this,arguments))).renderBreadcrumbItem=function(e){var n,i=e.getPrefixCls,r=t.props,a=r.prefixCls,s=r.separator,c=r.children,u=y(r,["prefixCls","separator","children"]),d=i("breadcrumb",a);return n="href"in t.props?o.createElement("a",p({className:"".concat(d,"-link")},Object(l.default)(u,["overlay"])),c):o.createElement("span",p({className:"".concat(d,"-link")},Object(l.default)(u,["overlay"])),c),n=t.renderBreadcrumbNode(n,d),c?o.createElement("span",null,n,s&&""!==s&&o.createElement("span",{className:"".concat(d,"-separator")},s)):null},t.renderBreadcrumbNode=function(e,n){var i=t.props.overlay;return i?o.createElement(c.a,{overlay:i,placement:"bottomCenter"},o.createElement("span",{className:"".concat(n,"-overlay-link")},e,o.createElement(u.a,{type:"down"}))):e},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){return o.createElement(d.a,null,this.renderBreadcrumbItem)}}])&&f(t.prototype,n),e}();b.__ANT_BREADCRUMB_ITEM=!0,b.defaultProps={separator:"/"},b.propTypes={prefixCls:i.string,separator:i.oneOfType([i.string,i.element]),href:i.string};var _=n(507),w=n(27);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function O(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var D=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};function L(e,t,n,i){var r=n.indexOf(e)===n.length-1,a=function(e,t){if(!e.breadcrumbName)return null;var n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(":(".concat(n,")"),"g"),(function(e,n){return t[n]||e}))}(e,t);return r?o.createElement("span",null,a):o.createElement("a",{href:"#/".concat(i.join("/"))},a)}var P=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=E(this,k(e).apply(this,arguments))).getPath=function(e,t){return e=(e||"").replace(/^\//,""),Object.keys(t).forEach((function(n){e=e.replace(":".concat(n),t[n])})),e},t.addChildPath=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",o=2<arguments.length?arguments[2]:void 0,i=O(e),r=t.getPath(n,o);return r&&i.push(r),i},t.genForRoutes=function(e){var n=e.routes,i=void 0===n?[]:n,r=e.params,a=void 0===r?{}:r,s=e.separator,l=e.itemRender,c=void 0===l?L:l,u=[];return i.map((function(e){var n=t.getPath(e.path,a);n&&u.push(n);var r=null;return e.children&&e.children.length&&(r=o.createElement(_.a,null,e.children.map((function(e){return o.createElement(_.a.Item,{key:e.breadcrumbName||e.path},c(e,a,i,t.addChildPath(u,e.path,a)))})))),o.createElement(b,{overlay:r,separator:s,key:e.breadcrumbName||n},c(e,a,i,u))}))},t.renderBreadcrumb=function(e){var n,i,r=e.getPrefixCls,c=t.props,u=c.prefixCls,d=c.separator,h=c.style,p=c.className,f=c.routes,g=c.children,m=D(c,["prefixCls","separator","style","className","routes","children"]),v=r("breadcrumb",u);return f&&0<f.length?n=t.genForRoutes(t.props):g&&(n=o.Children.map((i=g,Object(s.a)(i).map((function(e){return o.isValidElement(e)&&e.type===o.Fragment?e.props.children:e}))),(function(e,t){return e?(Object(w.a)(e.type&&(!0===e.type.__ANT_BREADCRUMB_ITEM||!0===e.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),o.cloneElement(e,{separator:d,key:t})):e}))),o.createElement("div",S({className:a()(p,v),style:h},Object(l.default)(m,["itemRender","params"])),n)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}(e,o.Component),t=e,(n=[{key:"componentDidMount",value:function(){var e=this.props;Object(w.a)(!("linkRender"in e||"nameRender"in e),"Breadcrumb","`linkRender` and `nameRender` are removed, please use `itemRender` instead, see: https://u.ant.design/item-render.")}},{key:"render",value:function(){return o.createElement(d.a,null,this.renderBreadcrumb)}}])&&x(t.prototype,n),e}();function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function M(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}P.defaultProps={separator:"/"},P.propTypes={prefixCls:i.string,separator:i.node,routes:i.array};var A=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=M(this,j(e).apply(this,arguments))).renderSeparator=function(e){var n=e.getPrefixCls,i=t.props.children,r=n("breadcrumb");return o.createElement("span",{className:"".concat(r,"-separator")},i||"/")},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){return o.createElement(d.a,null,this.renderSeparator)}}])&&T(t.prototype,n),e}();A.__ANT_BREADCRUMB_SEPARATOR=!0,P.Item=b,P.Separator=A,t.a=P},,function(e,t,n){"use strict";function o(){return{height:0,opacity:0}}function i(e){return{height:e.scrollHeight,opacity:1}}var r={motionName:"ant-motion-collapse",onAppearStart:o,onEnterStart:o,onAppearActive:i,onEnterActive:i,onLeaveStart:function(e){return{height:e.offsetHeight}},onLeaveActive:o};t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(0),i=n(12),r=n.n(i),a=n(169),s=n.n(a),l=n(77);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function g(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}var y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},b=s()({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function _(e){var t=e.suffixCls,n=e.tagName,i=e.displayName;return function(e){var r;return(r=function(){function i(){var r;return h(this,i),(r=g(this,m(i).apply(this,arguments))).renderComponent=function(i){var a=i.getPrefixCls,s=r.props.prefixCls,l=a(t,s);return o.createElement(e,d({prefixCls:l,tagName:n},r.props))},r}return v(i,o.Component),f(i,[{key:"render",value:function(){return o.createElement(l.a,null,this.renderComponent)}}]),i}()).displayName=i,r}}function w(e){var t=e.prefixCls,n=e.className,i=e.children,a=e.tagName,s=y(e,["prefixCls","className","children","tagName"]),l=r()(n,t);return o.createElement(a,d({className:l},s),i)}var C=function(){function e(){var t;return h(this,e),(t=g(this,m(e).apply(this,arguments))).state={siders:[]},t}return v(e,o.Component),f(e,[{key:"getSiderHook",value:function(){var e=this;return{addSider:function(t){e.setState((function(e){return{siders:[].concat(u(e.siders),[t])}}))},removeSider:function(t){e.setState((function(e){return{siders:e.siders.filter((function(e){return e!==t}))}}))}}}},{key:"render",value:function(){var e,t,n,i=this.props,a=i.prefixCls,s=i.className,l=i.children,c=i.hasSider,u=i.tagName,h=y(i,["prefixCls","className","children","hasSider","tagName"]),p=r()(s,a,(e={},t="".concat(a,"-has-sider"),n="boolean"==typeof c?c:0<this.state.siders.length,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));return o.createElement(b.Provider,{value:{siderHook:this.getSiderHook()}},o.createElement(u,d({className:p},h),l))}}]),e}(),S=_({suffixCls:"layout",tagName:"section",displayName:"Layout"})(C),O=_({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(w),x=_({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(w),E=_({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(w);S.Header=O,S.Footer=x,S.Content=E,t.b=S},function(e,t,n){"use strict";n(50);var o=n(29),i=n(8),r=n(7),a=n(10),s=n(9),l=n(11),c=n(0),u=n.n(c),d=n(28),h=(n(763),n(859),function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(a.a)(this,Object(s.a)(t).call(this,e))).modalCancel=function(){try{n.props.setgoshowqqgtounp(!1)}catch(e){}},n.setDownload=function(){try{n.props.setgoshowqqgtounp(!1)}catch(e){}},n.state={},n}return Object(l.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this;return u.a.createElement(o.a,{keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,title:"\u63d0\u793a",centered:!0,visible:void 0!==this.props.goshowqqgtounp&&this.props.goshowqqgtounp,width:"530px"},u.a.createElement("div",{className:"educouddiv intermediatecenter verticallayout"},u.a.createElement("div",{className:"tabeltext-alignleft mt10"},u.a.createElement("p",null,"\u60a8\u53ef\u4ee5\u5728QQ\u670d\u52a1\u7fa4\u5411\u7ba1\u7406\u5458\u7533\u8bf7\uff0c\u83b7\u5f97\u7ee7\u7eed\u64cd\u4f5c\u7684\u6743\u9650")),u.a.createElement("img",{width:"200px",className:"mt10",src:Object(d.L)("images/educoder/qqqun20191230.png")}),u.a.createElement("div",{className:"tabeltext-alignleft mt10"},u.a.createElement("p",null,"\u7fa4\u53f7\uff1a612934990")),u.a.createElement("div",{className:"clearfix mt30 edu-txt-center"},u.a.createElement("a",{className:"task-btn mr30",onClick:function(){return e.modalCancel()}},"\u53d6\u6d88"),u.a.createElement("a",{className:"task-btn task-btn-orange",target:"_blank",href:"//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd"},"\u7acb\u5373\u8054\u7cfb"))))}}]),t}(c.Component));t.a=h},function(e,t,n){var o;self.MonacoEnvironment=(o={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{getWorkerUrl:function(e,t){var i=n.p,r=(i?i.replace(/\/$/,"")+"/":"")+o[t];if(/^(http:)|(https:)|(file:)/.test(r)){var a=String(window.location),s=a.substr(0,a.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,s.length)!==s)return"data:text/javascript;charset=utf-8,"+encodeURIComponent("/*"+t+'*/importScripts("'+r+'");')}return r}}),n(1159),n(1160),n(1256),n(1161),n(1162),n(1251),n(1004),n(1254),n(1257),n(927),n(1163),n(1258),n(1051),n(1248),n(1164),n(1252),n(1052),n(1165),n(1053),n(1005),n(1249),n(1166),n(1259),n(1167),n(1250),n(1260),n(1168),n(1253),n(1169),n(1255),n(1170),n(1261),n(1262),n(926),n(1247),n(1171),n(1003),n(1172),n(1173),n(1006),n(1174),e.exports=n(1401),n(1175),n(1176),n(1177),n(1178),n(1179),n(1180),n(1181),n(1182),n(1183),n(1184),n(1185),n(1186),n(1187),n(1188),n(1189),n(1190),n(1191),n(1192),n(1193),n(1194),n(1195),n(1196),n(1197),n(1198),n(1199),n(1200),n(1201),n(1202),n(1203),n(1204),n(1205),n(1206),n(1207),n(1208),n(1209),n(1210),n(1211),n(1212),n(1213),n(1214),n(1215),n(1216),n(1217),n(1218),n(1219),n(1220),n(1221),n(1222),n(1223),n(1224),n(1225),n(1226),n(1227),n(1228),n(1229),n(1230),n(1231),n(1232),n(1233),n(1234),n(1263),n(1235),n(1236),n(1237)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(700),i=(r.Undefined=new r(void 0),r);function r(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}var a=(Object.defineProperty(s.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),s.prototype.isEmpty=function(){return this._first===i.Undefined},s.prototype.clear=function(){this._first=i.Undefined,this._last=i.Undefined,this._size=0},s.prototype.unshift=function(e){return this._insert(e,!1)},s.prototype.push=function(e){return this._insert(e,!0)},s.prototype._insert=function(e,t){var n=this,o=new i(e);if(this._first===i.Undefined)this._first=o,this._last=o;else if(t){var r=this._last;((this._last=o).prev=r).next=o}else{var a=this._first;((this._first=o).next=a).prev=o}this._size+=1;var s=!1;return function(){s||(s=!0,n._remove(o))}},s.prototype.shift=function(){if(this._first!==i.Undefined){var e=this._first.element;return this._remove(this._first),e}},s.prototype.pop=function(){if(this._last!==i.Undefined){var e=this._last.element;return this._remove(this._last),e}},s.prototype._remove=function(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);--this._size},s.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===i.Undefined?o.c:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},s.prototype.toArray=function(){for(var e=[],t=this._first;t!==i.Undefined;t=t.next)e.push(t.element);return e},s);function s(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("textModelService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(548),i=n(452),r=n(489),a=n(571);function s(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}var l=new(s.bindToCurrentPlatform=function(e){if(1===i.a){if(e&&e.win)return e.win}else if(2===i.a){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e},s.prototype.registerKeybindingRule=function(e){var t=s.bindToCurrentPlatform(e);if(t&&t.primary&&(a=Object(o.f)(t.primary,i.a))&&this._registerDefaultKeybinding(a,e.id,e.args,e.weight,0,e.when),t&&Array.isArray(t.secondary))for(var n=0,r=t.secondary.length;n<r;n++){var a,l=t.secondary[n];(a=Object(o.f)(l,i.a))&&this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-n-1,e.when)}},s.prototype.registerCommandAndKeybindingRule=function(e){this.registerKeybindingRule(e),r.a.registerCommand(e)},s._mightProduceChar=function(e){return 21<=e&&e<=30||31<=e&&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},s.prototype._assertNoCtrlAlt=function(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&s._mightProduceChar(e.keyCode)},s.prototype._registerDefaultKeybinding=function(e,t,n,o,r,a){1===i.a&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:a,weight1:o,weight2:r}),this._cachedMergedKeybindings=null},s.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(c)),this._cachedMergedKeybindings.slice(0)},s);function c(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}a.a.add("platform.keybindingsRegistry",l)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return _}));var o=n(445),i=n(442),r=n(571),a=n(465),s=n(1073),l=n(553),c={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},m="vscode://schemas/settings/resourceLanguage",v=r.a.as(s.a.JSONContribution),y=(b.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},b.prototype.registerConfigurations=function(e,t){var n=this;void 0===t&&(t=!0);var o=[];e.forEach((function(e){o.push.apply(o,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e)})),v.registerSchema(m,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(o)},b.prototype.registerOverrideIdentifiers=function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t];this.overrideIdentifiers.add(o)}this.updateOverridePropertyPatternKey()},b.prototype.validateAndRegisterProperties=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=3),n=a.l(e.scope)?n:e.scope;var o=[],i=e.properties;if(i)for(var r in i)if(t&&S(r))delete i[r];else{var s=i[r],l=s.default;a.k(l)&&(s.default=w(s.type)),_.test(r)?s.scope=void 0:s.scope=a.l(s.scope)?n:s.scope,!i[r].hasOwnProperty("included")||i[r].included?(this.configurationProperties[r]=i[r],o.push(r)):(this.excludedConfigurationProperties[r]=i[r],delete i[r])}var c=e.allOf;if(c)for(var u=0,d=c;u<d.length;u++){var h=d[u];o.push.apply(o,this.validateAndRegisterProperties(h,t,n))}return o},b.prototype.getConfigurationProperties=function(){return this.configurationProperties},b.prototype.registerJSONConfiguration=function(e){var t=this;!function e(n){var o=n.properties;if(o)for(var i in o)switch(u.properties[i]=o[i],o[i].scope){case 1:d.properties[i]=o[i];break;case 2:h.properties[i]=o[i];break;case 6:p.properties[i]=o[i];break;case 3:f.properties[i]=o[i];break;case 4:g.properties[i]=o[i];break;case 5:g.properties[i]=o[i],t.resourceLanguageSettingsSchema.properties[i]=o[i]}var r=n.allOf;r&&r.forEach(e)}(e)},b.prototype.updateOverridePropertyPatternKey=function(){for(var e,t=0,n=Object(l.e)(this.overrideIdentifiers);t<n.length;t++){var i="["+n[t]+"]",r={type:"object",description:o.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:m,default:null===(e=this.defaultOverridesConfigurationNode.properties[i])||void 0===e?void 0:e.default};u.properties[i]=r,d.properties[i]=r,h.properties[i]=r,p.properties[i]=r,f.properties[i]=r,g.properties[i]=r}this._onDidSchemaChange.fire()},b);function b(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new i.a,this._onDidUpdateConfiguration=new i.a,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:o.a("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},v.registerSchema(m,this.resourceLanguageSettingsSchema)}var _=new RegExp("\\[.*\\]$");function w(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var C=new y;function S(e){return _.test(e)?o.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==C.getConfigurationProperties()[e]&&o.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e)}r.a.add(c.Configuration,C)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var o=n(1074),i=(r._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},r.prototype.set=function(e,t){var n=Object(o.b)(t);0<=e&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},r.prototype.get=function(e){return 0<=e&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},r);function r(e){var t=Object(o.b)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}var a=(s.prototype.add=function(e){this._actual.set(e,1)},s.prototype.has=function(e){return 1===this._actual.get(e)},s);function s(){this._actual=new i(0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"win32",(function(){return v})),n.d(t,"posix",(function(){return y})),n.d(t,"normalize",(function(){return b})),n.d(t,"join",(function(){return _})),n.d(t,"relative",(function(){return w})),n.d(t,"dirname",(function(){return C})),n.d(t,"basename",(function(){return S})),n.d(t,"extname",(function(){return O})),n.d(t,"sep",(function(){return x}));var o,i,r=n(1321),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=47,l=92,c=(a(u,i=Error),u);function u(e,t,n){var o,r=this;"string"==typeof t&&0===t.indexOf("not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be";var a=-1!==e.indexOf(".")?"property":"argument",s='The "'+e+'" '+a+" "+o+" of type "+t;return s+=". Received type "+typeof n,(r=i.call(this,s)||this).code="ERR_INVALID_ARG_TYPE",r}function d(e,t){if("string"!=typeof e)throw new c(t,"string",e)}function h(e){return e===s||e===l}function p(e){return e===s}function f(e){return 65<=e&&e<=90||97<=e&&e<=122}function g(e,t,n,o){for(var i,r="",a=0,l=-1,c=0,u=0;u<=e.length;++u){if(u<e.length)i=e.charCodeAt(u);else{if(o(i))break;i=s}if(o(i)){if(l!==u-1&&1!==c)if(l!==u-1&&2===c){if(r.length<2||2!==a||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(2<r.length){var d=r.lastIndexOf(n);a=-1===d?(r="",0):(r=r.slice(0,d)).length-1-r.lastIndexOf(n),l=u,c=0;continue}if(2===r.length||1===r.length){r="",l=u,c=a=0;continue}}t&&(0<r.length?r+=n+"..":r="..",a=2)}else 0<r.length?r+=n+e.slice(l+1,u):r=e.slice(l+1,u),a=u-l-1;l=u,c=0}else 46===i&&-1!==c?++c:c=-1}return r}function m(e,t){var n=t.dir||t.root,o=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+o:n+e+o:o}var v={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",o="",i=!1,a=e.length-1;-1<=a;a--){var s=void 0;if(0<=a?s=e[a]:n?void 0!==(s=r.b["="+n]||r.a())&&s.slice(0,3).toLowerCase()===n.toLowerCase()+"\\"||(s=n+"\\"):s=r.a(),d(s,"path"),0!==s.length){var l=s.length,c=0,u="",p=!1,m=s.charCodeAt(0);if(1<l)if(h(m))if(p=!0,h(s.charCodeAt(1))){for(var v=2,y=v;v<l&&!h(s.charCodeAt(v));++v);if(v<l&&v!==y){var b=s.slice(y,v);for(y=v;v<l&&h(s.charCodeAt(v));++v);if(v<l&&v!==y){for(y=v;v<l&&!h(s.charCodeAt(v));++v);v===l?(u="\\\\"+b+"\\"+s.slice(y),c=v):v!==y&&(u="\\\\"+b+"\\"+s.slice(y,v),c=v)}}}else c=1;else f(m)&&58===s.charCodeAt(1)&&(u=s.slice(0,2),(c=2)<l&&h(s.charCodeAt(2))&&(p=!0,c=3));else h(m)&&(c=1,p=!0);if(!(0<u.length&&0<n.length&&u.toLowerCase()!==n.toLowerCase())&&(0===n.length&&0<u.length&&(n=u),i||(o=s.slice(c)+"\\"+o,i=p),0<n.length&&i))break}}return n+(i?"\\":"")+(o=g(o,!i,"\\",h))||"."},normalize:function(e){d(e,"path");var t=e.length;if(0===t)return".";var n,o,i=0,r=!1,a=e.charCodeAt(0);if(1<t)if(h(a))if(r=!0,h(e.charCodeAt(1))){for(var s=2,l=s;s<t&&!h(e.charCodeAt(s));++s);if(s<t&&s!==l){var c=e.slice(l,s);for(l=s;s<t&&h(e.charCodeAt(s));++s);if(s<t&&s!==l){for(l=s;s<t&&!h(e.charCodeAt(s));++s);if(s===t)return"\\\\"+c+"\\"+e.slice(l)+"\\";s!==l&&(n="\\\\"+c+"\\"+e.slice(l,s),i=s)}}}else i=1;else f(a)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),(i=2)<t&&h(e.charCodeAt(2))&&(r=!0,i=3));else if(h(a))return"\\";return 0!==(o=i<t?g(e.slice(i),!r,"\\",h):"").length||r||(o="."),0<o.length&&h(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?0<o.length?"\\"+o:"\\":0<o.length?o:"":r?0<o.length?n+"\\"+o:n+"\\":0<o.length?n+o:n},isAbsolute:function(e){d(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return!!h(n)||!!(f(n)&&2<t&&58===e.charCodeAt(1)&&h(e.charCodeAt(2)))},join:function(){for(var e,t,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(0===n.length)return".";for(var i=0;i<n.length;++i){var r=n[i];d(r,"path"),0<r.length&&(void 0===e?e=t=r:e+="\\"+r)}if(void 0===e)return".";var a=!0,s=0;if("string"==typeof t&&h(t.charCodeAt(0))){++s;var l=t.length;1<l&&h(t.charCodeAt(1))&&(++s,2<l&&(h(t.charCodeAt(2))?++s:a=!1))}if(a){for(;s<e.length&&h(e.charCodeAt(s));++s);2<=s&&(e="\\"+e.slice(s))}return v.normalize(e)},relative:function(e,t){if(d(e,"from"),d(t,"to"),e===t)return"";var n=v.resolve(e),o=v.resolve(t);if(n===o)return"";if((e=n.toLowerCase())===(t=o.toLowerCase()))return"";for(var i=0;i<e.length&&e.charCodeAt(i)===l;++i);for(var r=e.length;i<r-1&&e.charCodeAt(r-1)===l;--r);for(var a=r-i,s=0;s<t.length&&t.charCodeAt(s)===l;++s);for(var c=t.length;s<c-1&&t.charCodeAt(c-1)===l;--c);for(var u=c-s,h=a<u?a:u,p=-1,f=0;f<=h;++f){if(f===h){if(h<u){if(t.charCodeAt(s+f)===l)return o.slice(s+f+1);if(2===f)return o.slice(s+f)}h<a&&(e.charCodeAt(i+f)===l?p=f:2===f&&(p=3));break}var g=e.charCodeAt(i+f);if(g!==t.charCodeAt(s+f))break;g===l&&(p=f)}if(f!==h&&-1===p)return o;var m="";for(-1===p&&(p=0),f=i+p+1;f<=r;++f)f!==r&&e.charCodeAt(f)!==l||(0===m.length?m+="..":m+="\\..");return 0<m.length?m+o.slice(s+p,c):(s+=p,o.charCodeAt(s)===l&&++s,o.slice(s,c))},toNamespacedPath:function(e){if("string"!=typeof e)return e;if(0===e.length)return"";var t=v.resolve(e);if(3<=t.length)if(t.charCodeAt(0)===l){if(t.charCodeAt(1)===l){var n=t.charCodeAt(2);if(63!==n&&46!==n)return"\\\\?\\UNC\\"+t.slice(2)}}else if(f(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===l)return"\\\\?\\"+t;return e},dirname:function(e){d(e,"path");var t=e.length;if(0===t)return".";var n=-1,o=-1,i=!0,r=0,a=e.charCodeAt(0);if(1<t)if(h(a)){if(n=r=1,h(e.charCodeAt(1))){for(var s=2,l=s;s<t&&!h(e.charCodeAt(s));++s);if(s<t&&s!==l){for(l=s;s<t&&h(e.charCodeAt(s));++s);if(s<t&&s!==l){for(l=s;s<t&&!h(e.charCodeAt(s));++s);if(s===t)return e;s!==l&&(n=r=s+1)}}}}else f(a)&&58===e.charCodeAt(1)&&(n=r=2,2<t&&h(e.charCodeAt(2))&&(n=r=3));else if(h(a))return e;for(var c=t-1;r<=c;--c)if(h(e.charCodeAt(c))){if(!i){o=c;break}}else i=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename:function(e,t){void 0!==t&&d(t,"ext"),d(e,"path");var n,o=0,i=-1,r=!0;if(2<=e.length&&f(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(o=2),void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,s=-1;for(n=e.length-1;o<=n;--n){var l=e.charCodeAt(n);if(h(l)){if(!r){o=n+1;break}}else-1===s&&(r=!1,s=n+1),0<=a&&(l===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=s))}return o===i?i=s:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;o<=n;--n)if(h(e.charCodeAt(n))){if(!r){o=n+1;break}}else-1===i&&(r=!1,i=n+1);return-1===i?"":e.slice(o,i)},extname:function(e){d(e,"path");var t=0,n=-1,o=0,i=-1,r=!0,a=0;2<=e.length&&58===e.charCodeAt(1)&&f(e.charCodeAt(0))&&(t=o=2);for(var s=e.length-1;t<=s;--s){var l=e.charCodeAt(s);if(h(l)){if(r)continue;o=s+1;break}-1===i&&(r=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===o+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new c("pathObject","Object",e);return m("\\",e)},parse:function(e){d(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,o=0,i=e.charCodeAt(0);if(1<n){if(h(i)){if(o=1,h(e.charCodeAt(1))){for(var r=2,a=r;r<n&&!h(e.charCodeAt(r));++r);if(r<n&&r!==a){for(a=r;r<n&&h(e.charCodeAt(r));++r);if(r<n&&r!==a){for(a=r;r<n&&!h(e.charCodeAt(r));++r);r===n?o=r:r!==a&&(o=r+1)}}}}else if(f(i)&&58===e.charCodeAt(1)){if(!((o=2)<n))return t.root=t.dir=e,t;if(h(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;o=3}}}else if(h(i))return t.root=t.dir=e,t;0<o&&(t.root=e.slice(0,o));for(var s=-1,l=o,c=-1,u=!0,p=e.length-1,g=0;o<=p;--p){if(h(i=e.charCodeAt(p))){if(u)continue;l=p+1;break}-1===c&&(u=!1,c=p+1),46===i?-1===s?s=p:1!==g&&(g=1):-1!==s&&(g=-1)}return-1===s||-1===c||0===g||1===g&&s===c-1&&s===l+1?-1!==c&&(t.base=t.name=e.slice(l,c)):(t.name=e.slice(l,s),t.base=e.slice(l,c),t.ext=e.slice(s,c)),t.dir=0<l&&l!==o?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},y={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",o=!1,i=e.length-1;-1<=i&&!o;i--){var a=void 0;d(a=0<=i?e[i]:r.a(),"path"),0!==a.length&&(n=a+"/"+n,o=a.charCodeAt(0)===s)}return n=g(n,!o,"/",p),o?0<n.length?"/"+n:"/":0<n.length?n:"."},normalize:function(e){if(d(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===s,n=e.charCodeAt(e.length-1)===s;return 0!==(e=g(e,!t,"/",p)).length||t||(e="."),0<e.length&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return d(e,"path"),0<e.length&&e.charCodeAt(0)===s},join:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return".";for(var o=0;o<t.length;++o){var i=arguments[o];d(i,"path"),0<i.length&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":y.normalize(e)},relative:function(e,t){if(d(e,"from"),d(t,"to"),e===t)return"";if((e=y.resolve(e))===(t=y.resolve(t)))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===s;++n);for(var o=e.length,i=o-n,r=1;r<t.length&&t.charCodeAt(r)===s;++r);for(var a=t.length-r,l=i<a?i:a,c=-1,u=0;u<=l;++u){if(u===l){if(l<a){if(t.charCodeAt(r+u)===s)return t.slice(r+u+1);if(0===u)return t.slice(r+u)}else l<i&&(e.charCodeAt(n+u)===s?c=u:0===u&&(c=0));break}var h=e.charCodeAt(n+u);if(h!==t.charCodeAt(r+u))break;h===s&&(c=u)}var p="";for(u=n+c+1;u<=o;++u)u!==o&&e.charCodeAt(u)!==s||(0===p.length?p+="..":p+="/..");return 0<p.length?p+t.slice(r+c):(r+=c,t.charCodeAt(r)===s&&++r,t.slice(r))},toNamespacedPath:function(e){return e},dirname:function(e){if(d(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===s,n=-1,o=!0,i=e.length-1;1<=i;--i)if(e.charCodeAt(i)===s){if(!o){n=i;break}}else o=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&d(t,"ext"),d(e,"path");var n,o=0,i=-1,r=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,l=-1;for(n=e.length-1;0<=n;--n){var c=e.charCodeAt(n);if(c===s){if(!r){o=n+1;break}}else-1===l&&(r=!1,l=n+1),0<=a&&(c===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=l))}return o===i?i=l:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;0<=n;--n)if(e.charCodeAt(n)===s){if(!r){o=n+1;break}}else-1===i&&(r=!1,i=n+1);return-1===i?"":e.slice(o,i)},extname:function(e){d(e,"path");for(var t=-1,n=0,o=-1,i=!0,r=0,a=e.length-1;0<=a;--a){var l=e.charCodeAt(a);if(l===s){if(i)continue;n=a+1;break}-1===o&&(i=!1,o=a+1),46===l?-1===t?t=a:1!==r&&(r=1):-1!==t&&(r=-1)}return-1===t||-1===o||0===r||1===r&&t===o-1&&t===n+1?"":e.slice(t,o)},format:function(e){if(null===e||"object"!=typeof e)throw new c("pathObject","Object",e);return m("/",e)},parse:function(e){d(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,o=e.charCodeAt(0)===s;n=o?(t.root="/",1):0;for(var i=-1,r=0,a=-1,l=!0,c=e.length-1,u=0;n<=c;--c){var h=e.charCodeAt(c);if(h===s){if(l)continue;r=c+1;break}-1===a&&(l=!1,a=c+1),46===h?-1===i?i=c:1!==u&&(u=1):-1!==i&&(u=-1)}return-1===i||-1===a||0===u||1===u&&i===a-1&&i===r+1?-1!==a&&(t.base=t.name=0===r&&o?e.slice(1,a):e.slice(r,a)):(0===r&&o?(t.name=e.slice(1,i),t.base=e.slice(1,a)):(t.name=e.slice(r,i),t.base=e.slice(r,a)),t.ext=e.slice(i,a)),0<r?t.dir=e.slice(0,r-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};y.win32=v.win32=v,y.posix=v.posix=y;var b="win32"===r.c?v.normalize:y.normalize,_="win32"===r.c?v.join:y.join,w="win32"===r.c?v.relative:y.relative,C="win32"===r.c?v.dirname:y.dirname,S="win32"===r.c?v.basename:y.basename,O="win32"===r.c?v.extname:y.extname,x="win32"===r.c?v.sep:y.sep},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var o=n(1079),i=[];function r(e,t,n){i.push([e,new o.a(t,[],n)])}function a(){return i}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d}));var o=n(443),i=n(452),r=n(478),a=n(1072),s=n(595),l=n(439),c=n(820);function u(e,t){var n=new s.b(t);return n.preventDefault(),{leftButton:n.leftButton,buttons:n.buttons,posx:n.posx,posy:n.posy}}var d=(h.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},h.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()}},h.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},h.prototype.startMonitoring=function(e,t,n,l,u){var d=this;if(!this.isMonitoring()){this._mouseMoveEventMerger=n,this._mouseMoveCallback=l,this._onStopCallback=u;var h=a.a.getSameOriginWindowChain(),p=i.c&&c.a.pointerEvents?"pointermove":"mousemove",f=i.c&&c.a.pointerEvents?"pointerup":"mouseup",g=h.map((function(e){return e.window.document})),m=o.E(e);m&&g.unshift(m);for(var v=0,y=g;v<y.length;v++){var b=y[v];this._hooks.add(o.m(b,p,(function(e){r.i||e.buttons===t?d._mouseMoveCallback(e):d.stopMonitoring(!0)}),(function(e,t){return d._mouseMoveEventMerger(e,t)}))),this._hooks.add(o.j(b,f,(function(e){return d.stopMonitoring(!0)})))}if(a.a.hasDifferentOriginAncestor()){var _=h[h.length-1];this._hooks.add(o.j(_.window.document,"mouseout",(function(e){"html"===new s.b(e).target.tagName.toLowerCase()&&d.stopMonitoring(!0)}))),this._hooks.add(o.j(_.window.document,"mouseover",(function(e){"html"===new s.b(e).target.tagName.toLowerCase()&&d.stopMonitoring(!0)}))),this._hooks.add(o.j(_.window.document.body,"mouseleave",(function(e){d.stopMonitoring(!0)})))}}},h);function h(){this._hooks=new l.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return h}));var o=n(466),i=(r.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},r.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new o.a(n.endLineNumber,n.endColumn,n.endLineNumber,n.endColumn)},r);function r(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}var a=(s.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},s.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new o.a(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)},s);function s(e,t){this._range=e,this._text=t}var l=(c.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},c.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new o.a(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)},c);function c(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}var u=(d.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},d.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new o.a(n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset,n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset)},d);function d(e,t,n,o,i){void 0===i&&(i=!1),this._range=e,this._text=t,this._columnDeltaOffset=o,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=i}var h=(p.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)},p.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},p);function p(e,t,n,o){void 0===o&&(o=!1),this._range=e,this._text=t,this._initialSelection=n,this._forceMoveMarkers=o,this._selectionId=null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return h}));var o=n(459),i=n(890),r=(Object.defineProperty(a.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"supportThemeIcons",{get:function(){return this._supportThemeIcons},enumerable:!0,configurable:!0}),a.prototype.appendText=function(e){return this._value+=(this._supportThemeIcons?Object(i.a)(e):e).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace("\n","\n\n"),this},a.prototype.appendMarkdown=function(e){return this._value+=e,this},a.prototype.appendCodeblock=function(e,t){return this._value+="\n```",this._value+=e,this._value+="\n",this._value+=t,this._value+="\n```\n",this},a);function a(e,t){var n,o;void 0===e&&(e=""),void 0===t&&(t=!1),this._value=e,"boolean"==typeof t?(this._isTrusted=t,this._supportThemeIcons=!1):(this._isTrusted=null!==(n=t.isTrusted)&&void 0!==n&&n,this._supportThemeIcons=null!==(o=t.supportThemeIcons)&&void 0!==o&&o)}function s(e){return l(e)?!e.value:!Array.isArray(e)||e.every(s)}function l(e){return e instanceof r||e&&"object"==typeof e&&!("string"!=typeof e.value||"boolean"!=typeof e.isTrusted&&void 0!==e.isTrusted||"boolean"!=typeof e.supportThemeIcons&&void 0!==e.supportThemeIcons)}function c(e,t){return!e&&!t||!(!e||!t)&&(Array.isArray(e)&&Array.isArray(t)?Object(o.g)(e,t,u):!(!l(e)||!l(t))&&u(e,t))}function u(e,t){return e===t||!(!e||!t)&&e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons}function d(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function h(e){var t=[],n=e.split("|").map((function(e){return e.trim()}));e=n[0];var o=n[1];if(o){var i=/height=(\d+)/.exec(o),r=/width=(\d+)/.exec(o),a=i?i[1]:"",s=r?r[1]:"",l=isFinite(parseInt(s)),c=isFinite(parseInt(a));l&&t.push('width="'+s+'"'),c&&t.push('height="'+a+'"')}return{href:e,dimensions:t}}},function(e,t,n){},function(e,t,n){},function(e,t,n){var o=n(799);e.exports=new o},function(e,t,n){var o=n(800),i=n(693),r=i.each,a=i.isFunction,s=i.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var i=this.queries,l=n&&this.browserIsIncapable;return i[e]||(i[e]=new o(e,l)),a(t)&&(t={match:t}),s(t)||(t=[t]),r(t,(function(t){a(t)&&(t={match:t}),i[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},function(e,t,n){var o=n(801),i=n(693).each;function r(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}r.prototype={constuctor:r,addHandler:function(e){var t=new o(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;i(t,(function(n,o){if(n.equals(e))return n.destroy(),!t.splice(o,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";i(this.handlers,(function(t){t[e]()}))}},e.exports=r},function(e,t){function n(e){(this.options=e).deferSetup||this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){this.initialised||this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},,function(e,t,n){"use strict";n(46),n(815)},function(e,t,n){"use strict";var o=n(0),i=n(12),r=n.n(i),a=n(77);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=function(e){return o.createElement(a.a,null,(function(t){var n,i=t.getPrefixCls,a=e.prefixCls,c=e.type,u=void 0===c?"horizontal":c,d=e.orientation,h=void 0===d?"center":d,p=e.className,f=e.children,g=e.dashed,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["prefixCls","type","orientation","className","children","dashed"]),v=i("divider",a),y=0<h.length?"-".concat(h):h,b=r()(p,v,"".concat(v,"-").concat(u),(l(n={},"".concat(v,"-with-text").concat(y),f),l(n,"".concat(v,"-dashed"),!!g),n));return o.createElement("div",s({className:b},m,{role:"separator"}),f&&o.createElement("span",{className:"".concat(v,"-inner-text")},f))}))}},,,,,,,,function(e,t,n){},function(e,t,n){"use strict";n(46),n(982)},,function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(0),i=n.n(o),r=n(13),a=n.n(r),s=!0,l=!1,c=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function d(e){e.metaKey||e.altKey||e.ctrlKey||(s=!0)}function h(){s=!1}function p(){"hidden"===this.visibilityState&&l&&(s=!0)}function f(e){var t,n,o,i=e.target;try{return i.matches(":focus-visible")}catch(e){}return s||(n=(t=i).type,!("INPUT"!==(o=t.tagName)||!u[n]||t.readOnly)||"TEXTAREA"===o&&!t.readOnly||!!t.isContentEditable)}function g(){l=!0,window.clearTimeout(c),c=window.setTimeout((function(){l=!1}),100)}function m(){return{isFocusVisible:f,onBlurVisible:g,ref:i.a.useCallback((function(e){var t,n=a.a.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",d,!0),t.addEventListener("mousedown",h,!0),t.addEventListener("pointerdown",h,!0),t.addEventListener("touchstart",h,!0),t.addEventListener("visibilitychange",p,!0))}),[])}}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(478),i=n(452),r={clipboard:{writeText:i.f||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:i.f||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(o.i)return!1;if(o.e){var e=navigator.userAgent.indexOf("Edge/"),t=parseInt(navigator.userAgent.substring(e+5,navigator.userAgent.indexOf(".",e)),10);if(!t||12<=t&&t<=16)return!1}return!0}()},keyboard:i.f||o.l?0:navigator.keyboard||o.k?1:2,touch:"ontouchstart"in window||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints,pointerEvents:window.PointerEvent&&("ontouchstart"in window||0<window.navigator.maxTouchPoints||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("telemetryService")},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s}));var o=Object.prototype.hasOwnProperty;function i(e){var t=[];for(var n in e)o.call(e,n)&&t.push(e[n]);return t}function r(e){for(var t in e)if(o.call(e,t))return e[t]}function a(e,t){function n(n){if(o.call(e,n)&&!1===t({key:n,value:e[n]},(function(){delete e[n]})))return{value:void 0}}for(var i in e){var r=n(i);if("object"==typeof r)return r.value}}var s=(l.prototype.add=function(e,t){var n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)},l.prototype.delete=function(e,t){var n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))},l.prototype.forEach=function(e,t){var n=this.map.get(e);n&&n.forEach(t)},l);function l(){this.map=new Map}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o,i,r=n(790),a=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(s,i=r.a),s);function s(e){for(var t=i.call(this,0)||this,n=0,o=e.length;n<o;n++)t.set(e.charCodeAt(n),2);return t.set(32,1),t.set(9,1),t}var l,c,u=(l=function(e){return new a(e)},c={},function(e){return c.hasOwnProperty(e)||(c[e]=l(e)),c[e]})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(454),i=(r.prototype.equals=function(e){return e instanceof r&&this.slicedEquals(e,0,this._tokensCount)},r.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var o=t<<1,i=o+(n<<1),r=o;r<i;r++)if(this._tokens[r]!==e._tokens[r])return!1;return!0},r.prototype.getLineContent=function(){return this._text},r.prototype.getCount=function(){return this._tokensCount},r.prototype.getStartOffset=function(e){return 0<e?this._tokens[e-1<<1]:0},r.prototype.getMetadata=function(e){return this._tokens[1+(e<<1)]},r.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return o.A.getLanguageId(t)},r.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return o.A.getTokenType(t)},r.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return o.A.getForeground(t)},r.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return o.A.getClassNameFromMetadata(t)},r.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return o.A.getInlineStyleFromMetadata(n,t)},r.prototype.getEndOffset=function(e){return this._tokens[e<<1]},r.prototype.findTokenIndexAtOffset=function(e){return r.findIndexInTokensArray(this._tokens,e)},r.prototype.inflate=function(){return this},r.prototype.sliceAndInflate=function(e,t,n){return new a(this,e,t,n)},r.convertToEndOffset=function(e,t){for(var n=(e.length>>>1)-1,o=0;o<n;o++)e[o<<1]=e[o+1<<1];e[n<<1]=t},r.findIndexInTokensArray=function(e,t){if(e.length<=2)return 0;for(var n=0,o=(e.length>>>1)-1;n<o;){var i=n+Math.floor((o-n)/2),r=e[i<<1];if(r===t)return i+1;r<t?n=i+1:t<r&&(o=i)}return n},r);function r(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}var a=(s.prototype.equals=function(e){return e instanceof s&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)},s.prototype.getCount=function(){return this._tokensCount},s.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},s.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},s.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},s.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},s.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},s);function s(e,t,n,o){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=o,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var i=this._firstTokenIndex,r=e.getCount();i<r&&!(n<=e.getStartOffset(i));i++)this._tokensCount++}},function(e,t,n){"use strict";var o,i;n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),(i=o=o||{})[i.None=0]="None",i[i.Indent=1]="Indent",i[i.IndentOutdent=2]="IndentOutdent",i[i.Outdent=3]="Outdent";var r=(a.prototype.isOK=function(e){return 0==(this._standardTokenMask&e)},a);function a(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++)switch(e.notIn[t]){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d}));var o=n(461),i=function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function r(e,t,n){function i(i){var r=function(e,t){var n=Object.create(null);for(var i in t){var r=t[i];r&&(n[i]=Object(o.Ub)(r,e))}return n}(e.getTheme(),t);"function"==typeof n?n(r):n.style(r)}return i(e.getTheme()),e.onThemeChange(i)}function a(e,t,n){return r(t,{badgeBackground:n&&n.badgeBackground||o.c,badgeForeground:n&&n.badgeForeground||o.d,badgeBorder:o.e},e)}function s(e,t,n){return r(t,{foreground:n&&n.foreground||o.W,background:n&&n.background||o.o,borderColor:n&&n.borderColor||o.e,widgetShadow:n&&n.widgetShadow||o.hc,progressBarBackground:n&&n.progressBarBackground||o.Sb,pickerGroupForeground:n&&n.pickerGroupForeground||o.Ob,pickerGroupBorder:n&&n.pickerGroupBorder||o.Nb,inputBackground:n&&n.inputBackground||o.Z,inputForeground:n&&n.inputForeground||o.bb,inputBorder:n&&n.inputBorder||o.ab,inputValidationInfoBorder:n&&n.inputValidationInfoBorder||o.gb,inputValidationInfoBackground:n&&n.inputValidationInfoBackground||o.fb,inputValidationInfoForeground:n&&n.inputValidationInfoForeground||o.hb,inputValidationWarningBorder:n&&n.inputValidationWarningBorder||o.jb,inputValidationWarningBackground:n&&n.inputValidationWarningBackground||o.ib,inputValidationWarningForeground:n&&n.inputValidationWarningForeground||o.kb,inputValidationErrorBorder:n&&n.inputValidationErrorBorder||o.db,inputValidationErrorBackground:n&&n.inputValidationErrorBackground||o.cb,inputValidationErrorForeground:n&&n.inputValidationErrorForeground||o.eb,listFocusBackground:n&&n.listFocusBackground||o.rb,listFocusForeground:n&&n.listFocusForeground||o.sb,listActiveSelectionBackground:n&&n.listActiveSelectionBackground||Object(o.f)(o.lb,.1),listActiveSelectionForeground:n&&n.listActiveSelectionForeground||o.mb,listFocusAndSelectionBackground:n&&n.listFocusAndSelectionBackground||o.lb,listFocusAndSelectionForeground:n&&n.listFocusAndSelectionForeground||o.mb,listInactiveSelectionBackground:n&&n.listInactiveSelectionBackground||o.xb,listInactiveSelectionForeground:n&&n.listInactiveSelectionForeground||o.yb,listInactiveFocusBackground:n&&n.listInactiveFocusBackground||o.wb,listHoverBackground:n&&n.listHoverBackground||o.ub,listHoverForeground:n&&n.listHoverForeground||o.vb,listDropBackground:n&&n.listDropBackground||o.nb,listFocusOutline:n&&n.listFocusOutline||o.b,listSelectionOutline:n&&n.listSelectionOutline||o.b,listHoverOutline:n&&n.listHoverOutline||o.b},e)}function l(e,t,n){return r(t,i(i({},c),n||{}),e)}var c={listFocusBackground:o.rb,listFocusForeground:o.sb,listActiveSelectionBackground:Object(o.f)(o.lb,.1),listActiveSelectionForeground:o.mb,listFocusAndSelectionBackground:o.lb,listFocusAndSelectionForeground:o.mb,listInactiveSelectionBackground:o.xb,listInactiveSelectionForeground:o.yb,listInactiveFocusBackground:o.wb,listHoverBackground:o.ub,listHoverForeground:o.vb,listDropBackground:o.nb,listFocusOutline:o.b,listSelectionOutline:o.b,listHoverOutline:o.b,listFilterWidgetBackground:o.ob,listFilterWidgetOutline:o.qb,listFilterWidgetNoMatchesOutline:o.pb,listMatchesShadow:o.hc,treeIndentGuidesStroke:o.gc},u={shadowColor:o.hc,borderColor:o.Ab,foregroundColor:o.Bb,backgroundColor:o.zb,selectionForegroundColor:o.Eb,selectionBackgroundColor:o.Cb,selectionBorderColor:o.Db,separatorColor:o.Fb};function d(e,t,n){return r(t,i(i({},u),n),e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("themeService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s}));var o,i,r=n(448),a=Object(r.c)("logService");(i=o=o||{})[i.Trace=0]="Trace",i[i.Debug=1]="Debug",i[i.Info=2]="Info",i[i.Warning=3]="Warning",i[i.Error=4]="Error",i[i.Critical=5]="Critical",i[i.Off=6]="Off";var s=(l.prototype.getLevel=function(){return o.Info},l.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},l.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},l.prototype.dispose=function(){},l);function l(){}},,,,function(e,t,n){"use strict";var o=n(8),i=n(7),r=n(10),a=n(9),s=n(11),l=n(0),c=n.n(l),u=n(49),d=n.n(u),h=n(74),p=function(e){function t(e){return Object(o.a)(this,t),Object(r.a)(this,Object(a.a)(t).call(this,e))}return Object(s.a)(t,e),Object(i.a)(t,[{key:"componentWillReceiveProps",value:function(){}},{key:"render",value:function(){return c.a.createElement("div",{className:"newFooter edu-txt-center "},c.a.createElement("style",null,"\n\t\t\t\t\t\t.newFooter {\n\t\t\t\t\t\t\t\tmax-height: 140px !important;\n\t\t\t\t\t\t\t\tpadding-bottom: 20px !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tp {\n\t\t\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t\t\t\tmargin-bottom:0px !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t"),c.a.createElement("div",{className:"inner-footer_con"},this.props.user&&!0===this.props.user.main_site?c.a.createElement("div",{className:"footercon"},c.a.createElement("ul",{className:"clearfix inner-footernav"},c.a.createElement("li",null,c.a.createElement("a",{href:"/",className:"fl",target:"_blank"},"\u7f51\u7ad9\u9996\u9875")),c.a.createElement("li",null,c.a.createElement(h.b,{to:"/help/about_us",className:"fl",target:"_blank"},"\u5173\u4e8e\u6211\u4eec")),c.a.createElement("li",null,c.a.createElement(h.b,{to:"/help/contact_us",className:"fl",target:"_blank"},"\u8054\u7cfb\u6211\u4eec")),c.a.createElement("li",null,c.a.createElement(h.b,{to:"/help/cooperatives",className:"fl",target:"_blank"},"\u5408\u4f5c\u4f19\u4f34")),c.a.createElement("li",null,c.a.createElement(h.b,{to:"/help/agreement",className:"fl",target:"_blank"},"\u670d\u52a1\u534f\u8bae")),c.a.createElement("li",null,c.a.createElement(h.b,{to:"/help/help_center",className:"fl",target:"_blank"},"\u5e2e\u52a9\u4e2d\u5fc3")),c.a.createElement("li",null,c.a.createElement(h.b,{to:"/help/feedback",className:"fl",target:"_blank"},"\u610f\u89c1\u53cd\u9988")))):"",c.a.createElement("div",null,null===this.props.mygetHelmetapi?"":void 0===this.props.mygetHelmetapi||null===this.props.mygetHelmetapi.footer||void 0===this.props.mygetHelmetapi.footer?c.a.createElement("p",{className:"footer_con-p inline lineh-30 font-14"},c.a.createElement("span",{className:"font-18 fl"},"\xa9"),"\xa0",d()().year(),"\xa0EduCoder",c.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://beian.miit.gov.cn/",className:"ml15 mr15"},"\u6e58ICP\u590717009477\u53f7"),c.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43019002000962",className:"mr15"},c.a.createElement("img",{className:"vertical4",src:n(860)}),"\u6e58\u516c\u7f51\u5b89\u590743019002000962\u53f7"),c.a.createElement("a",{href:"https://team.trustie.net",style:{color:"#888"},target:"_blank"},"Trustie"),"\xa0\xa0\xa0&\xa0\xa0\xa0IntelliDE inside. ",c.a.createElement("span",{className:"mr15"},"\u7248\u6743\u6240\u6709 \u6e56\u5357\u667a\u64ce\u79d1\u6280\u6709\u9650\u516c\u53f8")):c.a.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.mygetHelmetapi.footer}})),c.a.createElement("div",{className:"cl"})))}}]),t}(l.Component);t.a=p},function(e,t,n){"use strict";n(259);var o=n(167),i=n(8),r=n(7),a=n(10),s=n(9),l=n(11),c=n(0),u=n.n(c),d=n(28),h=(n(681),window.$);function p(){var e=parseInt((parseInt(h(window).width())-1200)/2)-81;0<e?h(".-task-sidebar").css("right",e):h(".-task-sidebar").css("right","0px"),h(".-task-sidebar").show()}h(window).resize((function(){p()})),h(window).scroll((function(){0<h(".gotop").length&&(0<h(document).scrollTop()&&(h(".-task-sidebar .gotop").show(),h(".gotop").click((function(){h("html,body").scrollTop(0)}))),0==h(document).scrollTop()&&h(".-task-sidebar .gotop").hide())}));var f=function(e){function t(e){return Object(i.a)(this,t),Object(a.a)(this,Object(s.a)(t).call(this,e))}return Object(l.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e;e=h("<div class='-task-desc'></div>").appendTo("body"),h(".-task-sidebar>div").hover((function(){if(h(this).hasClass("scan"))h(".scan_ewm").show().css({right:"75px",opacity:0}).stop().animate({right:"45px",opacity:1});else{var t=h(this).attr("tooltips");e.html(t+"<div><img src='/images/edu_user/jt.png'></div>"),e.data("_dom",this),e.show().css({left:h(this).offset().left-e.width()-30,opacity:0,top:h(this).offset().top}).stop().animate({left:h(this).offset().left-e.width()-5,opacity:1},400)}}),(function(){h(this).hasClass("scan")&&h(".scan_ewm").stop().animate({right:"75px",opacity:0},200).hide(),e.stop().animate({left:h(this).offset().left-e.width()-30,opacity:0},200).hide()})),p(),h(window).scroll((function(){if(e.height()){var t=e.data("_dom");e.css("top",h(t).offset().top)}}))}},{key:"render",value:function(){return this.props&&this.props.match&&this.props.match.path,u.a.createElement("div",{className:"-task-sidebar"},this.props.mygetHelmetapi&&!0===this.props.mygetHelmetapi.main_site?u.a.createElement("div",null,u.a.createElement(o.a,{placement:"right",title:"\u8fd4\u56de\u9876\u90e8"},u.a.createElement("div",{className:"gotop"},u.a.createElement("a",null,u.a.createElement("i",{className:"iconfont icon-shangjiantou color-white"})))),u.a.createElement(o.a,{placement:"right",title:"\u610f\u89c1\u53cd\u9988"},u.a.createElement("div",{className:"feedback"},u.a.createElement("a",{target:"_blank",className:"color_white",href:"/help/feedback"},u.a.createElement("i",{className:"iconfont icon-yijianfankui color-white font-22"})))),u.a.createElement("div",{className:"scan pr"},u.a.createElement(o.a,{placement:"right",title:u.a.createElement("pre",null,u.a.createElement("p",{className:"scan_ewm"},u.a.createElement("p",{className:"pr padding10"},u.a.createElement("style",null,"\n .WeChatstyle{\n margin-bottom: 0 !important;\n }\n "),u.a.createElement("img",{src:Object(d.L)("images/educoder/EWM.jpg"),width:"158px",height:"158px"}),u.a.createElement("p",{className:"WeChatstyle wechatcenter"},"\u5fae\u4fe1\u626b\u4e00\u626b"),u.a.createElement("p",{className:"WeChatstyle wechatcenter"},"\u5173\u6ce8\u516c\u4f17\u53f7"))))},u.a.createElement("span",{className:"inline erweima"},u.a.createElement("i",{className:"iconfont icon-erweima color-white font-22 fl"})))),u.a.createElement(o.a,{placement:"right",title:"\u5728\u7ebf\u54a8\u8be2"},u.a.createElement("div",{className:"consult"},u.a.createElement("a",{target:"_blank",className:"color_white",href:"//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd"},u.a.createElement("i",{className:"iconfont icon-qqzaixianzixun color-white font-22"}))))):"")}}]),t}(c.Component);t.a=f},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){e.exports=n.p+"static/media/beian.d0289dc0.png"},,,,,,,,function(e,t,n){"use strict";n(46),n(980)},,,function(e,t,n){"use strict";var o=n(0),i=n.n(o),r=n(13),a=n(16),s=n.n(a),l=n(34),c=n.n(l),u=n(54),d=n.n(u),h=n(22),p=n.n(h),f=n(37),g=n.n(f),m=n(19),v=n.n(m),y=n(24),b=n.n(y),_=n(1),w=n.n(_),C=n(12),S=n.n(C),O=n(106),x=n.n(O),E=n(25);function k(e,t){for(var n=function(e){var t=[];return i.a.Children.forEach(e,(function(e){e&&t.push(e)})),t}(e),o=0;o<n.length;o++)if(n[o].key===t)return o;return-1}function N(e,t){e.transform=t,e.webkitTransform=t,e.mozTransform=t}function D(e){return("transform"in e||"webkitTransform"in e||"MozTransform"in e)&&window.atob}function L(e){return"left"===e||"right"===e}function P(e,t){return+window.getComputedStyle(e).getPropertyValue(t).replace("px","")}function I(e){return Object.keys(e).reduce((function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t}),{})}function T(e,t){return+e.getPropertyValue(t).replace("px","")}function M(e,t,n,o,i){var r=P(i,"padding-"+e);if(!o||!o.parentNode)return r;var a=o.parentNode.childNodes;return Array.prototype.some.call(a,(function(i){var a=window.getComputedStyle(i);return i!==o?(r+=T(a,"margin-"+e),r+=i[t],r+=T(a,"margin-"+n),"content-box"===a.boxSizing&&(r+=T(a,"border-"+e+"-width")+T(a,"border-"+n+"-width")),!1):(r+=T(a,"margin-"+e),!0)})),r}var j,R=n(23),A=n(169),F=n.n(A)()({}),V=F.Provider,W=F.Consumer,B={width:0,height:0,overflow:"hidden",position:"absolute"},H=(j=i.a.Component,b()(z,j),g()(z,[{key:"render",value:function(){var e=this.props.setRef;return i.a.createElement("div",{tabIndex:0,ref:e,style:B,onKeyDown:this.onKeyDown,role:"presentation"})}}]),z);function z(){var e,t,n,o;p()(this,z);for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];return(t=n=v()(this,(e=z.__proto__||Object.getPrototypeOf(z)).call.apply(e,[this].concat(r)))).onKeyDown=function(e){var t=e.target,o=e.which,i=e.shiftKey,r=n.props,a=r.nextElement,s=r.prevElement;o===R.a.TAB&&document.activeElement===t&&(!i&&a&&a.focus(),i&&s&&s.focus())},o=t,v()(n,o)}H.propTypes={setRef:w.a.func,prevElement:w.a.object,nextElement:w.a.object};var K,U=H,q=(K=i.a.Component,b()(G,K),g()(G,[{key:"render",value:function(){var e,t=this.props,n=t.id,o=t.className,r=t.destroyInactiveTabPane,a=t.active,l=t.forceRender,u=t.rootPrefixCls,h=t.style,p=t.children,f=t.placeholder,g=d()(t,["id","className","destroyInactiveTabPane","active","forceRender","rootPrefixCls","style","children","placeholder"]);this._isActived=this._isActived||a;var m=u+"-tabpane",v=S()((e={},c()(e,m,1),c()(e,m+"-inactive",!a),c()(e,m+"-active",a),c()(e,o,o),e)),y=(r?a:this._isActived)||l;return i.a.createElement(W,null,(function(e){var t=e.sentinelStart,o=e.sentinelEnd,r=e.setPanelSentinelStart,l=e.setPanelSentinelEnd,c=void 0,u=void 0;return a&&y&&(c=i.a.createElement(U,{setRef:r,prevElement:t}),u=i.a.createElement(U,{setRef:l,nextElement:o})),i.a.createElement("div",s()({style:h,role:"tabpanel","aria-hidden":a?"false":"true",className:v,id:n},I(g)),c,y?p:f,u)}))}}]),G);function G(){return p()(this,G),v()(this,(G.__proto__||Object.getPrototypeOf(G)).apply(this,arguments))}var Y=q;function Z(e){var t=void 0;return i.a.Children.forEach(e.children,(function(e){!e||t||e.props.disabled||(t=e.key)})),t}q.propTypes={className:w.a.string,active:w.a.bool,style:w.a.any,destroyInactiveTabPane:w.a.bool,forceRender:w.a.bool,placeholder:w.a.node,rootPrefixCls:w.a.string,children:w.a.node,id:w.a.string},q.defaultProps={placeholder:null};var $,X=($=i.a.Component,b()(J,$),g()(J,[{key:"componentWillUnmount",value:function(){this.destroy=!0,x.a.cancel(this.sentinelId)}},{key:"updateSentinelContext",value:function(){var e=this;this.destroy||(x.a.cancel(this.sentinelId),this.sentinelId=x()((function(){e.destroy||e.forceUpdate()})))}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,o=t.navWrapper,r=t.tabBarPosition,a=t.className,l=t.renderTabContent,u=t.renderTabBar,h=t.destroyInactiveTabPane,p=t.direction,f=d()(t,["prefixCls","navWrapper","tabBarPosition","className","renderTabContent","renderTabBar","destroyInactiveTabPane","direction"]),g=S()((e={},c()(e,n,1),c()(e,n+"-"+r,1),c()(e,a,!!a),c()(e,n+"-rtl","rtl"===p),e));this.tabBar=u();var m=i.a.cloneElement(this.tabBar,{prefixCls:n,navWrapper:o,key:"tabBar",onKeyDown:this.onNavKeyDown,tabBarPosition:r,onTabClick:this.onTabClick,panels:t.children,activeKey:this.state.activeKey,direction:this.props.direction}),v=i.a.cloneElement(l(),{prefixCls:n,tabBarPosition:r,activeKey:this.state.activeKey,destroyInactiveTabPane:h,children:t.children,onChange:this.setActiveKey,key:"tabContent",direction:this.props.direction}),y=i.a.createElement(U,{key:"sentinelStart",setRef:this.setSentinelStart,nextElement:this.panelSentinelStart}),b=i.a.createElement(U,{key:"sentinelEnd",setRef:this.setSentinelEnd,prevElement:this.panelSentinelEnd}),_=[];return"bottom"===r?_.push(y,v,b,m):_.push(m,y,v,b),i.a.createElement(V,{value:{sentinelStart:this.sentinelStart,sentinelEnd:this.sentinelEnd,setPanelSentinelStart:this.setPanelSentinelStart,setPanelSentinelEnd:this.setPanelSentinelEnd}},i.a.createElement("div",s()({className:g,style:t.style},I(f),{onScroll:this.onScroll}),_))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o,r={};return"activeKey"in e?r.activeKey=e.activeKey:(n=e,o=t.activeKey,0<=i.a.Children.map(n.children,(function(e){return e&&e.key})).indexOf(o)||(r.activeKey=Z(e))),0<Object.keys(r).length?r:null}}]),J);function J(e){p()(this,J);var t=v()(this,(J.__proto__||Object.getPrototypeOf(J)).call(this,e));Q.call(t);var n;return n="activeKey"in e?e.activeKey:"defaultActiveKey"in e?e.defaultActiveKey:Z(e),t.state={activeKey:n},t}var Q=function(){var e=this;this.onTabClick=function(t,n){e.tabBar.props.onTabClick&&e.tabBar.props.onTabClick(t,n),e.setActiveKey(t)},this.onNavKeyDown=function(t){var n=t.keyCode;if(39===n||40===n){t.preventDefault();var o=e.getNextActiveKey(!0);e.onTabClick(o)}else if(37===n||38===n){t.preventDefault();var i=e.getNextActiveKey(!1);e.onTabClick(i)}},this.onScroll=function(e){var t=e.target;t===e.currentTarget&&0<t.scrollLeft&&(t.scrollLeft=0)},this.setSentinelStart=function(t){e.sentinelStart=t},this.setSentinelEnd=function(t){e.sentinelEnd=t},this.setPanelSentinelStart=function(t){t!==e.panelSentinelStart&&e.updateSentinelContext(),e.panelSentinelStart=t},this.setPanelSentinelEnd=function(t){t!==e.panelSentinelEnd&&e.updateSentinelContext(),e.panelSentinelEnd=t},this.setActiveKey=function(t){e.state.activeKey!==t&&("activeKey"in e.props||e.setState({activeKey:t}),e.props.onChange(t))},this.getNextActiveKey=function(t){var n=e.state.activeKey,o=[];i.a.Children.forEach(e.props.children,(function(e){e&&!e.props.disabled&&(t?o.push(e):o.unshift(e))}));var r=o.length,a=r&&o[0].key;return o.forEach((function(e,t){e.key===n&&(a=t===r-1?o[0].key:o[t+1].key)})),a}};X.propTypes={destroyInactiveTabPane:w.a.bool,renderTabBar:w.a.func.isRequired,renderTabContent:w.a.func.isRequired,navWrapper:w.a.func,onChange:w.a.func,children:w.a.node,prefixCls:w.a.string,className:w.a.string,tabBarPosition:w.a.string,style:w.a.object,activeKey:w.a.string,defaultActiveKey:w.a.string,direction:w.a.string},X.defaultProps={prefixCls:"rc-tabs",destroyInactiveTabPane:!1,onChange:function(){},navWrapper:function(e){return e},tabBarPosition:"top",children:null,style:{},direction:"ltr"},X.TabPane=Y,Object(E.polyfill)(X);var ee,te=X,ne=(ee=i.a.Component,b()(oe,ee),g()(oe,[{key:"getTabPanes",value:function(){var e=this.props,t=e.activeKey,n=e.children,o=[];return i.a.Children.forEach(n,(function(n){if(n){var r=n.key,a=t===r;o.push(i.a.cloneElement(n,{active:a,destroyInactiveTabPane:e.destroyInactiveTabPane,rootPrefixCls:e.prefixCls}))}})),o}},{key:"render",value:function(){var e,t,n,o,r=this.props,a=r.prefixCls,l=r.children,u=r.activeKey,d=r.className,h=r.tabBarPosition,p=r.animated,f=r.animatedWithMargin,g=r.direction,m=r.style,v=S()((e={},c()(e,a+"-content",!0),c()(e,p?a+"-content-animated":a+"-content-no-animated",!0),e),d);if(p){var y=k(l,u);if(-1!==y){var b=f?(n=y,o=L(h)?"marginTop":"marginLeft",c()({},o,100*-n+"%")):{transform:t=function(e,t,n){var o=L(t)?"translateY":"translateX";return L(t)||"rtl"!==(2<arguments.length&&void 0!==n?n:"ltr")?o+"("+100*-e+"%) translateZ(0)":o+"("+100*e+"%) translateZ(0)"}(y,h,g),WebkitTransform:t,MozTransform:t};m=s()({},m,b)}else m=s()({},m,{display:"none"})}return i.a.createElement("div",{className:v,style:m},this.getTabPanes())}}]),oe);function oe(){return p()(this,oe),v()(this,(oe.__proto__||Object.getPrototypeOf(oe)).apply(this,arguments))}var ie=ne;ne.propTypes={animated:w.a.bool,animatedWithMargin:w.a.bool,prefixCls:w.a.string,children:w.a.node,activeKey:w.a.string,style:w.a.any,tabBarPosition:w.a.string,className:w.a.string,destroyInactiveTabPane:w.a.bool,direction:w.a.string},ne.defaultProps={animated:!0};var re=te,ae=n(33);function se(e,t){var n=e.props,o=n.styles,i=n.panels,r=n.activeKey,a=n.direction,s=e.props.getRef("root"),l=e.props.getRef("nav")||s,c=e.props.getRef("inkBar"),u=e.props.getRef("activeTab"),d=c.style,h=e.props.tabBarPosition,p=k(i,r);if(t&&(d.display="none"),u){var f=u,g=D(d);if(N(d,""),d.width="",d.height="",d.left="",d.top="",d.bottom="",d.right="","top"===h||"bottom"===h){var m=M("left","offsetWidth","right",f,l),v=f.offsetWidth;v===s.offsetWidth?v=0:o.inkBar&&void 0!==o.inkBar.width&&(v=parseFloat(o.inkBar.width,10))&&(m+=(f.offsetWidth-v)/2),"rtl"===a&&(m=P(f,"margin-left")-m),g?N(d,"translate3d("+m+"px,0,0)"):d.left=m+"px",d.width=v+"px"}else{var y=M("top","offsetHeight","bottom",f,l),b=f.offsetHeight;o.inkBar&&void 0!==o.inkBar.height&&(b=parseFloat(o.inkBar.height,10))&&(y+=(f.offsetHeight-b)/2),g?(N(d,"translate3d(0,"+y+"px,0)"),d.top="0"):d.top=y+"px",d.height=b+"px"}}d.display=-1!==p?"block":"none"}var le,ce=(le=i.a.Component,b()(ue,le),g()(ue,[{key:"componentDidMount",value:function(){var e=this;this.timeout=setTimeout((function(){se(e,!0)}),0)}},{key:"componentDidUpdate",value:function(){se(this)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,o=t.styles,r=t.inkBarAnimated,a=n+"-ink-bar",s=S()((e={},c()(e,a,!0),c()(e,r?a+"-animated":a+"-no-animated",!0),e));return i.a.createElement("div",{style:o.inkBar,className:s,key:"inkBar",ref:this.props.saveRef("inkBar")})}}]),ue);function ue(){return p()(this,ue),v()(this,(ue.__proto__||Object.getPrototypeOf(ue)).apply(this,arguments))}var de=ce;ce.propTypes={prefixCls:w.a.string,styles:w.a.object,inkBarAnimated:w.a.bool,saveRef:w.a.func,direction:w.a.string},ce.defaultProps={prefixCls:"",inkBarAnimated:!0,styles:{},saveRef:function(){}};var he,pe=n(133),fe=n.n(pe),ge=(he=i.a.Component,b()(me,he),g()(me,[{key:"render",value:function(){var e=this,t=this.props,n=t.panels,o=t.activeKey,r=t.prefixCls,a=t.tabBarGutter,l=t.saveRef,u=t.tabBarPosition,d=t.renderTabBarNode,h=t.direction,p=[];return i.a.Children.forEach(n,(function(t,f){if(t){var g=t.key,m=o===g?r+"-tab-active":"";m+=" "+r+"-tab";var v={};t.props.disabled?m+=" "+r+"-tab-disabled":v={onClick:e.props.onTabClick.bind(e,g)};var y={};o===g&&(y.ref=l("activeTab"));var b=a&&f===n.length-1?0:a,_="rtl"===h?"marginLeft":"marginRight",w=c()({},L(u)?"marginBottom":_,b);fe()("tab"in t.props,"There must be `tab` property on children of Tabs.");var C=i.a.createElement("div",s()({role:"tab","aria-disabled":t.props.disabled?"true":"false","aria-selected":o===g?"true":"false"},v,{className:m,key:g,style:w},y),t.props.tab);d&&(C=d(C)),p.push(C)}})),i.a.createElement("div",{ref:l("navTabsContainer")},p)}}]),me);function me(){return p()(this,me),v()(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}var ve=ge;ge.propTypes={activeKey:w.a.string,panels:w.a.node,prefixCls:w.a.string,tabBarGutter:w.a.number,onTabClick:w.a.func,saveRef:w.a.func,renderTabBarNode:w.a.func,tabBarPosition:w.a.string,direction:w.a.string},ge.defaultProps={panels:[],prefixCls:[],tabBarGutter:null,onTabClick:function(){},saveRef:function(){}};var ye,be=(ye=i.a.Component,b()(_e,ye),g()(_e,[{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.onKeyDown,r=e.className,a=e.extraContent,l=e.style,u=e.tabBarPosition,h=e.children,p=d()(e,["prefixCls","onKeyDown","className","extraContent","style","tabBarPosition","children"]),f=S()(t+"-bar",c()({},r,!!r)),g="top"===u||"bottom"===u,m=g?{float:"right"}:{},v=a&&a.props?a.props.style:{},y=h;return a&&(y=[Object(o.cloneElement)(a,{key:"extra",style:s()({},m,v)}),Object(o.cloneElement)(h,{key:"content"})],y=g?y:y.reverse()),i.a.createElement("div",s()({role:"tablist",className:f,tabIndex:"0",ref:this.props.saveRef("root"),onKeyDown:n,style:l},I(p)),y)}}]),_e);function _e(){return p()(this,_e),v()(this,(_e.__proto__||Object.getPrototypeOf(_e)).apply(this,arguments))}var we=be;be.propTypes={prefixCls:w.a.string,className:w.a.string,style:w.a.object,tabBarPosition:w.a.oneOf(["left","right","top","bottom"]),children:w.a.node,extraContent:w.a.node,onKeyDown:w.a.func,saveRef:w.a.func},be.defaultProps={prefixCls:"",className:"",style:{},tabBarPosition:"top",extraContent:null,children:null,onKeyDown:function(){},saveRef:function(){}};var Ce,Se=n(193),Oe=n.n(Se),xe=n(274),Ee=(Ce=i.a.Component,b()(ke,Ce),g()(ke,[{key:"componentDidMount",value:function(){var e=this;this.componentDidUpdate(),this.debouncedResize=Oe()((function(){e.setNextPrev(),e.scrollToActiveTab()}),200),this.resizeObserver=new xe.default(this.debouncedResize),this.resizeObserver.observe(this.props.getRef("container"))}},{key:"componentDidUpdate",value:function(e){var t=this.props;if(e&&e.tabBarPosition!==t.tabBarPosition)this.setOffset(0);else{var n=this.setNextPrev();this.isNextPrevShown(this.state)!==this.isNextPrevShown(n)?this.setState({},this.scrollToActiveTab):e&&t.activeKey===e.activeKey||this.scrollToActiveTab()}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.debouncedResize&&this.debouncedResize.cancel&&this.debouncedResize.cancel()}},{key:"setNextPrev",value:function(){var e=this.props.getRef("nav"),t=this.props.getRef("navTabsContainer"),n=this.getScrollWH(t||e),o=this.getOffsetWH(this.props.getRef("container"))+1,i=this.getOffsetWH(this.props.getRef("navWrap")),r=this.offset,a=o-n,s=this.state,l=s.next,c=s.prev;if(0<=a)l=!1,this.setOffset(0,!1),r=0;else if(a<r)l=!0;else{l=!1;var u=i-n;this.setOffset(u,!1),r=u}return c=r<0,this.setNext(l),this.setPrev(c),{next:l,prev:c}}},{key:"getOffsetWH",value:function(e){var t=this.props.tabBarPosition,n="offsetWidth";return"left"!==t&&"right"!==t||(n="offsetHeight"),e[n]}},{key:"getScrollWH",value:function(e){var t=this.props.tabBarPosition,n="scrollWidth";return"left"!==t&&"right"!==t||(n="scrollHeight"),e[n]}},{key:"getOffsetLT",value:function(e){var t=this.props.tabBarPosition,n="left";return"left"!==t&&"right"!==t||(n="top"),e.getBoundingClientRect()[n]}},{key:"setOffset",value:function(e,t){var n=!(1<arguments.length&&void 0!==t)||t,o=Math.min(0,e);if(this.offset!==o){this.offset=o;var i={},r=this.props.tabBarPosition,a=this.props.getRef("nav").style,s=D(a);i="left"===r||"right"===r?s?{value:"translate3d(0,"+o+"px,0)"}:{name:"top",value:o+"px"}:s?("rtl"===this.props.direction&&(o=-o),{value:"translate3d("+o+"px,0,0)"}):{name:"left",value:o+"px"},s?N(a,i.value):a[i.name]=i.value,n&&this.setNextPrev()}}},{key:"setPrev",value:function(e){this.state.prev!==e&&this.setState({prev:e})}},{key:"setNext",value:function(e){this.state.next!==e&&this.setState({next:e})}},{key:"isNextPrevShown",value:function(e){return e?e.next||e.prev:this.state.next||this.state.prev}},{key:"render",value:function(){var e,t,n,o,r=this.state,a=r.next,s=r.prev,l=this.props,u=l.prefixCls,d=l.scrollAnimated,h=l.navWrapper,p=l.prevIcon,f=l.nextIcon,g=s||a,m=i.a.createElement("span",{onClick:s?this.prev:null,unselectable:"unselectable",className:S()((e={},c()(e,u+"-tab-prev",1),c()(e,u+"-tab-btn-disabled",!s),c()(e,u+"-tab-arrow-show",g),e)),onTransitionEnd:this.prevTransitionEnd},p||i.a.createElement("span",{className:u+"-tab-prev-icon"})),v=i.a.createElement("span",{onClick:a?this.next:null,unselectable:"unselectable",className:S()((t={},c()(t,u+"-tab-next",1),c()(t,u+"-tab-btn-disabled",!a),c()(t,u+"-tab-arrow-show",g),t))},f||i.a.createElement("span",{className:u+"-tab-next-icon"})),y=u+"-nav",b=S()((n={},c()(n,y,!0),c()(n,d?y+"-animated":y+"-no-animated",!0),n));return i.a.createElement("div",{className:S()((o={},c()(o,u+"-nav-container",1),c()(o,u+"-nav-container-scrolling",g),o)),key:"container",ref:this.props.saveRef("container")},m,v,i.a.createElement("div",{className:u+"-nav-wrap",ref:this.props.saveRef("navWrap")},i.a.createElement("div",{className:u+"-nav-scroll"},i.a.createElement("div",{className:b,ref:this.props.saveRef("nav")},h(this.props.children)))))}}]),ke);function ke(e){p()(this,ke);var t=v()(this,(ke.__proto__||Object.getPrototypeOf(ke)).call(this,e));return t.prevTransitionEnd=function(e){if("opacity"===e.propertyName){var n=t.props.getRef("container");t.scrollToActiveTab({target:n,currentTarget:n})}},t.scrollToActiveTab=function(e){var n=t.props.getRef("activeTab"),o=t.props.getRef("navWrap");if((!e||e.target===e.currentTarget)&&n){var i=t.isNextPrevShown()&&t.lastNextPrevShown;if(t.lastNextPrevShown=t.isNextPrevShown(),i){var r=t.getScrollWH(n),a=t.getOffsetWH(o),s=t.offset,l=t.getOffsetLT(o),c=t.getOffsetLT(n);c<l?(s+=l-c,t.setOffset(s)):l+a<c+r&&(s-=c+r-(l+a),t.setOffset(s))}}},t.prev=function(e){t.props.onPrevClick(e);var n=t.props.getRef("navWrap"),o=t.getOffsetWH(n),i=t.offset;t.setOffset(i+o)},t.next=function(e){t.props.onNextClick(e);var n=t.props.getRef("navWrap"),o=t.getOffsetWH(n),i=t.offset;t.setOffset(i-o)},t.offset=0,t.state={next:!1,prev:!1},t}var Ne=Ee;Ee.propTypes={activeKey:w.a.string,getRef:w.a.func.isRequired,saveRef:w.a.func.isRequired,tabBarPosition:w.a.oneOf(["left","right","top","bottom"]),prefixCls:w.a.string,scrollAnimated:w.a.bool,onPrevClick:w.a.func,onNextClick:w.a.func,navWrapper:w.a.func,children:w.a.node,prevIcon:w.a.node,nextIcon:w.a.node,direction:w.a.node},Ee.defaultProps={tabBarPosition:"left",prefixCls:"",scrollAnimated:!0,onPrevClick:function(){},onNextClick:function(){},navWrapper:function(e){return e}};var De,Le=(De=i.a.Component,b()(Pe,De),g()(Pe,[{key:"render",value:function(){return this.props.children(this.saveRef,this.getRef)}}]),Pe);function Pe(){var e,t,n,o;p()(this,Pe);for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];return(t=n=v()(this,(e=Pe.__proto__||Object.getPrototypeOf(Pe)).call.apply(e,[this].concat(r)))).getRef=function(e){return n[e]},n.saveRef=function(e){return function(t){t&&(n[e]=t)}},o=t,v()(n,o)}var Ie=Le;Le.propTypes={children:w.a.func},Le.defaultProps={children:function(){return null}};var Te,Me=(Te=i.a.Component,b()(je,Te),g()(je,[{key:"render",value:function(){var e=this.props,t=e.children,n=d()(e,["children"]);return i.a.createElement(Ie,null,(function(e,o){return i.a.createElement(we,s()({saveRef:e},n),i.a.createElement(Ne,s()({saveRef:e,getRef:o},n),i.a.createElement(ve,s()({saveRef:e,renderTabBarNode:t},n)),i.a.createElement(de,s()({saveRef:e,getRef:o},n))))}))}}]),je);function je(){return p()(this,je),v()(this,(je.__proto__||Object.getPrototypeOf(je)).apply(this,arguments))}var Re=Me;Me.propTypes={children:w.a.func};var Ae=n(18);function Fe(){return(Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function He(e,t){return!t||"object"!==We(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ue=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),He(this,ze(e).apply(this,arguments))}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ke(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){var e,t,n=this.props,i=n.tabBarStyle,r=n.animated,a=n.renderTabBar,s=n.tabBarExtraContent,l=n.tabPosition,c=n.prefixCls,u=n.className,d=n.size,h=n.type,p="object"===We(r)?r.inkBar:r,f="left"===l||"right"===l,g=f?"up":"left",m=f?"down":"right",v=o.createElement("span",{className:"".concat(c,"-tab-prev-icon")},o.createElement(Ae.a,{type:g,className:"".concat(c,"-tab-prev-icon-target")})),y=o.createElement("span",{className:"".concat(c,"-tab-next-icon")},o.createElement(Ae.a,{type:m,className:"".concat(c,"-tab-next-icon-target")})),b=S()("".concat(c,"-").concat(l,"-bar"),(Ve(e={},"".concat(c,"-").concat(d,"-bar"),!!d),Ve(e,"".concat(c,"-card-bar"),h&&0<=h.indexOf("card")),e),u),_=Fe(Fe({},this.props),{children:null,inkBarAnimated:p,extraContent:s,style:i,prevIcon:v,nextIcon:y,className:b});return t=a?a(_,Re):o.createElement(Re,_),o.cloneElement(t)}}])&&Be(t.prototype,n),e}();Ue.defaultProps={animated:!0,type:"line"};var qe=n(77),Ge=n(27),Ye=function(e){if("undefined"!=typeof window&&window.document&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1}(["flex","webkitFlex","Flex","msFlex"]);function Ze(){return(Ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Qe(e,t){return!t||"object"!==Xe(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return ot}));var nt=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},ot=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Qe(this,et(e).apply(this,arguments))).removeTab=function(e,n){if(n.stopPropagation(),e){var o=t.props.onEdit;o&&o(e,"remove")}},t.handleChange=function(e){var n=t.props.onChange;n&&n(e)},t.createNewTab=function(e){var n=t.props.onEdit;n&&n(e,"add")},t.renderTabs=function(e){var n,i=e.getPrefixCls,r=t.props,a=r.prefixCls,s=r.className,l=void 0===s?"":s,c=r.size,u=r.type,d=void 0===u?"line":u,h=r.tabPosition,p=r.children,f=r.animated,g=void 0===f||f,m=r.hideAdd,v=t.props.tabBarExtraContent,y="object"===Xe(g)?g.tabPane:g;"line"!==d&&(y="animated"in t.props&&y),Object(Ge.a)(!(0<=d.indexOf("card")&&("small"===c||"large"===c)),"Tabs","`type=card|editable-card` doesn't have small or large size, it's by design.");var b=i("tabs",a),_=S()(l,($e(n={},"".concat(b,"-vertical"),"left"===h||"right"===h),$e(n,"".concat(b,"-").concat(c),!!c),$e(n,"".concat(b,"-card"),0<=d.indexOf("card")),$e(n,"".concat(b,"-").concat(d),!0),$e(n,"".concat(b,"-no-animation"),!y),n)),w=[];"editable-card"===d&&(w=[],o.Children.forEach(p,(function(e,n){if(!o.isValidElement(e))return e;var i=e.props.closable,r=(i=void 0===i||i)?o.createElement(Ae.a,{type:"close",className:"".concat(b,"-close-x"),onClick:function(n){return t.removeTab(e.key,n)}}):null;w.push(o.cloneElement(e,{tab:o.createElement("div",{className:i?void 0:"".concat(b,"-tab-unclosable")},e.props.tab,r),key:e.key||n}))})),m||(v=o.createElement("span",null,o.createElement(Ae.a,{type:"plus",className:"".concat(b,"-new-tab"),onClick:t.createNewTab}),v))),v=v?o.createElement("div",{className:"".concat(b,"-extra-content")},v):null;var C=nt(t.props,[]),O=S()("".concat(b,"-").concat(h,"-content"),0<=d.indexOf("card")&&"".concat(b,"-card-content"));return o.createElement(re,Ze({},t.props,{prefixCls:b,className:_,tabBarPosition:h,renderTabBar:function(){return o.createElement(Ue,Ze({},Object(ae.default)(C,["className"]),{tabBarExtraContent:v}))},renderTabContent:function(){return o.createElement(ie,{className:O,animated:y,animatedWithMargin:!0})},onChange:t.handleChange}),0<w.length?w:p)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tt(e,t)}(e,o.Component),t=e,(n=[{key:"componentDidMount",value:function(){var e=r.findDOMNode(this);e&&!Ye&&-1===e.className.indexOf(" no-flex")&&(e.className+=" no-flex")}},{key:"render",value:function(){return o.createElement(qe.a,null,this.renderTabs)}}])&&Je(t.prototype,n),e}();ot.TabPane=Y,ot.defaultProps={hideAdd:!1,tabPosition:"top"}},function(e,t,n){},function(e,t,n){"use strict";n(46),n(589)},function(e,t,n){"use strict";n(46),n(589)},function(e,t,n){"use strict";var o=n(709);t.a=o.a},function(e,t,n){"use strict";var o=n(708);t.a=o.a},,,,function(e,t,n){"use strict";function o(e){var t,n=this,o=!1;return function(){return o?t:(o=!0,t=e.apply(n,arguments))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=0;function i(e,t,n){return function(){function e(e,o,i){var r=null,a=null;if("function"==typeof i.value?(r="value",(a=i.value).length):"function"==typeof i.get&&(r="get",a=i.get),!a)throw new Error("not supported");var s=t+":"+o;i[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(n=this).hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!0,enumerable:!1,writable:!0,value:a.apply(this,e)}),this[s]}}var t="$memoize"+o++,n=void 0;return e.clear=function(){void 0!==n&&Object.getOwnPropertyNames(n).forEach((function(e){0===e.indexOf(t)&&delete n[e]}))},e}()(e,t,n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a}));var o="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",i=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,i=o;n<i.length;n++){var r=i[n];0<=e.indexOf(r)||(t+="\\"+r)}return t+="\\s]+)",new RegExp(t,"g")}();function r(e){var t=i;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 a(e,t,n,o){t.lastIndex=0;var i=t.exec(n);if(!i)return null;var r=(0<=i[0].indexOf(" ")?function(e,t,n,o){var i,r=e-1-o;for(t.lastIndex=0;i=t.exec(n);){var a=i.index||0;if(r<a)return null;if(t.lastIndex>=r)return{word:i[0],startColumn:o+1+a,endColumn:o+1+t.lastIndex}}return null}:function(e,t,n,o){var i,r=e-1-o,a=n.lastIndexOf(" ",r-1)+1;for(t.lastIndex=a;i=t.exec(n);){var s=i.index||0;if(s<=r&&t.lastIndex>=r)return{word:i[0],startColumn:o+1+s,endColumn:o+1+t.lastIndex}}return null})(e,t,n,o);return t.lastIndex=0,r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(442),i=(r.prototype.getZoomLevel=function(){return this._zoomLevel},r.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},new r);function r(){this._zoomLevel=0,this._onDidChangeZoomLevel=new o.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a}));var o=(i.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},i);function i(e,t,n){this.offset=0|e,this.type=t,this.language=n}var r=function(e,t){this.tokens=e,this.endState=t},a=function(e,t){this.tokens=e,this.endState=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return C})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return k}));var o,i,r=n(459),a=n(484),s=n(446),l=n(439),c=n(479),u=n(761),d=n(449),h=n(440),p=n(466),f=n(454),g=n(598),m=n(886),v=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},b=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},_="editor.action.codeAction",w="editor.action.refactor",C="editor.action.sourceAction",S="editor.action.organizeImports",O="editor.action.fixAll",x=(v(E,i=l.a),E.codeActionsComparator=function(e,t){return Object(r.q)(e.diagnostics)?Object(r.q)(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Object(r.q)(t.diagnostics)?1:0},Object.defineProperty(E.prototype,"hasAutoFix",{get:function(){return this.validActions.some((function(e){return!!e.kind&&m.b.QuickFix.contains(new m.b(e.kind))&&!!e.isPreferred}))},enumerable:!0,configurable:!0}),E);function E(e,t){var n=i.call(this)||this;return n._register(t),n.allActions=Object(r.r)(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o}(e),E.codeActionsComparator),n.validActions=n.allActions.filter((function(e){return!e.disabled})),n}function k(e,t,n,o){var i,a,c,d=this,h=n.filter||{},p={only:null===(i=h.include)||void 0===i?void 0:i.value,trigger:n.type},g=new u.d(e,o),v=(a=e,c=h,f.a.all(a).filter((function(e){return!e.providedCodeActionKinds||e.providedCodeActionKinds.some((function(e){return Object(m.d)(c,new m.b(e))}))}))),_=new l.b,w=v.map((function(n){return y(d,void 0,void 0,(function(){var o,i;return b(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.provideCodeActions(e,t,p,g.token)];case 1:return o=r.sent(),g.token.isCancellationRequested||!o?[2,[]]:(_.add(o),[2,o.actions.filter((function(e){return e&&Object(m.c)(h,e)}))]);case 2:if(i=r.sent(),Object(s.d)(i))throw i;return Object(s.f)(i),[2,[]];case 3:return[2]}}))}))})),C=f.a.onDidChange((function(){var t=f.a.all(e);Object(r.g)(t,v)||g.cancel()}));return Promise.all(w).then(r.m).then((function(e){return new x(e,_)})).finally((function(){C.dispose(),g.dispose()}))}Object(d.j)("_executeCodeActionProvider",(function(e,t){return y(this,void 0,void 0,(function(){var n,o,i,r,l,u;return b(this,(function(d){switch(d.label){case 0:if(n=t.resource,o=t.rangeOrSelection,i=t.kind,!(n instanceof c.a))throw Object(s.b)();if(!(r=e.get(g.a).getModel(n)))throw Object(s.b)();if(!(l=p.a.isISelection(o)?p.a.liftSelection(o):h.a.isIRange(o)?r.validateRange(o):void 0))throw Object(s.b)();return[4,k(r,l,{type:2,filter:{includeSourceActions:!0,include:i&&i.value?new m.b(i.value):void 0}},a.a.None)];case 1:return u=d.sent(),setTimeout((function(){return u.dispose()}),100),[2,u.validActions]}}))}))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c}));var o=n(444),i=(r.prototype.equals=function(e){return this.value===e.value},r.prototype.contains=function(e){return this.equals(e)||""===this.value||Object(o.N)(e.value,this.value+r.sep)},r.prototype.intersects=function(e){return this.contains(e)||e.contains(this)},r.prototype.append=function(e){return new r(this.value+r.sep+e)},r.sep=".",r.None=new r("@@none@@"),r.Empty=new r(""),r.QuickFix=new r("quickfix"),r.Refactor=new r("refactor"),r.Source=new r("source"),r.SourceOrganizeImports=r.Source.append("organizeImports"),r.SourceFixAll=r.Source.append("fixAll"),r);function r(e){this.value=e}function a(e,t){return!(e.include&&!e.include.intersects(t))&&(!e.excludes||!e.excludes.some((function(n){return l(t,n,e.include)})))&&!(!e.includeSourceActions&&i.Source.contains(t))}function s(e,t){var n=t.kind?new i(t.kind):void 0;return!!(!e.include||n&&e.include.contains(n))&&!(e.excludes&&n&&e.excludes.some((function(t){return l(n,t,e.include)})))&&!(!e.includeSourceActions&&n&&i.Source.contains(n))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)}function l(e,t,n){return!!t.contains(e)&&(!n||!t.contains(n))}var c=(u.fromUser=function(e,t){return e&&"object"==typeof e?new u(u.getKindFromUser(e,t.kind),u.getApplyFromUser(e,t.apply),u.getPreferredUser(e)):new u(t.kind,t.apply,!1)},u.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}},u.getKindFromUser=function(e,t){return"string"==typeof e.kind?new i(e.kind):t},u.getPreferredUser=function(e){return"boolean"==typeof e.preferred&&e.preferred},u);function u(e,t,n){this.kind=e,this.apply=t,this.preferred=n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n(1323);var o,i,r=n(445),a=n(453),s=n(439),l=n(635),c=n(440),u=n(449),d=n(456),h=n(451),p=n(461),f=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(g,i=s.a),g.get=function(e){return e.getContribution(g.ID)},g.prototype.dispose=function(){i.prototype.dispose.call(this),this._visible.reset()},g.prototype.showMessage=function(e,t){var n,o=this;Object(l.a)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new v(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText((function(){return o.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((function(){return o.closeMessage()}))),this._messageListeners.add(this._editor.onDidDispose((function(){return o.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeModel((function(){return o.closeMessage()}))),this._messageListeners.add(new a.e((function(){return o.closeMessage()}),this.closeTimeout)),this._messageListeners.add(this._editor.onMouseMove((function(e){e.target.position&&(n?n.containsPosition(e.target.position)||o.closeMessage():n=new c.a(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))},g.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(v.fadeOut(this._messageWidget.value))},g.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(r.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},g.ID="editor.contrib.messageController",g.MESSAGE_VISIBLE=new d.d("messageVisible",!1),g=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(1,d.c)],g));function g(e,t){var n=i.call(this)||this;return n.closeTimeout=3e3,n._messageWidget=n._register(new s.d),n._messageListeners=n._register(new s.b),n._editor=e,n._visible=g.MESSAGE_VISIBLE.bindTo(t),n._register(n._editor.onDidAttemptReadOnlyEdit((function(){return n._onDidAttemptReadOnlyEdit()}))),n}var m=u.c.bindToContribution(f.get);Object(u.g)(new m({id:"leaveEditorMessage",precondition:f.MESSAGE_VISIBLE,handler:function(e){return e.closeMessage()},kbOpts:{weight:130,primary:9}}));var v=(y.fadeOut=function(e){function t(){e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener("animationend",t)}var n;return n=setTimeout(t,110),e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}},y.prototype.dispose=function(){this._editor.removeContentWidget(this)},y.prototype.getId=function(){return"messageoverlay"},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},y);function y(e,t,n){var o=t.lineNumber,i=t.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(o,o,0),this._position={lineNumber:o,column:i-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 a=document.createElement("div");a.classList.add("anchor"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}Object(u.h)(f.ID,f),Object(h.e)((function(e,t){var n=e.getColor(p.gb);if(n){var o=e.type===h.b?2:1;t.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+n+"; }"),t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+o+"px solid "+n+"; }")}var i=e.getColor(p.fb);i&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+i+"; }");var r=e.getColor(p.hb);r&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+r+"; }")}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));var o={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},i=(r.prototype.update=function(){},r.prototype.getData=function(){return this.data},r);function r(e){this.data=e}var a={CurrentDragAndDropData:void 0}},function(e,t,n){"use strict";var o,i,r,a,s=n(445),l=n(444);(i=o=o||{})[i.Ignore=0]="Ignore",i[i.Info=1]="Info",i[i.Warning=2]="Warning",i[i.Error=3]="Error",r=o=o||{},(a=Object.create(null))[r.Error]=s.a("sev.error","Error"),a[r.Warning]=s.a("sev.warning","Warning"),a[r.Info]=s.a("sev.info","Info"),r.fromValue=function(e){return e?l.n("error",e)?r.Error:l.n("warning",e)||l.n("warn",e)?r.Warning:l.n("info",e)?r.Info:r.Ignore:r.Ignore},t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l}));var o=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function i(e){return e.replace(o,(function(e,t){return t?e:"\\"+e}))}var r=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function a(e){return e.replace(r,(function(e){return"\\"+e}))}var s=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function l(e){return e.replace(s,(function(e,t,n,o,i){return t?"$("+n+")":'<span class="codicon codicon-'+o+(i?" codicon-animation-"+i:"")+'"></span>'}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n(1332);var o,i,r=n(439),a=n(478),s=n(452),l=n(465),c=n(702),u=n(595),d=n(442),h=n(443),p=n(686),f=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(g,i=r.a),Object.defineProperty(g.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(Object(h.Y)(this.el,"disabled",0===e),Object(h.Y)(this.el,"minimum",1===e),Object(h.Y)(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(g.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(g.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}),g.prototype.setOrientation=function(e){this.orientation=e,1===this.orientation?(Object(h.f)(this.el,"horizontal"),Object(h.P)(this.el,"vertical")):(Object(h.P)(this.el,"horizontal"),Object(h.f)(this.el,"vertical")),this.layoutProvider&&this.layout()},g.prototype.onMouseDown=function(e){var t=this;h.c.stop(e,!1);var n=!1;if(!e.__orthogonalSashEvent){var o=this.getOrthogonalSash(e);o&&(n=!0,e.__orthogonalSashEvent=!0,o.onMouseDown(e))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),this.state){for(var i=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o}(Object(h.D)("iframe"),Object(h.D)("webview")),a=0,l=i;a<l.length;a++)l[a].style.pointerEvents="none";var c=new u.b(e),d=c.posx,f=c.posy,g=c.altKey,m={startX:d,currentX:d,startY:f,currentY:f,altKey:g};Object(h.f)(this.el,"active"),this._onDidStart.fire(m);var v=Object(h.w)(this.el),y=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",v.innerHTML="* { cursor: "+e+" !important; }"},b=new r.b;y(),n||this.onDidEnablementChange(y,null,b),Object(p.a)(window,"mousemove")((function(e){h.c.stop(e,!1);var n=new u.b(e),o={startX:d,currentX:n.posx,startY:f,currentY:n.posy,altKey:g};t._onDidChange.fire(o)}),null,b),Object(p.a)(window,"mouseup")((function(e){h.c.stop(e,!1),t.el.removeChild(v),Object(h.P)(t.el,"active"),t._onDidEnd.fire(),b.dispose();for(var n=0,o=i;n<o.length;n++)o[n].style.pointerEvents="auto"}),null,b)}},g.prototype.onMouseDoubleClick=function(e){var t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},g.prototype.onTouchStart=function(e){var t=this;h.c.stop(e);var n=[],o=e.pageX,i=e.pageY,a=e.altKey;this._onDidStart.fire({startX:o,currentX:o,startY:i,currentY:i,altKey:a}),n.push(Object(h.j)(this.el,c.a.Change,(function(e){l.h(e.pageX)&&l.h(e.pageY)&&t._onDidChange.fire({startX:o,currentX:e.pageX,startY:i,currentY:e.pageY,altKey:a})}))),n.push(Object(h.j)(this.el,c.a.End,(function(e){t._onDidEnd.fire(),Object(r.f)(n)})))},g.prototype.layout=function(){var e=a.j?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")}},g.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},g.prototype.onOrthogonalStartSashEnablementChange=function(e){Object(h.Y)(this.el,"orthogonal-start",0!==e)},g.prototype.onOrthogonalEndSashEnablementChange=function(e){Object(h.Y)(this.el,"orthogonal-end",0!==e)},g.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}},g.prototype.dispose=function(){i.prototype.dispose.call(this),this.el.remove()},g);function g(e,t,n){void 0===n&&(n={});var o=i.call(this)||this;return o._state=3,o._onDidEnablementChange=o._register(new d.a),o.onDidEnablementChange=o._onDidEnablementChange.event,o._onDidStart=o._register(new d.a),o.onDidStart=o._onDidStart.event,o._onDidChange=o._register(new d.a),o.onDidChange=o._onDidChange.event,o._onDidReset=o._register(new d.a),o.onDidReset=o._onDidReset.event,o._onDidEnd=o._register(new d.a),o.onDidEnd=o._onDidEnd.event,o.linkedSash=void 0,o.orthogonalStartSashDisposables=o._register(new r.b),o.orthogonalEndSashDisposables=o._register(new r.b),o.el=Object(h.q)(e,Object(h.a)(".monaco-sash")),s.e&&Object(h.f)(o.el,"mac"),o._register(Object(p.a)(o.el,"mousedown")(o.onMouseDown,o)),o._register(Object(p.a)(o.el,"dblclick")(o.onMouseDoubleClick,o)),o._register(c.b.addTarget(o.el)),o._register(Object(p.a)(o.el,c.a.Start)(o.onTouchStart,o)),a.j&&Object(h.f)(o.el,"touch"),o.setOrientation(n.orientation||0),o.hidden=!1,o.layoutProvider=t,o.orthogonalStartSash=n.orthogonalStartSash,o.orthogonalEndSash=n.orthogonalEndSash,Object(h.Y)(o.el,"debug",!1),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(776);function i(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===o.a.ICodeEditor}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return m}));var o=n(444),i=n(894),r=n(958),a=function(e,t){this.endIndex=e,this.type=t},s=(l.prototype.equals=function(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset},l);function l(e,t){this.startOffset=e,this.endOffset=t}var c=(u.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},u.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.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&r.a.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)},u);function u(e,t,n,o,i,r,a,s,l,c,u,d,h,p,f,g,m,v){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=o,this.isBasicASCII=i,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=s,this.lineDecorations=l,this.tabSize=c,this.startVisibleColumn=u,this.spaceWidth=d,this.middotWidth=h,this.stopRenderingLineAfter=p,this.renderWhitespace="all"===f?3:"boundary"===f?1:"selection"===f?2:0,this.renderControlCharacters=g,this.fontLigatures=m,this.selectionsOnLine=v&&v.sort((function(e,t){return e.startOffset<t.startOffset?-1:1}))}var d=(h.getPartIndex=function(e){return(4294901760&e)>>>16},h.getCharIndex=function(e){return(65535&e)>>>0},h.prototype.setPartData=function(e,t,n,o){var i=(t<<16|n<<0)>>>0;this._data[e]=i,this._absoluteOffsets[e]=o+n},h.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},h.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]},h.prototype.partDataToCharOffset=function(e,t,n){if(0===this.length)return 0;for(var o=(e<<16|n<<0)>>>0,i=0,r=this.length-1;i+1<r;){var a=i+r>>>1,s=this._data[a];if(s===o)return a;o<s?r=a:i=a}if(i===r)return i;var l=this._data[i],c=this._data[r];if(l===o)return i;if(c===o)return r;var u=h.getPartIndex(l);return n-h.getCharIndex(l)<=(u!==h.getPartIndex(c)?t:h.getCharIndex(c))-n?i:r},h);function h(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}var p=function(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n};function f(e,t){if(0!==e.lineContent.length)return function(e,t){var n=e.fontIsMonospace,i=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,a=e.lineContent,s=e.len,l=e.isOverflowing,c=e.parts,u=e.fauxIndentLength,h=e.tabSize,f=e.startVisibleColumn,g=e.containsRTL,m=e.spaceWidth,v=e.middotWidth,y=e.renderWhitespace,b=e.renderControlCharacters,_=m<v?11825:183,w=new d(s+1,c.length),C=0,S=f,O=0,x=0,E=0;t.appendASCIIString("<span>");for(var k=0,N=c.length;k<N;k++){E+=x;var D=c[k],L=D.endIndex,P=D.type,I=0!==y&&0<=P.indexOf("vs-whitespace");if(O=0,t.appendASCIIString('<span class="'),t.appendASCIIString(P),t.appendASCII(34),I){for(var T=0,M=C,j=S;M<L;M++){var R=a.charCodeAt(M);T+=A=0|(9===R?h-j%h:1),u<=M&&(j+=A)}for(n||"vs-whitespace"!==P&&r||(t.appendASCIIString(' style="display:inline-block;width:'),t.appendASCIIString(String(m*T)),t.appendASCIIString('px"')),t.appendASCII(62);C<L;C++){w.setPartData(C,k,O,E);var A=void 0;if(9===(R=a.charCodeAt(C))){A=h-S%h|0,!i||1<A?t.write1(8594):t.write1(65515);for(var F=2;F<=A;F++)t.write1(160)}else A=1,t.write1(_);O+=A,u<=C&&(S+=A)}x=T}else{for(T=0,g&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);C<L;C++){w.setPartData(C,k,O,E);var V=1;switch(A=1,R=a.charCodeAt(C)){case 9:for(A=V=h-S%h,F=1;F<=V;F++)t.write1(160);break;case 32:t.write1(160);break;case 60:t.appendASCIIString("<");break;case 62:t.appendASCIIString(">");break;case 38:t.appendASCIIString("&");break;case 0:t.appendASCIIString("�");break;case 65279:case 8232:t.write1(65533);break;default:o.y(R)&&A++,b&&R<32?t.write1(9216+R):t.write1(R)}O+=V,T+=V,u<=C&&(S+=A)}x=T}t.appendASCIIString("</span>")}return w.setPartData(s,c.length-1,O,E),l&&t.appendASCIIString("<span>…</span>"),t.appendASCIIString("</span>"),new p(w,g,r)}(function(e){var t,n,i=e.useMonospaceOptimizations,s=e.lineContent;n=-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<s.length?(t=!0,e.stopRenderingLineAfter):(t=!1,s.length);var l=function(e,t,n){var o=[],i=0;0<t&&(o[i++]=new a(t,""));for(var r=0,s=e.getCount();r<s;r++){var l=e.getEndOffset(r);if(!(l<=t)){var c=e.getClassName(r);if(n<=l){o[i++]=new a(n,c);break}o[i++]=new a(l,c)}}return o}(e.lineTokens,e.fauxIndentLength,n);(3===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine)&&(l=function(e,t,n,i,r,s,l,c,u,d){var h,p=[],f=0,g=0,m=i[g].type,v=i[g].endIndex,y=i.length,b=o.q(e);h=-1===b?b=t:o.D(e);for(var _=!1,w=0,C=u&&u[w],S=l%s,O=r;O<t;O++){var x=e.charCodeAt(O);C&&O>=C.endOffset&&(w++,C=u&&u[w]);var E=void 0;if(O<b||h<O)E=!0;else if(9===x)E=!0;else if(32===x)if(d)if(_)E=!0;else{var k=O+1<t?e.charCodeAt(O+1):0;E=32===k||9===k}else E=!0;else E=!1;E&&u&&(E=!!C&&C.startOffset<=O&&C.endOffset>O),_?(!E||!c&&s<=S)&&(p[f++]=new a(O,"vs-whitespace"),S%=s):(O===v||E&&r<O)&&(p[f++]=new a(O,m),S%=s),9===x?S=s:o.y(x)?S+=2:S++,_=E,O===v&&++g<y&&(m=i[g].type,v=i[g].endIndex)}var N=!1;if(_)if(n&&d){var D=0<t?e.charCodeAt(t-1):0,L=1<t?e.charCodeAt(t-2):0;32===D&&32!==L&&9!==L||(N=!0)}else N=!0;return p[f++]=new a(t,N?"vs-whitespace":m),p}(s,n,e.continuesWithWrappedLine,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,i,e.selectionsOnLine,1===e.renderWhitespace));var c=0;if(0<e.lineDecorations.length){for(var u=0,d=e.lineDecorations.length;u<d;u++){var h=e.lineDecorations[u];3===h.type||1===h.type?c|=1:2===h.type&&(c|=2)}l=function(e,t,n){n.sort(r.a.compare);for(var o=r.b.normalize(e,n),i=o.length,s=0,l=[],c=0,u=0,d=0,h=t.length;d<h;d++){for(var p=t[d],f=p.endIndex,g=p.type;s<i&&o[s].startOffset<f;){var m=o[s];if(m.startOffset>u&&(u=m.startOffset,l[c++]=new a(u,g)),!(m.endOffset+1<=f)){u=f,l[c++]=new a(u,g+" "+m.className);break}u=m.endOffset+1,l[c++]=new a(u,g+" "+m.className),s++}u<f&&(u=f,l[c++]=new a(u,g))}var v=t[t.length-1].endIndex;if(s<i&&o[s].startOffset===v){for(var y=[];s<i&&o[s].startOffset===v;)y.push(o[s].className),s++;l[c++]=new a(u,y.join(" "))}return l}(s,l,e.lineDecorations)}return e.containsRTL||(l=function(e,t,n){var o=0,i=[],r=0;if(n)for(var s=0,l=t.length;s<l;s++){var c=(f=t[s]).endIndex;if(o+50<c){for(var u=f.type,d=-1,h=o,p=o;p<c;p++)32===e.charCodeAt(p)&&(d=p),-1!==d&&50<=p-h&&(i[r++]=new a(d+1,u),h=d+1,d=-1);h!==c&&(i[r++]=new a(c,u))}else i[r++]=f;o=c}else for(s=0,l=t.length;s<l;s++){var f=t[s],g=(c=f.endIndex)-o;if(50<g){u=f.type;var m=Math.ceil(g/50);for(p=1;p<m;p++){var v=o+50*p;i[r++]=new a(v,u)}i[r++]=new a(c,u)}else i[r++]=f;o=c}return i}(s,l,!e.isBasicASCII||e.fontLigatures)),new v(i,e.canUseHalfwidthRightwardsArrow,s,n,t,l,c,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.middotWidth,e.renderWhitespace,e.renderControlCharacters)}(e),t);var n=0,i="<span><span>\xa0</span></span>";if(0<e.lineDecorations.length){for(var s=[],l=[],c=0,u=e.lineDecorations.length;c<u;c++){var h=e.lineDecorations[c];1===h.type&&(s.push(e.lineDecorations[c].className),n|=1),2===h.type&&(l.push(e.lineDecorations[c].className),n|=2)}0!==n&&(i="<span>"+(0<s.length?'<span class="'+s.join(" ")+'"></span>':"")+(0<l.length?'<span class="'+l.join(" ")+'"></span>':"")+"</span>")}return t.appendASCIIString(i),new p(new d(0,0),!1,n)}var g=function(e,t,n,o){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=o};function m(e){var t=Object(i.a)(1e4),n=f(e,t);return new g(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}var v=function(e,t,n,o,i,r,a,s,l,c,u,d,h,p,f){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=o,this.isOverflowing=i,this.parts=r,this.containsForeignElements=a,this.fauxIndentLength=s,this.tabSize=l,this.startVisibleColumn=c,this.containsRTL=u,this.spaceWidth=d,this.middotWidth=h,this.renderWhitespace=p,this.renderControlCharacters=f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o,i=n(444);o="undefined"!=typeof TextDecoder?function(e){return new r(e)}:function(){return new s};var r=(a.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},a.prototype.build=function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},a.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)},a.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e},a.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(0!=t&&!i.z(e)||this._flushBuffer()),this._buffer[this._bufferLength++]=e},a.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},a.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)},a);function a(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}var s=(l.prototype.reset=function(){this._pieces=[],this._piecesLen=0},l.prototype.build=function(){return this._pieces.join("")},l.prototype.write1=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},l.prototype.appendASCII=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},l.prototype.appendASCIIString=function(e){this._pieces[this._piecesLen++]=e},l);function l(){this._pieces=[],this._piecesLen=0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=(i.prototype.set=function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n},i.prototype.has=function(e){return this._entries.has(e)},i.prototype.get=function(e){return this._entries.get(e)},i);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var n=0,o=e;n<o.length;n++){var i=o[n],r=i[0],a=i[1];this.set(r,a)}}},function(e,t,n){"use strict";var o,i;function r(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),o=Math.min(e.end,t.end);return o-n<=0?{start:0,end:0}:{start:n,end:o}}function a(e){return e.end-e.start<=0}n.d(t,"a",(function(){return o})),(i=o=o||{}).intersect=r,i.isEmpty=a,i.intersects=function(e,t){return!a(r(e,t))},i.relativeComplement=function(e,t){var n=[],o={start:e.start,end:Math.min(t.start,e.end)},i={start:Math.max(t.end,e.start),end:e.end};return a(o)||n.push(o),a(i)||n.push(i),n}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return m}));var o=n(445),i=n(442),r=n(554),a=n(439),s=n(444),l=n(959),c=n(440),u=(Object.defineProperty(d.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e,this._rangeCallback(this)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"ariaMessage",{get:function(){return Object(o.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(r.b)(this.uri),this.range.startLineNumber,this.range.startColumn)},enumerable:!0,configurable:!0}),d);function d(e,t,n,o){this.isProviderFirst=e,this.parent=t,this._range=n,this._rangeCallback=o,this.id=l.b.nextId()}var h=(p.prototype.dispose=function(){this._modelReference.dispose()},p.prototype.preview=function(e,t){void 0===t&&(t=8);var n=this._modelReference.object.textEditorModel;if(n){var o=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,a=e.endColumn,s=n.getWordUntilPosition({lineNumber:o,column:i-t}),l=new c.a(o,s.startColumn,o,i),u=new c.a(r,a,r,1073741824),d=n.getValueInRange(l).replace(/^\s+/,""),h=n.getValueInRange(e);return{value:d+h+n.getValueInRange(u).replace(/\s+$/,""),highlight:{start:d.length,end:d.length+h.length}}}},p);function p(e){this._modelReference=e}var f=(g.prototype.dispose=function(){Object(a.f)(this._preview),this._preview=void 0},Object.defineProperty(g.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"ariaMessage",{get:function(){var e=this.children.length;return 1===e?Object(o.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(r.b)(this.uri),this.uri.fsPath):Object(o.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Object(r.b)(this.uri),this.uri.fsPath)},enumerable:!0,configurable:!0}),g.prototype.resolve=function(e){var t=this;return this._resolved?Promise.resolve(this):Promise.resolve(e.createModelReference(this.uri).then((function(e){if(!e.object)throw e.dispose(),new Error;return t._preview=new h(e),t._resolved=!0,t}),(function(e){return t.children.length=0,t._resolved=!0,t._loadFailure=e,t})))},g);function g(e,t){this.parent=e,this.uri=t,this.children=[]}var m=(v.prototype.dispose=function(){Object(a.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0},v.prototype.clone=function(){return new v(this._links,this._title)},Object.defineProperty(v.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isEmpty",{get:function(){return 0===this.groups.length},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"ariaMessage",{get:function(){return this.isEmpty?Object(o.a)("aria.result.0","No results found"):1===this.references.length?Object(o.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?Object(o.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(o.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)},enumerable:!0,configurable:!0}),v.prototype.nextOrPreviousReference=function(e,t){var n=e.parent,o=n.children.indexOf(e),i=n.children.length,r=n.parent.groups.length;return 1===r||t&&o+1<i||!t&&0<o?(o=t?(o+1)%i:(o+i-1)%i,n.children[o]):(o=n.parent.groups.indexOf(n),t?(o=(o+1)%r,n.parent.groups[o].children[0]):(o=(o+r-1)%r,n.parent.groups[o].children[n.parent.groups[o].children.length-1]))},v.prototype.nearestReference=function(e,t){var n=this.references.map((function(n,o){return{idx:o,prefixLen:s.c(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]},v.prototype.referenceAt=function(e,t){for(var n=0,o=this.references;n<o.length;n++){var i=o[n];if(i.uri.toString()===e.toString()&&c.a.containsPosition(i.range,t))return i}},v.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]},v._compareReferences=function(e,t){return s.e(e.uri.toString(),t.uri.toString())||c.a.compareRangesUsingStarts(e.range,t.range)},v);function v(e,t){var n=this;this._disposables=new a.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new i.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;var o,r=e[0];e.sort(v._compareReferences);for(var s=0,l=e;s<l.length;s++){var d=l[s];if(o&&o.uri.toString()===d.uri.toString()||(o=new f(this,d.uri),this.groups.push(o)),0===o.children.length||!c.a.equalsRange(d.range,o.children[o.children.length-1].range)){var h=new u(r===d,o,d.targetSelectionRange||d.range,(function(e){return n._onDidChangeReferenceRange.fire(e)}));this.references.push(h),o.children.push(h)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("label")},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var o=n(448),i=Object(o.c)("textResourceConfigurationService"),r=Object(o.c)("textResourcePropertiesService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return S})),n.d(t,"f",(function(){return E}));var o,i=n(453),r=n(505),a=n(446),s=n(449),l=n(454),c=n(450),u=n(456),d=n(484),h=n(440),p=n(760),f=n(439),g={Visible:new u.d("suggestWidgetVisible",!1),MultipleSuggestions:new u.d("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new u.d("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new u.d("acceptSuggestionOnEnter",!0)},m=function(e,t,n,o,i){var s=this;this.position=e,this.completion=t,this.container=n,this.provider=o,this.isResolved=!1,this.score=p.a.Default,this.distance=0,this.textLabel="string"==typeof t.label?t.label:t.label.name,this.labelLow=this.textLabel.toLowerCase(),this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),h.a.isIRange(t.range)?(this.editStart=new c.a(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new c.a(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new c.a(t.range.endLineNumber,t.range.endColumn)):(this.editStart=new c.a(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new c.a(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new c.a(t.range.replace.endLineNumber,t.range.replace.endColumn));var l,u=o.resolveCompletionItem;"function"!=typeof u?(this.resolve=function(){return Promise.resolve()},this.isResolved=!0):this.resolve=function(n){return l||(l=Promise.resolve(u.call(o,i,e,t,n)).then((function(e){Object(r.a)(t,e),s.isResolved=!0}),(function(e){Object(a.d)(e)&&(l=void 0)})),n.onCancellationRequested((function(){s.isResolved||(l=void 0)}))),l}},v=(y.default=new y,y);function y(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}function b(){return o}function _(e,t,n,r,s){void 0===n&&(n=v.default),void 0===r&&(r={triggerKind:0}),void 0===s&&(s=d.a.None);var c=e.getWordAtPosition(t),u=c?new h.a(t.lineNumber,c.startColumn,t.lineNumber,c.endColumn):h.a.fromPositions(t),p=u.setEndPosition(t.lineNumber,t.column);t=t.clone();var g=l.d.orderedGroups(e);n.kindFilter.has(25);var y=[],b=new f.b,_=!1,w=g.map((function(i){return function(){return Promise.all(i.map((function(i){if(!(0<n.providerFilter.size)||n.providerFilter.has(i))return Promise.resolve(i.provideCompletionItems(e,t,r,s)).then((function(r){var a=y.length;if(r){for(var s=0,l=r.suggestions||[];s<l.length;s++){var c=l[s];n.kindFilter.has(c.kind)||(c.range||(c.range={insert:p,replace:u}),c.sortText||(c.sortText="string"==typeof c.label?c.label:c.label.name),y.push(new m(t,c,r,i,e)))}Object(f.g)(r)&&b.add(r)}a!==y.length&&i!==o&&(_=!0)}),a.f)})))}}));return Object(i.h)(w,(function(){return _||s.isCancellationRequested})).then((function(){return s.isCancellationRequested?(b.dispose(),Promise.reject(Object(a.a)())):y.sort(S(n.snippetSortOrder))}))}function w(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}var C=new Map;function S(e){return C.get(e)}C.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return-1;if(25===t.completion.kind)return 1}return w(e,t)})),C.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return 1;if(25===t.completion.kind)return-1}return w(e,t)})),C.set(1,w),Object(s.e)("_executeCompletionItemProvider",(function(e,t,n){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var o,i,r,a,s,l,c,u;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(h){switch(h.label){case 0:return o={incomplete:!1,suggestions:[]},i=new f.b,r=[],a=n.maxItemsToResolve||0,[4,_(e,t)];case 1:for(s=h.sent(),l=0,c=s;l<c.length;l++)u=c[l],r.length<a&&r.push(u.resolve(d.a.None)),o.incomplete=o.incomplete||u.container.incomplete,o.suggestions.push(u.completion),Object(f.g)(u.container)&&i.add(u.container);h.label=2;case 2:return h.trys.push([2,,4,5]),[4,Promise.all(r)];case 3:return h.sent(),[2,o];case 4:return setTimeout((function(){return i.dispose()}),100),[7];case 5:return[2]}}))}))}));var O=(x.prototype.provideCompletionItems=function(){var e={suggestions:this.onlyOnceSuggestions.slice(0)};return this.onlyOnceSuggestions.length=0,e},new x);function x(){this.onlyOnceSuggestions=[]}function E(e,t){setTimeout((function(){var n;(n=O.onlyOnceSuggestions).push.apply(n,t),e.getContribution("editor.contrib.suggestController").triggerSuggest((new Set).add(O))}),0)}l.d.register("*",O)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d}));var o=n(445),i=n(442),r=n(454),a=n(575),s=n(571);function l(){this._onDidChangeLanguages=new i.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}var c=new(l.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidChangeLanguages.fire(void 0)},l.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},l);s.a.add("editor.modesRegistry",c);var u="plaintext",d=new r.r(u,1);c.registerLanguage({id:u,extensions:[".txt",".gitignore"],aliases:[o.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),a.a.register(d,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(0),i=n(167),r=n(77),a=n(27);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},f=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=u(this,d(e).apply(this,arguments))).saveTooltip=function(e){t.tooltip=e},t.renderPopover=function(e){var n=e.getPrefixCls,r=t.props,a=r.prefixCls,s=p(r,["prefixCls"]);delete s.title;var c=n("popover",a);return o.createElement(i.a,l({},s,{prefixCls:c,ref:t.saveTooltip,overlay:t.getOverlay(c)}))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(e,o.Component),t=e,(n=[{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"getOverlay",value:function(e){var t=this.props,n=t.title,i=t.content;return Object(a.a)(!("overlay"in this.props),"Popover","`overlay` is removed, please use `content` instead, see: https://u.ant.design/popover-content"),o.createElement("div",null,n&&o.createElement("div",{className:"".concat(e,"-title")},n),o.createElement("div",{className:"".concat(e,"-inner-content")},i))}},{key:"render",value:function(){return o.createElement(r.a,null,this.renderPopover)}}])&&c(t.prototype,n),e}();f.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}}},,,,,,,,,,,,,function(e,t,n){"use strict";var o,i=n(443),r=n(943),a=n(446),s=n(795),l=n(959);(function(e){var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:m,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:m,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:m,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||w.defaults,this.rules=t.normal,this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,t.def=h(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d{1,9}\.)/,t.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,t.item=h(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=h(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",t._comment=/<!--(?!-?>)[\s\S]*?-->/,t.html=h(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t.paragraph=h(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag",t._tag).getRegex(),t.blockquote=h(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=v({},t),t.gfm=v({},t.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=h(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=v({},t.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=v({},t.normal,{html:h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\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){return new n(t).lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,n){var o,i,r,a,s,l,c,u,d,h,p,f,g,m,v,_;for(e=e.replace(/^ +$/gm,"");e;)if((r=this.rules.newline.exec(e))&&(e=e.substring(r[0].length),1<r[0].length&&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:b(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))&&(l={type:"table",header:y(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(r[0].length),p=0;p<l.align.length;p++)/^ *-+: *$/.test(l.align[p])?l.align[p]="right":/^ *:-+: *$/.test(l.align[p])?l.align[p]="center":/^ *:-+ *$/.test(l.align[p])?l.align[p]="left":l.align[p]=null;for(p=0;p<l.cells.length;p++)l.cells[p]=y(l.cells[p],l.header.length);this.tokens.push(l)}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),c={type:"list_start",ordered:m=1<(a=r[2]).length,start:m?+a:"",loose:!1},this.tokens.push(c),o=!(u=[]),g=(r=r[0].match(this.rules.item)).length,p=0;p<g;p++)h=(l=r[p]).length,~(l=l.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(h-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+h+"}","gm"),"")),p!==g-1&&(s=t.bullet.exec(r[p+1])[0],(1<a.length?1===s.length:1<s.length||this.options.smartLists&&s!==a)&&(e=r.slice(p+1).join("\n")+e,p=g-1)),i=o||/\n\n(?!\s*$)/.test(l),p!==g-1&&(o="\n"===l.charAt(l.length-1),i=i||o),i&&(c.loose=!0),_=void 0,(v=/^\[[ xX]\] /.test(l))&&(_=" "!==l[1],l=l.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:v,checked:_,loose:i},u.push(d),this.tokens.push(d),this.token(l,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(g=u.length,p=0;p<g;p++)u[p].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)),f=r[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[f]||(this.tokens.links[f]={href:r[2],title:r[3]});else if((r=this.rules.table.exec(e))&&(l={type:"table",header:y(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(r[0].length),p=0;p<l.align.length;p++)/^ *-+: *$/.test(l.align[p])?l.align[p]="right":/^ *:-+: *$/.test(l.align[p])?l.align[p]="center":/^ *:-+ *$/.test(l.align[p])?l.align[p]="left":l.align[p]=null;for(p=0;p<l.cells.length;p++)l.cells[p]=y(l.cells[p].replace(/^ *\| *| *\| *$/g,""),l.header.length);this.tokens.push(l)}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:m,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:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function r(e,t){if(this.options=t||w.defaults,this.links=e,this.rules=i.normal,this.renderer=this.options.renderer||new a,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 a(e){this.options=e||w.defaults}function s(){}function l(e){this.tokens=[],this.token=null,this.options=e||w.defaults,this.options.renderer=this.options.renderer||new a,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new c}function c(){this.seen={}}function u(e,t){if(t){if(u.escapeTest.test(e))return e.replace(u.escapeReplace,(function(e){return u.replacements[e]}))}else if(u.escapeTestNoEncode.test(e))return e.replace(u.escapeReplaceNoEncode,(function(e){return u.replacements[e]}));return e}function d(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function h(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function p(e,t,n){if(e){try{var o=decodeURIComponent(d(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===o.indexOf("javascript:")||0===o.indexOf("vbscript:")||0===o.indexOf("data:"))return null}t&&!g.test(n)&&(n=function(e,t){return f[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?f[" "+e]=e+"/":f[" "+e]=b(e,"/",!0)),e=f[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}i._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",i.em=h(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=h(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=h(i.tag).replace("comment",t._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,i._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=h(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=h(i.reflink).replace("label",i._label).getRegex(),i.normal=v({},i),i.pedantic=v({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=v({},i.normal,{escape:h(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=h(i.gfm.url,"i").replace("email",i.gfm._extended_email).getRegex(),i.breaks=v({},i.gfm,{br:h(i.br).replace("{2,}","*").getRegex(),text:h(i.gfm.text).replace(/\{2,\}/g,"*").getRegex()}),r.rules=i,r.output=function(e,t,n){return new r(t,n).output(e)},r.prototype.output=function(e){for(var t,n,o,i,a,s,l="";e;)if(a=this.rules.escape.exec(e))e=e.substring(a[0].length),l+=u(a[1]);else if(a=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(a[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):u(a[0]):a[0];else if(a=this.rules.link.exec(e)){var c=_(a[2],"()");if(-1<c){var d=a[0].length-(a[2].length-c)-(a[3]||"").length;a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,d).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,o=a[2],i=this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o))?(o=t[1],t[3]):"":a[3]?a[3].slice(1,-1):"",o=o.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(a,{href:r.escapes(o),title:r.escapes(i)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),l+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),l+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),l+=this.renderer.codespan(u(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),l+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),l+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),o="@"===a[2]?"mailto:"+(n=u(this.mangle(a[1]))):n=u(a[1]),l+=this.renderer.link(o,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?l+=this.renderer.text(a[0]):l+=this.renderer.text(u(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])o="mailto:"+(n=u(a[0]));else{for(;s=a[0],a[0]=this.rules._backpedal.exec(a[0])[0],s!==a[0];);n=u(a[0]),o="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),l+=this.renderer.link(o,null,n)}return l},r.escapes=function(e){return e?e.replace(r.rules._escapes,"$1"):e},r.prototype.outputLink=function(e,t){var n=t.href,o=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,o,this.output(e[1])):this.renderer.image(n,o,u(e[1]))},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",o=e.length,i=0;i<o;i++)t=e.charCodeAt(i),.5<Math.random()&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){var o=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,o);null!=i&&i!==e&&(n=!0,e=i)}return o?'<pre><code class="'+this.options.langPrefix+u(o,!0)+'">'+(n?e:u(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:u(e,!0))+"</code></pre>"},a.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,o){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+o.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},a.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},a.prototype.list=function(e,t,n){var o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+o+">\n"},a.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},a.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},a.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},a.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n"+(t=t&&"<tbody>"+t+"</tbody>")+"</table>\n"},a.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},a.prototype.strong=function(e){return"<strong>"+e+"</strong>"},a.prototype.em=function(e){return"<em>"+e+"</em>"},a.prototype.codespan=function(e){return"<code>"+e+"</code>"},a.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},a.prototype.del=function(e){return"<del>"+e+"</del>"},a.prototype.link=function(e,t,n){if(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;var o='<a href="'+u(e)+'"';return t&&(o+=' title="'+t+'"'),o+">"+n+"</a>"},a.prototype.image=function(e,t,n){if(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;var o='<img src="'+e+'" alt="'+n+'"';return t&&(o+=' title="'+t+'"'),o+(this.options.xhtml?"/>":">")},a.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""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new r(e.links,this.options),this.inlineText=new r(e.links,v({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop()},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,o,i="",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(i+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",o=0;o<t.length;o++)n+=this.renderer.tablecell(this.inline.output(t[o]),{header:!1,align:this.token.align[o]});r+=this.renderer.tablerow(n)}return this.renderer.table(i,r);case"blockquote_start":for(r="";"blockquote_end"!==this.next().type;)r+=this.tok();return this.renderer.blockquote(r);case"list_start":r="";for(var a=this.token.ordered,s=this.token.start;"list_end"!==this.next().type;)r+=this.tok();return this.renderer.list(r,a,s);case"list_item_start":r="";var l=this.token.loose,c=this.token.checked,u=this.token.task;for(this.token.task&&(r+=this.renderer.checkbox(c));"list_item_end"!==this.next().type;)r+=l||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(r,u,c);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)}},c.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t))for(var n=t;this.seen[n]++,t=n+"-"+this.seen[n],this.seen.hasOwnProperty(t););return this.seen[t]=0,t},u.escapeTest=/[&<>"']/,u.escapeReplace=/[&<>"']/g,u.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},u.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,u.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var f={},g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function v(e){for(var t,n,o=1;o<arguments.length;o++)for(n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function y(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var o=!1,i=t;0<=--i&&"\\"===n[i];)o=!o;return o?"|":" |"})).split(/ \|/),o=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function b(e,t,n){if(0===e.length)return"";for(var o=0;o<e.length;){var i=e.charAt(e.length-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.substr(0,e.length-o)}function _(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,o=0;o<e.length;o++)if("\\"===e[o])o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&--n<0)return o;return-1}function w(e,t,o){if(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(o||"function"==typeof t){o||(o=t,t=null);var i,r,a=(t=v({},w.defaults,t||{})).highlight,s=0;try{i=n.lex(e,t)}catch(e){return o(e)}r=i.length;var c=function(e){if(e)return t.highlight=a,o(e);var n;try{n=l.parse(i,t)}catch(n){e=n}return t.highlight=a,e?o(e):o(null,n)};if(!a||a.length<3)return c();if(delete t.highlight,!r)return c();for(;s<i.length;s++)!function(e){"code"!==e.type?--r||c():a(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()))}))}(i[s])}else try{return t=t&&v({},w.defaults,t),l.parse(n.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||w.defaults).silent)return"<p>An error occurred:</p><pre>"+u(e.message+"",!0)+"</pre>";throw e}}m.exec=m,w.options=w.setOptions=function(e){return v(w.defaults,e),w},w.defaults=(w.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}})(),w.Parser=l,w.parser=l.parse,w.Renderer=a,w.TextRenderer=s,w.Lexer=n,w.lexer=n.lex,w.InlineLexer=r,w.inlineLexer=r.output,w.Slugger=c,o=w.parse=w}).call(void 0),o.Parser,o.parser;var c,u=o.Renderer,d=(o.TextRenderer,o.Lexer,o.lexer,o.InlineLexer,o.inlineLexer,o.parse);!function e(t,n,o){function i(a,s){if(!n[a]){if(!t[a]){if(r)return r(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,o)}return n[a].exports}for(var r=!1,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(e,t,n){var o=e("./toMap");t.exports={uris:o(["background","base","cite","href","longdesc","src","usemap"])}},{"./toMap":10}],2:[function(e,t,n){t.exports={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}},{}],3:[function(e,t,n){var o=e("./toMap");t.exports={voids:o(["area","br","col","hr","img","wbr","input","base","basefont","link","meta"])}},{"./toMap":10}],4:[function(e,t,n){e("he");var o=e("assignment"),i=e("./parser"),r=e("./sanitizer"),a=e("./defaults");function s(e,t,n){var s=[],l=!0===n?t:o({},a,t),c=r(s,l);return i(e,c),s.join("")}s.defaults=a,t.exports=s,c=s},{"./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){t.exports=function e(t){for(var n,o,i=Array.prototype.slice.call(arguments,1);i.length;)for(o in n=i.shift())n.hasOwnProperty(o)&&("[object Object]"===Object.prototype.toString.call(t[o])?t[o]=e(t[o],n[o]):t[o]=n[o]);return t}},{}],7:[function(e,t,n){var o=e("he"),i=e("./lowercase"),r=(e("./attributes"),e("./elements")),a=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,s=/^<\s*\/\s*([\w:-]+)[^>]*>/,l=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,c=/^</,u=/^<\s*\//;t.exports=function(e,t){for(var n,d,h=((n=[]).lastItem=function(){return n[n.length-1]},n),p=e;e;)f();function f(){d=!0,"\x3c!--"===e.substr(0,4)?function(){var n=e.indexOf("--\x3e");0<=n&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),d=!1)}():u.test(e)?g(s,v):c.test(e)&&g(a,m),function(){if(d){var n,o=e.indexOf("<");e=0<=o?(n=e.substring(0,o),e.substring(o)):(n=e,""),t.chars&&t.chars(n)}}();var n=e===p;p=e,n&&(e="")}function g(t,n){var o=e.match(t);o&&(e=e.substring(o[0].length),o[0].replace(t,n),d=!1)}function m(e,n,a,s){var c={},u=i(n),d=r.voids[u]||!!s;a.replace(l,(function(e,t,n,i,r){c[t]=void 0===n&&void 0===i&&void 0===r?void 0:o.decode(n||i||r||"")})),d||h.push(u),t.start&&t.start(u,c,d)}function v(e,n){var o,r=0,a=i(n);if(a)for(r=h.length-1;0<=r&&h[r]!==a;r--);if(0<=r){for(o=h.length-1;r<=o;o--)t.end&&t.end(h[o]);h.length=r}}v()}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(e,t,n){var o=e("he"),i=e("./lowercase"),r=e("./attributes"),a=e("./elements");t.exports=function(e,t){var n,s=t||{};return u(),{start:function(e,t,a){var u=i(e);n.ignoring?c(u):-1!==(s.allowedTags||[]).indexOf(u)&&(!s.filter||s.filter({tag:u,attrs:t}))?(l("<"),l(u),Object.keys(t).forEach((function(e){var n=t[e],a=(s.allowedClasses||{})[u]||[],c=(s.allowedAttributes||{})[u]||[];c=c.concat((s.allowedAttributes||{})["*"]||[]);var d=i(e);("class"===d&&-1===c.indexOf(d)?(n=n.split(" ").filter((function(e){return a&&-1!==a.indexOf(e)})).join(" ").trim()).length:-1!==c.indexOf(d)&&(!0!==r.uris[d]||function(e){var t=e[0];if("#"===t||"/"===t)return!0;var n=e.indexOf(":");if(-1===n)return!0;var o=e.indexOf("?");if(-1!==o&&o<n)return!0;var i=e.indexOf("#");return-1!==i&&i<n||s.allowedSchemes.some((function(t){return 0===e.indexOf(t+":")}))}(n)))&&(l(" "),l(e),"string"==typeof n&&(l('="'),l(o.encode(n)),l('"')))})),l(a?"/>":">")):c(u)},end:function(e){var t=i(e);-1!==(s.allowedTags||[]).indexOf(t)&&!1===n.ignoring?(l("</"),l(t),l(">")):function(e){n.ignoring===e&&--n.depth<=0&&u()}(t)},chars:function(e){!1===n.ignoring&&l(s.transformText?s.transformText(e):e)}};function l(t){e.push(t)}function c(e){a.voids[e]||(!1===n.ignoring?n={ignoring:e,depth:1}:n.ignoring===e&&n.depth++)}function u(){n={ignoring:!1,depth:0}}}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(e,t,n){var o={"&":"&","<":"<",">":">",'"':""","'":"'"},i={"&":"&","<":"<",">":">",""":'"',"'":"'"},r=/(&|<|>|"|')/g,a=/[&<>"']/g;function s(e){return o[e]}function l(e){return i[e]}function c(e){return null==e?"":String(e).replace(a,s)}function u(e){return null==e?"":String(e).replace(r,l)}c.options=u.options={},t.exports={encode:c,escape:c,decode:u,unescape:u,version:"1.0.0-browser"}},{}],10:[function(e,t,n){function o(e,t){return e[t]=!0,e}t.exports=function(e){return e.reduce(o,{})}},{}]},{},[4]);var h=c,p=n(1095),f=n(505),g=n(444),m=n(479),v=n(596),y=n(890);function b(e,t){function n(t,n){var o=e.uris&&e.uris[t];if(!o)return t;var r=m.a.revive(o);return m.a.parse(t).toString()===r.toString()?t:(n&&(r=i.s(r)),r.query&&(r=r.with({query:function(t){var n;try{n=Object(p.a)(decodeURIComponent(t))}catch(t){}return n?(n=Object(f.b)(n,(function(t){return e.uris&&e.uris[t]?m.a.revive(e.uris[t]):void 0})),encodeURIComponent(JSON.stringify(n))):t}(r.query)})),r.toString(!0))}void 0===t&&(t={});var o,c=Object(r.a)(t),b=new Promise((function(e){return o=e})),_=new u;_.image=function(e,t,o){var i,r=[],a=[];return e&&(e=(i=Object(s.d)(e)).href,r=i.dimensions,e=n(e,!0),a.push('src="'+e+'"')),o&&a.push('alt="'+o+'"'),t&&a.push('title="'+t+'"'),r.length&&(a=a.concat(r)),"<img "+a.join(" ")+">"},_.link=function(t,o,i){return t===i&&(i=Object(s.e)(i)),t=n(t,!1),o=Object(s.e)(o),!(t=Object(s.e)(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?i:'<a href="#" data-href="'+(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))+'" title="'+(o||t)+'">'+i+"</a>"},_.paragraph=function(t){return"<p>"+(e.supportThemeIcons?Object(y.c)(t):t)+"</p>"},t.codeBlockRenderer&&(_.code=function(e,n){var o=t.codeBlockRenderer(n,e),i=l.b.nextId(),r=Promise.all([o,b]).then((function(e){var t=e[0],n=c.querySelector('div[data-code="'+i+'"]');n&&(n.innerHTML=t)})).catch((function(e){}));return t.codeBlockRenderCallback&&r.then(t.codeBlockRenderCallback),'<div class="code" data-code="'+i+'">'+Object(g.o)(e)+"</div>"});var w=t.actionHandler;w&&w.disposeables.add(i.o(c,"click",(function(e){var t=e.target;if("A"===t.tagName||(t=t.parentElement)&&"A"===t.tagName)try{var n=t.dataset.href;n&&w.callback(n,e)}catch(e){Object(a.e)(e)}finally{e.preventDefault()}})));var C={sanitize:!0,renderer:_},S=[v.b.http,v.b.https,v.b.mailto,v.b.data,v.b.file,v.b.vscodeRemote,v.b.vscodeRemoteResource];e.isTrusted&&S.push(v.b.command);var O=d(e.supportThemeIcons?Object(y.b)(e.value):e.value,C);return c.innerHTML=h(O,{allowedSchemes:S,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),o(),c}var _=n(636),w=n(778),C=n(1090),S=n(448),O=n(442),x=n(439),E=n(454);n.d(t,"a",(function(){return L}));var k,N,D=function(e,t){return function(n,o){t(n,o,e)}},L=((k=function(e,t){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(P,N=x.a),P.prototype.getOptions=function(e){var t=this;return{codeBlockRenderer:function(e,n){var o=null;if(e)o=t._modeService.getModeIdForLanguageName(e);else{var i=t._editor.getModel();i&&(o=i.getLanguageIdentifier().language)}return t._modeService.triggerMode(o||""),Promise.resolve(!0).then((function(e){var t=E.B.getPromise(o||"");return t?t.then((function(e){return Object(C.b)(n,e)})):Object(C.b)(n,void 0)})).then((function(e){return'<span style="font-family: '+t._editor.getOption(34).fontFamily+'">'+e+"</span>"}))},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){t._openerService.open(e,{fromUserGesture:!0}).catch(a.e)},disposeables:e}}},P.prototype.render=function(e){var t=new x.b;return{element:e?b(e,this.getOptions(t)):document.createElement("span"),dispose:function(){return t.dispose()}}},P=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([D(1,w.a),D(2,Object(S.d)(_.a))],P));function P(e,t,n){void 0===n&&(n=_.b);var o=N.call(this)||this;return o._editor=e,o._modeService=t,o._openerService=n,o._onDidRenderCodeBlock=o._register(new O.a),o.onDidRenderCodeBlock=o._onDidRenderCodeBlock.event,o}},function(e,t,n){"use strict";n(1336);var o=n(443),i=n(772),r=n(703),a=n(490),s=n(442),l=n(505),c=n(444),u=n(504),d=n(957),h=(n(1353),n(891)),p=n(959),f=n(439),g=n(440),m=n(495),v=new a.a(new a.c(0,122,204)),y={showArrow:!0,showFrame:!0,className:"",frameColor:v,arrowColor:v,keepEditorSelection:!1},b=(_.prototype.onDomNodeTop=function(e){this._onDomNodeTop(e)},_.prototype.onComputedHeight=function(e){this._onComputedHeight(e)},_);function _(e,t,n,o,i,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=o,this._onDomNodeTop=i,this._onComputedHeight=r}var w=(C.prototype.getId=function(){return this._id},C.prototype.getDomNode=function(){return this._domNode},C.prototype.getPosition=function(){return null},C);function C(e,t){this._id=e,this._domNode=t}var S=(O.prototype.dispose=function(){this.hide(),o.O(this._ruleName)},Object.defineProperty(O.prototype,"color",{set:function(e){this._color!==e&&(this._color=e,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"height",{set:function(e){this._height!==e&&(this._height=e,this._updateStyle())},enumerable:!0,configurable:!0}),O.prototype._updateStyle=function(){o.O(this._ruleName),o.v(".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; ")},O.prototype.show=function(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:g.a.fromPositions(e),options:{className:this._ruleName,stickiness:1}}])},O.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},O._IdGenerator=new p.a(".arrow-decoration-"),O);function O(e){this._editor=e,this._ruleName=O._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}var x=(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(){o.f(this.domNode,"zone-widget"),this.options.className&&o.f(this.domNode,this.options.className),this.container=document.createElement("div"),o.f(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new S(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 0<e.minimapWidth&&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=g.a.isIRange(e)?g.a.lift(e):g.a.fromPositions(e);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:m.a.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(49),t=0;return this.options.showArrow&&(t+=2*Math.round(e/3)),this.options.showFrame&&(t+=2*Math.round(e/9)),t},E.prototype._showImpl=function(e,t){var n=this,o=e.getStartPosition(),i=this.editor.getLayoutInfo(),r=this._getWidth(i);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(i)+"px";var a=document.createElement("div");a.style.overflow="hidden";var s=this.editor.getOption(49),l=this.editor.getLayoutInfo().height/s*.8;l<=t&&(t=l);var c=0,u=0;if(this._arrow&&this.options.showArrow&&(c=Math.round(s/3),this._arrow.height=c,this._arrow.show(o)),this.options.showFrame&&(u=Math.round(s/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 b(a,o.lineNumber,o.column,t,(function(e){return n._onViewZoneTop(e)}),(function(e){return n._onViewZoneHeight(e)})),n._viewZone.id=e.addZone(n._viewZone),n._overlayWidget=new w("vs.editor.contrib.zoneWidget"+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)})),this.container&&this.options.showFrame){var d=this.options.frameWidth?this.options.frameWidth:u;this.container.style.borderTopWidth=d+"px",this.container.style.borderBottomWidth=d+"px"}var h=t*s-this._decoratingElementsHeight();this.container&&(this.container.style.top=c+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,r),this.options.keepEditorSelection||this.editor.setSelection(e);var p=this.editor.getModel();if(p){var f=e.endLineNumber+1;f<=p.getLineCount()?this.revealLine(f,!1):this.revealLine(p.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),o.f(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 h.a(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 o=(n.currentY-e.startY)/t.editor.getOption(49),i=o<0?Math.ceil(o):Math.floor(o),r=e.heightInLines+i;5<r&&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);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 f.b,this.container=null,this._isShowing=!1,this.editor=e,this.options=l.c(t),l.g(this.options,y,!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)})))}var k=n(445),N=n(456),D=n(448),L=n(792),P=n(449),I=n(461);n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return M})),n.d(t,"d",(function(){return B})),n.d(t,"c",(function(){return K})),n.d(t,"p",(function(){return q})),n.d(t,"q",(function(){return G})),n.d(t,"r",(function(){return Y})),n.d(t,"e",(function(){return Z})),n.d(t,"j",(function(){return $})),n.d(t,"l",(function(){return X})),n.d(t,"k",(function(){return J})),n.d(t,"n",(function(){return Q})),n.d(t,"o",(function(){return ee})),n.d(t,"f",(function(){return te})),n.d(t,"g",(function(){return ne})),n.d(t,"m",(function(){return oe})),n.d(t,"h",(function(){return ie})),n.d(t,"i",(function(){return re}));var T,M,j,R=(T=function(e,t){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),A=Object(D.c)("IPeekViewService");function F(){this._widgets=new Map}Object(L.b)(A,(F.prototype.addExclusiveWidget=function(e,t){var n=this,o=this._widgets.get(e);o&&(o.listener.dispose(),o.widget.dispose()),this._widgets.set(e,{widget:t,listener:t.onDidClose((function(){var o=n._widgets.get(e);o&&o.widget===t&&(o.listener.dispose(),n._widgets.delete(e))}))})},F)),(j=M=M||{}).inPeekEditor=new N.d("inReferenceSearchEditor",!0),j.notInPeekEditor=j.inPeekEditor.toNegated();var V=(W.prototype.dispose=function(){},W.ID="editor.contrib.referenceController",W=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(1,N.c)],W));function W(e,t){e instanceof d.a&&M.inPeekEditor.bindTo(t)}function B(e){var t=e.get(u.a).getFocusedCodeEditor();return t instanceof d.a?t.getParentEditor():t}Object(P.h)(V.ID,V);var H,z={headerBackgroundColor:a.a.white,primaryHeadingColor:a.a.fromHex("#333333"),secondaryHeadingColor:a.a.fromHex("#6c6c6cb3")},K=(R(U,H=x),U.prototype.dispose=function(){H.prototype.dispose.call(this),this._onDidClose.fire(this)},U.prototype.style=function(e){var t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),H.prototype.style.call(this,e)},U.prototype._applyStyles=function(){H.prototype._applyStyles.call(this);var e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())},U.prototype._fillContainer=function(e){this.setCssClass("peekview-widget"),this._headElement=o.a(".head"),this._bodyElement=o.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)},U.prototype._fillHead=function(e){var t=this,n=o.a(".peekview-title");o.q(this._headElement,n),o.o(n,"click",(function(e){return t._onTitleClick(e)})),this._fillTitleIcon(n),this._primaryHeading=o.a("span.filename"),this._secondaryHeading=o.a("span.dirname"),this._metaHeading=o.a("span.meta"),o.q(n,this._primaryHeading,this._secondaryHeading,this._metaHeading);var a=o.a(".peekview-actions");o.q(this._headElement,a);var s=this._getActionBarOptions();this._actionbarWidget=new i.a(a,s),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new r.a("peekview.close",k.a("label.close","Close"),"codicon-close",!0,(function(){return t.dispose(),Promise.resolve()})),{label:!1,icon:!0})},U.prototype._fillTitleIcon=function(e){},U.prototype._getActionBarOptions=function(){return{}},U.prototype._onTitleClick=function(e){},U.prototype.setTitle=function(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=c.o(e),this._primaryHeading.setAttribute("aria-label",e),t?this._secondaryHeading.innerHTML=c.o(t):o.t(this._secondaryHeading))},U.prototype.setMetaTitle=function(e){this._metaHeading&&(e?(this._metaHeading.innerHTML=c.o(e),o.X(this._metaHeading)):o.J(this._metaHeading))},U.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{var n=Math.ceil(1.2*this.editor.getOption(49)),o=Math.round(e-(n+2));this._doLayoutHead(n,t),this._doLayoutBody(o,t)}},U.prototype._doLayoutHead=function(e,t){this._headElement&&(this._headElement.style.height=e+"px",this._headElement.style.lineHeight=this._headElement.style.height)},U.prototype._doLayoutBody=function(e,t){this._bodyElement&&(this._bodyElement.style.height=e+"px")},U);function U(e,t){void 0===t&&(t={});var n=H.call(this,e,t)||this;return n._onDidClose=new s.a,n.onDidClose=n._onDidClose.event,l.g(n.options,z,!1),n}var q=Object(I.Tb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},k.a("peekViewTitleBackground","Background color of the peek view title area.")),G=Object(I.Tb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},k.a("peekViewTitleForeground","Color of the peek view title.")),Y=Object(I.Tb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},k.a("peekViewTitleInfoForeground","Color of the peek view title info.")),Z=Object(I.Tb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:I.e},k.a("peekViewBorder","Color of the peek view borders and arrow.")),$=Object(I.Tb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:a.a.black},k.a("peekViewResultsBackground","Background color of the peek view result list.")),X=Object(I.Tb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:a.a.white},k.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),J=Object(I.Tb)("peekViewResult.fileForeground",{dark:a.a.white,light:"#1E1E1E",hc:a.a.white},k.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Q=Object(I.Tb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},k.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),ee=Object(I.Tb)("peekViewResult.selectionForeground",{dark:a.a.white,light:"#6C6C6C",hc:a.a.white},k.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),te=Object(I.Tb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:a.a.black},k.a("peekViewEditorBackground","Background color of the peek view editor.")),ne=Object(I.Tb)("peekViewEditorGutter.background",{dark:te,light:te,hc:te},k.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),oe=Object(I.Tb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},k.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),ie=Object(I.Tb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},k.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),re=Object(I.Tb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:I.b},k.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},,,,,,,,,,function(e,t,n){"use strict";n.r(t);var o=n(439),i=n(444),r=n(449),a=n(440),s=n(466),l=n(469),c=n(900),u=n(456),d=n(828),h=n(459),p=(n(1379),n(704)),f=n(495),g=n(955),m=n(963),v=n(448),y=n(964),b=n(445),_=n(791),w=n(554),C=n(575),S=n(479),O="code-workspace";function x(e){return e instanceof S.a}var E=n(956),k=(N.prototype.resolve=function(e){for(var t=0,n=this._delegates;t<n.length;t++){var o=n[t].resolve(e);if(void 0!==o)return o}},N);function N(e){this._delegates=e}var D=(L.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 o=this._model.getLineContent(this._selection.startLineNumber),r=Object(i.t)(o,0,this._selection.startColumn-1),a=r;e.snippet.walk((function(t){return t!==e&&(t instanceof y.d&&(a=Object(i.t)(t.value.split(/\r\n|\r|\n/).pop())),!0)}));var s=Object(i.c)(a,r);n=n.replace(/(\r\n|\r|\n)(.*)/g,(function(e,t,n){return""+t+a.substr(s)+n}))}return n}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"!==t)return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):void 0;var l=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return l&&l.word||void 0},L);function L(e,t){this._model=e,this._selection=t}var P=(I.prototype.resolve=function(e){var t=e.name;if("TM_FILENAME"===t)return _.basename(this._model.uri.fsPath);if("TM_FILENAME_BASE"!==t)return"TM_DIRECTORY"===t&&this._labelService?"."===_.dirname(this._model.uri.fsPath)?"":this._labelService.getUriLabel(Object(w.d)(this._model.uri)):"TM_FILEPATH"===t&&this._labelService?this._labelService.getUriLabel(this._model.uri):void 0;var n=_.basename(this._model.uri.fsPath),o=n.lastIndexOf(".");return o<=0?n:n.slice(0,o)},I);function I(e,t){this._labelService=e,this._model=t}var T=(M.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!Object(i.x)(e)}));if(n.length===this._selectionCount)return n[this._selectionIdx]}return t}}},M);function M(e,t,n,o){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=n,this._spread=o}var j=(R.prototype.resolve=function(e){var t=e.name,n=this._model.getLanguageIdentifier(),o=C.a.getComments(n.id);if(o)return"LINE_COMMENT"===t?o.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?o.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&o.blockCommentEndToken||void 0},R);function R(e){this._model=e}var A=(F.prototype.resolve=function(e){var t=e.name;return"CURRENT_YEAR"===t?String((new Date).getFullYear()):"CURRENT_YEAR_SHORT"===t?String((new Date).getFullYear()).slice(-2):"CURRENT_MONTH"===t?Object(i.F)((new Date).getMonth().valueOf()+1,2):"CURRENT_DATE"===t?Object(i.F)((new Date).getDate().valueOf(),2):"CURRENT_HOUR"===t?Object(i.F)((new Date).getHours().valueOf(),2):"CURRENT_MINUTE"===t?Object(i.F)((new Date).getMinutes().valueOf(),2):"CURRENT_SECOND"===t?Object(i.F)((new Date).getSeconds().valueOf(),2):"CURRENT_DAY_NAME"===t?F.dayNames[(new Date).getDay()]:"CURRENT_DAY_NAME_SHORT"===t?F.dayNamesShort[(new Date).getDay()]:"CURRENT_MONTH_NAME"===t?F.monthNames[(new Date).getMonth()]:"CURRENT_MONTH_NAME_SHORT"===t?F.monthNamesShort[(new Date).getMonth()]:"CURRENT_SECONDS_UNIX"===t?String(Math.floor(Date.now()/1e3)):void 0},F.dayNames=[b.a("Sunday","Sunday"),b.a("Monday","Monday"),b.a("Tuesday","Tuesday"),b.a("Wednesday","Wednesday"),b.a("Thursday","Thursday"),b.a("Friday","Friday"),b.a("Saturday","Saturday")],F.dayNamesShort=[b.a("SundayShort","Sun"),b.a("MondayShort","Mon"),b.a("TuesdayShort","Tue"),b.a("WednesdayShort","Wed"),b.a("ThursdayShort","Thu"),b.a("FridayShort","Fri"),b.a("SaturdayShort","Sat")],F.monthNames=[b.a("January","January"),b.a("February","February"),b.a("March","March"),b.a("April","April"),b.a("May","May"),b.a("June","June"),b.a("July","July"),b.a("August","August"),b.a("September","September"),b.a("October","October"),b.a("November","November"),b.a("December","December")],F.monthNamesShort=[b.a("JanuaryShort","Jan"),b.a("FebruaryShort","Feb"),b.a("MarchShort","Mar"),b.a("AprilShort","Apr"),b.a("MayShort","May"),b.a("JuneShort","Jun"),b.a("JulyShort","Jul"),b.a("AugustShort","Aug"),b.a("SeptemberShort","Sep"),b.a("OctoberShort","Oct"),b.a("NovemberShort","Nov"),b.a("DecemberShort","Dec")],F);function F(){}var V=(W.prototype.resolve=function(e){if(this._workspaceService){var t,n=(t=this._workspaceService.getWorkspace()).configuration?{configPath:t.configuration,id:t.id}:1===t.folders.length?t.folders[0].uri:void 0;if(n)return"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(n):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(n):void 0}},W.prototype._resolveWorkspaceName=function(e){if(x(e))return _.basename(e.path);var t=_.basename(e.configPath.path);return Object(i.m)(t,O)&&(t=t.substr(0,t.length-O.length-1)),t},W.prototype._resoveWorkspacePath=function(e){if(x(e))return Object(E.c)(e.fsPath);var t=_.basename(e.configPath.path),n=e.configPath.fsPath;return Object(i.m)(n,t)&&(n=n.substr(0,n.length-t.length-1)),n?Object(E.c)(n):"/"},W);function W(e){this._workspaceService=e}var B=(H.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},H);function H(){}var z=n(451),K=n(461),U=n(898);Object(z.e)((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(K.bc)+"; outline-color: "+n(K.cc)+"; }"),t.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+n(K.Zb)+"; outline-color: "+n(K.ac)+"; }")}));var q=(G.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},G.prototype._initDecorations=function(){var e=this;if(!this._placeholderDecorations){this._placeholderDecorations=new Map;var t=this._editor.getModel();this._editor.changeDecorations((function(n){for(var o=0,i=e._snippet.placeholders;o<i.length;o++){var r=i[o],s=e._snippet.offset(r),l=e._snippet.fullLen(r),c=a.a.fromPositions(t.getPositionAt(e._offset+s),t.getPositionAt(e._offset+s+l)),u=r.isFinalTabstop?G._decor.inactiveFinal:G._decor.inactive,d=n.addDecoration(c,u);e._placeholderDecorations.set(r,d)}}))}},G.prototype.move=function(e){var t=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),0<=this._placeholderGroupsIdx){for(var n=[],o=0,i=this._placeholderGroups[this._placeholderGroupsIdx];o<i.length;o++){var r=i[o];if(r.transform){var a=this._placeholderDecorations.get(r),l=this._editor.getModel().getDecorationRange(a),c=this._editor.getModel().getValueInRange(l);n.push(p.a.replaceMove(l,r.transform.resolve(c)))}}0<n.length&&this._editor.executeEdits("snippet.placeholderTransform",n)}var u=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,u=!0):!1===e&&0<this._placeholderGroupsIdx&&(--this._placeholderGroupsIdx,u=!0);var d=this._editor.getModel().changeDecorations((function(e){for(var n=new Set,o=[],i=0,r=t._placeholderGroups[t._placeholderGroupsIdx];i<r.length;i++){var a=r[i],l=t._placeholderDecorations.get(a),c=t._editor.getModel().getDecorationRange(l);o.push(new s.a(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn)),u=u&&t._hasPlaceholderBeenCollapsed(a),e.changeDecorationOptions(l,a.isFinalTabstop?G._decor.activeFinal:G._decor.active),n.add(a);for(var d=0,h=t._snippet.enclosingPlaceholders(a);d<h.length;d++){var p=h[d],f=t._placeholderDecorations.get(p);e.changeDecorationOptions(f,p.isFinalTabstop?G._decor.activeFinal:G._decor.active),n.add(p)}}return t._placeholderDecorations.forEach((function(t,o){n.has(o)||e.changeDecorationOptions(t,o.isFinalTabstop?G._decor.inactiveFinal:G._decor.inactive)})),o}));return u?this.move(e):d},G.prototype._hasPlaceholderBeenCollapsed=function(e){for(var t=e;t;){if(t instanceof y.b){var n=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(n).isEmpty()&&0<t.toString().length)return!0}t=t.parent}return!1},Object.defineProperty(G.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"hasPlaceholder",{get:function(){return 0<this._snippet.placeholders.length},enumerable:!0,configurable:!0}),G.prototype.computePossibleSelections=function(){for(var e=new Map,t=0,n=this._placeholderGroups;t<n.length;t++)for(var o=void 0,i=0,r=n[t];i<r.length;i++){var a=r[i];if(a.isFinalTabstop)break;o||(o=[],e.set(a.index,o));var s=this._placeholderDecorations.get(a),l=this._editor.getModel().getDecorationRange(s);if(!l){e.delete(a.index);break}o.push(l)}return e},Object.defineProperty(G.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),G.prototype.merge=function(e){var t=this,n=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((function(o){for(var i=0,r=t._placeholderGroups[t._placeholderGroupsIdx];i<r.length;i++){for(var s=r[i],l=e.shift(),c=l._snippet.placeholderInfo.last.index,u=0,d=l._snippet.placeholderInfo.all;u<d.length;u++){var p=d[u];p.isFinalTabstop?p.index=s.index+(c+1)/t._nestingLevel:p.index=s.index+p.index/t._nestingLevel}t._snippet.replace(s,l._snippet.children);var f=t._placeholderDecorations.get(s);o.removeDecoration(f),t._placeholderDecorations.delete(s);for(var g=0,m=l._snippet.placeholders;g<m.length;g++){var v=m[g],b=l._snippet.offset(v),_=l._snippet.fullLen(v),w=a.a.fromPositions(n.getPositionAt(l._offset+b),n.getPositionAt(l._offset+b+_)),C=o.addDecoration(w,G._decor.inactive);t._placeholderDecorations.set(v,C)}}t._placeholderGroups=Object(h.o)(t._snippet.placeholders,y.b.compareByIndex)}))},G._decor={active:f.a.register({stickiness:0,className:"snippet-placeholder"}),inactive:f.a.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:f.a.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:f.a.register({stickiness:1,className:"finish-snippet-placeholder"})},G);function G(e,t,n){this._nestingLevel=1,this._editor=e,this._snippet=t,this._offset=n,this._placeholderGroups=Object(h.o)(t.placeholders,y.b.compareByIndex),this._placeholderGroupsIdx=-1}var Y={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},Z=($.adjustWhitespace=function(e,t,n,o,r){var a=e.getLineContent(t.lineNumber),s=Object(i.t)(a,0,t.column-1);n.walk((function(t){if(t instanceof y.d&&!(t.parent instanceof y.a)){var n=t.value.split(/\r\n|\r|\n/);if(o)for(var a=1;a<n.length;a++){var l=Object(i.t)(n[a]);n[a]=e.normalizeIndentation(s+l)+n[a].substr(l.length)}if(r){var c=n.join(e.getEOL());c!==t.value&&t.parent.replace(t,[new y.d(c)])}}return!0}))},$.adjustSelection=function(e,t,n,o){if(0!==n||0!==o){var i=t.positionLineNumber,r=t.positionColumn,a=r-n,l=r+o,c=e.validateRange({startLineNumber:i,startColumn:a,endLineNumber:i,endColumn:l});t=s.a.createWithDirection(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn,t.getDirection())}return t},$.createEditsAndSnippets=function(e,t,n,o,i,r,s){var l=[],c=[];if(!e.hasModel())return{edits:l,snippets:c};for(var u=e.getModel(),d=e.invokeWithinContext((function(e){return e.get(m.a,v.d)})),h=e.invokeWithinContext((function(e){return new P(e.get(U.a,v.d),u)})),f=e.invokeWithinContext((function(e){return e.get(g.a,v.d)})),b=function(){return s||f&&f.readTextSync()},_=0,w=u.getValueInRange($.adjustSelection(u,e.getSelection(),n,0)),C=u.getValueInRange($.adjustSelection(u,e.getSelection(),0,o)),S=u.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),O=e.getSelections().map((function(e,t){return{selection:e,idx:t}})).sort((function(e,t){return a.a.compareRangesUsingStarts(e.selection,t.selection)})),x=0,E=O;x<E.length;x++){var N=E[x],L=N.selection,I=N.idx,M=$.adjustSelection(u,L,n,0),R=$.adjustSelection(u,L,0,o);w!==u.getValueInRange(M)&&(M=L),C!==u.getValueInRange(R)&&(R=L);var F=L.setStartPosition(M.startLineNumber,M.startColumn).setEndPosition(R.endLineNumber,R.endColumn),W=(new y.c).parse(t,!0,i),H=F.getStartPosition();$.adjustWhitespace(u,H,W,r||0<I&&S!==u.getLineFirstNonWhitespaceColumn(L.positionLineNumber),!0),W.resolveVariables(new k([h,new T(b,I,O.length,"spread"===e.getOption(60)),new D(u,L),new j(u),new A,new V(d),new B]));var z=u.getOffsetAt(H)+_;_+=W.toString().length-u.getValueLengthInRange(F),l[I]=p.a.replace(F,W.toString()),c[I]=new q(e,W,z)}return{edits:l,snippets:c}},$.prototype.dispose=function(){Object(o.f)(this._snippets)},$.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},$.prototype.insert=function(){var e=this;if(this._editor.hasModel()){var t=$.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),n=t.edits,o=t.snippets;this._snippets=o,this._editor.executeEdits("snippet",n,(function(t){return e._snippets[0].hasPlaceholder?e._move(!0):t.map((function(e){return s.a.fromPositions(e.range.getEndPosition())}))})),this._editor.revealRange(this._editor.getSelections()[0])}},$.prototype.merge=function(e,t){var n=this;if(void 0===t&&(t=Y),this._editor.hasModel()){this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);var o=$.createEditsAndSnippets(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText),i=o.edits,r=o.snippets;this._editor.executeEdits("snippet",i,(function(e){for(var t=0,o=n._snippets;t<o.length;t++)o[t].merge(r);return n._snippets[0].hasPlaceholder?n._move(void 0):e.map((function(e){return s.a.fromPositions(e.range.getEndPosition())}))}))}},$.prototype.next=function(){var e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},$.prototype.prev=function(){var e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},$.prototype._move=function(e){for(var t=[],n=0,o=this._snippets;n<o.length;n++){var i=o[n].move(e);t.push.apply(t,i)}return t},Object.defineProperty($.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),$.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 o=n.computePossibleSelections();if(0===t.size&&o.forEach((function(n,o){n.sort(a.a.compareRangesUsingStarts);for(var i=0,r=e;i<r.length;i++){var s=r[i];if(n[0].containsRange(s)){t.set(o,[]);break}}})),0===t.size)return{value:!1};t.forEach((function(e,t){e.push.apply(e,o.get(t))}))},o=0,i=this._snippets;o<i.length;o++){var r=n(i[o]);if("object"==typeof r)return r.value}return e.sort(a.a.compareRangesUsingStarts),t.forEach((function(n,o){if(n.length===e.length){n.sort(a.a.compareRangesUsingStarts);for(var i=0;i<n.length;i++)if(!n[i].containsRange(e[i]))return void t.delete(o)}else t.delete(o)})),0<t.size},$);function $(e,t,n){void 0===n&&(n=Y),this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=n}n.d(t,"SnippetController2",(function(){return ee}));var X=function(){return(X=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},J=function(e,t){return function(n,o){t(n,o,e)}},Q={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},ee=(te.get=function(e){return e.getContribution(te.ID)},te.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(o.f)(this._session),this._snippetListener.dispose()},te.prototype.insert=function(e,t){try{this._doInsert(e,void 0===t?Q:X(X({},Q),t))}catch(t){this.cancel(),this._logService.error(t),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},te.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 Z(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()}))))},te.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()}},te.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 s.a.fromPositions(e.getStartPosition())})));var n=t.options[0];Object(c.f)(this._editor,t.options.map((function(t,o){return{kind:13,label:t.value,insertText:t.value,sortText:Object(i.J)("a",o+1),range:a.a.fromPositions(e._editor.getPosition(),e._editor.getPosition().delta(0,n.value.length))}})))}}else this._currentChoice=void 0}else this._currentChoice=void 0},te.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},te.prototype.cancel=function(e){void 0===e&&(e=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(o.f)(this._session),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])},te.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},te.prototype.next=function(){this._session&&this._session.next(),this._updateState()},te.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},te.ID="snippetController2",te.InSnippetMode=new u.d("inSnippetMode",!1),te.HasNextTabstop=new u.d("hasNextTabstop",!1),te.HasPrevTabstop=new u.d("hasPrevTabstop",!1),te=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([J(1,d.a),J(2,u.c)],te));function te(e,t,n){this._editor=e,this._logService=t,this._snippetListener=new o.b,this._modelVersionId=-1,this._inSnippet=te.InSnippetMode.bindTo(n),this._hasNextTabstop=te.HasNextTabstop.bindTo(n),this._hasPrevTabstop=te.HasPrevTabstop.bindTo(n)}Object(r.h)(ee.ID,ee);var ne=r.c.bindToContribution(ee.get);Object(r.g)(new ne({id:"jumpToNextSnippetPlaceholder",precondition:u.a.and(ee.InSnippetMode,ee.HasNextTabstop),handler:function(e){return e.next()},kbOpts:{weight:130,kbExpr:l.a.editorTextFocus,primary:2}})),Object(r.g)(new ne({id:"jumpToPrevSnippetPlaceholder",precondition:u.a.and(ee.InSnippetMode,ee.HasPrevTabstop),handler:function(e){return e.prev()},kbOpts:{weight:130,kbExpr:l.a.editorTextFocus,primary:1026}})),Object(r.g)(new ne({id:"leaveSnippet",precondition:ee.InSnippetMode,handler:function(e){return e.cancel(!0)},kbOpts:{weight:130,kbExpr:l.a.editorTextFocus,primary:9,secondary:[1033]}})),Object(r.g)(new ne({id:"acceptSnippet",precondition:ee.InSnippetMode,handler:function(e){return e.finish()}}))},function(e,t,n){"use strict";n.r(t);var o=n(445),i=n(465),r=n(449),a=n(504),s=n(555),l=n(450),c=n(440),u=(d.columnSelect=function(e,t,n,o,i,r){for(var a=Math.abs(i-n)+1,u=i<n,d=r<o,h=o<r,p=[],f=0;f<a;f++){var g=n+(u?-f:f),m=s.a.columnFromVisibleColumn2(e,t,g,o),v=s.a.columnFromVisibleColumn2(e,t,g,r),y=s.a.visibleColumnFromColumn2(e,t,new l.a(g,m)),b=s.a.visibleColumnFromColumn2(e,t,new l.a(g,v));if(h){if(r<y)continue;if(b<o)continue}if(d){if(o<b)continue;if(y<r)continue}p.push(new s.f(new c.a(g,m,g,m),0,new l.a(g,v),0))}if(0===p.length)for(f=0;f<a;f++){g=n+(u?-f:f);var _=t.getLineMaxColumn(g);p.push(new s.f(new c.a(g,_,g,_),0,new l.a(g,_),0))}return{viewStates:p,reversed:u,fromLineNumber:n,fromVisualColumn:o,toLineNumber:i,toVisualColumn:r}},d.columnSelectLeft=function(e,t,n){var o=n.toViewVisualColumn;return 1<o&&o--,d.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,o)},d.columnSelectRight=function(e,t,n){for(var o=0,i=Math.min(n.fromViewLineNumber,n.toViewLineNumber),r=Math.max(n.fromViewLineNumber,n.toViewLineNumber),a=i;a<=r;a++){var c=t.getLineMaxColumn(a),u=s.a.visibleColumnFromColumn2(e,t,new l.a(a,c));o=Math.max(o,u)}var d=n.toViewVisualColumn;return d<o&&d++,this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,d)},d.columnSelectUp=function(e,t,n,o){var i=o?e.pageSize:1,r=Math.max(1,n.toViewLineNumber-i);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,r,n.toViewVisualColumn)},d.columnSelectDown=function(e,t,n,o){var i=o?e.pageSize:1,r=Math.min(t.getLineCount(),n.toViewLineNumber+i);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,r,n.toViewVisualColumn)},d);function d(){}var h=n(1083),p=n(1084),f=n(974),g=n(776),m=n(469),v=n(456);n.d(t,"CoreEditorCommand",(function(){return j})),n.d(t,"EditorScroll_",(function(){return _})),n.d(t,"RevealLine_",(function(){return C})),n.d(t,"CoreNavigationCommands",(function(){return O})),n.d(t,"CoreEditingCommands",(function(){return x}));var y,b,_,w,C,S,O,x,E,k,N,D,L,P,I,T,M=(y=function(e,t){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),j=(b=r.c,M(R,b),R.prototype.runEditorCommand=function(e,t,n){var o=t._getCursors();o&&this.runCoreEditorCommand(o,n||{})},R);function R(){return null!==b&&b.apply(this,arguments)||this}function A(){return null!==k&&k.apply(this,arguments)||this}function F(){return N.call(this,{id:"lineBreakInsert",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:301}}})||this}function V(){return D.call(this,{id:"outdent",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:v.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:1026}})||this}function W(){return L.call(this,{id:"tab",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:v.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:2}})||this}function B(){return P.call(this,{id:"deleteLeft",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}function H(){return I.call(this,{id:"deleteRight",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}function z(e){e.register()}(w=_=_||{}).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!i.i(e))return!1;var t=e;return!!i.j(t.to)&&!(!i.k(t.by)&&!i.j(t.by))&&!(!i.k(t.value)&&!i.h(t.value))&&!(!i.k(t.revealCursor)&&!i.e(t.revealCursor))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},w.RawDirection={Up:"up",Down:"down"},w.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},w.parse=function(e){var t,n;switch(e.to){case w.RawDirection.Up:t=1;break;case w.RawDirection.Down:t=2;break;default:return null}switch(e.by){case w.RawUnit.Line:n=1;break;case w.RawUnit.WrappedLine:n=2;break;case w.RawUnit.Page:n=3;break;case w.RawUnit.HalfPage:n=4;break;default:n=2}return{direction:t,unit:n,value:Math.floor(e.value||1),revealCursor:!!e.revealCursor,select:!!e.select}},(S=C=C||{}).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!i.i(e))return!1;var t=e;return!!i.h(t.lineNumber)&&!(!i.k(t.at)&&!i.j(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},S.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"},function(e){var t,n=(M(o,t=j),o.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(t.source,!0,0,0)},o);function o(e){var n=t.call(this,e)||this;return n._inSelectionMode=e.inSelectionMode,n}e.MoveTo=Object(r.g)(new n({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=Object(r.g)(new n({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var i,a,d,h,f=(M(g,i=j),g.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,3,n.viewStates.map((function(e){return s.d.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)},g);function g(){return null!==i&&i.apply(this,arguments)||this}function v(){return a.call(this,{id:"columnSelect",precondition:void 0})||this}function y(){return d.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3599,linux:{primary:0}}})||this}function b(){return h.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3601,linux:{primary:0}}})||this}e.ColumnSelect=Object(r.g)((M(v,a=f),v.prototype._getColumnSelectResult=function(e,t,n,o){var i=e.model.validatePosition(o.position),r=e.validateViewPosition(new l.a(o.viewPosition.lineNumber,o.viewPosition.column),i),a=o.doColumnSelect?n.fromViewLineNumber:r.lineNumber,s=o.doColumnSelect?n.fromViewVisualColumn:o.mouseColumn-1;return u.columnSelect(e.config,e.viewModel,a,s,r.lineNumber,o.mouseColumn-1)},new v)),e.CursorColumnSelectLeft=Object(r.g)((M(y,d=f),y.prototype._getColumnSelectResult=function(e,t,n,o){return u.columnSelectLeft(e.config,e.viewModel,n)},new y)),e.CursorColumnSelectRight=Object(r.g)((M(b,h=f),b.prototype._getColumnSelectResult=function(e,t,n,o){return u.columnSelectRight(e.config,e.viewModel,n)},new b));var w,S=(M(O,w=f),O.prototype._getColumnSelectResult=function(e,t,n,o){return u.columnSelectUp(e.config,e.viewModel,n,this._isPaged)},O);function O(e){var t=w.call(this,e)||this;return t._isPaged=e.isPaged,t}e.CursorColumnSelectUp=Object(r.g)(new S({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(r.g)(new S({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3595,linux:{primary:0}}}));var x,E=(M(k,x=f),k.prototype._getColumnSelectResult=function(e,t,n,o){return u.columnSelectDown(e.config,e.viewModel,n,this._isPaged)},k);function k(e){var t=x.call(this,e)||this;return t._isPaged=e.isPaged,t}e.CursorColumnSelectDown=Object(r.g)(new E({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(r.g)(new E({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3596,linux:{primary:0}}}));var N,D=(M(L,N=j),L.prototype.runCoreEditorCommand=function(e,t){var n=p.a.parse(t);n&&this._runCursorMove(e,t.source,n)},L.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,3,p.b.move(e.context,e.getAll(),n)),e.reveal(t,!0,0,0)},L);function L(){return N.call(this,{id:"cursorMove",precondition:void 0,description:p.a.description})||this}e.CursorMoveImpl=D,e.CursorMove=Object(r.g)(new D);var P,I,T,R=(M(A,P=j),A.prototype.runCoreEditorCommand=function(t,n){var o=this._staticArgs;-1===this._staticArgs.value&&(o={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,o)},A);function A(e){var t=P.call(this,e)||this;return t._staticArgs=e.args,t}function F(){return I.call(this,{id:"createCursor",precondition:void 0})||this}function V(){return T.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}e.CursorLeft=Object(r.g)(new R({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Object(r.g)(new R({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1039}})),e.CursorRight=Object(r.g)(new R({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Object(r.g)(new R({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1041}})),e.CursorUp=Object(r.g)(new R({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Object(r.g)(new R({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Object(r.g)(new R({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(r.g)(new R({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1035}})),e.CursorDown=Object(r.g)(new R({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Object(r.g)(new R({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Object(r.g)(new R({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(r.g)(new R({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1036}})),e.CreateCursor=Object(r.g)((M(F,I=j),F.prototype.runCoreEditorCommand=function(e,t){var n,o=e.context;n=t.wholeLine?p.b.line(o,e.getPrimaryCursor(),!1,t.position,t.viewPosition):p.b.moveTo(o,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var i=e.getAll();if(1<i.length)for(var r=n.modelState?n.modelState.position:null,a=n.viewState?n.viewState.position:null,s=0,l=i.length;s<l;s++){var c=i[s];if((!r||c.modelState.selection.containsPosition(r))&&(!a||c.viewState.selection.containsPosition(a)))return i.splice(s,1),e.context.model.pushStackElement(),void e.setStates(t.source,3,i)}i.push(n),e.context.model.pushStackElement(),e.setStates(t.source,3,i)},new F)),e.LastCursorMoveToSelect=Object(r.g)((M(V,T=j),V.prototype.runCoreEditorCommand=function(e,t){var n=e.context,o=e.getLastAddedCursorIndex(),i=e.getAll(),r=i.slice(0);r[o]=p.b.moveTo(n,i[o],!0,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,r)},new V));var W,B,H=(M(z,W=j),z.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToBeginningOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},z);function z(e){var t=W.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function K(){return B.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:287}}})||this}e.CursorHome=Object(r.g)(new H({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=Object(r.g)(new H({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}})),e.CursorLineStart=Object(r.g)((M(K,B=j),K.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)},K.prototype._exec=function(e,t){for(var n=[],o=0,i=t.length;o<i;o++){var r=t[o],a=r.modelState.position.lineNumber;n[o]=s.d.fromModelState(r.modelState.move(!1,a,1,0))}return n},new K));var U,q,G=(M(Y,U=j),Y.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToEndOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},Y);function Y(e){var t=U.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function Z(){return q.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:291}}})||this}e.CursorEnd=Object(r.g)(new G({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}}})),e.CursorEndSelect=Object(r.g)(new G({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}}})),e.CursorLineEnd=Object(r.g)((M(Z,q=j),Z.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)},Z.prototype._exec=function(e,t){for(var n=[],o=0,i=t.length;o<i;o++){var r=t[o],a=r.modelState.position.lineNumber,l=e.model.getLineMaxColumn(a);n[o]=s.d.fromModelState(r.modelState.move(!1,a,l,0))}return n},new Z));var $,X=(M(J,$=j),J.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToBeginningOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},J);function J(e){var t=$.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}e.CursorTop=Object(r.g)(new X({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=Object(r.g)(new X({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3086,mac:{primary:3088}}}));var Q,ee=(M(te,Q=j),te.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToEndOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},te);function te(e){var t=Q.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}e.CursorBottom=Object(r.g)(new ee({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=Object(r.g)(new ee({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3085,mac:{primary:3090}}}));var ne,oe,ie,re,ae,se=(M(le,ne=j),le.prototype.runCoreEditorCommand=function(e,t){var n=_.parse(t);n&&this._runEditorScroll(e,t.source,n)},le.prototype._runEditorScroll=function(e,t,n){var o=this._computeDesiredScrollTop(e.context,n);if(n.revealCursor){var i=e.context.getCompletelyVisibleViewRangeAtScrollTop(o);e.setStates(t,3,[p.b.findPositionInViewportIfOutside(e.context,e.getPrimaryCursor(),i,n.select)])}e.scrollTo(o)},le.prototype._computeDesiredScrollTop=function(e,t){if(1===t.unit){var n,o=e.getCompletelyVisibleModelRange();n=1===t.direction?Math.max(1,o.startLineNumber-t.value):Math.min(e.model.getLineCount(),o.startLineNumber+t.value);var i=e.convertModelPositionToViewPosition(new l.a(n,1));return e.getVerticalOffsetForViewLine(i.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 a=(1===t.direction?-1:1)*r;return e.getCurrentScrollTop()+a*e.config.lineHeight},le);function le(){return ne.call(this,{id:"editorScroll",precondition:void 0,description:_.description})||this}function ce(){return oe.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2064,mac:{primary:267}}})||this}function ue(){return ie.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})||this}function de(){return re.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2066,mac:{primary:268}}})||this}function he(){return ae.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})||this}e.EditorScrollImpl=se,e.EditorScroll=Object(r.g)(new se),e.ScrollLineUp=Object(r.g)((M(ce,oe=j),ce.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},new ce)),e.ScrollPageUp=Object(r.g)((M(ue,ie=j),ue.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},new ue)),e.ScrollLineDown=Object(r.g)((M(de,re=j),de.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},new de)),e.ScrollPageDown=Object(r.g)((M(he,ae=j),he.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},new he));var pe,fe,ge=(M(me,pe=j),me.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.word(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position)]),e.reveal(t.source,!0,0,0)},me);function me(e){var t=pe.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function ve(){return fe.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}e.WordSelect=Object(r.g)(new ge({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=Object(r.g)(new ge({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=Object(r.g)((M(ve,fe=j),ve.prototype.runCoreEditorCommand=function(e,t){var n=e.context,o=e.getLastAddedCursorIndex(),i=e.getAll(),r=i.slice(0),a=i[o];r[o]=p.b.word(n,a,a.modelState.hasSelection(),t.position),n.model.pushStackElement(),e.setStates(t.source,3,r)},new ve));var ye,be=(M(_e,ye=j),_e.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.line(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(t.source,!1,0,0)},_e);function _e(e){var t=ye.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}e.LineSelect=Object(r.g)(new be({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=Object(r.g)(new be({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var we,Ce,Se,Oe,xe,Ee,ke,Ne=(M(De,we=j),De.prototype.runCoreEditorCommand=function(e,t){var n=e.getLastAddedCursorIndex(),o=e.getAll(),i=o.slice(0);i[n]=p.b.line(e.context,o[n],this._inSelectionMode,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,i)},De);function De(e){var t=we.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function Le(){return Ce.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2090}})||this}function Pe(){return Se.call(this,{id:"cancelSelection",precondition:m.a.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:9,secondary:[1033]}})||this}function Ie(){return Oe.call(this,{id:"removeSecondaryCursors",precondition:m.a.hasMultipleSelections,kbOpts:{weight:1,kbExpr:m.a.textInputFocus,primary:9,secondary:[1033]}})||this}function Te(){return xe.call(this,{id:"revealLine",precondition:void 0,description:C.description})||this}function Me(){return Ee.call(this,{id:"selectAll",precondition:void 0})||this}function je(){return ke.call(this,{id:"setSelection",precondition:void 0})||this}e.LastCursorLineSelect=Object(r.g)(new Ne({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=Object(r.g)(new Ne({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.ExpandLineSelection=Object(r.g)((M(Le,Ce=j),Le.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.expandLineSelection(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},new Le)),e.CancelSelection=Object(r.g)((M(Pe,Se=j),Pe.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.cancelSelection(e.context,e.getPrimaryCursor())]),e.reveal(t.source,!0,0,0)},new Pe)),e.RemoveSecondaryCursors=Object(r.g)((M(Ie,Oe=j),Ie.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[e.getPrimaryCursor()]),e.reveal(t.source,!0,0,0)},new Ie)),e.RevealLine=Object(r.g)((M(Te,xe=j),Te.prototype.runCoreEditorCommand=function(e,t){var n=t,o=(n.lineNumber||0)+1;o<1&&(o=1);var i=e.context.model.getLineCount();i<o&&(o=i);var r=new c.a(o,1,o,e.context.model.getLineMaxColumn(o)),a=0;if(n.at)switch(n.at){case C.RawAtArgument.Top:a=3;break;case C.RawAtArgument.Center:a=1;break;case C.RawAtArgument.Bottom:a=4}var s=e.context.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,s,a,0)},new Te)),e.SelectAll=Object(r.g)((M(Me,Ee=j),Me.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.selectAll(e.context,e.getPrimaryCursor())])},new Me)),e.SetSelection=Object(r.g)((M(je,ke=j),je.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[s.d.fromModelSelection(t.selection)])},new je))}(O=O||{}),E=x=x||{},k=r.c,M(A,k),A.prototype.runEditorCommand=function(e,t,n){var o=t._getCursors();o&&this.runCoreEditingCommand(t,o,n||{})},T=A,E.CoreEditingCommand=T,E.LineBreakInsert=Object(r.g)((M(F,N=T),F.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.lineBreakInsert(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))))},new F)),E.Outdent=Object(r.g)((M(V,D=T),V.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.outdent(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},new V)),E.Tab=Object(r.g)((M(W,L=T),W.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.tab(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},new W)),E.DeleteLeft=Object(r.g)((M(B,P=T),B.prototype.runCoreEditingCommand=function(e,t,n){var o=h.a.deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),i=o[0],r=o[1];i&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(2)},new B)),E.DeleteRight=Object(r.g)((M(H,I=T),H.prototype.runCoreEditingCommand=function(e,t,n){var o=h.a.deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),i=o[0],r=o[1];i&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(3)},new H));var K,U=(K=r.a,M(q,K),q.prototype.runCommand=function(e,t){var n=e.get(a.a).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var o=document.activeElement;if(!(o&&0<=["input","textarea"].indexOf(o.tagName.toLowerCase()))){var i=e.get(a.a).getActiveCodeEditor();return i?(i.focus(),this._runEditorHandler(e,i,t)):void 0}document.execCommand(this._inputHandler)},q.prototype._runEditorHandler=function(e,t,n){var o=this._editorHandler;"string"==typeof o?t.trigger("keyboard",o,n):((n=n||{}).source="keyboard",o.runEditorCommand(e,t,n))},q);function q(e){var t=K.call(this,e)||this;return t._editorHandler=e.editorHandler,t._inputHandler=e.inputHandler,t}var G,Y=(G=r.a,M(Z,G),Z.prototype.runCommand=function(e,t){var n=e.get(a.a).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)},Z);function Z(e,t,n){var o=G.call(this,{id:e,precondition:void 0,description:n})||this;return o._handlerId=t,o}function $(e,t){z(new Y("default:"+e,e)),z(new Y(e,e,t))}z(new U({editorHandler:O.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:m.a.textInputFocus,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:{menuId:25,group:"1_basic",title:o.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),z(new U({editorHandler:g.b.Undo,inputHandler:"undo",id:g.b.Undo,precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2104},menuOpts:{menuId:17,group:"1_do",title:o.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),z(new Y("default:"+g.b.Undo,g.b.Undo)),z(new U({editorHandler:g.b.Redo,inputHandler:"redo",id:g.b.Redo,precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:{menuId:17,group:"1_do",title:o.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),z(new Y("default:"+g.b.Redo,g.b.Redo)),$(g.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),$(g.b.ReplacePreviousChar),$(g.b.CompositionStart),$(g.b.CompositionEnd),$(g.b.Paste),$(g.b.Cut)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(0),i=n.n(o);function r(e){var t=e.controlled,n=e.default,o=(e.name,i.a.useRef(void 0!==t).current),r=i.a.useState(n),a=r[0],s=r[1];return[o?t:a,i.a.useCallback((function(e){o||s(e)}),[])]}},function(e,t,n){"use strict";n(1337);var o,i=n(445),r=n(443),a=n(446),s=n(442),l=n(439),c=n(596),u=n(707),d=n(449),h=n(504),p=n(488),f=n(452),g=n(702),m=n(478),v=n(595),y=n(453),b=n(793),_=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=(C.prototype.toClientCoordinates=function(){return new S(this.x-r.e.scrollX,this.y-r.e.scrollY)},C);function C(e,t){this.x=e,this.y=t}var S=(O.prototype.toPageCoordinates=function(){return new w(this.clientX+r.e.scrollX,this.clientY+r.e.scrollY)},O);function O(e,t){this.clientX=e,this.clientY=t}var x=function(e,t,n,o){this.x=e,this.y=t,this.width=n,this.height=o};function E(e){var t=r.C(e);return new x(t.left,t.top,t.width,t.height)}var k,N=(_(D,k=v.b),D);function D(e,t){var n=k.call(this,e)||this;return n.pos=new w(n.posx,n.posy),n.editorPos=E(t),n}var L=(P.prototype._create=function(e){return new N(e,this._editorViewDomNode)},P.prototype.onContextMenu=function(e,t){var n=this;return r.j(e,"contextmenu",(function(e){t(n._create(e))}))},P.prototype.onMouseUp=function(e,t){var n=this;return r.j(e,"mouseup",(function(e){t(n._create(e))}))},P.prototype.onMouseDown=function(e,t){var n=this;return r.j(e,"mousedown",(function(e){t(n._create(e))}))},P.prototype.onMouseLeave=function(e,t){var n=this;return r.k(e,(function(e){t(n._create(e))}))},P.prototype.onMouseMoveThrottled=function(e,t,n,o){var i=this;return r.m(e,"mousemove",t,(function(e,t){return n(e,i._create(t))}),o)},P);function P(e){this._editorViewDomNode=e}var I=(T.prototype._create=function(e){return new N(e,this._editorViewDomNode)},T.prototype.onPointerUp=function(e,t){var n=this;return r.j(e,"pointerup",(function(e){t(n._create(e))}))},T.prototype.onPointerDown=function(e,t){var n=this;return r.j(e,"pointerdown",(function(e){t(n._create(e))}))},T.prototype.onPointerLeave=function(e,t){var n=this;return r.l(e,(function(e){t(n._create(e))}))},T.prototype.onPointerMoveThrottled=function(e,t,n,o){var i=this;return r.m(e,"pointermove",t,(function(e,t){return n(e,i._create(t))}),o)},T);function T(e){this._editorViewDomNode=e}var M,j=(_(R,M=l.a),R.prototype.startMonitoring=function(e,t,n,o,i){var a=this;this._keydownListener=r.o(document,"keydown",(function(e){e.toKeybinding().isModifierKey()||a._globalMouseMoveMonitor.stopMonitoring(!0)}),!0),this._globalMouseMoveMonitor.startMonitoring(e,t,(function(e,t){return n(e,new N(t,a._editorViewDomNode))}),o,(function(){a._keydownListener.dispose(),i()}))},R);function R(e){var t=M.call(this)||this;return t._editorViewDomNode=e,t._globalMouseMoveMonitor=t._register(new b.a),t._keydownListener=null,t}var A,F,V=((A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(W,F=l.a),W.prototype.shouldRender=function(){return this._shouldRender},W.prototype.forceShouldRender=function(){this._shouldRender=!0},W.prototype.setShouldRender=function(){this._shouldRender=!0},W.prototype.onDidRender=function(){this._shouldRender=!1},W.prototype.onConfigurationChanged=function(e){return!1},W.prototype.onContentSizeChanged=function(e){return!1},W.prototype.onCursorStateChanged=function(e){return!1},W.prototype.onDecorationsChanged=function(e){return!1},W.prototype.onFlushed=function(e){return!1},W.prototype.onFocusChanged=function(e){return!1},W.prototype.onLanguageConfigurationChanged=function(e){return!1},W.prototype.onLineMappingChanged=function(e){return!1},W.prototype.onLinesChanged=function(e){return!1},W.prototype.onLinesDeleted=function(e){return!1},W.prototype.onLinesInserted=function(e){return!1},W.prototype.onRevealRangeRequest=function(e){return!1},W.prototype.onScrollChanged=function(e){return!1},W.prototype.onThemeChanged=function(e){return!1},W.prototype.onTokensChanged=function(e){return!1},W.prototype.onTokensColorsChanged=function(e){return!1},W.prototype.onZonesChanged=function(e){return!1},W.prototype.handleEvents=function(e){for(var t=!1,n=0,o=e.length;n<o;n++){var i=e[n];switch(i.type){case 1:this.onConfigurationChanged(i)&&(t=!0);break;case 2:this.onContentSizeChanged(i)&&(t=!0);break;case 3:this.onCursorStateChanged(i)&&(t=!0);break;case 4:this.onDecorationsChanged(i)&&(t=!0);break;case 5:this.onFlushed(i)&&(t=!0);break;case 6:this.onFocusChanged(i)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(i)&&(t=!0);break;case 8:this.onLineMappingChanged(i)&&(t=!0);break;case 9:this.onLinesChanged(i)&&(t=!0);break;case 10:this.onLinesDeleted(i)&&(t=!0);break;case 11:this.onLinesInserted(i)&&(t=!0);break;case 12:this.onRevealRangeRequest(i)&&(t=!0);break;case 13:this.onScrollChanged(i)&&(t=!0);break;case 15:this.onTokensChanged(i)&&(t=!0);break;case 14:this.onThemeChanged(i)&&(t=!0);break;case 16:this.onTokensColorsChanged(i)&&(t=!0);break;case 17:this.onZonesChanged(i)&&(t=!0)}}t&&(this._shouldRender=!0)},W);function W(){var e=F.call(this)||this;return e._shouldRender=!0,e}var B,H,z=((B=function(e,t){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(K,H=V),K.prototype.dispose=function(){this._context.removeEventHandler(this),H.prototype.dispose.call(this)},K);function K(e){var t=H.call(this)||this;return t._context=e,t._context.addEventHandler(t),t}var U=(q.write=function(e,t){p.a,e.setAttribute("data-mprt",String(t))},q.read=function(e){var t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)},q.collect=function(e,t){for(var n=[],o=0;e&&e!==document.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(n[o++]=this.read(e)),e=e.parentElement;for(var i=new Uint8Array(o),r=0;r<o;r++)i[r]=n[o-r-1];return i},q);function q(){}var G,Y=(G=function(e,t){return(G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}G(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Z=($.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop},$.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)},$.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},$);function $(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}var X,J=(Y(Q,X=Z),Q.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)},Q.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)},Q);function Q(e,t,n){var o=X.call(this,e,t)||this;return o._viewLines=n,o}var ee=function(e,t,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=n},te=(ne.prototype.toString=function(){return"["+this.left+","+this.width+"]"},ne);function ne(e,t){this.left=Math.round(e),this.width=Math.round(t)}var oe=function(e,t){this.outsideRenderedLine=e,this.left=Math.round(t)},ie=function(e,t){this.outsideRenderedLine=e,this.ranges=t},re=(ae.prototype.toString=function(){return"["+this.left+","+this.width+"]"},ae.compare=function(e,t){return e.left-t.left},ae);function ae(e,t){this.left=e,this.width=t}var se=(le._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},le._detachRange=function(e,t){e.selectNodeContents(t)},le._readClientRects=function(e,t,n,o,i){var r=this._createRange();try{return r.setStart(e,t),r.setEnd(n,o),r.getClientRects()}catch(e){return null}finally{this._detachRange(r,i)}},le._mergeAdjacentRanges=function(e){if(1===e.length)return[new te(e[0].left,e[0].width)];e.sort(re.compare);for(var t=[],n=0,o=e[0].left,i=e[0].width,r=1,a=e.length;r<a;r++){var s=e[r],l=s.left,c=s.width;i=l<=o+i+.9?Math.max(i,l+c-o):(t[n++]=new te(o,i),o=l,c)}return t[n++]=new te(o,i),t},le._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],o=0,i=e.length;o<i;o++){var r=e[o];n[o]=new re(Math.max(0,r.left-t),r.width)}return this._mergeAdjacentRanges(n)},le.readHorizontalRanges=function(e,t,n,o,i,r,a){var s=e.children.length-1;if(s<0)return null;(t=Math.min(s,Math.max(0,t)))!==(o=Math.min(s,Math.max(0,o)))&&0<o&&0===i&&(o--,i=1073741824);var l=e.children[t].firstChild,c=e.children[o].firstChild;if(l&&c||(!l&&0===n&&0<t&&(l=e.children[t-1].firstChild,n=1073741824),!c&&0===i&&0<o&&(c=e.children[o-1].firstChild,i=1073741824)),!l||!c)return null;n=Math.min(l.textContent.length,Math.max(0,n)),i=Math.min(c.textContent.length,Math.max(0,i));var u=this._readClientRects(l,n,c,i,a);return this._createHorizontalRangesFromClientRects(u,r)},le);function le(){}var ce,ue=n(958),de=n(893),he=n(451),pe=n(530),fe=(ce=function(e,t){return(ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ge=!!f.f||!(f.d||m.h||m.k),me=m.f,ve=(Object.defineProperty(ye.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),ye);function ye(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}var be=(_e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},_e);function _e(e,t){this.themeType=t;var n=e.options,o=n.get(34);this.renderWhitespace=n.get(74),this.renderControlCharacters=n.get(69),this.spaceWidth=o.spaceWidth,this.middotWidth=o.middotWidth,this.useMonospaceOptimizations=o.isMonospace&&!n.get(23),this.canUseHalfwidthRightwardsArrow=o.canUseHalfwidthRightwardsArrow,this.lineHeight=n.get(49),this.stopRenderingLineAfter=n.get(88),this.fontLigatures=n.get(35)}var we=(Ce.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},Ce.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=Object(p.b)(e)},Ce.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},Ce.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},Ce.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},Ce.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},Ce.prototype.onSelectionChanged=function(){return!(!me&&this._options.themeType!==he.b&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0)},Ce.prototype.renderLine=function(e,t,n,o){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var i=n.getViewLineRenderingData(e),r=this._options,a=ue.a.filter(i.inlineDecorations,e,i.minColumn,i.maxColumn),s=null;if(me||r.themeType===he.b||"selection"===this._options.renderWhitespace)for(var l=0,c=n.selections;l<c.length;l++){var u=c[l];if(!(u.endLineNumber<e||u.startLineNumber>e)){var d=u.startLineNumber===e?u.startColumn:i.minColumn,h=u.endLineNumber===e?u.endColumn:i.maxColumn;d<h&&("selection"!==this._options.renderWhitespace?a.push(new ue.a(d,h,"inline-selected-text",0)):(s=s||[]).push(new de.b(d-1,h-1)))}}var p=new de.c(r.useMonospaceOptimizations,r.canUseHalfwidthRightwardsArrow,i.content,i.continuesWithWrappedLine,i.isBasicASCII,i.containsRTL,i.minColumn-1,i.tokens,a,i.tabSize,i.startVisibleColumn,r.spaceWidth,r.middotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==pe.d.OFF,s);if(this._renderedViewLine&&this._renderedViewLine.input.equals(p))return!1;o.appendASCIIString('<div style="top:'),o.appendASCIIString(String(t)),o.appendASCIIString("px;height:"),o.appendASCIIString(String(this._options.lineHeight)),o.appendASCIIString('px;" class="'),o.appendASCIIString(Ce.CLASS_NAME),o.appendASCIIString('">');var f=Object(de.d)(p,o);o.appendASCIIString("</div>");var g=null;return ge&&i.isBasicASCII&&r.useMonospaceOptimizations&&0===f.containsForeignElements&&i.content.length<300&&p.lineTokens.getCount()<100&&(g=new Se(this._renderedViewLine?this._renderedViewLine.domNode:null,p,f.characterMapping)),g=g||Le(this._renderedViewLine?this._renderedViewLine.domNode:null,p,f.characterMapping,f.containsRTL,f.containsForeignElements),this._renderedViewLine=g,!0},Ce.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},Ce.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},Ce.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},Ce.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 o=0|this._renderedViewLine.input.stopRenderingLineAfter,i=!1;-1!=o&&1+o<e&&1+o<t&&(i=!0),-1!=o&&1+o<e&&(e=1+o),-1!=o&&1+o<t&&(t=1+o);var r=this._renderedViewLine.getVisibleRangesForRange(e,t,n);return r&&0<r.length?new ie(i,r):null},Ce.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1},Ce.CLASS_NAME="view-line",Ce);function Ce(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}var Se=(Oe.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},Oe.prototype.getWidthIsFast=function(){return!0},Oe.prototype.getVisibleRangesForRange=function(e,t,n){var o=this._getCharPosition(e),i=this._getCharPosition(t);return[new te(o,i-o)]},Oe.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},Oe.prototype.getColumnOfNodeOffset=function(e,t,n){for(var o=t.textContent.length,i=-1;t;)t=t.previousSibling,i++;return this._characterMapping.partDataToCharOffset(i,o,n)+1},Oe);function Oe(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}var xe=(Ee.prototype._getReadingTarget=function(e){return e.domNode.firstChild},Ee.prototype.getWidth=function(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},Ee.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},Ee.prototype.getVisibleRangesForRange=function(e,t,n){if(!this.domNode)return null;if(null===this._pixelOffsetCache)return this._readVisibleRangesForRange(this.domNode,e,t,n);var o=this._readPixelOffset(this.domNode,e,n);if(-1===o)return null;var i=this._readPixelOffset(this.domNode,t,n);return-1===i?null:[new te(o,i-o)]},Ee.prototype._readVisibleRangesForRange=function(e,t,n,o){if(t!==n)return this._readRawVisibleRangesForRange(e,t,n,o);var i=this._readPixelOffset(e,t,o);return-1===i?null:[new te(i,0)]},Ee.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();var o=this._getReadingTarget(e);return o.firstChild?o.firstChild.offsetWidth:0}if(null===this._pixelOffsetCache)return this._actualReadPixelOffset(e,t,n);var i=this._pixelOffsetCache[t];if(-1!==i)return i;var r=this._actualReadPixelOffset(e,t,n);return this._pixelOffsetCache[t]=r},Ee.prototype._actualReadPixelOffset=function(e,t,n){if(0===this._characterMapping.length){var o=se.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.endNode);return o&&0!==o.length?o[0].left:-1}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var i=this._characterMapping.charOffsetToPartData(t-1),r=de.a.getPartIndex(i),a=de.a.getCharIndex(i),s=se.readHorizontalRanges(this._getReadingTarget(e),r,a,r,a,n.clientRectDeltaLeft,n.endNode);return s&&0!==s.length?s[0].left:-1},Ee.prototype._readRawVisibleRangesForRange=function(e,t,n,o){if(1===t&&n===this._characterMapping.length)return[new te(0,this.getWidth())];var i=this._characterMapping.charOffsetToPartData(t-1),r=de.a.getPartIndex(i),a=de.a.getCharIndex(i),s=this._characterMapping.charOffsetToPartData(n-1),l=de.a.getPartIndex(s),c=de.a.getCharIndex(s);return se.readHorizontalRanges(this._getReadingTarget(e),r,a,l,c,o.clientRectDeltaLeft,o.endNode)},Ee.prototype.getColumnOfNodeOffset=function(e,t,n){for(var o=t.textContent.length,i=-1;t;)t=t.previousSibling,i++;return this._characterMapping.partDataToCharOffset(i,o,n)+1},Ee);function Ee(e,t,n,o,i){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=i,this._cachedWidth=-1,this._pixelOffsetCache=null,!o||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var r=0,a=this._characterMapping.length;r<=a;r++)this._pixelOffsetCache[r]=-1}}var ke,Ne=(fe(De,ke=xe),De.prototype._readVisibleRangesForRange=function(e,t,n,o){var i=ke.prototype._readVisibleRangesForRange.call(this,e,t,n,o);if(!i||0===i.length||t===n||1===t&&n===this._characterMapping.length)return i;if(!this.input.containsRTL){var r=this._readPixelOffset(e,n,o);if(-1!==r){var a=i[i.length-1];a.left<r&&(a.width=r-a.left)}}return i},De);function De(){return null!==ke&&ke.apply(this,arguments)||this}var Le=m.m?function(e,t,n,o,i){return new Ne(e,t,n,o,i)}:function(e,t,n,o,i){return new xe(e,t,n,o,i)};var Pe,Ie=n(450),Te=n(440),Me=n(555),je=(Pe=function(e,t){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Pe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Re=function(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t},Ae=(Fe._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"},Fe.toString=function(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail},Fe.prototype.toString=function(){return Fe.toString(this)},Fe);function Fe(e,t,n,o,i,r){void 0===n&&(n=0),void 0===o&&(o=null),void 0===i&&(i=null),void 0===r&&(r=null),this.element=e,this.type=t,this.mouseColumn=n,this.position=o,!i&&o&&(i=new Te.a(o.lineNumber,o.column,o.lineNumber,o.column)),this.range=i,this.detail=r}var Ve=(We.isTextArea=function(e){return 2===e.length&&3===e[0]&&6===e[1]},We.isChildOfViewLines=function(e){return 4<=e.length&&3===e[0]&&7===e[3]},We.isStrictChildOfViewLines=function(e){return 4<e.length&&3===e[0]&&7===e[3]},We.isChildOfScrollableElement=function(e){return 2<=e.length&&3===e[0]&&5===e[1]},We.isChildOfMinimap=function(e){return 2<=e.length&&3===e[0]&&8===e[1]},We.isChildOfContentWidgets=function(e){return 4<=e.length&&3===e[0]&&1===e[3]},We.isChildOfOverflowingContentWidgets=function(e){return 1<=e.length&&2===e[0]},We.isChildOfOverlayWidgets=function(e){return 2<=e.length&&3===e[0]&&4===e[1]},We);function We(){}var Be=(He.prototype.getZoneAtCoord=function(e){return He.getZoneAtCoord(this._context,e)},He.getZoneAtCoord=function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var o,i=n.verticalOffset+n.height/2,r=e.model.getLineCount(),a=null,s=null;return n.afterLineNumber!==r&&(s=new Ie.a(n.afterLineNumber+1,1)),0<n.afterLineNumber&&(a=new Ie.a(n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),o=null===s||null!==a&&t<i?a:s,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:a,positionAfter:s,position:o}}return null},He.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 Te.a(t,n,t,n),isAfterLines:!0}}var o=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.model.getLineMaxColumn(o);return{range:new Te.a(o,1,o,i),isAfterLines:!1}},He.prototype.getLineNumberAtVerticalOffset=function(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)},He.prototype.isAfterLines=function(e){return this._context.viewLayout.isAfterLines(e)},He.prototype.getVerticalOffsetForLineNumber=function(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)},He.prototype.findAttribute=function(e,t){return He._findAttribute(e,t,this._viewHelper.viewDomNode)},He._findAttribute=function(e,t,n){for(;e&&e!==document.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode}return null},He.prototype.getLineWidth=function(e){return this._viewHelper.getLineWidth(e)},He.prototype.visibleRangeForPosition=function(e,t){return this._viewHelper.visibleRangeForPosition(e,t)},He.prototype.getPositionFromDOMInfo=function(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)},He.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},He.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},He);function He(e,t,n){this.model=e.model;var o=e.configuration.options;this.layoutInfo=o.get(107),this.viewDomNode=t.viewDomNode,this.lineHeight=o.get(49),this.typicalHalfwidthCharacterWidth=o.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=n,this._context=e,this._viewHelper=t}var ze,Ke=(je(Ue,ze=function(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,Ye._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}),Ue.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)},Ue.prototype.fulfill=function(e,t,n,o){void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null);var i=this.mouseColumn;return t&&t.column<this._ctx.model.getLineMaxColumn(t.lineNumber)&&(i=Me.a.visibleColumnFromColumn(this._ctx.model.getLineContent(t.lineNumber),t.column,this._ctx.model.getOptions().tabSize)+1),new Ae(this.target,e,i,t,n,o)},Ue.prototype.withTarget=function(e){return new Ue(this._ctx,this.editorPos,this.pos,e)},Ue);function Ue(e,t,n,o){var i=ze.call(this,e,t,n)||this;return i._ctx=e,o?(i.target=o,i.targetPath=U.collect(o,e.viewDomNode)):(i.target=null,i.targetPath=new Uint8Array(0)),i}var qe={isAfterLines:!0};function Ge(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var Ye=(Ze.prototype.mouseTargetIsWidget=function(e){var t=e.target,n=U.collect(t,this._viewHelper.viewDomNode);return!(!Ve.isChildOfContentWidgets(n)&&!Ve.isChildOfOverflowingContentWidgets(n)&&!Ve.isChildOfOverlayWidgets(n))},Ze.prototype.createMouseTarget=function(e,t,n,o){var i=new Be(this._context,this._viewHelper,e),r=new Ke(i,t,n,o);try{return Ze._createMouseTarget(i,r,!1)}catch(e){return r.fulfill(0)}},Ze._createMouseTarget=function(e,t,n){if(null===t.target){if(n)return t.fulfill(0);var o=Ze._doHitTest(e,t);return o.position?Ze.createMouseTargetFromHitTestPosition(e,t,o.position.lineNumber,o.position.column):this._createMouseTarget(e,t.withTarget(o.hitTarget),!0)}var i=t,r=null;return(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r||Ze._hitTestContentWidget(e,i))||Ze._hitTestOverlayWidget(e,i))||Ze._hitTestMinimap(e,i))||Ze._hitTestScrollbarSlider(e,i))||Ze._hitTestViewZone(e,i))||Ze._hitTestMargin(e,i))||Ze._hitTestViewCursor(e,i))||Ze._hitTestTextArea(e,i))||Ze._hitTestViewLines(e,i,n))||Ze._hitTestScrollbar(e,i))||t.fulfill(0)},Ze._hitTestContentWidget=function(e,t){if(Ve.isChildOfContentWidgets(t.targetPath)||Ve.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null},Ze._hitTestOverlayWidget=function(e,t){if(Ve.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null},Ze._hitTestViewCursor=function(e,t){if(t.target)for(var n=0,o=r=e.lastRenderData.lastViewCursorsRenderData;n<o.length;n++){var i=o[n];if(t.target===i.domNode)return t.fulfill(6,i.position)}if(t.isInContentArea)for(var r=e.lastRenderData.lastViewCursorsRenderData,a=t.mouseContentHorizontalOffset,s=t.mouseVerticalOffset,l=0,c=r;l<c.length;l++)if(!(a<(i=c[l]).contentLeft||a>i.contentLeft+i.width)){var u=e.getVerticalOffsetForLineNumber(i.position.lineNumber);if(u<=s&&s<=u+i.height)return t.fulfill(6,i.position)}return null},Ze._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var o=t.isInContentArea?8:5;return t.fulfill(o,n.position,null,n)}return null},Ze._hitTestTextArea=function(e,t){return Ve.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfill(6,e.lastRenderData.lastTextareaPosition):t.fulfill(1,e.lastRenderData.lastTextareaPosition):null},Ze._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),o=n.range.getStartPosition(),i=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:i};return(i-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,o,n.range,r):(i-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,o,n.range,r):(i-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,o,n.range,r))}return null},Ze._hitTestViewLines=function(e,t,n){if(!Ve.isChildOfViewLines(t.targetPath))return null;if(e.isAfterLines(t.mouseVerticalOffset)){var o=e.model.getLineCount(),i=e.model.getLineMaxColumn(o);return t.fulfill(7,new Ie.a(o,i),void 0,qe)}if(n){if(Ve.isStrictChildOfViewLines(t.targetPath)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.model.getLineLength(r)){var a=e.getLineWidth(r),s=Ge(t.mouseContentHorizontalOffset-a);return t.fulfill(7,new Ie.a(r,1),void 0,s)}var l=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>=l){s=Ge(t.mouseContentHorizontalOffset-l);var c=new Ie.a(r,e.model.getLineMaxColumn(r));return t.fulfill(7,c,void 0,s)}}return t.fulfill(0)}var u=Ze._doHitTest(e,t);return u.position?Ze.createMouseTargetFromHitTestPosition(e,t,u.position.lineNumber,u.position.column):this._createMouseTarget(e,t.withTarget(u.hitTarget),!0)},Ze._hitTestMinimap=function(e,t){if(Ve.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(n);return t.fulfill(11,new Ie.a(n,o))}return null},Ze._hitTestScrollbarSlider=function(e,t){if(Ve.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var o=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(o);return t.fulfill(11,new Ie.a(o,i))}}return null},Ze._hitTestScrollbar=function(e,t){if(Ve.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(n);return t.fulfill(11,new Ie.a(n,o))}return null},Ze.prototype.getMouseColumn=function(e,t){var n=this._context.configuration.options,o=n.get(107),i=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-o.contentLeft;return Ze._getMouseColumn(i,n.get(34).typicalHalfwidthCharacterWidth)},Ze._getMouseColumn=function(e,t){return e<0?1:Math.round(e/t)+1},Ze.createMouseTargetFromHitTestPosition=function(e,t,n,o){var i=new Ie.a(n,o),r=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>r){if(m.e&&1===i.column){var a=Ge(t.mouseContentHorizontalOffset-r);return t.fulfill(7,new Ie.a(n,e.model.getLineMaxColumn(n)),void 0,a)}var s=Ge(t.mouseContentHorizontalOffset-r);return t.fulfill(7,i,void 0,s)}var l=e.visibleRangeForPosition(n,o);if(!l)return t.fulfill(0,i);var c=l.left;if(t.mouseContentHorizontalOffset===c)return t.fulfill(6,i);var u=[];if(u.push({offset:l.left,column:o}),1<o){var d=e.visibleRangeForPosition(n,o-1);d&&u.push({offset:d.left,column:o-1})}if(o<e.model.getLineMaxColumn(n)){var h=e.visibleRangeForPosition(n,o+1);h&&u.push({offset:h.left,column:o+1})}u.sort((function(e,t){return e.offset-t.offset}));for(var p=1;p<u.length;p++){var f=u[p-1],g=u[p];if(f.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=g.offset){var v=new Te.a(n,f.column,n,g.column);return t.fulfill(6,i,v)}}return t.fulfill(6,i)},Ze._doHitTestWithCaretRangeFromPoint=function(e,t){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.getVerticalOffsetForLineNumber(n)+Math.floor(e.lineHeight/2),i=t.pos.y+(o-t.mouseVerticalOffset);i<=t.editorPos.y&&(i=t.editorPos.y+1),i>=t.editorPos.y+e.layoutInfo.height&&(i=t.editorPos.y+e.layoutInfo.height-1);var r=new w(t.pos.x,i),a=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates());return a.position?a:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},Ze._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n,o=r.E(e.viewDomNode);if(!(n=o?void 0===o.caretRangeFromPoint?function(e,t,n){var o=document.createRange(),i=e.elementFromPoint(t,n);if(null!==i){for(;i&&i.firstChild&&i.firstChild.nodeType!==i.firstChild.TEXT_NODE;)i=i.lastChild;var r=i.getBoundingClientRect(),a=window.getComputedStyle(i,null).getPropertyValue("font"),s=i.innerText,l=r.left,c=0,u=void 0;if(t>r.left+r.width)c=s.length;else for(var d=$e.getInstance(),h=0;h<s.length+1;h++){if(t<(l+=u=d.getCharWidth(s.charAt(h),a)/2)){c=h;break}l+=u}o.setStart(i.firstChild,c),o.setEnd(i.firstChild,c)}return o}(o,t.clientX,t.clientY):o.caretRangeFromPoint(t.clientX,t.clientY):document.caretRangeFromPoint(t.clientX,t.clientY))||!n.startContainer)return{position:null,hitTarget:null};var i=n.startContainer,a=null;if(i.nodeType===i.TEXT_NODE){var s=(c=(l=i.parentNode)?l.parentNode:null)?c.parentNode:null;if((s&&s.nodeType===s.ELEMENT_NODE?s.className:null)===we.CLASS_NAME)return{position:e.getPositionFromDOMInfo(l,n.startOffset),hitTarget:null};a=i.parentNode}else if(i.nodeType===i.ELEMENT_NODE){var l,c;if(((c=(l=i.parentNode)?l.parentNode:null)&&c.nodeType===c.ELEMENT_NODE?c.className:null)===we.CLASS_NAME)return{position:e.getPositionFromDOMInfo(i,i.textContent.length),hitTarget:null};a=i}return{position:null,hitTarget:a}},Ze._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType!==n.offsetNode.TEXT_NODE)return{position:null,hitTarget:n.offsetNode};var o=n.offsetNode.parentNode,i=o?o.parentNode:null,r=i?i.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)!==we.CLASS_NAME?{position:null,hitTarget:n.offsetNode.parentNode}:{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}},Ze._doHitTestWithMoveToPoint=function(e,t){var n=null,o=null,i=document.body.createTextRange();try{i.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}i.collapse(!0);var r=i?i.parentElement():null,a=r?r.parentNode:null,s=a?a.parentNode:null;if((s&&s.nodeType===s.ELEMENT_NODE?s.className:"")===we.CLASS_NAME){var l=i.duplicate();l.moveToElementText(r),l.setEndPoint("EndToStart",i),n=e.getPositionFromDOMInfo(r,l.text.length),l.moveToElementText(e.viewDomNode)}else o=r;return i.moveToElementText(e.viewDomNode),{position:n,hitTarget:o}},Ze._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}},Ze);function Ze(e,t){this._context=e,this._viewHelper=t}var $e=(Xe.getInstance=function(){return Xe._INSTANCE||(Xe._INSTANCE=new Xe),Xe._INSTANCE},Xe.prototype.getCharWidth=function(e,t){var n=e+t;if(this._cache[n])return this._cache[n];var o=this._canvas.getContext("2d");o.font=t;var i=o.measureText(e).width;return this._cache[n]=i},Xe._INSTANCE=null,Xe);function Xe(){this._cache={},this._canvas=document.createElement("canvas")}var Je,Qe=n(883),et=n(466),tt=(Je=function(e,t){return(Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Je(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function nt(e){return function(t,n){var o=!1;return e&&(o=e.mouseTargetIsWidget(n)),o||n.preventDefault(),n}}var ot,it=(tt(rt,ot=V),rt.prototype.dispose=function(){this._context.removeEventHandler(this),ot.prototype.dispose.call(this)},rt.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},rt.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},rt.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},rt.prototype.getTargetAtClientPoint=function(e,t){var n=new S(e,t).toPageCoordinates(),o=E(this.viewHelper.viewDomNode);return n.y<o.y||n.y>o.y+o.height||n.x<o.x||n.x>o.x+o.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),o,n,null)},rt.prototype._createMouseTarget=function(e,t){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,t?e.target:null)},rt.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},rt.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},rt.prototype._onMouseMove=function(e){this._mouseDownOperation.isActive()||e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})},rt.prototype._onMouseLeave=function(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})},rt.prototype._onMouseUp=function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})},rt.prototype._onMouseDown=function(e){var t=this,n=this._createMouseTarget(e,!0),o=6===n.type||7===n.type,i=2===n.type||3===n.type||4===n.type,r=3===n.type,a=this._context.configuration.options.get(83),s=8===n.type||5===n.type,l=9===n.type,c=e.leftButton||e.middleButton;function u(){m.i&&!t._isFocused?t._asyncFocus.schedule():(e.preventDefault(),t.viewHelper.focusTextArea())}if(f.e&&e.leftButton&&e.ctrlKey&&(c=!1),c&&(o||r&&a))u(),this._mouseDownOperation.start(n.type,e);else if(i)e.preventDefault();else if(s){var d=n.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(d.viewZoneId)&&(u(),this._mouseDownOperation.start(n.type,e),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(n.detail)&&(u(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:n})},rt.MOUSE_MOVE_MINIMUM_TIME=100,rt);function rt(e,t,n){var o=ot.call(this)||this;o._isFocused=!1,o._context=e,o.viewController=t,o.viewHelper=n,o.mouseTargetFactory=new Ye(o._context,n),o._mouseDownOperation=o._register(new st(o._context,o.viewController,o.viewHelper,(function(e,t){return o._createMouseTarget(e,t)}),(function(e){return o._getMouseColumn(e)}))),o._asyncFocus=o._register(new y.d((function(){return o.viewHelper.focusTextArea()}),0)),o.lastMouseLeaveTime=-1;var i=new L(o.viewHelper.viewDomNode);return o._register(i.onContextMenu(o.viewHelper.viewDomNode,(function(e){return o._onContextMenu(e,!0)}))),o._register(i.onMouseMoveThrottled(o.viewHelper.viewDomNode,(function(e){return o._onMouseMove(e)}),nt(o.mouseTargetFactory),rt.MOUSE_MOVE_MINIMUM_TIME)),o._register(i.onMouseUp(o.viewHelper.viewDomNode,(function(e){return o._onMouseUp(e)}))),o._register(i.onMouseLeave(o.viewHelper.viewDomNode,(function(e){return o._onMouseLeave(e)}))),o._register(i.onMouseDown(o.viewHelper.viewDomNode,(function(e){return o._onMouseDown(e)}))),o._register(r.j(o.viewHelper.viewDomNode,m.f?"mousewheel":"wheel",(function(e){if(o.viewController.emitMouseWheel(e),o._context.configuration.options.get(57)){var t=new v.c(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=Qe.a.getZoomLevel(),i=0<t.deltaY?1:-1;Qe.a.setZoomLevel(n+i),t.preventDefault(),t.stopPropagation()}}}),{capture:!0,passive:!1})),o._context.addEventHandler(o),o}var at,st=(tt(lt,at=l.a),lt.prototype.dispose=function(){at.prototype.dispose.call(this)},lt.prototype.isActive=function(){return this._isActive},lt.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))},lt.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 o=this._findMousePosition(t,!0);if(o&&o.position){this._mouseState.trySetCount(t.detail,o.position),t.detail=this._mouseState.count;var i=this._context.configuration.options;if(!i.get(68)&&i.get(24)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===o.type&&o.position&&this._currentSelection.containsPosition(o.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,nt(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(o,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,nt(null),(function(e){return n._onMouseDownThenMove(e)}),(function(){return n._stop()})))}},lt.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},lt.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)},lt.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0]},lt.prototype._getPositionOutsideEditor=function(e){var t=e.editorPos,n=this._context.model,o=this._context.viewLayout,i=this._getMouseColumn(e);if(e.posy<t.y){var r=Math.max(o.getCurrentScrollTop()-(t.y-e.posy),0);if((s=Be.getZoneAtCoord(this._context,r))&&(l=this._helpPositionJumpOverViewZone(s)))return new Ae(null,13,i,l);var a=o.getLineNumberAtVerticalOffset(r);return new Ae(null,13,i,new Ie.a(a,1))}if(e.posy>t.y+t.height){var s,l;if(r=o.getCurrentScrollTop()+(e.posy-t.y),(s=Be.getZoneAtCoord(this._context,r))&&(l=this._helpPositionJumpOverViewZone(s)))return new Ae(null,13,i,l);var c=o.getLineNumberAtVerticalOffset(r);return new Ae(null,13,i,new Ie.a(c,n.getLineMaxColumn(c)))}var u=o.getLineNumberAtVerticalOffset(o.getCurrentScrollTop()+(e.posy-t.y));return e.posx<t.x?new Ae(null,13,i,new Ie.a(u,1)):e.posx>t.x+t.width?new Ae(null,13,i,new Ie.a(u,n.getLineMaxColumn(u))):null},lt.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var o=this._createMouseTarget(e,t);if(!o.position)return null;if(8===o.type||5===o.type){var i=this._helpPositionJumpOverViewZone(o.detail);if(i)return new Ae(o.element,o.type,o.mouseColumn,i,null,o.detail)}return o},lt.prototype._helpPositionJumpOverViewZone=function(e){var t=new Ie.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,o=e.positionAfter;return n&&o?n.isBefore(t)?n:o:null},lt.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})},lt);function lt(e,t,n,o,i){var r=at.call(this)||this;return r._context=e,r._viewController=t,r._viewHelper=n,r._createMouseTarget=o,r._getMouseColumn=i,r._mouseMoveMonitor=r._register(new j(r._viewHelper.viewDomNode)),r._onScrollTimeout=r._register(new y.e),r._mouseState=new ct,r._currentSelection=new et.a(1,1,1,1),r._isActive=!1,r._lastMouseEvent=null,r}var ct=(Object.defineProperty(ut.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(ut.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(ut.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(ut.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(ut.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(ut.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(ut.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(ut.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),ut.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},ut.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},ut.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},ut.prototype.trySetCount=function(e,t){var n=(new Date).getTime();n-this._lastSetMouseDownCountTime>ut.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=n,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)},ut.CLEAR_MOUSE_DOWN_COUNT_TIME=400,ut);function ut(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}var dt,ht=n(820),pt=(dt=function(e,t){return(dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function ft(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var gt,mt=(pt(vt,gt=it),vt.prototype._onMouseDown=function(e){"mouse"===this._lastPointerType&>.prototype._onMouseDown.call(this,e)},vt.prototype._onCaptureGestureTap=function(e){var t=this,n=new N(e,this.viewHelper.viewDomNode),o=this._createMouseTarget(n,!1);o.position&&this.viewController.moveTo(o.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout((function(){t.viewHelper.focusTextArea()}))},vt.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},vt.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),gt.prototype.dispose.call(this)},vt);function vt(e,t,n){var o=gt.call(this,e,t,n)||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(r.m(o.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return o._onGestureChange(e)}),ft)),o._register(r.j(o.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return o._onCaptureGestureTap(e)}),!0))}}),100),o._lastPointerType="mouse",o}var yt,bt=(pt(_t,yt=it),_t.prototype._onMouseDown=function(e){"mouse"===this._lastPointerType&&yt.prototype._onMouseDown.call(this,e)},_t.prototype._onCaptureGestureTap=function(e){var t=this,n=new N(e,this.viewHelper.viewDomNode),o=this._createMouseTarget(n,!1);o.position&&this.viewController.moveTo(o.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),yt.prototype.dispose.call(this)},_t);function _t(e,t,n){var o=yt.call(this,e,t,n)||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(r.m(o.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return o._onGestureChange(e)}),ft)),o._register(r.j(o.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return o._onCaptureGestureTap(e)}),!0))}}),100),o._lastPointerType="mouse",o}var wt,Ct=(pt(St,wt=it),St.prototype.onTap=function(e){if(e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new N(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})}},St.prototype.onChange=function(e){"touch"===this._lastPointerType&&this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},St.prototype._onMouseDown=function(e){e.target&&this.viewHelper.linesContentDomNode.contains(e.target)&&"touch"===this._lastPointerType||wt.prototype._onMouseDown.call(this,e)},St);function St(e,t,n){var o=wt.call(this,e,t,n)||this;o._register(g.b.addTarget(o.viewHelper.linesContentDomNode)),o._register(r.j(o.viewHelper.linesContentDomNode,g.a.Tap,(function(e){return o.onTap(e)}))),o._register(r.j(o.viewHelper.linesContentDomNode,g.a.Change,(function(e){return o.onChange(e)}))),o._register(r.j(o.viewHelper.linesContentDomNode,g.a.Contextmenu,(function(e){return o._onContextMenu(new N(e,o.viewHelper.viewDomNode),!1)}))),o._lastPointerType="mouse",o._register(r.j(o.viewHelper.linesContentDomNode,"pointerdown",(function(e){var t=e.pointerType;o._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));var i=new I(o.viewHelper.viewDomNode);return o._register(i.onPointerMoveThrottled(o.viewHelper.viewDomNode,(function(e){return o._onMouseMove(e)}),nt(o.mouseTargetFactory),it.MOUSE_MOVE_MINIMUM_TIME)),o._register(i.onPointerUp(o.viewHelper.viewDomNode,(function(e){return o._onMouseUp(e)}))),o._register(i.onPointerLeave(o.viewHelper.viewDomNode,(function(e){return o._onMouseLeave(e)}))),o._register(i.onPointerDown(o.viewHelper.viewDomNode,(function(e){return o._onMouseDown(e)}))),o}var Ot,xt=(pt(Et,Ot=it),Et.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new N(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},Et.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},Et);function Et(e,t,n){var o=Ot.call(this,e,t,n)||this;return o._register(g.b.addTarget(o.viewHelper.linesContentDomNode)),o._register(r.j(o.viewHelper.linesContentDomNode,g.a.Tap,(function(e){return o.onTap(e)}))),o._register(r.j(o.viewHelper.linesContentDomNode,g.a.Change,(function(e){return o.onChange(e)}))),o._register(r.j(o.viewHelper.linesContentDomNode,g.a.Contextmenu,(function(e){return o._onContextMenu(new N(e,o.viewHelper.viewDomNode),!1)}))),o}var kt,Nt=(pt(Dt,kt=l.a),Dt.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},Dt);function Dt(e,t,n){var o=kt.call(this)||this;return window.navigator.msPointerEnabled?o.handler=o._register(new mt(e,t,n)):f.c&&ht.a.pointerEvents?o.handler=o._register(new Ct(e,t,n)):window.TouchEvent?o.handler=o._register(new xt(e,t,n)):window.navigator.pointerEnabled||window.PointerEvent?o.handler=o._register(new bt(e,t,n)):o.handler=o._register(new it(e,t,n)),o}n(1338);var Lt,Pt,It=n(444),Tt=n(1077),Mt=n(1078),jt=(n(1339),(Lt=function(e,t){return(Lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Lt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Rt,Pt=V),Rt);function Rt(){return null!==Pt&&Pt.apply(this,arguments)||this}var At,Ft,Vt=n(572),Wt=((At=function(e,t){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}At(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Bt,Ft=jt),Bt.prototype._readConfig=function(){var e=this._context.configuration.options;this._lineHeight=e.get(49);var t=e.get(50);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(71);var n=e.get(107);this._lineNumbersLeft=n.lineNumbersLeft,this._lineNumbersWidth=n.lineNumbersWidth},Bt.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,Ft.prototype.dispose.call(this)},Bt.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},Bt.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},Bt.prototype.onFlushed=function(e){return!0},Bt.prototype.onLinesChanged=function(e){return!0},Bt.prototype.onLinesDeleted=function(e){return!0},Bt.prototype.onLinesInserted=function(e){return!0},Bt.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Bt.prototype.onZonesChanged=function(e){return!0},Bt.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Ie.a(e,1));if(1!==t.column)return"";var n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2!==this._renderLineNumbers)return 3!==this._renderLineNumbers||this._lastCursorModelPosition.lineNumber===n||n%10==0?String(n):"";var o=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===o?'<span class="relative-current-line-number">'+n+"</span>":String(o)},Bt.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var t=f.d?this._lineHeight%2==0?" lh-even":" lh-odd":"",n=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,i='<div class="'+Bt.CLASS_NAME+t+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',r=this._context.model.getLineCount(),a=[],s=n;s<=o;s++){var l=s-n;if(this._renderFinalNewline||s!==r||0!==this._context.model.getLineLength(s)){var c=this._getLineRenderLineNumber(s);a[l]=c?i+c+"</div>":""}else a[l]=""}this._renderResult=a}else this._renderResult=null},Bt.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Bt.CLASS_NAME="line-numbers",Bt);function Bt(e){var t=Ft.call(this)||this;return t._context=e,t._readConfig(),t._lastCursorModelPosition=new Ie.a(1,1),t._renderResult=null,t._context.addEventHandler(t),t}Object(he.e)((function(e,t){var n=e.getColor(Vt.k);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var o=e.getColor(Vt.b);o&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+o+"; }")}));var Ht,zt,Kt=((Ht=function(e,t){return(Ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ht(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ut,zt=z),Ut.prototype.dispose=function(){zt.prototype.dispose.call(this)},Ut.prototype.getDomNode=function(){return this._domNode},Ut.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._canUseLayerHinting=!t.get(22),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0},Ut.prototype.onScrollChanged=function(e){return zt.prototype.onScrollChanged.call(this,e)||e.scrollTopChanged},Ut.prototype.prepareRender=function(e){},Ut.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)},Ut.CLASS_NAME="glyph-margin",Ut.OUTER_CLASS_NAME="margin",Ut);function Ut(e){var t=zt.call(this,e)||this,n=t._context.configuration.options,o=n.get(107);return t._canUseLayerHinting=!n.get(22),t._contentLeft=o.contentLeft,t._glyphMarginLeft=o.glyphMarginLeft,t._glyphMarginWidth=o.glyphMarginWidth,t._domNode=Object(p.b)(document.createElement("div")),t._domNode.setClassName(Ut.OUTER_CLASS_NAME),t._domNode.setPosition("absolute"),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t._glyphMarginBackgroundDomNode=Object(p.b)(document.createElement("div")),t._glyphMarginBackgroundDomNode.setClassName(Ut.CLASS_NAME),t._domNode.appendChild(t._glyphMarginBackgroundDomNode),t}var qt,Gt=n(823),Yt=(qt=function(e,t){return(qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}qt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zt=($t.prototype.hasChanged=function(e){return this._source.hasChanged(e)},$t);function $t(e){this.type=1,this._source=e}var Xt,Jt=function(e){this.type=2,this.contentWidth=e.contentWidth,this.contentHeight=e.contentHeight,this.contentWidthChanged=e.contentWidthChanged,this.contentHeightChanged=e.contentHeightChanged},Qt=function(e,t){this.type=3,this.selections=e,this.modelSelections=t},en=function(){this.type=4},tn=function(){this.type=5},nn=function(e){this.type=6,this.isFocused=e},on=function(){this.type=7},rn=function(){this.type=8},an=function(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t},sn=function(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t},ln=function(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t},cn=function(e,t,n,o,i){this.type=12,this.source=e,this.range=t,this.verticalType=n,this.revealHorizontal=o,this.scrollType=i},un=function(e){this.type=13,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},dn=function(){this.type=14},hn=function(e){this.type=15,this.ranges=e},pn=function(){this.type=16},fn=function(){this.type=17},gn=(Yt(mn,Xt=l.a),mn.prototype.dispose=function(){this._listeners=[],Xt.prototype.dispose.call(this)},mn.prototype._beginEmit=function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new vn),this._collector},mn.prototype._endEmit=function(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.finalize();this._collector=null,0<e.length&&this._emit(e)}},mn.prototype._emit=function(e){for(var t=this._listeners.slice(0),n=0,o=t.length;n<o;n++)bn(t[n],e)},mn.prototype.addEventListener=function(e){var t=this;return this._listeners.push(e),Object(l.h)((function(){for(var n=t._listeners,o=0,i=n.length;o<i;o++)if(n[o]===e){n.splice(o,1);break}}))},mn);function mn(){var e=Xt.call(this)||this;return e._listeners=[],e._collector=null,e._collectorCnt=0,e}var vn=(yn.prototype.emit=function(e){this._events[this._eventsLen++]=e},yn.prototype.finalize=function(){var e=this._events;return this._events=[],e},yn);function yn(){this._eventsLen=0,this._events=[],this._eventsLen=0}function bn(e,t){try{e(t)}catch(e){a.e(e)}}var _n,wn=(_n=function(e,t){return(_n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}_n(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Cn=(Sn.prototype.setWidth=function(e){return new Sn(this.top,this.left,e)},Sn);function Sn(e,t,n){this.top=e,this.left=t,this.width=n}var On,xn=m.f||m.h,En=(wn(kn,On=z),kn.prototype.dispose=function(){On.prototype.dispose.call(this)},kn.prototype._getWordBeforePosition=function(e){for(var t=this._context.model.getLineContent(e.lineNumber),n=Object(Gt.a)(this._context.configuration.options.get(96)),o=e.column,i=0;1<o;){var r=t.charCodeAt(o-2);if(0!==n.get(r)||50<i)return t.substring(o-1,e.column-1);i++,o--}return t.substring(0,e.column-1)},kn.prototype._getCharacterBeforePosition=function(e){if(1<e.column){var t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!It.z(t.charCodeAt(0)))return t}return""},kn.prototype._getAriaLabel=function(e){return 1===e.get(2)?i.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.get(4)},kn.prototype._setAccessibilityOptions=function(e){this._accessibilitySupport=e.get(2);var t=e.get(3);2===this._accessibilitySupport&&t===pe.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=t},kn.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._setAccessibilityOptions(t),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._contentHeight=n.height,this._fontInfo=t.get(34),this._lineHeight=t.get(49),this._emptySelectionClipboard=t.get(25),this._copyWithSyntaxHighlighting=t.get(15),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),f.g&&e.hasChanged(68)&&(t.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},kn.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},kn.prototype.onDecorationsChanged=function(e){return!0},kn.prototype.onFlushed=function(e){return!0},kn.prototype.onLinesChanged=function(e){return!0},kn.prototype.onLinesDeleted=function(e){return!0},kn.prototype.onLinesInserted=function(e){return!0},kn.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},kn.prototype.onZonesChanged=function(e){return!0},kn.prototype.isFocused=function(){return this._textAreaInput.isFocused()},kn.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},kn.prototype.getLastRenderData=function(){return this._lastRenderPosition},kn.prototype.setAriaOptions=function(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant"))},kn.prototype.prepareRender=function(e){this._primaryCursorPosition=new Ie.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)},kn.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},kn.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():f.e?this._renderInsideEditor(this._primaryCursorPosition,t,e,xn?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,t,e,xn?0:1,xn?0:1)}}else this._renderAtTopLeft()},kn.prototype._renderInsideEditor=function(e,t,n,o,i){this._lastRenderPosition=e;var r=this.textArea,a=this.textAreaCover;u.a.applyFontInfo(r,this._fontInfo),r.setTop(t),r.setLeft(n),r.setWidth(o),r.setHeight(i),a.setTop(0),a.setLeft(0),a.setWidth(0),a.setHeight(0)},kn.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var e=this.textArea,t=this.textAreaCover;if(u.a.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),xn)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(40)?t.setClassName("monaco-editor-background textAreaCover "+Kt.OUTER_CLASS_NAME):0!==n.get(50).renderType?t.setClassName("monaco-editor-background textAreaCover "+Wt.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")},kn);function kn(e,t,n){var o=On.call(this,e)||this;o._primaryCursorPosition=new Ie.a(1,1),o._primaryCursorVisibleRange=null,o._viewController=t,o._viewHelper=n,o._scrollLeft=0,o._scrollTop=0;var i=o._context.configuration.options,r=i.get(107);o._setAccessibilityOptions(i),o._contentLeft=r.contentLeft,o._contentWidth=r.contentWidth,o._contentHeight=r.height,o._fontInfo=i.get(34),o._lineHeight=i.get(49),o._emptySelectionClipboard=i.get(25),o._copyWithSyntaxHighlighting=i.get(15),o._visibleTextArea=null,o._selections=[new et.a(1,1,1,1)],o._modelSelections=[new et.a(1,1,1,1)],o._lastRenderPosition=null,o.textArea=Object(p.b)(document.createElement("textarea")),U.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(i)),o.textArea.setAttribute("role","textbox"),o.textArea.setAttribute("aria-multiline","true"),o.textArea.setAttribute("aria-haspopup","false"),o.textArea.setAttribute("aria-autocomplete","both"),f.g&&i.get(68)&&o.textArea.setAttribute("readonly","true"),o.textAreaCover=Object(p.b)(document.createElement("div")),o.textAreaCover.setPosition("absolute");var a={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)}},s={getDataToCopy:function(e){var t=o._context.model.getPlainTextToCopy(o._modelSelections,o._emptySelectionClipboard,f.h),n=o._context.model.getEOL(),i=o._emptySelectionClipboard&&1===o._modelSelections.length&&o._modelSelections[0].isEmpty(),r=Array.isArray(t)?t:null,a=Array.isArray(t)?t.join(n):t,s=void 0,l=null;if(e&&(Tt.a.forceCopyWithSyntaxHighlighting||o._copyWithSyntaxHighlighting&&a.length<65536)){var c=o._context.model.getRichTextToCopy(o._modelSelections,o._emptySelectionClipboard);c&&(s=c.html,l=c.mode)}return{isFromEmptySelection:i,multicursorText:r,text:a,html:s,mode:l}},getScreenReaderContent:function(e){if(m.j)return Mt.b.EMPTY;if(1!==o._accessibilitySupport)return Mt.a.fromEditorSelection(e,a,o._selections[0],o._accessibilityPageSize,0===o._accessibilitySupport);if(f.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)),0<i.length)return new Mt.b(i,i.length,i.length,n,n)}}return Mt.b.EMPTY},deduceModelPosition:function(e,t,n){return o._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}};return o._textAreaInput=o._register(new Tt.b(s,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,i=null;e.metadata&&(t=o._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,n=void 0!==e.metadata.multicursorText?e.metadata.multicursorText:null,i=e.metadata.mode),o._viewController.paste("keyboard",e.text,t,n,i)}))),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 cn("keyboard",new Te.a(e,t,e,t),0,!0,1));var n=o._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(o._visibleTextArea=new Cn(o._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,xn?0:1),o._render()),o.textArea.setClassName("inputarea ime-input"),o._viewController.compositionStart("keyboard")}))),o._register(o._textAreaInput.onCompositionUpdate((function(e){m.f?o._visibleTextArea=o._visibleTextArea.setWidth(0):o._visibleTextArea=o._visibleTextArea.setWidth(function(e,t){var n=document.createElement("canvas").getContext("2d");n.font=function(e){return function(e,t,n,o,i){return"normal normal "+t+" "+n+"px / "+o+"px "+i}(0,e.fontWeight,e.fontSize,e.lineHeight,e.fontFamily)}(t);var o=n.measureText(e);return m.h?o.width+2:o.width}(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 nn(!0))}))),o._register(o._textAreaInput.onBlur((function(){o._context.privateViewEventBus.emit(new nn(!1))}))),o}var Nn=n(927),Dn=(Ln.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t)},Ln.prototype.paste=function(e,t,n,o,i){this.commandDelegate.paste(e,t,n,o,i)},Ln.prototype.type=function(e,t){this.commandDelegate.type(e,t)},Ln.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)},Ln.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},Ln.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},Ln.prototype.cut=function(e){this.commandDelegate.cut(e)},Ln.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(Nn.CoreNavigationCommands.SetSelection,{source:e,selection:t})},Ln.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new Ie.a(e.lineNumber,t):e},Ln.prototype._hasMulticursorModifier=function(e){switch(this.configuration.options.get(59)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey}return!1},Ln.prototype._hasNonMulticursorModifier=function(e){switch(this.configuration.options.get(59)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey}return!1},Ln.prototype.dispatchMouse=function(e){var t=f.d&&this.configuration.options.get(81);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):4<=e.mouseDownCount?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)},Ln.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this._convertViewToModelPosition(e),viewPosition:e}},Ln.prototype.moveTo=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.MoveTo,this._usualArgs(e))},Ln.prototype._moveToSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.MoveToSelect,this._usualArgs(e))},Ln.prototype._columnSelect=function(e,t,n){e=this._validateViewColumn(e),this._execMouseCommand(Nn.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:n})},Ln.prototype._createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(Nn.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},Ln.prototype._lastCursorMoveToSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(e))},Ln.prototype._wordSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.WordSelect,this._usualArgs(e))},Ln.prototype._wordSelectDrag=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.WordSelectDrag,this._usualArgs(e))},Ln.prototype._lastCursorWordSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(e))},Ln.prototype._lineSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LineSelect,this._usualArgs(e))},Ln.prototype._lineSelectDrag=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LineSelectDrag,this._usualArgs(e))},Ln.prototype._lastCursorLineSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(e))},Ln.prototype._lastCursorLineSelectDrag=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(e))},Ln.prototype._selectAll=function(){this._execMouseCommand(Nn.CoreNavigationCommands.SelectAll,{})},Ln.prototype._convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},Ln.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},Ln.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},Ln.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},Ln.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},Ln.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},Ln.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},Ln.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},Ln.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},Ln.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},Ln.prototype.emitMouseWheel=function(e){this.outgoingEvents.emitMouseWheel(e)},Ln);function Ln(e,t,n,o){this.configuration=e,this.viewModel=t,this.outgoingEvents=n,this.commandDelegate=o}var Pn,In,Tn=((Pn=function(e,t){return(Pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Pn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Mn,In=l.a),Mn.prototype.emitContentSizeChange=function(e){this.onDidContentSizeChange&&this.onDidContentSizeChange(e)},Mn.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)},Mn.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},Mn.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},Mn.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)},Mn.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)},Mn.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))},Mn.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))},Mn.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))},Mn.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))},Mn.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))},Mn.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))},Mn.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))},Mn.prototype.emitMouseWheel=function(e){this.onMouseWheel&&this.onMouseWheel(e)},Mn.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e},Mn.prototype._convertViewToModelMouseTarget=function(e){return Mn.convertViewToModelMouseTarget(e,this._viewModel.coordinatesConverter)},Mn.convertViewToModelMouseTarget=function(e,t){return new jn(e.element,e.type,e.mouseColumn,e.position?t.convertViewPositionToModelPosition(e.position):null,e.range?t.convertViewRangeToModelRange(e.range):null,e.detail)},Mn);function Mn(e){var t=In.call(this)||this;return t.onDidContentSizeChange=null,t.onDidScroll=null,t.onDidGainFocus=null,t.onDidLoseFocus=null,t.onKeyDown=null,t.onKeyUp=null,t.onContextMenu=null,t.onMouseMove=null,t.onMouseLeave=null,t.onMouseUp=null,t.onMouseDown=null,t.onMouseDrag=null,t.onMouseDrop=null,t.onMouseWheel=null,t._viewModel=e,t}var jn=(Rn.prototype.toString=function(){return Ae.toString(this)},Rn);function Rn(e,t,n,o,i,r){this.element=e,this.type=t,this.mouseColumn=n,this.position=o,this.range=i,this.detail=r}var An=n(894),Fn=(Vn.prototype.flush=function(){this._set(1,[])},Vn.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e},Vn.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},Vn.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},Vn.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},Vn.prototype.getCount=function(){return this._lines.length},Vn.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]},Vn.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),o=this.getEndLineNumber();if(t<n){var i=t-e+1;return this._rendLineNumberStart-=i,null}if(o<e)return null;for(var r=0,a=0,s=n;s<=o;s++){var l=s-this._rendLineNumberStart;e<=s&&s<=t&&(0===a?(r=l,a=1):a++)}if(e<n){var c;c=t<n?t-e+1:n-e,this._rendLineNumberStart-=c}return this._lines.splice(r,a)},Vn.prototype.onLinesChanged=function(e,t){if(0===this.getCount())return!1;for(var n=this.getStartLineNumber(),o=this.getEndLineNumber(),i=!1,r=e;r<=t;r++)n<=r&&r<=o&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),i=!0);return i},Vn.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,o=this.getStartLineNumber(),i=this.getEndLineNumber();if(e<=o)return this._rendLineNumberStart+=n,null;if(i<e)return null;if(i<n+e)return this._lines.splice(e-this._rendLineNumberStart,i-e+1);for(var r=[],a=0;a<n;a++)r[a]=this._createLine();var s=e-this._rendLineNumberStart,l=this._lines.slice(0,s),c=this._lines.slice(s,this._lines.length-n),u=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=l.concat(r).concat(c),u},Vn.prototype.onTokensChanged=function(e){if(0===this.getCount())return!1;for(var t=this.getStartLineNumber(),n=this.getEndLineNumber(),o=!1,i=0,r=e.length;i<r;i++){var a=e[i];if(!(a.toLineNumber<t||a.fromLineNumber>n))for(var s=Math.max(t,a.fromLineNumber),l=Math.min(n,a.toLineNumber),c=s;c<=l;c++){var u=c-this._rendLineNumberStart;this._lines[u].onTokensChanged(),o=!0}}return o},Vn);function Vn(e){this._createLine=e,this._set(1,[])}var Wn=(Bn.prototype._createDomNode=function(){var e=Object(p.b)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},Bn.prototype.onConfigurationChanged=function(e){return!!e.hasChanged(107)},Bn.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},Bn.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},Bn.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,o=t.length;n<o;n++){var i=t[n].getDomNode();i&&this.domNode.domNode.removeChild(i)}return!0},Bn.prototype.onLinesInserted=function(e){var t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,o=t.length;n<o;n++){var i=t[n].getDomNode();i&&this.domNode.domNode.removeChild(i)}return!0},Bn.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Bn.prototype.onTokensChanged=function(e){return this._linesCollection.onTokensChanged(e.ranges)},Bn.prototype.onZonesChanged=function(e){return!0},Bn.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},Bn.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},Bn.prototype.getVisibleLine=function(e){return this._linesCollection.getLine(e)},Bn.prototype.renderLines=function(e){var t=this._linesCollection._get(),n=new Hn(this.domNode.domNode,this._host,e),o={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},i=n.render(o,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(i.rendLineNumberStart,i.lines)},Bn);function Bn(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Fn((function(){return t._host.createVisibleLine()}))}var Hn=(zn.prototype.render=function(e,t,n,o){var i={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(i.rendLineNumberStart+i.linesLength-1<t||n<i.rendLineNumberStart){i.rendLineNumberStart=t,i.linesLength=n-t+1,i.lines=[];for(var r=t;r<=n;r++)i.lines[r-t]=this.host.createVisibleLine();return this._finishRendering(i,!0,o),i}if(this._renderUntouchedLines(i,Math.max(t-i.rendLineNumberStart,0),Math.min(n-i.rendLineNumberStart,i.linesLength-1),o,t),i.rendLineNumberStart>t?(l=t)<=(a=Math.min(n,i.rendLineNumberStart-1))&&(this._insertLinesBefore(i,l,a,o,t),i.linesLength+=a-l+1):i.rendLineNumberStart<t&&0<(s=Math.min(i.linesLength,t-i.rendLineNumberStart))&&(this._removeLinesBefore(i,s),i.linesLength-=s),i.rendLineNumberStart=t,i.rendLineNumberStart+i.linesLength-1<n)(l=i.rendLineNumberStart+i.linesLength)<=(a=n)&&(this._insertLinesAfter(i,l,a,o,t),i.linesLength+=a-l+1);else if(i.rendLineNumberStart+i.linesLength-1>n){var a,s,l=Math.max(0,n-i.rendLineNumberStart+1);0<(s=(a=i.linesLength-1)-l+1)&&(this._removeLinesAfter(i,s),i.linesLength-=s)}return this._finishRendering(i,!1,o),i},zn.prototype._renderUntouchedLines=function(e,t,n,o,i){for(var r=e.rendLineNumberStart,a=e.lines,s=t;s<=n;s++){var l=r+s;a[s].layoutLine(l,o[l-i])}},zn.prototype._insertLinesBefore=function(e,t,n,o,i){for(var r=[],a=0,s=t;s<=n;s++)r[a++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)},zn.prototype._removeLinesBefore=function(e,t){for(var n=0;n<t;n++){var o=e.lines[n].getDomNode();o&&this.domNode.removeChild(o)}e.lines.splice(0,t)},zn.prototype._insertLinesAfter=function(e,t,n,o,i){for(var r=[],a=0,s=t;s<=n;s++)r[a++]=this.host.createVisibleLine();e.lines=e.lines.concat(r)},zn.prototype._removeLinesAfter=function(e,t){for(var n=e.linesLength-t,o=0;o<t;o++){var i=e.lines[n+o].getDomNode();i&&this.domNode.removeChild(i)}e.lines.splice(n,t)},zn.prototype._finishRenderingNewLines=function(e,t,n,o){var i=this.domNode.lastChild;t||!i?this.domNode.innerHTML=n:i.insertAdjacentHTML("afterend",n);for(var r=this.domNode.lastChild,a=e.linesLength-1;0<=a;a--){var s=e.lines[a];o[a]&&(s.setDomNode(r),r=r.previousSibling)}},zn.prototype._finishRenderingInvalidLines=function(e,t,n){var o=document.createElement("div");o.innerHTML=t;for(var i=0;i<e.linesLength;i++){var r=e.lines[i];if(n[i]){var a=o.firstChild,s=r.getDomNode();s.parentNode.replaceChild(a,s),r.setDomNode(a)}}},zn.prototype._finishRendering=function(e,t,n){var o=zn._sb,i=e.linesLength,r=e.lines,a=e.rendLineNumberStart,s=[];o.reset();for(var l=!1,c=0;c<i;c++){var u=r[c];s[c]=!1,u.getDomNode()||u.renderLine(c+a,n[c],this.viewportData,o)&&(l=s[c]=!0)}l&&this._finishRenderingNewLines(e,t,o.build(),s),o.reset();var d=!1,h=[];for(c=0;c<i;c++)u=r[c],h[c]=!1,s[c]||u.renderLine(c+a,n[c],this.viewportData,o)&&(d=h[c]=!0);d&&this._finishRenderingInvalidLines(e,o.build(),h)},zn._sb=Object(An.a)(1e5),zn);function zn(e,t,n){this.domNode=e,this.host=t,this.viewportData=n}var Kn,Un,qn=(Kn=function(e,t){return(Kn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Kn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Gn=(qn(Yn,Un=z),Yn.prototype.shouldRender=function(){if(Un.prototype.shouldRender.call(this))return!0;for(var e=0,t=this._dynamicOverlays.length;e<t;e++)if(this._dynamicOverlays[e].shouldRender())return!0;return!1},Yn.prototype.dispose=function(){Un.prototype.dispose.call(this);for(var e=0,t=this._dynamicOverlays.length;e<t;e++)this._dynamicOverlays[e].dispose();this._dynamicOverlays=[]},Yn.prototype.getDomNode=function(){return this.domNode},Yn.prototype.createVisibleLine=function(){return new Zn(this._context.configuration,this._dynamicOverlays)},Yn.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e)},Yn.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),o=t;o<=n;o++)this._visibleLines.getVisibleLine(o).onConfigurationChanged(e);return!0},Yn.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e)},Yn.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!0},Yn.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},Yn.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},Yn.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},Yn.prototype.onScrollChanged=function(e){return this._visibleLines.onScrollChanged(e)||!0},Yn.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},Yn.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},Yn.prototype.prepareRender=function(e){for(var t=this._dynamicOverlays.filter((function(e){return e.shouldRender()})),n=0,o=t.length;n<o;n++){var i=t[n];i.prepareRender(e),i.onDidRender()}},Yn.prototype.render=function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)},Yn.prototype._viewOverlaysRender=function(e){this._visibleLines.renderLines(e.viewportData)},Yn);function Yn(e){var t=Un.call(this,e)||this;return t._visibleLines=new Wn(t),t.domNode=t._visibleLines.domNode,t._dynamicOverlays=[],t._isFocused=!1,t.domNode.setClassName("view-overlays"),t}var Zn=($n.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},$n.prototype.setDomNode=function(e){this._domNode=Object(p.b)(e)},$n.prototype.onContentChanged=function(){},$n.prototype.onTokensChanged=function(){},$n.prototype.onConfigurationChanged=function(e){this._lineHeight=this._configuration.options.get(49)},$n.prototype.renderLine=function(e,t,n,o){for(var i="",r=0,a=this._dynamicOverlays.length;r<a;r++)i+=this._dynamicOverlays[r].render(n.startLineNumber,e);return this._renderedContent!==i&&(this._renderedContent=i,o.appendASCIIString('<div style="position:absolute;top:'),o.appendASCIIString(String(t)),o.appendASCIIString("px;width:100%;height:"),o.appendASCIIString(String(this._lineHeight)),o.appendASCIIString('px;">'),o.appendASCIIString(i),o.appendASCIIString("</div>"),!0)},$n.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},$n);function $n(e,t){this._configuration=e,this._lineHeight=this._configuration.options.get(49),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}var Xn,Jn=(qn(Qn,Xn=Gn),Qn.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(107);return this._contentWidth=t.contentWidth,Xn.prototype.onConfigurationChanged.call(this,e)||!0},Qn.prototype.onScrollChanged=function(e){return Xn.prototype.onScrollChanged.call(this,e)||e.scrollWidthChanged},Qn.prototype._viewOverlaysRender=function(e){Xn.prototype._viewOverlaysRender.call(this,e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))},Qn);function Qn(e){var t=Xn.call(this,e)||this,n=t._context.configuration.options.get(107);return t._contentWidth=n.contentWidth,t.domNode.setHeight(0),t}var eo,to=(qn(no,eo=Gn),no.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;u.a.applyFontInfo(this.domNode,t.get(34));var n=t.get(107);return this._contentLeft=n.contentLeft,eo.prototype.onConfigurationChanged.call(this,e)||!0},no.prototype.onScrollChanged=function(e){return eo.prototype.onScrollChanged.call(this,e)||e.scrollHeightChanged},no.prototype._viewOverlaysRender=function(e){eo.prototype._viewOverlaysRender.call(this,e);var t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)},no);function no(e){var t=eo.call(this,e)||this,n=t._context.configuration.options,o=n.get(107);return t._contentLeft=o.contentLeft,t.domNode.setClassName("margin-view-overlays"),t.domNode.setWidth(1),u.a.applyFontInfo(t.domNode,n.get(34)),t}var oo,io,ro=(oo=function(e,t){return(oo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}oo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ao=function(e,t){this.top=e,this.left=t},so=(ro(lo,io=z),lo.prototype.dispose=function(){io.prototype.dispose.call(this),this._widgets={}},lo.prototype.onConfigurationChanged=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var o=n[t];this._widgets[o].onConfigurationChanged(e)}return!0},lo.prototype.onDecorationsChanged=function(e){return!0},lo.prototype.onFlushed=function(e){return!0},lo.prototype.onLineMappingChanged=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var o=n[t];this._widgets[o].onLineMappingChanged(e)}return!0},lo.prototype.onLinesChanged=function(e){return!0},lo.prototype.onLinesDeleted=function(e){return!0},lo.prototype.onLinesInserted=function(e){return!0},lo.prototype.onScrollChanged=function(e){return!0},lo.prototype.onZonesChanged=function(e){return!0},lo.prototype.addWidget=function(e){var t=new co(this._context,this._viewDomNode,e);(this._widgets[t.id]=t).allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()},lo.prototype.setWidgetPosition=function(e,t,n){this._widgets[e.getId()].setPosition(t,n),this.setShouldRender()},lo.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t];delete this._widgets[t];var o=n.domNode.domNode;o.parentNode.removeChild(o),o.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},lo.prototype.shouldSuppressMouseDownOnWidget=function(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown},lo.prototype.onBeforeRender=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var o=n[t];this._widgets[o].onBeforeRender(e)}},lo.prototype.prepareRender=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var o=n[t];this._widgets[o].prepareRender(e)}},lo.prototype.render=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var o=n[t];this._widgets[o].render(e)}},lo);function lo(e,t){var n=io.call(this,e)||this;return n._viewDomNode=t,n._widgets={},n.domNode=Object(p.b)(document.createElement("div")),U.write(n.domNode,1),n.domNode.setClassName("contentWidgets"),n.domNode.setPosition("absolute"),n.domNode.setTop(0),n.overflowingContentWidgetsDomNode=Object(p.b)(document.createElement("div")),U.write(n.overflowingContentWidgetsDomNode,2),n.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),n}var co=(uo.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;if(this._lineHeight=t.get(49),e.hasChanged(107)){var n=t.get(107);this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._maxWidth=this._getMaxWidth()}},uo.prototype.onLineMappingChanged=function(e){this._setPosition(this._range)},uo.prototype._setPosition=function(e){if(this._range=e,this._viewRange=null,this._range){var t=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(t.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(t.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(t))}},uo.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},uo.prototype.setPosition=function(e,t){this._setPosition(e),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},uo.prototype._layoutBoxInViewport=function(e,t,n,o,i){var r=e.top,a=r,s=t.top+this._lineHeight,l=r-o,c=o<=a,u=s,d=o<=i.viewportHeight-s,h=e.left,p=t.left;return h+n>i.scrollLeft+i.viewportWidth&&(h=i.scrollLeft+i.viewportWidth-n),p+n>i.scrollLeft+i.viewportWidth&&(p=i.scrollLeft+i.viewportWidth-n),h<i.scrollLeft&&(h=i.scrollLeft),p<i.scrollLeft&&(p=i.scrollLeft),{fitsAbove:c,aboveTop:l,aboveLeft:h,fitsBelow:d,belowTop:u,belowLeft:p}},uo.prototype._layoutHorizontalSegmentInPage=function(e,t,n,o){var i,a=Math.max(0,t.left-o),s=Math.min(t.left+t.width+o,e.width),l=t.left+n-r.e.scrollX;return s<l+o&&(l-=i=l-(s-o),n-=i),l<a&&(l-=i=l-a,n-=i),[n,l]},uo.prototype._layoutBoxInPage=function(e,t,n,o,i){var a=e.top-o,s=t.top+this._lineHeight,l=r.C(this._viewDomNode.domNode),c=l.top+a-r.e.scrollY,u=l.top+s-r.e.scrollY,d=r.y(document.body),h=this._layoutHorizontalSegmentInPage(d,l,e.left-i.scrollLeft+this._contentLeft,n),p=h[0],f=h[1],g=this._layoutHorizontalSegmentInPage(d,l,t.left-i.scrollLeft+this._contentLeft,n),m=g[0],v=g[1],y=22<=c,b=u+o<=d.height-22;return this._fixedOverflowWidgets?{fitsAbove:y,aboveTop:Math.max(c,22),aboveLeft:f,fitsBelow:b,belowTop:u,belowLeft:v}:{fitsAbove:y,aboveTop:Math.max(a,22),aboveLeft:p,fitsBelow:b,belowTop:s,belowLeft:m}},uo.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new ao(e.top,e.left+this._contentLeft)},uo.prototype._getTopAndBottomLeft=function(e){if(!this._viewRange)return[null,null];var t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];for(var n=t[0],o=t[0],i=0,r=t;i<r.length;i++){var a=r[i];a.lineNumber<n.lineNumber&&(n=a),a.lineNumber>o.lineNumber&&(o=a)}for(var s=1073741824,l=0,c=n.ranges;l<c.length;l++)(p=c[l]).left<s&&(s=p.left);for(var u=1073741824,d=0,h=o.ranges;d<h.length;d++){var p;(p=h[d]).left<u&&(u=p.left)}var f=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.scrollTop,g=new ao(f,s),m=e.getVerticalOffsetForLineNumber(o.lineNumber)-e.scrollTop;return[g,new ao(m,u)]},uo.prototype._prepareRenderWidget=function(e){var t,n=this._getTopAndBottomLeft(e),o=n[0],i=n[1];if(!o||!i)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(o,i,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(o,i,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e),this._preference)for(var a=1;a<=2;a++)for(var s=0,l=this._preference;s<l.length;s++){var c=l[s];if(1===c){if(!t)return null;if(2===a||t.fitsAbove)return new ao(t.aboveTop,t.aboveLeft)}else{if(2!==c)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(o):o;if(!t)return null;if(2===a||t.fitsBelow)return new ao(t.belowTop,t.belowLeft)}}return null},uo.prototype.onBeforeRender=function(e){this._viewRange&&this._preference&&(this._viewRange.endLineNumber<e.startLineNumber||this._viewRange.startLineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},uo.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},uo.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?this.domNode.setTop(this._renderData.top):this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},uo);function uo(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Object(p.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var o=this._context.configuration.options,i=o.get(107);this._fixedOverflowWidgets=o.get(29),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this._lineHeight=o.get(49),this._range=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)}n(1340);var ho,po,fo=n(459),go=(ho=function(e,t){return(ho=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ho(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mo=!0,vo=(go(yo,po=jt),yo.prototype.dispose=function(){this._context.removeEventHandler(this),po.prototype.dispose.call(this)},yo.prototype._readFromSelections=function(){var e=!1,t=mo?this._selections.slice(0,1):this._selections,n=t.map((function(e){return e.positionLineNumber}));n.sort((function(e,t){return e-t})),fo.g(this._cursorLineNumbers,n)||(this._cursorLineNumbers=n,e=!0);var o=t.every((function(e){return e.isEmpty()}));return this._selectionIsEmpty!==o&&(this._selectionIsEmpty=o,e=!0),e},yo.prototype.onThemeChanged=function(e){return this._readFromSelections()},yo.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._renderLineHighlight=t.get(72),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,!0},yo.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._readFromSelections()},yo.prototype.onFlushed=function(e){return!0},yo.prototype.onLinesDeleted=function(e){return!0},yo.prototype.onLinesInserted=function(e){return!0},yo.prototype.onScrollChanged=function(e){return e.scrollWidthChanged||e.scrollTopChanged},yo.prototype.onZonesChanged=function(e){return!0},yo.prototype.prepareRender=function(e){if(this._shouldRenderThis()){for(var t=this._renderOne(e),n=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,i=this._cursorLineNumbers.length,r=0,a=[],s=n;s<=o;s++){for(var l=s-n;r<i&&this._cursorLineNumbers[r]<s;)r++;r<i&&this._cursorLineNumbers[r]===s?a[l]=t:a[l]=""}this._renderData=a}else this._renderData=null},yo.prototype.render=function(e,t){if(!this._renderData)return"";var n=t-e;return n>=this._renderData.length?"":this._renderData[n]},yo);function yo(e){var t=po.call(this)||this;t._context=e;var n=t._context.configuration.options,o=n.get(107);return t._lineHeight=n.get(49),t._renderLineHighlight=n.get(72),t._contentLeft=o.contentLeft,t._contentWidth=o.contentWidth,t._selectionIsEmpty=!0,t._cursorLineNumbers=[],t._selections=[],t._renderData=null,t._context.addEventHandler(t),t}var bo,_o=(go(wo,bo=vo),wo.prototype._renderOne=function(e){return'<div class="current-line'+(this._shouldRenderOther()?" current-line-both":"")+'" style="width:'+Math.max(e.scrollWidth,this._contentWidth)+"px; height:"+this._lineHeight+'px;"></div>'},wo.prototype._shouldRenderThis=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},wo.prototype._shouldRenderOther=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},wo);function wo(){return null!==bo&&bo.apply(this,arguments)||this}var Co,So=(go(Oo,Co=vo),Oo.prototype._renderOne=function(e){return'<div class="current-line current-line-margin'+(this._shouldRenderOther()?" current-line-margin-both":"")+'" style="width:'+this._contentLeft+"px; height:"+this._lineHeight+'px;"></div>'},Oo.prototype._shouldRenderThis=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},Oo.prototype._shouldRenderOther=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},Oo);function Oo(){return null!==Co&&Co.apply(this,arguments)||this}Object(he.e)((function(e,t){mo=!1;var n=e.getColor(Vt.i);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(Vt.j)){var o=e.getColor(Vt.j);o&&(mo=!0,t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+o+"; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+o+"; }"),"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(1341);var xo,Eo,ko=((xo=function(e,t){return(xo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}xo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(No,Eo=jt),No.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,Eo.prototype.dispose.call(this)},No.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},No.prototype.onDecorationsChanged=function(e){return!0},No.prototype.onFlushed=function(e){return!0},No.prototype.onLinesChanged=function(e){return!0},No.prototype.onLinesDeleted=function(e){return!0},No.prototype.onLinesInserted=function(e){return!0},No.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},No.prototype.onZonesChanged=function(e){return!0},No.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],o=0,i=0,r=t.length;i<r;i++){var a=t[i];a.options.className&&(n[o++]=a)}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,o=t.options.className;return n<o?-1:o<n?1:Te.a.compareRangesUsingStarts(e.range,t.range)}));for(var s=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,c=[],u=s;u<=l;u++)c[u-s]="";this._renderWholeLineDecorations(e,n,c),this._renderNormalDecorations(e,n,c),this._renderResult=c},No.prototype._renderWholeLineDecorations=function(e,t,n){for(var o=String(this._lineHeight),i=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=0,s=t.length;a<s;a++){var l=t[a];if(l.options.isWholeLine)for(var c='<div class="cdr '+l.options.className+'" style="left:0;width:100%;height:'+o+'px;"></div>',u=Math.max(l.range.startLineNumber,i),d=Math.min(l.range.endLineNumber,r),h=u;h<=d;h++)n[h-i]+=c}},No.prototype._renderNormalDecorations=function(e,t,n){for(var o=String(this._lineHeight),i=e.visibleRange.startLineNumber,r=null,a=!1,s=null,l=0,c=t.length;l<c;l++){var u=t[l];if(!u.options.isWholeLine){var d=u.options.className,h=Boolean(u.options.showIfCollapsed),p=u.range;h&&1===p.endColumn&&p.endLineNumber!==p.startLineNumber&&(p=new Te.a(p.startLineNumber,p.startColumn,p.endLineNumber-1,this._context.model.getLineMaxColumn(p.endLineNumber-1))),s=r===d&&a===h&&Te.a.areIntersectingOrTouching(s,p)?Te.a.plusRange(s,p):(null!==r&&this._renderNormalDecoration(e,s,r,a,o,i,n),r=d,a=h,p)}}null!==r&&this._renderNormalDecoration(e,s,r,a,o,i,n)},No.prototype._renderNormalDecoration=function(e,t,n,o,i,r,a){var s=e.linesVisibleRangesForRange(t,"findMatch"===n);if(s)for(var l=0,c=s.length;l<c;l++){var u=s[l];if(!u.outsideRenderedLine){var d=u.lineNumber-r;if(o&&1===u.ranges.length){var h=u.ranges[0];0===h.width&&(u.ranges[0]=new te(h.left,this._typicalHalfwidthCharacterWidth))}for(var p=0,f=u.ranges.length;p<f;p++){var g=u.ranges[p],m='<div class="cdr '+n+'" style="left:'+String(g.left)+"px;width:"+String(g.width)+"px;height:"+i+'px;"></div>';a[d]+=m}}}},No.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},No);function No(e){var t=Eo.call(this)||this;t._context=e;var n=t._context.configuration.options;return t._lineHeight=n.get(49),t._typicalHalfwidthCharacterWidth=n.get(34).typicalHalfwidthCharacterWidth,t._renderResult=null,t._context.addEventHandler(t),t}var Do,Lo,Po=n(688),Io=((Do=function(e,t){return(Do=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Do(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(To,Lo=z),To.prototype.dispose=function(){Lo.prototype.dispose.call(this)},To.prototype._setLayout=function(){var e=this._context.configuration.options,t=e.get(107);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(54).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)},To.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},To.prototype.getDomNode=function(){return this.scrollbarDomNode},To.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},To.prototype.onConfigurationChanged=function(e){if(e.hasChanged(78)||e.hasChanged(56)||e.hasChanged(27)){var t=this._context.configuration.options,n=t.get(78),o=t.get(56),i=t.get(27),r={handleMouseWheel:n.handleMouseWheel,mouseWheelScrollSensitivity:o,fastScrollSensitivity:i};this.scrollbar.updateOptions(r)}return e.hasChanged(107)&&this._setLayout(),!0},To.prototype.onScrollChanged=function(e){return!0},To.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(he.d)(this._context.theme.type)),!0},To.prototype.prepareRender=function(e){},To.prototype.render=function(e){this.scrollbar.renderNow()},To);function To(e,t,n,o){var i=Lo.call(this,e)||this,a=i._context.configuration.options,s=a.get(78),l=a.get(56),c=a.get(27),u={listenOnDomNode:n.domNode,className:"editor-scrollable "+Object(he.d)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:l,fastScrollSensitivity:c};function d(e,t,n){var o={};if(t){var r=e.scrollTop;r&&(o.scrollTop=i._context.viewLayout.getCurrentScrollTop()+r,e.scrollTop=0)}if(n){var a=e.scrollLeft;a&&(o.scrollLeft=i._context.viewLayout.getCurrentScrollLeft()+a,e.scrollLeft=0)}i._context.viewLayout.setScrollPositionNow(o)}return i.scrollbar=i._register(new Po.c(t.domNode,u,i._context.viewLayout.getScrollable())),U.write(i.scrollbar.getDomNode(),5),i.scrollbarDomNode=Object(p.b)(i.scrollbar.getDomNode()),i.scrollbarDomNode.setPosition("absolute"),i._setLayout(),i._register(r.j(n.domNode,"scroll",(function(e){return d(n.domNode,!0,!0)}))),i._register(r.j(t.domNode,"scroll",(function(e){return d(t.domNode,!0,!1)}))),i._register(r.j(o.domNode,"scroll",(function(e){return d(o.domNode,!0,!1)}))),i._register(r.j(i.scrollbarDomNode.domNode,"scroll",(function(e){return d(i.scrollbarDomNode.domNode,!0,!1)}))),i}n(1342);var Mo,jo,Ro=(Mo=function(e,t){return(Mo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Mo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ao=function(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)},Fo=(Ro(Vo,jo=jt),Vo.prototype._render=function(e,t,n){for(var o=[],i=e;i<=t;i++)o[i-e]=[];if(0===n.length)return o;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 r=null,a=0,s=0,l=n.length;s<l;s++){var c=n[s],u=c.className,d=Math.max(c.startLineNumber,e)-e,h=Math.min(c.endLineNumber,t)-e;a=r===u?(d=Math.max(a+1,d),Math.max(a,h)):(r=u,h);for(var p=d;p<=a;p++)o[p].push(r)}return o},Vo);function Vo(){return null!==jo&&jo.apply(this,arguments)||this}var Wo,Bo=(Ro(Ho,Wo=Fo),Ho.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,Wo.prototype.dispose.call(this)},Ho.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._glyphMargin=t.get(40),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0},Ho.prototype.onDecorationsChanged=function(e){return!0},Ho.prototype.onFlushed=function(e){return!0},Ho.prototype.onLinesChanged=function(e){return!0},Ho.prototype.onLinesDeleted=function(e){return!0},Ho.prototype.onLinesInserted=function(e){return!0},Ho.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Ho.prototype.onZonesChanged=function(e){return!0},Ho.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],o=0,i=0,r=t.length;i<r;i++){var a=t[i],s=a.options.glyphMarginClassName;s&&(n[o++]=new Ao(a.range.startLineNumber,a.range.endLineNumber,s))}return n},Ho.prototype.prepareRender=function(e){if(this._glyphMargin){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._render(t,n,this._getDecorations(e)),i=this._lineHeight.toString(),r='" style="left:'+this._glyphMarginLeft.toString()+"px;width:"+this._glyphMarginWidth.toString()+"px;height:"+i+'px;"></div>',a=[],s=t;s<=n;s++){var l=s-t,c=o[l];0===c.length?a[l]="":a[l]='<div class="cgmr codicon '+c.join(" ")+r}this._renderResult=a}else this._renderResult=null},Ho.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Ho);function Ho(e){var t=Wo.call(this)||this;t._context=e;var n=t._context.configuration.options,o=n.get(107);return t._lineHeight=n.get(49),t._glyphMargin=n.get(40),t._glyphMarginLeft=o.glyphMarginLeft,t._glyphMarginWidth=o.glyphMarginWidth,t._renderResult=null,t._context.addEventHandler(t),t}n(1343);var zo,Ko,Uo=((zo=function(e,t){return(zo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}zo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(qo,Ko=jt),qo.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,Ko.prototype.dispose.call(this)},qo.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(108),o=t.get(34);return this._lineHeight=t.get(49),this._spaceWidth=o.spaceWidth,this._enabled=t.get(70),this._activeIndentEnabled=t.get(43),this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*o.typicalHalfwidthCharacterWidth,!0},qo.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)},qo.prototype.onDecorationsChanged=function(e){return!0},qo.prototype.onFlushed=function(e){return!0},qo.prototype.onLinesChanged=function(e){return!0},qo.prototype.onLinesDeleted=function(e){return!0},qo.prototype.onLinesInserted=function(e){return!0},qo.prototype.onScrollChanged=function(e){return e.scrollTopChanged},qo.prototype.onZonesChanged=function(e){return!0},qo.prototype.onLanguageConfigurationChanged=function(e){return!0},qo.prototype.prepareRender=function(e){if(this._enabled){var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._context.model.getOptions().indentSize*this._spaceWidth,i=e.scrollWidth,r=this._lineHeight,a=this._context.model.getLinesIndentGuides(t,n),s=0,l=0,c=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var u=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);s=u.startLineNumber,l=u.endLineNumber,c=u.indent}for(var d=[],h=t;h<=n;h++){var p=s<=h&&h<=l,f=h-t,g=a[f],m="";if(1<=g)for(var v=e.visibleRangeForPosition(new Ie.a(h,1)),y=v?v.left:0,b=1;b<=g&&(m+='<div class="'+(p&&b===c?"cigra":"cigr")+'" style="left:'+y+"px;height:"+r+"px;width:"+o+'px"></div>',!(i<(y+=o)||0<this._maxIndentLeft&&y>this._maxIndentLeft));b++);d[f]=m}this._renderResult=d}else this._renderResult=null},qo.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},qo);function qo(e){var t=Ko.call(this)||this;t._context=e,t._primaryLineNumber=0;var n=t._context.configuration.options,o=n.get(108),i=n.get(34);return t._lineHeight=n.get(49),t._spaceWidth=i.spaceWidth,t._enabled=n.get(70),t._activeIndentEnabled=n.get(43),t._maxIndentLeft=-1===o.wrappingColumn?-1:o.wrappingColumn*i.typicalHalfwidthCharacterWidth,t._renderResult=null,t._context.addEventHandler(t),t}Object(he.e)((function(e,t){var n=e.getColor(Vt.h);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var o=e.getColor(Vt.a)||n;o&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+o+" inset; }")})),n(1344);var Go,Yo=(Go=function(e,t){return(Go=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Go(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zo=($o.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},$o.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},$o);function $o(){this._currentVisibleRange=new Te.a(1,1,1,1)}var Xo,Jo=function(e,t,n,o,i,r){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=o,this.stopScrollTop=i,this.scrollType=r},Qo=(Yo(ei,Xo=z),ei.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),Xo.prototype.dispose.call(this)},ei.prototype.getDomNode=function(){return this.domNode},ei.prototype.createVisibleLine=function(){return new we(this._viewLineOptions)},ei.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(108)&&(this._maxLineWidth=0);var t=this._context.configuration.options,n=t.get(34),o=t.get(108);return this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=o.isViewportWrapping,this._revealHorizontalRightPadding=t.get(75),this._cursorSurroundingLines=t.get(19),this._cursorSurroundingLinesStyle=t.get(20),this._canUseLayerHinting=!t.get(22),u.a.applyFontInfo(this.domNode,n),this._onOptionsMaybeChanged(),e.hasChanged(107)&&(this._maxLineWidth=0),!0},ei.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new be(e,this._context.theme.type);if(this._viewLineOptions.equals(t))return!1;this._viewLineOptions=t;for(var n=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber(),i=n;i<=o;i++)this._visibleLines.getVisibleLine(i).onOptionsChanged(this._viewLineOptions);return!0},ei.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),o=!1,i=t;i<=n;i++)o=this._visibleLines.getVisibleLine(i).onSelectionChanged()||o;return o},ei.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),o=t;o<=n;o++)this._visibleLines.getVisibleLine(o).onDecorationsChanged();return!0},ei.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},ei.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},ei.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},ei.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},ei.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.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 Jo(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var o=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&o>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0},ei.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>n)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},ei.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},ei.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},ei.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},ei.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var o=this._getLineNumberFor(n);if(-1===o)return null;if(o<1||o>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(o))return new Ie.a(o,1);var i=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(o<i||r<o)return null;var a=this._visibleLines.getVisibleLine(o).getColumnOfNodeOffset(o,e,t),s=this._context.model.getLineMinColumn(o);return a<s&&(a=s),new Ie.a(o,a)},ei.prototype._getViewLineDomNode=function(e){for(;e&&1===e.nodeType;){if(e.className===we.CLASS_NAME)return e;e=e.parentElement}return null},ei.prototype._getLineNumberFor=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),o=t;o<=n;o++)if(e===this._visibleLines.getVisibleLine(o).getDomNode())return o;return-1},ei.prototype.getLineWidth=function(e){var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||n<e?-1:this._visibleLines.getVisibleLine(e).getWidth()},ei.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,o=Te.a.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!o)return null;var i=[],r=0,a=new ve(this.domNode.domNode,this._textRangeRestingSpot),s=0;t&&(s=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Ie.a(o.startLineNumber,1)).lineNumber);for(var l=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber(),u=o.startLineNumber;u<=o.endLineNumber;u++)if(!(u<l||c<u)){var d=u===o.startLineNumber?o.startColumn:1,h=u===o.endLineNumber?o.endColumn:this._context.model.getLineMaxColumn(u),p=this._visibleLines.getVisibleLine(u).getVisibleRangesForRange(d,h,a);p&&(t&&u<n&&s!==(s=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Ie.a(u+1,1)).lineNumber)&&(p.ranges[p.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth),i[r++]=new ee(p.outsideRenderedLine,u,p.ranges))}return 0===r?null:i},ei.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 ve(this.domNode.domNode,this._textRangeRestingSpot))},ei.prototype.visibleRangeForPosition=function(e){var t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new oe(t.outsideRenderedLine,t.ranges[0].left):null},ei.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},ei.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},ei.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},ei.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),o=1,i=!0,r=t;r<=n;r++){var a=this._visibleLines.getVisibleLine(r);!e||a.getWidthIsFast()?o=Math.max(o,a.getWidth()):i=!1}return i&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(o),i},ei.prototype.prepareRender=function(){throw new Error("Not supported")},ei.prototype.render=function(){throw new Error("Not supported")},ei.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,o=this._horizontalRevealRequest.endColumn,i=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var r=this._computeScrollLeftToRevealRange(t,n,o);this._isViewportWrapping||this._ensureMaxLineWidth(r.maxHorizontalOffset),0===i?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())},ei.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},ei.prototype._computeScrollTopToRevealRange=function(e,t,n,o){var i,r,a,s=e.top,l=e.height,c=s+l;if(i=this._context.viewLayout.getVerticalOffsetForLineNumber(n.startLineNumber),r=this._context.viewLayout.getVerticalOffsetForLineNumber(n.endLineNumber)+this._lineHeight,"mouse"!==t||"default"!==this._cursorSurroundingLinesStyle){var u=Math.min(l/this._lineHeight/2,this._cursorSurroundingLines);i-=u*this._lineHeight,r+=Math.max(0,u-1)*this._lineHeight}if(0!==o&&4!==o||(r+=this._lineHeight),l<r-i)a=i;else if(1===o||2===o)if(2===o&&s<=i&&r<=c)a=s;else{var d=(i+r)/2;a=Math.max(0,d-l/2)}else a=this._computeMinimumScrolling(s,c,i,r,3===o,4===o);return a},ei.prototype._computeScrollLeftToRevealRange=function(e,t,n){var o=0,i=this._context.viewLayout.getCurrentViewport(),r=i.left,a=r+i.width,s=this._visibleRangesForLineRange(e,t,n),l=1073741824,c=0;if(!s)return{scrollLeft:r,maxHorizontalOffset:o};for(var u=0,d=s.ranges;u<d.length;u++){var h=d[u];h.left<l&&(l=h.left),h.left+h.width>c&&(c=h.left+h.width)}return o=c,l=Math.max(0,l-ei.HORIZONTAL_EXTRA_PX),c+=this._revealHorizontalRightPadding,{scrollLeft:this._computeMinimumScrolling(r,a,l,c),maxHorizontalOffset:o}},ei.prototype._computeMinimumScrolling=function(e,t,n,o,i,r){i=!!i,r=!!r;var a=(t|=0)-(e|=0);return(o|=0)-(n|=0)<a&&!i?r?Math.max(0,o-a):n<e?n:t<o?Math.max(0,o-a):e:n},ei.HORIZONTAL_EXTRA_PX=30,ei);function ei(e,t){var n=Xo.call(this,e)||this;n._linesContent=t,n._textRangeRestingSpot=document.createElement("div"),n._visibleLines=new Wn(n),n.domNode=n._visibleLines.domNode;var o=n._context.configuration,i=n._context.configuration.options,r=i.get(34),a=i.get(108);return n._lineHeight=i.get(49),n._typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,n._isViewportWrapping=a.isViewportWrapping,n._revealHorizontalRightPadding=i.get(75),n._cursorSurroundingLines=i.get(19),n._cursorSurroundingLinesStyle=i.get(20),n._canUseLayerHinting=!i.get(22),n._viewLineOptions=new be(o,n._context.theme.type),U.write(n.domNode,7),n.domNode.setClassName("view-lines"),u.a.applyFontInfo(n.domNode,r),n._maxLineWidth=0,n._asyncUpdateLineWidths=new y.d((function(){n._updateLineWidthsSlow()}),200),n._lastRenderedData=new Zo,n._horizontalRevealRequest=null,n}n(1345);var ti,ni,oi=((ti=function(e,t){return(ti=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ti(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(ii,ni=Fo),ii.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,ni.prototype.dispose.call(this)},ii.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(107);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0},ii.prototype.onDecorationsChanged=function(e){return!0},ii.prototype.onFlushed=function(e){return!0},ii.prototype.onLinesChanged=function(e){return!0},ii.prototype.onLinesDeleted=function(e){return!0},ii.prototype.onLinesInserted=function(e){return!0},ii.prototype.onScrollChanged=function(e){return e.scrollTopChanged},ii.prototype.onZonesChanged=function(e){return!0},ii.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],o=0,i=0,r=t.length;i<r;i++){var a=t[i],s=a.options.linesDecorationsClassName;s&&(n[o++]=new Ao(a.range.startLineNumber,a.range.endLineNumber,s))}return n},ii.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._render(t,n,this._getDecorations(e)),i='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[],a=t;a<=n;a++){for(var s=a-t,l=o[s],c="",u=0,d=l.length;u<d;u++)c+='<div class="cldr '+l[u]+i;r[s]=c}this._renderResult=r},ii.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},ii);function ii(e){var t=ni.call(this)||this;t._context=e;var n=t._context.configuration.options.get(107);return t._decorationsLeft=n.decorationsLeft,t._decorationsWidth=n.decorationsWidth,t._renderResult=null,t._context.addEventHandler(t),t}n(1346);var ri,ai,si=((ri=function(e,t){return(ri=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ri(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(li,ai=Fo),li.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,ai.prototype.dispose.call(this)},li.prototype.onConfigurationChanged=function(e){return!0},li.prototype.onDecorationsChanged=function(e){return!0},li.prototype.onFlushed=function(e){return!0},li.prototype.onLinesChanged=function(e){return!0},li.prototype.onLinesDeleted=function(e){return!0},li.prototype.onLinesInserted=function(e){return!0},li.prototype.onScrollChanged=function(e){return e.scrollTopChanged},li.prototype.onZonesChanged=function(e){return!0},li.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],o=0,i=0,r=t.length;i<r;i++){var a=t[i],s=a.options.marginClassName;s&&(n[o++]=new Ao(a.range.startLineNumber,a.range.endLineNumber,s))}return n},li.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._render(t,n,this._getDecorations(e)),i=[],r=t;r<=n;r++){for(var a=r-t,s=o[a],l="",c=0,u=s.length;c<u;c++)l+='<div class="cmdr '+s[c]+'" style=""></div>';i[a]=l}this._renderResult=i},li.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},li);function li(e){var t=ai.call(this)||this;return t._context=e,t._renderResult=null,t._context.addEventHandler(t),t}n(1347);var ci=(ui._clamp=function(e){return e<0?0:255<e?255:0|e},ui.Empty=new ui(0,0,0,0),ui);function ui(e,t,n,o){this.r=ui._clamp(e),this.g=ui._clamp(t),this.b=ui._clamp(n),this.a=ui._clamp(o)}var di=n(454),hi=(pi.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new pi),this._INSTANCE},pi.prototype._updateColorMap=function(){var e=di.B.getColorMap();if(!e)return this._colors=[ci.Empty],void(this._backgroundIsLight=!0);this._colors=[ci.Empty];for(var t=1;t<e.length;t++){var n=e[t].rgba;this._colors[t]=new ci(n.r,n.g,n.b,Math.round(255*n.a))}var o=e[2].getRelativeLuminance();this._backgroundIsLight=.5<=o,this._onDidChange.fire(void 0)},pi.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},pi.prototype.backgroundIsLight=function(){return this._backgroundIsLight},pi._INSTANCE=null,pi);function pi(){var e=this;this._onDidChange=new s.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),di.B.onDidChange((function(t){t.changedColorMap&&e._updateColorMap()}))}var fi=n(461),gi=function(){for(var e=[],t=32;t<=126;t++)e.push(t);return e.push(65533),e}(),mi=(vi.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),o=0,i=e.length;o<i;o++)n[o]=e[o]*t;return n},vi.prototype.renderChar=function(e,t,n,o,i,r,a,s){var l=+this.scale,c=2*this.scale;if(!(t+l>e.width||n+c>e.height))for(var u,d=s?this.charDataLight:this.charDataNormal,h=(u=o,(u-=32)<0||96<u?a<=2?(u+96)%96:95:u),p=4*e.width,f=r.r,g=r.g,m=r.b,v=i.r-f,y=i.g-g,b=i.b-m,_=e.data,w=h*l*c,C=n*p+4*t,S=0;S<c;S++){for(var O=C,x=0;x<l;x++){var E=d[w++]/255;_[O++]=f+v*E,_[O++]=g+y*E,_[O++]=m+b*E,O++}C+=p}},vi.prototype.blockRenderChar=function(e,t,n,o,i,r){var a=+this.scale,s=2*this.scale;if(!(t+a>e.width||n+s>e.height))for(var l=4*e.width,c=i.r,u=i.g,d=i.b,h=c+.5*(o.r-c),p=u+.5*(o.g-u),f=d+.5*(o.b-d),g=e.data,m=n*l+4*t,v=0;v<s;v++){for(var y=m,b=0;b<a;b++)g[y++]=h,g[y++]=p,g[y++]=f,y++;m+=l}},vi);function vi(e,t){this.scale=t,this.charDataNormal=vi.soften(e,.8),this.charDataLight=vi.soften(e,50/60)}function yi(e){for(var t=new Uint8ClampedArray(e.length/2),n=0;n<e.length;n+=2)t[n>>1]=_i[e[n]]<<4|15&_i[e[n+1]];return t}var bi=n(880),_i={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},wi={1:Object(bi.a)((function(){return yi("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")})),2:Object(bi.a)((function(){return yi("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")}))},Ci=(Si.create=function(e,t){return this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily?this.lastCreated:(n=wi[e]?new mi(wi[e](),e):Si.createFromSampleData(Si.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=n);var n},Si.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 o=0,i=0,r=gi;i<r.length;i++){var a=r[i];n.fillText(String.fromCharCode(a),o,8),o+=10}return n.getImageData(0,0,960,16)},Si.createFromSampleData=function(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");var n=Si._downsample(e,t);return new mi(n,t)},Si._downsampleChar=function(e,t,n,o,i){for(var r=+i,a=2*i,s=o,l=0,c=0;c<a;c++)for(var u=c/a*16,d=(c+1)/a*16,h=0;h<r;h++){for(var p=h/r*10,f=(h+1)/r*10,g=0,m=0,v=u;v<d;v++)for(var y=t+3840*Math.floor(v),b=1-(v-Math.floor(v)),_=p;_<f;_++){var w=1-(_-Math.floor(_)),C=y+4*Math.floor(_),S=w*b;m+=S,g+=e[C]*e[C+3]/255*S}var O=g/m;l=Math.max(l,O),n[s++]=O}return l},Si._downsample=function(e,t){for(var n=2*t*1*t,o=96*n,i=new Uint8ClampedArray(o),r=0,a=0,s=0,l=0;l<96;l++)s=Math.max(s,this._downsampleChar(e,a,i,r,t)),r+=n,a+=40;if(0<s)for(var c=255/s,u=0;u<o;u++)i[u]*=c;return i},Si);function Si(){}var Oi,xi=n(599),Ei=(Oi=function(e,t){return(Oi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Oi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function ki(e,t){return 1===e?2*t:3*t}function Ni(e,t){return+t}var Di=(Li.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},Li);function Li(e){var t=this,n=e.options,o=n.get(105),i=n.get(107),r=n.get(34);this.renderMinimap=0|i.renderMinimap,this.scrollBeyondLastLine=n.get(80);var a=n.get(54);this.showSlider=a.showSlider,this.fontScale=Math.round(a.scale*o),this.charRenderer=Object(bi.a)((function(){return Ci.create(t.fontScale,r.fontFamily)})),this.pixelRatio=o,this.typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,this.lineHeight=n.get(49),this.minimapLeft=i.minimapLeft,this.minimapWidth=i.minimapWidth,this.minimapHeight=i.height,this.canvasInnerWidth=Math.floor(o*this.minimapWidth),this.canvasInnerHeight=Math.floor(o*this.minimapHeight),this.canvasOuterWidth=this.canvasInnerWidth/o,this.canvasOuterHeight=this.canvasInnerHeight/o}var Pi=(Ii.prototype.getDesiredScrollTopFromDelta=function(e){var t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)},Ii.prototype.getDesiredScrollTopFromTouchLocation=function(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)},Ii.create=function(e,t,n,o,i,r,a,s,l){var c,u,d=e.pixelRatio,h=ki(e.renderMinimap,e.fontScale),p=Math.floor(e.canvasInnerHeight/h),f=e.lineHeight;if(i&&n!==r){var g=n-t+1;c=Math.floor(g*h/d)}else{var m=o/f;c=Math.floor(m*h/d)}u=e.scrollBeyondLastLine?(r-1)*h/d:Math.max(0,r*h/d-c);var v=(u=Math.min(e.minimapHeight-c,u))/(s-o),y=a*v,b=0;if(e.scrollBeyondLastLine&&(b=m=o/f),r+b<=p)return new Ii(a,s,v,y,c,_=1,r);var _=Math.max(1,Math.floor(t-y*d/h));return l&&l.scrollHeight===s&&(l.scrollTop>a&&(_=Math.min(_,l.startLineNumber)),l.scrollTop<a&&(_=Math.max(_,l.startLineNumber))),new Ii(a,s,v,y,c,_,Math.min(r,_+p-1))},Ii);function Ii(e,t,n,o,i,r,a){this.scrollTop=e,this.scrollHeight=t,this._computedSliderRatio=n,this.sliderTop=o,this.sliderHeight=i,this.startLineNumber=r,this.endLineNumber=a}var Ti=(Mi.prototype.onContentChanged=function(){this.dy=-1},Mi.prototype.onTokensChanged=function(){this.dy=-1},Mi.INVALID=new Mi(-1),Mi);function Mi(e){this.dy=e}var ji=(Ri.prototype.linesEquals=function(e){if(!this.scrollEquals(e))return!1;for(var t=this._renderedLines._get().lines,n=0,o=t.length;n<o;n++)if(-1===t[n].dy)return!1;return!0},Ri.prototype.scrollEquals=function(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber},Ri.prototype._get=function(){var e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}},Ri.prototype.onLinesChanged=function(e){return this._renderedLines.onLinesChanged(e.fromLineNumber,e.toLineNumber)},Ri.prototype.onLinesDeleted=function(e){this._renderedLines.onLinesDeleted(e.fromLineNumber,e.toLineNumber)},Ri.prototype.onLinesInserted=function(e){this._renderedLines.onLinesInserted(e.fromLineNumber,e.toLineNumber)},Ri.prototype.onTokensChanged=function(e){return this._renderedLines.onTokensChanged(e.ranges)},Ri);function Ri(e,t,n){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Fn((function(){return Ti.INVALID})),this._renderedLines._set(e.startLineNumber,n)}var Ai=(Fi.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e},Fi._createBackgroundFillData=function(e,t,n){for(var o=n.r,i=n.g,r=n.b,a=new Uint8ClampedArray(e*t*4),s=0,l=0;l<t;l++)for(var c=0;c<e;c++)a[s]=o,a[s+1]=i,a[s+2]=r,a[s+3]=255,s+=4;return a},Fi);function Fi(e,t,n,o){this._backgroundFillData=Fi._createBackgroundFillData(t,n,o),this._buffers=[e.createImageData(t,n),e.createImageData(t,n)],this._lastUsedBuffer=0}var Vi,Wi=(Ei(Bi,Vi=z),Bi.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})},Bi.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),Vi.prototype.dispose.call(this)},Bi.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},Bi.prototype.getDomNode=function(){return this._domNode},Bi.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)},Bi.prototype._getBuffer=function(){return this._buffers||0<this._options.canvasInnerWidth&&0<this._options.canvasInnerHeight&&(this._buffers=new Ai(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},Bi.prototype._onOptionsMaybeChanged=function(){var e=new Di(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)},Bi.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},Bi.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._renderDecorations=!0},Bi.prototype.onFlushed=function(e){return!(this._lastRenderData=null)},Bi.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e)},Bi.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},Bi.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},Bi.prototype.onScrollChanged=function(e){return this._renderDecorations=!0},Bi.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)},Bi.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,!(this._buffers=null)},Bi.prototype.onZonesChanged=function(e){return!(this._lastRenderData=null)},Bi.prototype.onDecorationsChanged=function(e){return this._renderDecorations=!0},Bi.prototype.onThemeChanged=function(e){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(fi.Ib),this._renderDecorations=!0},Bi.prototype.prepareRender=function(e){},Bi.prototype.render=function(e){if(0===this._options.renderMinimap)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 t=Pi.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,0<e.viewportData.whitespaceViewportData.length,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight);var n=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,o=Math.min(this._options.minimapWidth,Math.round(n*Ni(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(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)},Bi.prototype.renderDecorations=function(e){if(this._renderDecorations){this._renderDecorations=!1;var t=this._context.model.getDecorationsInViewport(new Te.a(e.startLineNumber,1,e.endLineNumber,this._context.model.getLineMaxColumn(e.endLineNumber))),n=this._options,o=n.renderMinimap,i=n.canvasInnerWidth,r=n.canvasInnerHeight,a=ki(o,this._options.fontScale),s=Ni(0,this._options.fontScale),l=this._context.model.getOptions().tabSize,c=this._decorationsCanvas.domNode.getContext("2d");c.clearRect(0,0,i,r);for(var u=new Map,d=0;d<this._selections.length;d++)for(var h=this._selections[d],p=h.startLineNumber;p<=h.endLineNumber;p++)this.renderDecorationOnLine(c,u,h,this._selectionColor,e,p,a,a,l,s);for(d=0;d<t.length;d++){var f=t[d];if(f.options.minimap){var g=f.options.minimap.getColor(this._context.theme);for(p=f.range.startLineNumber;p<=f.range.endLineNumber;p++)switch(f.options.minimap.position){case xi.c.Inline:this.renderDecorationOnLine(c,u,f.range,g,e,p,a,a,l,s);continue;case xi.c.Gutter:var m=(p-e.startLineNumber)*a;this.renderDecoration(c,g,2,m,2,a);continue}}}}},Bi.prototype.renderDecorationOnLine=function(e,t,n,o,i,r,a,s,l,c){var u=(r-i.startLineNumber)*s;if(!(u+a<0||u>this._options.canvasInnerHeight)){var d=t.get(r),h=!d;if(!d){var p=this._context.model.getLineContent(r);d=[pe.f];for(var f=1;f<p.length+1;f++){var g=p.charCodeAt(f-1),m=9===g?l*c:It.y(g)?2*c:c;d[f]=d[f-1]+m}t.set(r,d)}var v=n.startColumn,y=n.endColumn,b=n.startLineNumber,_=n.endLineNumber,w=b===r?d[v-1]:pe.f,C=r<_?d.length-1:y-1;if(0<C){var S=d[C]-w||2;this.renderDecoration(e,o,w,u,S,a)}h&&this.renderLineHighlight(e,o,u,a)}},Bi.prototype.renderLineHighlight=function(e,t,n,o){e.fillStyle=t&&t.transparent(.5).toString()||"",e.fillRect(pe.f,n,e.canvas.width,o)},Bi.prototype.renderDecoration=function(e,t,n,o,i,r){e.fillStyle=t&&t.toString()||"",e.fillRect(n,o,i,r)},Bi.prototype.renderLines=function(e){var t=this._options.renderMinimap,n=this._options.charRenderer(),o=e.startLineNumber,i=e.endLineNumber,r=ki(t,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var a=this._lastRenderData._get();return new ji(e,a.imageData,a.lines)}var s=this._getBuffer();if(!s)return null;for(var l=Bi._renderUntouchedLines(s,o,i,r,this._lastRenderData),c=l[0],u=l[1],d=l[2],h=this._context.model.getMinimapLinesRenderingData(o,i,d),p=h.tabSize,f=this._tokensColorTracker.getColor(2),g=this._tokensColorTracker.backgroundIsLight(),m=0,v=[],y=0,b=i-o+1;y<b;y++)d[y]&&Bi._renderLine(s,f,g,t,this._tokensColorTracker,n,m,p,h.data[y],this._options.fontScale),v[y]=new Ti(m),m+=r;var _=-1===c?0:c,w=(-1===u?s.height:u)-_;return this._canvas.domNode.getContext("2d").putImageData(s,0,0,0,_,s.width,w),new ji(e,s,v)},Bi._renderUntouchedLines=function(e,t,n,o,i){var r=[];if(!i){for(var a=0,s=n-t+1;a<s;a++)r[a]=!0;return[-1,-1,r]}for(var l=i._get(),c=l.imageData.data,u=l.rendLineNumberStart,d=l.lines,h=d.length,p=e.width,f=e.data,g=(n-t+1)*o*p*4,m=-1,v=-1,y=-1,b=-1,_=-1,w=-1,C=0,S=t;S<=n;S++){var O=S-t,x=S-u,E=0<=x&&x<h?d[x].dy:-1;if(-1!==E){var k=E*p*4,N=(E+o)*p*4,D=C*p*4,L=(C+o)*p*4;b===k&&w===D?b=N:(-1!==y&&(f.set(c.subarray(y,b),_),-1===m&&0===y&&y===_&&(m=b),-1===v&&b===g&&y===_&&(v=y)),y=k,b=N,_=D),w=L,r[O]=!1,C+=o}else r[O]=!0,C+=o}return-1!==y&&(f.set(c.subarray(y,b),_),-1===m&&0===y&&y===_&&(m=b),-1===v&&b===g&&y===_&&(v=y)),[-1===m?-1:m/(4*p),-1===v?-1:v/(4*p),r]},Bi._renderLine=function(e,t,n,o,i,r,a,s,l,c){for(var u=l.content,d=l.tokens,h=Ni(0,c),p=e.width-h,f=pe.f,g=0,m=0,v=0,y=d.getCount();v<y;v++)for(var b=d.getEndOffset(v),_=d.getForeground(v),w=i.getColor(_);g<b;g++){if(p<f)return;var C=u.charCodeAt(g);if(9===C){var S=s-(g+m)%s;m+=S-1,f+=S*h}else if(32===C)f+=h;else for(var O=It.y(C)?2:1,x=0;x<O;x++)if(2===o?r.blockRenderChar(e,f,a,w,t,n):r.renderChar(e,f,a,C,w,t,c,n),p<(f+=h))return}},Bi);function Bi(e){var t=Vi.call(this,e)||this;return t._selections=[],t._renderDecorations=!1,t._gestureInProgress=!1,t._options=new Di(t._context.configuration),t._lastRenderData=null,t._buffers=null,t._selectionColor=t._context.theme.getColor(fi.Ib),t._domNode=Object(p.b)(document.createElement("div")),U.write(t._domNode,8),t._domNode.setClassName(t._getMinimapDomNodeClassName()),t._domNode.setPosition("absolute"),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t._shadow=Object(p.b)(document.createElement("div")),t._shadow.setClassName("minimap-shadow-hidden"),t._domNode.appendChild(t._shadow),t._canvas=Object(p.b)(document.createElement("canvas")),t._canvas.setPosition("absolute"),t._canvas.setLeft(0),t._domNode.appendChild(t._canvas),t._decorationsCanvas=Object(p.b)(document.createElement("canvas")),t._decorationsCanvas.setPosition("absolute"),t._decorationsCanvas.setClassName("minimap-decorations-layer"),t._decorationsCanvas.setLeft(0),t._domNode.appendChild(t._decorationsCanvas),t._slider=Object(p.b)(document.createElement("div")),t._slider.setPosition("absolute"),t._slider.setClassName("minimap-slider"),t._slider.setLayerHinting(!0),t._slider.setContain("strict"),t._domNode.appendChild(t._slider),t._sliderHorizontal=Object(p.b)(document.createElement("div")),t._sliderHorizontal.setPosition("absolute"),t._sliderHorizontal.setClassName("minimap-slider-horizontal"),t._slider.appendChild(t._sliderHorizontal),t._tokensColorTracker=hi.getInstance(),t._applyLayout(),t._mouseDownListener=r.o(t._domNode.domNode,"mousedown",(function(e){e.preventDefault();var n=t._options.renderMinimap;if(0!==n&&t._lastRenderData){var o=ki(n,t._options.fontScale),i=t._options.pixelRatio*e.browserEvent.offsetY,r=Math.floor(i/o)+t._lastRenderData.renderedLayout.startLineNumber;r=Math.min(r,t._context.model.getLineCount()),t._context.privateViewEventBus.emit(new cn("mouse",new Te.a(r,1,r,1),1,!1,0))}})),t._sliderMouseMoveMonitor=new b.a,t._sliderMouseDownListener=r.o(t._slider.domNode,"mousedown",(function(e){if(e.preventDefault(),e.stopPropagation(),e.leftButton&&t._lastRenderData){var n=e.posy,o=e.posx,i=t._lastRenderData.renderedLayout;t._slider.toggleClassName("active",!0),t._sliderMouseMoveMonitor.startMonitoring(e.target,e.buttons,b.b,(function(e){var r=Math.abs(e.posx-o);if(f.h&&140<r)t._context.viewLayout.setScrollPositionNow({scrollTop:i.scrollTop});else{var a=e.posy-n;t._context.viewLayout.setScrollPositionNow({scrollTop:i.getDesiredScrollTopFromDelta(a)})}}),(function(){t._slider.toggleClassName("active",!1)}))}})),t._gestureDisposable=g.b.addTarget(t._domNode.domNode),t._sliderTouchStartListener=r.j(t._domNode.domNode,g.a.Start,(function(e){e.preventDefault(),e.stopPropagation(),t._lastRenderData&&(t._slider.toggleClassName("active",!0),t._gestureInProgress=!0,t.scrollDueToTouchEvent(e))})),t._sliderTouchMoveListener=r.o(t._domNode.domNode,g.a.Change,(function(e){e.preventDefault(),e.stopPropagation(),t._lastRenderData&&t._gestureInProgress&&t.scrollDueToTouchEvent(e)})),t._sliderTouchEndListener=r.o(t._domNode.domNode,g.a.End,(function(e){e.preventDefault(),e.stopPropagation(),t._gestureInProgress=!1,t._slider.toggleClassName("active",!1)})),t}Object(he.e)((function(e,t){var n=e.getColor(fi.Xb);if(n){var o=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+o+"; }")}var i=e.getColor(fi.Yb);if(i){var r=i.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+r+"; }")}var a=e.getColor(fi.Wb);if(a){var s=a.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+s+"; }")}var l=e.getColor(fi.Vb);l&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+l+" -6px 0 6px -6px inset; }")})),n(1348);var Hi,zi,Ki=((Hi=function(e,t){return(Hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Hi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ui,zi=z),Ui.prototype.dispose=function(){zi.prototype.dispose.call(this),this._widgets={}},Ui.prototype.getDomNode=function(){return this._domNode},Ui.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(107);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0},Ui.prototype.addWidget=function(e){var t=Object(p.b)(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()},Ui.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)},Ui.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}},Ui.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()},Ui.prototype.prepareRender=function(e){},Ui.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,o=t.length;n<o;n++){var i=t[n];this._renderWidget(this._widgets[i])}},Ui);function Ui(e){var t=zi.call(this,e)||this,n=t._context.configuration.options.get(107);return t._widgets={},t._verticalScrollbarWidth=n.verticalScrollbarWidth,t._minimapWidth=n.minimapWidth,t._horizontalScrollbarHeight=n.horizontalScrollbarHeight,t._editorHeight=n.height,t._editorWidth=n.width,t._domNode=Object(p.b)(document.createElement("div")),U.write(t._domNode,4),t._domNode.setClassName("overlayWidgets"),t}var qi,Gi=n(490),Yi=(qi=function(e,t){return(qi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}qi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zi=($i.prototype._initLanes=function(e,t,n){var o=t-e;if(3<=n){var i,r,a,s=o-(i=Math.floor(o/3))-(r=Math.floor(o/3)),l=(a=e)+i;return[[0,a,l,a,a+i+s,a,l,a],[0,i,s,i+s,r,i+s+r,s+r,i+s+r]]}return 2===n?[[0,a=e,a,a,a+(i=Math.floor(o/2)),a,a,a],[0,i,i,i,r=o-i,i+r,i+r,i+r]]:[[0,e,e,e,e,e,e,e],[0,o,o,o,o,o,o,o]]},$i.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},$i);function $i(e,t){var n=e.options;this.lineHeight=n.get(49),this.pixelRatio=n.get(105),this.overviewRulerLanes=n.get(63),this.renderBorder=n.get(62);var o=t.getColor(Vt.l);this.borderColor=o?o.toString():null,this.hideCursor=n.get(42);var i=t.getColor(Vt.g);this.cursorColor=i?i.transparent(.7).toString():null,this.themeType=t.type;var r=n.get(54),a=r.enabled,s=r.side,l=a?di.B.getDefaultBackground():null;this.backgroundColor=null===l||"left"===s?null:Gi.a.Format.CSS.formatHex(l);var c=n.get(107).overviewRuler;this.top=c.top,this.right=c.right,this.domWidth=c.width,this.domHeight=c.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);var u=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),d=u[0],h=u[1];this.x=d,this.w=h}var Xi,Ji=(Yi(Qi,Xi=z),Qi.prototype.dispose=function(){Xi.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},Qi.prototype._updateSettings=function(e){var t=new Zi(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))},Qi.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},Qi.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(Ie.a.compare),!0},Qi.prototype.onDecorationsChanged=function(e){return!0},Qi.prototype.onFlushed=function(e){return!0},Qi.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},Qi.prototype.onZonesChanged=function(e){return!0},Qi.prototype.onThemeChanged=function(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},Qi.prototype.getDomNode=function(){return this._domNode.domNode},Qi.prototype.prepareRender=function(e){},Qi.prototype.render=function(e){this._render()},Qi.prototype._render=function(){if(0!==this._settings.overviewRulerLanes){var e=this._settings.canvasWidth,t=this._settings.canvasHeight,n=this._settings.lineHeight,o=this._context.viewLayout,i=t/this._context.viewLayout.getScrollHeight(),r=this._context.model.getAllOverviewRulerDecorations(this._context.theme),a=6*this._settings.pixelRatio|0,s=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,u=this._settings.w,d=Object.keys(r);d.sort();for(var h=0,p=d.length;h<p;h++){var f=d[h],g=r[f];l.fillStyle=f;for(var m=0,v=0,y=0,b=0,_=g.length;b<_;b++){var w=g[3*b],C=g[3*b+1],S=g[3*b+2],O=o.getVerticalOffsetForLineNumber(C)*i|0;(P=(o.getVerticalOffsetForLineNumber(S)+n)*i|0)-O<a&&((D=(O+P)/2|0)<s?D=s:t<D+s&&(D=t-s),O=D-s,P=D+s),y+1<O||w!==m?(0!==b&&l.fillRect(c[m],v,u[m],y-v),m=w,v=O,y=P):y<P&&(y=P)}l.fillRect(c[m],v,u[m],y-v)}if(!this._settings.hideCursor&&this._settings.cursorColor){var x=2*this._settings.pixelRatio|0,E=x/2|0,k=this._settings.x[7],N=this._settings.w[7];for(l.fillStyle=this._settings.cursorColor,y=v=-100,b=0,_=this._cursorPositions.length;b<_;b++){var D,L=this._cursorPositions[b];(D=o.getVerticalOffsetForLineNumber(L.lineNumber)*i|0)<E?D=E:t<D+E&&(D=t-E);var P=(O=D-E)+x;y+1<O?(0!==b&&l.fillRect(k,v,N,y-v),v=O,y=P):y<P&&(y=P)}l.fillRect(k,v,N,y-v)}this._settings.renderBorder&&this._settings.borderColor&&0<this._settings.overviewRulerLanes&&(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())}else this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"")},Qi);function Qi(e){var t=Xi.call(this,e)||this;return t._domNode=Object(p.b)(document.createElement("canvas")),t._domNode.setClassName("decorationsOverviewRuler"),t._domNode.setPosition("absolute"),t._domNode.setLayerHinting(!0),t._domNode.setContain("strict"),t._domNode.setAttribute("aria-hidden","true"),t._updateSettings(!1),t._tokensColorTrackerListener=di.B.onDidChange((function(e){e.changedColorMap&&t._updateSettings(!0)})),t._cursorPositions=[],t}var er,tr,nr=n(1088),or=((er=function(e,t){return(er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}er(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(ir,tr=V),ir.prototype.dispose=function(){this._context.removeEventHandler(this),tr.prototype.dispose.call(this)},ir.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return e.hasChanged(49)&&(this._zoneManager.setLineHeight(t.get(49)),this._render()),e.hasChanged(105)&&(this._zoneManager.setPixelRatio(t.get(105)),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},ir.prototype.onFlushed=function(e){return this._render(),!0},ir.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},ir.prototype.onZonesChanged=function(e){return this._render(),!0},ir.prototype.getDomNode=function(){return this._domNode.domNode},ir.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)&&(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())},ir.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},ir.prototype._render=function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),o=this._zoneManager.getId2Color(),i=this._domNode.domNode.getContext("2d");return i.clearRect(0,0,e,t),0<n.length&&this._renderOneLane(i,n,o,e),!0},ir.prototype._renderOneLane=function(e,t,n,o){for(var i=0,r=0,a=0,s=0,l=t;s<l.length;s++){var c=l[s],u=c.colorId,d=c.from,h=c.to;a=u!==i?(e.fillRect(0,r,o,a-r),i=u,e.fillStyle=n[i],r=d,h):d<=a?Math.max(a,h):(e.fillRect(0,r,o,a-r),r=d,h)}e.fillRect(0,r,o,a-r)},ir);function ir(e,t){var n=tr.call(this)||this;n._context=e;var o=n._context.configuration.options;return n._domNode=Object(p.b)(document.createElement("canvas")),n._domNode.setClassName(t),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setContain("strict"),n._zoneManager=new nr.b((function(e){return n._context.viewLayout.getVerticalOffsetForLineNumber(e)})),n._zoneManager.setDOMWidth(0),n._zoneManager.setDOMHeight(0),n._zoneManager.setOuterHeight(n._context.viewLayout.getScrollHeight()),n._zoneManager.setLineHeight(o.get(49)),n._zoneManager.setPixelRatio(o.get(105)),n._context.addEventHandler(n),n}n(1349);var rr,ar,sr=((rr=function(e,t){return(rr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}rr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(lr,ar=z),lr.prototype.dispose=function(){ar.prototype.dispose.call(this)},lr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._rulers=t.get(77),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},lr.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},lr.prototype.prepareRender=function(e){},lr.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e<t)for(var n=this._context.model.getOptions().tabSize,o=t-e;0<o;)(r=Object(p.b)(document.createElement("div"))).setClassName("view-ruler"),r.setWidth(n),this.domNode.appendChild(r),this._renderedRulers.push(r),o--;else for(var i=e-t;0<i;){var r=this._renderedRulers.pop();this.domNode.removeChild(r),i--}},lr.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t<n;t++){var o=this._renderedRulers[t];o.setHeight(Math.min(e.scrollHeight,1e6)),o.setLeft(this._rulers[t]*this._typicalHalfwidthCharacterWidth)}},lr);function lr(e){var t=ar.call(this,e)||this;t.domNode=Object(p.b)(document.createElement("div")),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t.domNode.setClassName("view-rulers"),t._renderedRulers=[];var n=t._context.configuration.options;return t._rulers=n.get(77),t._typicalHalfwidthCharacterWidth=n.get(34).typicalHalfwidthCharacterWidth,t}Object(he.e)((function(e,t){var n=e.getColor(Vt.m);n&&t.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+n+" inset; }")})),n(1350);var cr,ur,dr=((cr=function(e,t){return(cr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}cr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(hr,ur=z),hr.prototype.dispose=function(){ur.prototype.dispose.call(this)},hr.prototype._updateShouldShow=function(){var e=this._useShadows&&0<this._scrollTop;return this._shouldShow!==e&&(this._shouldShow=e,!0)},hr.prototype.getDomNode=function(){return this._domNode},hr.prototype._updateWidth=function(){var e=this._context.configuration.options.get(107);0===e.renderMinimap||0<e.minimapWidth&&0===e.minimapLeft?this._width=e.width:this._width=e.width-e.minimapWidth-e.verticalScrollbarWidth},hr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(78);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0},hr.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},hr.prototype.prepareRender=function(e){},hr.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},hr);function hr(e){var t=ur.call(this,e)||this;t._scrollTop=0,t._width=0,t._updateWidth(),t._shouldShow=!1;var n=t._context.configuration.options.get(78);return t._useShadows=n.useShadows,t._domNode=Object(p.b)(document.createElement("div")),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t}Object(he.e)((function(e,t){var n=e.getColor(fi.Vb);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")})),n(1351);var pr,fr=(pr=function(e,t){return(pr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}pr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),gr=function(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null},mr=function(e,t){this.lineNumber=e,this.ranges=t};function vr(e){return new gr(e)}function yr(e){return new mr(e.lineNumber,e.ranges.map(vr))}var br,_r=m.f,wr=(fr(Cr,br=jt),Cr.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,br.prototype.dispose.call(this)},Cr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(49),this._roundedSelection=t.get(76),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},Cr.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},Cr.prototype.onDecorationsChanged=function(e){return!0},Cr.prototype.onFlushed=function(e){return!0},Cr.prototype.onLinesChanged=function(e){return!0},Cr.prototype.onLinesDeleted=function(e){return!0},Cr.prototype.onLinesInserted=function(e){return!0},Cr.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Cr.prototype.onZonesChanged=function(e){return!0},Cr.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t<n;t++)if(1<e[t].ranges.length)return!0;return!1},Cr.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var o=this._typicalHalfwidthCharacterWidth/4,i=null,r=null;if(n&&0<n.length&&0<t.length){var a=t[0].lineNumber;if(a===e.startLineNumber)for(var s=0;!i&&s<n.length;s++)n[s].lineNumber===a&&(i=n[s].ranges[0]);var l=t[t.length-1].lineNumber;if(l===e.endLineNumber)for(s=n.length-1;!r&&0<=s;s--)n[s].lineNumber===l&&(r=n[s].ranges[0]);i&&!i.startStyle&&(i=null),r&&!r.startStyle&&(r=null)}s=0;for(var c=t.length;s<c;s++){var u=t[s].ranges[0],d=u.left,h=u.left+u.width,p={top:0,bottom:0},f={top:0,bottom:0};if(0<s){var g=t[s-1].ranges[0].left,m=t[s-1].ranges[0].left+t[s-1].ranges[0].width;Sr(d-g)<o?p.top=2:g<d&&(p.top=1),Sr(h-m)<o?f.top=2:g<h&&h<m&&(f.top=1)}else i&&(p.top=i.startStyle.top,f.top=i.endStyle.top);if(s+1<c){var v=t[s+1].ranges[0].left,y=t[s+1].ranges[0].left+t[s+1].ranges[0].width;Sr(d-v)<o?p.bottom=2:v<d&&d<y&&(p.bottom=1),Sr(h-y)<o?f.bottom=2:h<y&&(f.bottom=1)}else r&&(p.bottom=r.startStyle.bottom,f.bottom=r.endStyle.bottom);u.startStyle=p,u.endStyle=f}},Cr.prototype._getVisibleRangesWithStyle=function(e,t,n){var o=(t.linesVisibleRangesForRange(e,!0)||[]).map(yr),i=this._visibleRangesHaveGaps(o);return _r||i||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,o,n),o},Cr.prototype._createSelectionPiece=function(e,t,n,o,i){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+o.toString()+"px;width:"+i.toString()+"px;height:"+t+'px;"></div>'},Cr.prototype._actualRenderOneSelection=function(e,t,n,o){if(0!==o.length)for(var i=!!o[0].ranges[0].startStyle,r=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),s=o[0].lineNumber,l=o[o.length-1].lineNumber,c=0,u=o.length;c<u;c++){for(var d=o[c],h=d.lineNumber,p=h-t,f=!n||h!==l&&h!==s?r:a,g=n&&h===s?1:0,m="",v="",y=0,b=d.ranges.length;y<b;y++){var _=d.ranges[y];if(i){var w=_.startStyle,C=_.endStyle;if(1===w.top||1===w.bottom){m+=this._createSelectionPiece(g,f,Cr.SELECTION_CLASS_NAME,_.left-Cr.ROUNDED_PIECE_WIDTH,Cr.ROUNDED_PIECE_WIDTH);var S=Cr.EDITOR_BACKGROUND_CLASS_NAME;1===w.top&&(S+=" "+Cr.SELECTION_TOP_RIGHT),1===w.bottom&&(S+=" "+Cr.SELECTION_BOTTOM_RIGHT),m+=this._createSelectionPiece(g,f,S,_.left-Cr.ROUNDED_PIECE_WIDTH,Cr.ROUNDED_PIECE_WIDTH)}if(1===C.top||1===C.bottom){m+=this._createSelectionPiece(g,f,Cr.SELECTION_CLASS_NAME,_.left+_.width,Cr.ROUNDED_PIECE_WIDTH);var O=Cr.EDITOR_BACKGROUND_CLASS_NAME;1===C.top&&(O+=" "+Cr.SELECTION_TOP_LEFT),1===C.bottom&&(O+=" "+Cr.SELECTION_BOTTOM_LEFT),m+=this._createSelectionPiece(g,f,O,_.left+_.width,Cr.ROUNDED_PIECE_WIDTH)}}var x=Cr.SELECTION_CLASS_NAME;i&&(w=_.startStyle,C=_.endStyle,0===w.top&&(x+=" "+Cr.SELECTION_TOP_LEFT),0===w.bottom&&(x+=" "+Cr.SELECTION_BOTTOM_LEFT),0===C.top&&(x+=" "+Cr.SELECTION_TOP_RIGHT),0===C.bottom&&(x+=" "+Cr.SELECTION_BOTTOM_RIGHT)),v+=this._createSelectionPiece(g,f,x,_.left,_.width)}e[p][0]+=m,e[p][1]+=v}},Cr.prototype.prepareRender=function(e){for(var t=[],n=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,i=n;i<=o;i++)t[i-n]=["",""];for(var r=[],a=0,s=this._selections.length;a<s;a++){var l=this._selections[a];if(l.isEmpty())r[a]=null;else{var c=this._getVisibleRangesWithStyle(l,e,this._previousFrameVisibleRangesWithStyle[a]);r[a]=c,this._actualRenderOneSelection(t,n,1<this._selections.length,c)}}this._previousFrameVisibleRangesWithStyle=r,this._renderResult=t.map((function(e){return e[0]+e[1]}))},Cr.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Cr.SELECTION_CLASS_NAME="selected-text",Cr.SELECTION_TOP_LEFT="top-left-radius",Cr.SELECTION_BOTTOM_LEFT="bottom-left-radius",Cr.SELECTION_TOP_RIGHT="top-right-radius",Cr.SELECTION_BOTTOM_RIGHT="bottom-right-radius",Cr.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",Cr.ROUNDED_PIECE_WIDTH=10,Cr);function Cr(e){var t=br.call(this)||this;t._previousFrameVisibleRangesWithStyle=[],t._context=e;var n=t._context.configuration.options;return t._lineHeight=n.get(49),t._roundedSelection=n.get(76),t._typicalHalfwidthCharacterWidth=n.get(34).typicalHalfwidthCharacterWidth,t._selections=[],t._renderResult=null,t._context.addEventHandler(t),t}function Sr(e){return e<0?-e:e}Object(he.e)((function(e,t){var n=e.getColor(fi.K);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var o=e.getColor(fi.F);o&&t.addRule(".monaco-editor .selected-text { background-color: "+o+"; }");var i=e.getColor(fi.L);i&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+i+"; }")})),n(1352);var Or=function(e,t,n,o,i,r){this.top=e,this.left=t,this.width=n,this.height=o,this.textContent=i,this.textContentClassName=r},xr=(Er.prototype.getDomNode=function(){return this._domNode},Er.prototype.getPosition=function(){return this._position},Er.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},Er.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},Er.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(34);return this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),u.a.applyFontInfo(this._domNode,n),!0},Er.prototype.onCursorPositionChanged=function(e){return this._position=e,!0},Er.prototype._prepareRender=function(e){var t="";if(this._cursorStyle===pe.g.Line||this._cursorStyle===pe.g.LineThin){var n,o=e.visibleRangeForPosition(this._position);if(!o||o.outsideRenderedLine)return null;if(this._cursorStyle===pe.g.Line){if(2<(n=r.u(0<this._lineCursorWidth?this._lineCursorWidth:2))){var i=this._context.model.getLineContent(this._position.lineNumber),a=It.E(i,this._position.column-1);t=i.substr(this._position.column-1,a)}}else n=r.u(1);var s=o.left;2<=n&&1<=s&&--s;var l=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new Or(l,s,n,this._lineHeight,t,"")}var c=this._context.model.getLineContent(this._position.lineNumber),u=It.E(c,this._position.column-1),d=e.linesVisibleRangesForRange(new Te.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+u),!1);if(!d||0===d.length)return null;var h=d[0];if(h.outsideRenderedLine||0===h.ranges.length)return null;var p=h.ranges[0],f=p.width<1?this._typicalHalfwidthCharacterWidth:p.width,g="";if(this._cursorStyle===pe.g.Block){var m=this._context.model.getViewLineData(this._position.lineNumber);t=c.substr(this._position.column-1,u);var v=m.tokens.findTokenIndexAtOffset(this._position.column-1);g=m.tokens.getClassName(v)}var y=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,b=this._lineHeight;return this._cursorStyle!==pe.g.Underline&&this._cursorStyle!==pe.g.UnderlineThin||(y+=this._lineHeight-2,b=2),new Or(y,p.left,f,b,t,g)},Er.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},Er.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)},Er);function Er(e){this._context=e;var t=this._context.configuration.options,n=t.get(34);this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(p.b)(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),u.a.applyFontInfo(this._domNode,n),this._domNode.setDisplay("none"),this._position=new Ie.a(1,1),this._lastRenderedContent="",this._renderData=null}var kr,Nr,Dr=((kr=function(e,t){return(kr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}kr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Lr,Nr=z),Lr.prototype.dispose=function(){Nr.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},Lr.prototype.getDomNode=function(){return this._domNode},Lr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;this._readOnly=t.get(68),this._cursorBlinking=t.get(16),this._cursorStyle=t.get(18),this._cursorSmoothCaretAnimation=t.get(17),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(var n=0,o=this._secondaryCursors.length;n<o;n++)this._secondaryCursors[n].onConfigurationChanged(e);return!0},Lr.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,o=0;o<n;o++){var i=new xr(this._context);this._domNode.domNode.insertBefore(i.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(i)}else if(this._secondaryCursors.length>t.length){var r=this._secondaryCursors.length-t.length;for(o=0;o<r;o++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(o=0;o<t.length;o++)this._secondaryCursors[o].onCursorPositionChanged(t[o])},Lr.prototype.onCursorStateChanged=function(e){for(var t=[],n=0,o=e.selections.length;n<o;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0},Lr.prototype.onDecorationsChanged=function(e){return!0},Lr.prototype.onFlushed=function(e){return!0},Lr.prototype.onFocusChanged=function(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1},Lr.prototype.onLinesChanged=function(e){return!0},Lr.prototype.onLinesDeleted=function(e){return!0},Lr.prototype.onLinesInserted=function(e){return!0},Lr.prototype.onScrollChanged=function(e){return!0},Lr.prototype.onTokensChanged=function(e){function t(t){for(var n=0,o=e.ranges.length;n<o;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return 1}if(t(this._primaryCursor.getPosition()))return!0;for(var n=0,o=this._secondaryCursors;n<o.length;n++)if(t(o[n].getPosition()))return!0;return!1},Lr.prototype.onZonesChanged=function(e){return!0},Lr.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},Lr.prototype._updateBlinking=function(){var e=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var t=this._getCursorBlinking(),n=0===t,o=5===t;n?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),n||o||(1===t?this._cursorFlatBlinkInterval.cancelAndSet((function(){e._isVisible?e._hide():e._show()}),Lr.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet((function(){e._blinkingEnabled=!0,e._updateDomClassName()}),Lr.BLINK_INTERVAL))},Lr.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},Lr.prototype._getClassName=function(){var e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case pe.g.Line:e+=" cursor-line-style";break;case pe.g.Block:e+=" cursor-block-style";break;case pe.g.Underline:e+=" cursor-underline-style";break;case pe.g.LineThin:e+=" cursor-line-thin-style";break;case pe.g.BlockOutline:e+=" cursor-block-outline-style";break;case pe.g.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},Lr.prototype._show=function(){this._primaryCursor.show();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0},Lr.prototype._hide=function(){this._primaryCursor.hide();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1},Lr.prototype.prepareRender=function(e){this._primaryCursor.prepareRender(e);for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)},Lr.prototype.render=function(e){var t=[],n=0,o=this._primaryCursor.render(e);o&&(t[n++]=o);for(var i=0,r=this._secondaryCursors.length;i<r;i++){var a=this._secondaryCursors[i].render(e);a&&(t[n++]=a)}this._renderData=t},Lr.prototype.getLastRenderData=function(){return this._renderData},Lr.BLINK_INTERVAL=500,Lr);function Lr(e){var t=Nr.call(this,e)||this,n=t._context.configuration.options;return t._readOnly=n.get(68),t._cursorBlinking=n.get(16),t._cursorStyle=n.get(18),t._cursorSmoothCaretAnimation=n.get(17),t._selectionIsEmpty=!0,t._isVisible=!1,t._primaryCursor=new xr(t._context),t._secondaryCursors=[],t._renderData=[],t._domNode=Object(p.b)(document.createElement("div")),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t._updateDomClassName(),t._domNode.appendChild(t._primaryCursor.getDomNode()),t._startCursorBlinkAnimation=new y.e,t._cursorFlatBlinkInterval=new y.c,t._blinkingEnabled=!1,t._editorHasFocus=!1,t._updateBlinking(),t}function Pr(){throw new Error("Invalid change accessor")}Object(he.e)((function(e,t){var n=e.getColor(Vt.g);if(n){var o=e.getColor(Vt.f);o=o||n.opposite(),t.addRule(".monaco-editor .cursor { background-color: "+n+"; border-color: "+n+"; color: "+o+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+o+"; border-right: 1px solid "+o+"; }")}}));var Ir,Tr,Mr=((Ir=function(e,t){return(Ir=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ir(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(jr,Tr=z),jr.prototype.dispose=function(){Tr.prototype.dispose.call(this),this._zones={}},jr.prototype._recomputeWhitespacesProps=function(){for(var e=this,t=this._context.viewLayout.getWhitespaces(),n=new Map,o=0,i=t;o<i.length;o++){var r=i[o];n.set(r.id,r)}return this._context.viewLayout.changeWhitespace((function(t){for(var o=!1,i=Object.keys(e._zones),r=0,a=i.length;r<a;r++){var s=i[r],l=e._zones[s],c=e._computeWhitespaceProps(l.delegate),u=n.get(s);!u||u.afterLineNumber===c.afterViewLineNumber&&u.height===c.heightInPx||(t.changeOneWhitespace(s,c.afterViewLineNumber,c.heightInPx),e._safeCallOnComputedHeight(l.delegate,c.heightInPx),o=!0)}return o}))},jr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,e.hasChanged(49)&&this._recomputeWhitespacesProps(),!0},jr.prototype.onLineMappingChanged=function(e){var t=this._recomputeWhitespacesProps();return t&&this._context.viewLayout.onHeightMaybeChanged(),t},jr.prototype.onLinesDeleted=function(e){return!0},jr.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},jr.prototype.onZonesChanged=function(e){return!0},jr.prototype.onLinesInserted=function(e){return!0},jr.prototype._getZoneOrdinal=function(e){return void 0!==e.afterColumn?e.afterColumn:1e4},jr.prototype._computeWhitespaceProps=function(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var t,n;if(void 0!==e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var o=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new Ie.a(o,this._context.model.getModelLineMaxColumn(o))}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 i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t),r=this._context.model.coordinatesConverter.modelPositionIsVisible(n);return{afterViewLineNumber:i.lineNumber,heightInPx:r?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}},jr.prototype.changeViewZones=function(e){var t=this;return this._context.viewLayout.changeWhitespace((function(n){var o=!1,i={addZone:function(e){return o=!0,t._addZone(n,e)},removeZone:function(e){e&&(o=t._removeZone(n,e)||o)},layoutZone:function(e){e&&(o=t._layoutZone(n,e)||o)}};return function(e,t){try{e(t)}catch(e){Object(a.e)(e)}}(e,i),i.addZone=Pr,i.removeZone=Pr,i.layoutZone=Pr,o}))},jr.prototype._addZone=function(e,t){var n=this._computeWhitespaceProps(t),o={whitespaceId:e.insertWhitespace(n.afterViewLineNumber,this._getZoneOrdinal(t),n.heightInPx,n.minWidthInPx),delegate:t,isVisible:!1,domNode:Object(p.b)(t.domNode),marginDomNode:t.marginDomNode?Object(p.b)(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},jr.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},jr.prototype._layoutZone=function(e,t){if(this._zones.hasOwnProperty(t)){var n=this._zones[t],o=this._computeWhitespaceProps(n.delegate);return e.changeOneWhitespace(n.whitespaceId,o.afterViewLineNumber,o.heightInPx),this._safeCallOnComputedHeight(n.delegate,o.heightInPx),this.setShouldRender(),!0}return!1},jr.prototype.shouldSuppressMouseDownOnViewZone=function(e){if(this._zones.hasOwnProperty(e)){var t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1},jr.prototype._heightInPixels=function(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight},jr.prototype._minWidthInPixels=function(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0},jr.prototype._safeCallOnComputedHeight=function(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){Object(a.e)(e)}},jr.prototype._safeCallOnDomNodeTop=function(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){Object(a.e)(e)}},jr.prototype.prepareRender=function(e){},jr.prototype.render=function(e){for(var t=e.viewportData.whitespaceViewportData,n={},o=!1,i=0,r=t.length;i<r;i++)n[t[i].id]=t[i],o=!0;var a=Object.keys(this._zones);for(i=0,r=a.length;i<r;i++){var s=a[i],l=this._zones[s],c=0,u=0,d="none";n.hasOwnProperty(s)?(c=n[s].verticalOffset-e.bigNumbersDelta,u=n[s].height,d="block",l.isVisible||(l.domNode.setAttribute("monaco-visible-view-zone","true"),l.isVisible=!0),this._safeCallOnDomNodeTop(l.delegate,e.getScrolledTopFromAbsoluteTop(n[s].verticalOffset))):(l.isVisible&&(l.domNode.removeAttribute("monaco-visible-view-zone"),l.isVisible=!1),this._safeCallOnDomNodeTop(l.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),l.domNode.setTop(c),l.domNode.setHeight(u),l.domNode.setDisplay(d),l.marginDomNode&&(l.marginDomNode.setTop(c),l.marginDomNode.setHeight(u),l.marginDomNode.setDisplay(d))}o&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},jr);function jr(e){var t=Tr.call(this,e)||this,n=t._context.configuration.options,o=n.get(107);return t._lineHeight=n.get(49),t._contentWidth=o.contentWidth,t._contentLeft=o.contentLeft,t.domNode=Object(p.b)(document.createElement("div")),t.domNode.setClassName("view-zones"),t.domNode.setPosition("absolute"),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t.marginDomNode=Object(p.b)(document.createElement("div")),t.marginDomNode.setClassName("margin-view-zones"),t.marginDomNode.setPosition("absolute"),t.marginDomNode.setAttribute("role","presentation"),t.marginDomNode.setAttribute("aria-hidden","true"),t._zones={},t}var Rr=(Ar.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)},Ar.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e)},Ar);function Ar(e,t,n,o){this.configuration=e,this.theme=t,this.model=n,this.viewLayout=n.viewLayout,this.privateViewEventBus=o}var Fr=(Vr.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t];this._eventHandlers.push(e)},Vr.prototype.removeEventHandler=function(e){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}},Vr.prototype.emit=function(e){this._eventQueue?this._eventQueue.push(e):this._eventQueue=[e],this._isConsumingQueue||this.consumeQueue()},Vr.prototype.emitMany=function(e){this._eventQueue?this._eventQueue=this._eventQueue.concat(e):this._eventQueue=e,this._isConsumingQueue||this.consumeQueue()},Vr.prototype.consumeQueue=function(){var e=this;this._eventHandlerGateKeeper((function(){try{e._isConsumingQueue=!0,e._doConsumeQueue()}finally{e._isConsumingQueue=!1}}))},Vr.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var e=this._eventQueue;this._eventQueue=null;for(var t=this._eventHandlers.slice(0),n=0,o=t.length;n<o;n++)t[n].handleEvents(e)}},Vr);function Vr(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}var Wr=(Br.prototype.getViewLineRenderingData=function(e){return this._model.getViewLineRenderingData(this.visibleRange,e)},Br.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},Br);function Br(e,t,n,o){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=o,this.visibleRange=new Te.a(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}var Hr,zr,Kr=((Hr=function(e,t){return(Hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Hr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ur,zr=V),Ur.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},Ur.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 Re(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 Ie.a(t,n))},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t)}}},Ur.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new Ie.a(t,n))}}},Ur.prototype._applyLayout=function(){var e=this._context.configuration.options.get(107);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this.overflowGuardContainer.setWidth(e.width),this.overflowGuardContainer.setHeight(e.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},Ur.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(104)+" "+Object(he.d)(this._context.theme.type)+e},Ur.prototype.onConfigurationChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._applyLayout(),!1},Ur.prototype.onContentSizeChanged=function(e){return this.outgoingEvents.emitContentSizeChange(e),!1},Ur.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},Ur.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},Ur.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1},Ur.prototype.dispose=function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var e=0,t=this.viewParts.length;e<t;e++)this.viewParts[e].dispose();this.viewParts=[],zr.prototype.dispose.call(this)},Ur.prototype._renderOnce=function(e){var t=qr(e);return this._scheduleRender(),t},Ur.prototype._scheduleRender=function(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=r.U(this._onRenderScheduled.bind(this),100))},Ur.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},Ur.prototype._renderNow=function(){var e=this;qr((function(){return e._actualRender()}))},Ur.prototype._getViewPartsToRender=function(){for(var e=[],t=0,n=0,o=this.viewParts.length;n<o;n++){var i=this.viewParts[n];i.shouldRender()&&(e[t++]=i)}return e},Ur.prototype._actualRender=function(){if(r.M(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 Wr(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 o=new J(this._context.viewLayout,n,this.viewLines),i=0,a=e.length;i<a;i++)(s=e[i]).prepareRender(o);for(i=0,a=e.length;i<a;i++){var s;(s=e[i]).render(o),s.onDidRender()}}}},Ur.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)},Ur.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})},Ur.prototype.getOffsetForColumn=function(e,t){var n=this._context.model.validateModelPosition({lineNumber:e,column:t}),o=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();var i=this.viewLines.visibleRangeForPosition(new Ie.a(o.lineNumber,o.column));return i?i.left:-1},Ur.prototype.getTargetAtClientPoint=function(e,t){var n=this.pointerHandler.getTargetAtClientPoint(e,t);return n?Tn.convertViewToModelMouseTarget(n,this._context.model.coordinatesConverter):null},Ur.prototype.createOverviewRuler=function(e){return new or(this._context,e)},Ur.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 fn)),n}))},Ur.prototype.render=function(e,t){if(t){this.viewLines.forceShouldRender();for(var n=0,o=this.viewParts.length;n<o;n++)this.viewParts[n].forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()},Ur.prototype.focus=function(){this._textAreaHandler.focusTextArea()},Ur.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},Ur.prototype.setAriaOptions=function(e){this._textAreaHandler.setAriaOptions(e)},Ur.prototype.addContentWidget=function(e){this.contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()},Ur.prototype.layoutContentWidget=function(e){var t=e.position&&e.position.range||null;if(null===t){var n=e.position?e.position.position:null;null!==n&&(t=new Te.a(n.lineNumber,n.column,n.lineNumber,n.column))}var o=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,t,o),this._scheduleRender()},Ur.prototype.removeContentWidget=function(e){this.contentWidgets.removeWidget(e.widget),this._scheduleRender()},Ur.prototype.addOverlayWidget=function(e){this.overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()},Ur.prototype.layoutOverlayWidget=function(e){var t=e.position?e.position.preference:null;this.overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()},Ur.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender()},Ur);function Ur(e,t,n,o,i,r){var a=zr.call(this)||this;a._cursor=i,a._renderAnimationFrame=null,a.outgoingEvents=r;var s=new Dn(t,o,a.outgoingEvents,e);a.eventDispatcher=new Fr((function(e){return a._renderOnce(e)})),a.eventDispatcher.addEventHandler(a),a._context=new Rr(t,n.getTheme(),o,a.eventDispatcher),a._register(n.onThemeChange((function(e){a._context.theme=e,a.eventDispatcher.emit(new dn),a.render(!0,!1)}))),a.viewParts=[],a._textAreaHandler=new En(a._context,s,a.createTextAreaHandlerHelper()),a.viewParts.push(a._textAreaHandler),a.linesContent=Object(p.b)(document.createElement("div")),a.linesContent.setClassName("lines-content monaco-editor-background"),a.linesContent.setPosition("absolute"),a.domNode=Object(p.b)(document.createElement("div")),a.domNode.setClassName(a.getEditorClassName()),a.overflowGuardContainer=Object(p.b)(document.createElement("div")),U.write(a.overflowGuardContainer,3),a.overflowGuardContainer.setClassName("overflow-guard"),a._scrollbar=new Io(a._context,a.linesContent,a.domNode,a.overflowGuardContainer),a.viewParts.push(a._scrollbar),a.viewLines=new Qo(a._context,a.linesContent),a.viewZones=new Mr(a._context),a.viewParts.push(a.viewZones);var l=new Ji(a._context);a.viewParts.push(l);var c=new dr(a._context);a.viewParts.push(c);var u=new Jn(a._context);a.viewParts.push(u),u.addDynamicOverlay(new _o(a._context)),u.addDynamicOverlay(new wr(a._context)),u.addDynamicOverlay(new Uo(a._context)),u.addDynamicOverlay(new ko(a._context));var d=new to(a._context);a.viewParts.push(d),d.addDynamicOverlay(new So(a._context)),d.addDynamicOverlay(new Bo(a._context)),d.addDynamicOverlay(new si(a._context)),d.addDynamicOverlay(new oi(a._context)),d.addDynamicOverlay(new Wt(a._context));var h=new Kt(a._context);h.getDomNode().appendChild(a.viewZones.marginDomNode),h.getDomNode().appendChild(d.getDomNode()),a.viewParts.push(h),a.contentWidgets=new so(a._context,a.domNode),a.viewParts.push(a.contentWidgets),a.viewCursors=new Dr(a._context),a.viewParts.push(a.viewCursors),a.overlayWidgets=new Ki(a._context),a.viewParts.push(a.overlayWidgets);var f=new sr(a._context);a.viewParts.push(f);var g=new Wi(a._context);if(a.viewParts.push(g),l){var m=a._scrollbar.getOverviewRulerLayoutInfo();m.parent.insertBefore(l.getDomNode(),m.insertBefore)}return a.linesContent.appendChild(u.getDomNode()),a.linesContent.appendChild(f.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(h.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(g.getDomNode()),a.domNode.appendChild(a.overflowGuardContainer),a.domNode.appendChild(a.contentWidgets.overflowingContentWidgetsDomNode),a._applyLayout(),a.pointerHandler=a._register(new Nt(a._context,s,a.createPointerHandlerHelper())),a._register(o.addEventListener((function(e){a.eventDispatcher.emitMany(e)}))),a._register(a._cursor.addEventListener((function(e){a.eventDispatcher.emitMany(e)}))),a}function qr(e){try{return e()}catch(e){Object(a.e)(e)}}var Gr=(Yr.prototype.dispose=function(e){this._removeTrackedRange(e)},Yr.prototype.startTrackingSelection=function(e){this._trackSelection=!0,this._updateTrackedRange(e)},Yr.prototype.stopTrackingSelection=function(e){this._trackSelection=!1,this._removeTrackedRange(e)},Yr.prototype._updateTrackedRange=function(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))},Yr.prototype._removeTrackedRange=function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)},Yr.prototype.asCursorState=function(){return new Me.d(this.modelState,this.viewState)},Yr.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new et.a(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new et.a(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},Yr.prototype.ensureValidState=function(e){this._setState(e,this.modelState,this.viewState)},Yr.prototype.setState=function(e,t,n){this._setState(e,t,n)},Yr.prototype._setState=function(e,t,n){if(t){r=e.model.validateRange(t.selectionStart);var o=t.selectionStart.equalsRange(r)?t.selectionStartLeftoverVisibleColumns:0,i=(a=e.model.validatePosition(t.position),t.position.equals(a)?t.leftoverVisibleColumns:0);t=new Me.f(r,o,a,i)}else{if(!n)return;var r=e.model.validateRange(e.convertViewRangeToModelRange(n.selectionStart)),a=e.model.validatePosition(e.convertViewPositionToModelPosition(n.position.lineNumber,n.position.column));t=new Me.f(r,n.selectionStartLeftoverVisibleColumns,a,n.leftoverVisibleColumns)}if(n)c=e.validateViewRange(n.selectionStart,t.selectionStart),u=e.validateViewPosition(n.position,t.position),n=new Me.f(c,t.selectionStartLeftoverVisibleColumns,u,t.leftoverVisibleColumns);else{var s=e.convertModelPositionToViewPosition(new Ie.a(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),l=e.convertModelPositionToViewPosition(new Ie.a(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),c=new Te.a(s.lineNumber,s.column,l.lineNumber,l.column),u=e.convertModelPositionToViewPosition(t.position);n=new Me.f(c,t.selectionStartLeftoverVisibleColumns,u,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=n,this._updateTrackedRange(e)},Yr);function Yr(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new Me.f(new Te.a(1,1,1,1),0,new Ie.a(1,1),0),new Me.f(new Te.a(1,1,1,1),0,new Ie.a(1,1),0))}var Zr=($r.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},$r.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)},$r.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)},$r.prototype.updateContext=function(e){this.context=e},$r.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)},$r.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},$r.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},$r.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},$r.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},$r.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},$r.prototype.setSelections=function(e){this.setStates(Me.d.fromModelSelections(e))},$r.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},$r.prototype.setStates=function(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))},$r.prototype._setSecondaryStates=function(e){var t=this.secondaryCursors.length,n=e.length;if(t<n)for(var o=n-t,i=0;i<o;i++)this._addSecondaryCursor();else if(n<t){var r=t-n;for(i=0;i<r;i++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(i=0;i<n;i++)this.secondaryCursors[i].setState(this.context,e[i].modelState,e[i].viewState)},$r.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},$r.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new Gr(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},$r.prototype.getLastAddedCursorIndex=function(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex},$r.prototype._removeSecondaryCursor=function(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},$r.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},$r.prototype.normalize=function(){if(0!==this.secondaryCursors.length){for(var e=this._getAll(),t=[],n=0,o=e.length;n<o;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 i=0;i<t.length-1;i++){var r=t[i],a=t[i+1],s=r.selection,l=a.selection;if(this.context.config.multiCursorMergeOverlapping&&(l.isEmpty()||s.isEmpty()?l.getStartPosition().isBeforeOrEqual(s.getEndPosition()):l.getStartPosition().isBefore(s.getEndPosition()))){var c=r.index<a.index?i:i+1,u=r.index<a.index?i+1:i,d=t[u].index,h=t[c].index,p=t[u].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,y=void 0;d===this.lastAddedCursorIndex?(y=m,this.lastAddedCursorIndex=h):y=v;var b;b=y?new et.a(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new et.a(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn),t[c].selection=b;var _=Me.d.fromModelSelection(b);e[h].setState(this.context,_.modelState,_.viewState)}for(var w=0,C=t;w<C.length;w++){var S=C[w];S.index>d&&S.index--}e.splice(d,1),t.splice(u,1),this._removeSecondaryCursor(d-1),i--}}}},$r);function $r(e){this.context=e,this.primaryCursor=new Gr(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}var Xr,Jr=n(1083),Qr=n(974),ea=n(776),ta=(Xr=function(e,t){return(Xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Xr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),na=function(e,t,n,o,i,r){this.selections=e,this.modelVersionId=t,this.oldSelections=n,this.oldModelVersionId=o,this.source=i,this.reason=r},oa=(ia.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},ia);function ia(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getAll()}var ra=(aa.getAllAutoClosedCharacters=function(e){for(var t=[],n=0,o=e;n<o.length;n++){var i=o[n];t=t.concat(i.getAutoClosedCharactersRanges())}return t},aa.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},aa.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},aa.prototype.isValid=function(e){for(var t=[],n=0;n<this._autoClosedEnclosingDecorations.length;n++){var o=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(o&&(t.push(o),o.startLineNumber!==o.endLineNumber))return!1}for(t.sort(Te.a.compareRangesUsingStarts),e.sort(Te.a.compareRangesUsingStarts),n=0;n<e.length;n++){if(n>=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0},aa);function aa(e,t,n){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=n}var sa,la=(ta(ca,sa=gn),ca.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(l.f)(this._autoClosedActions),sa.prototype.dispose.call(this)},ca.prototype._validateAutoClosedActions=function(){if(0<this._autoClosedActions.length)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--)}},ca.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},ca.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},ca.prototype.getAll=function(){return this._cursors.getAll()},ca.prototype.setStates=function(e,t,n){null!==n&&n.length>ca.MAX_CURSOR_COUNT&&(n=n.slice(0,ca.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var o=new oa(this._model,this);this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,o)},ca.prototype.setColumnSelectData=function(e){this._columnSelectData=e},ca.prototype.reveal=function(e,t,n,o){this._revealRange(e,n,0,t,o)},ca.prototype.revealRange=function(e,t,n,o,i){this.emitCursorRevealRange(e,n,o,t,i)},ca.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},ca.prototype.saveState=function(){for(var e=[],t=this._cursors.getSelections(),n=0,o=t.length;n<o;n++){var i=t[n];e.push({inSelectionMode:!i.isEmpty(),selectionStart:{lineNumber:i.selectionStartLineNumber,column:i.selectionStartColumn},position:{lineNumber:i.positionLineNumber,column:i.positionColumn}})}return e},ca.prototype.restoreState=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var i=e[n],r=1,a=1;i.position&&i.position.lineNumber&&(r=i.position.lineNumber),i.position&&i.position.column&&(a=i.position.column);var s=r,l=a;i.selectionStart&&i.selectionStart.lineNumber&&(s=i.selectionStart.lineNumber),i.selectionStart&&i.selectionStart.column&&(l=i.selectionStart.column),t.push({selectionStartLineNumber:s,selectionStartColumn:l,positionLineNumber:r,positionColumn:a})}this.setStates("restoreState",0,Me.d.fromModelSelections(t)),this.reveal("restoreState",!0,0,1)},ca.prototype._onModelContentChanged=function(e){if(this._prevEditOperationType=0,e)this._cursors.dispose(),this._cursors=new Zr(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var t=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,Me.d.fromModelSelections(t))}},ca.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},ca.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor().viewState.selectionStart.getStartPosition(),t=e.lineNumber,n=Me.a.visibleColumnFromColumn2(this.context.config,this.context.viewModel,e);return{isReal:!1,fromViewLineNumber:t,fromViewVisualColumn:n,toViewLineNumber:t,toViewVisualColumn:n}},ca.prototype.getSelections=function(){return this._cursors.getSelections()},ca.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},ca.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},ca.prototype.setSelections=function(e,t){this.setStates(e,0,Me.d.fromModelSelections(t))},ca.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},ca.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e},ca.prototype._pushAutoClosedAction=function(e,t){for(var n=[],o=[],i=0,r=e.length;i<r;i++)n.push({range:e[i],options:{inlineClassName:"auto-closed-character",stickiness:1}}),o.push({range:t[i],options:{stickiness:1}});var a=this._model.deltaDecorations([],n),s=this._model.deltaDecorations([],o);this._autoClosedActions.push(new ra(this._model,a,s))},ca.prototype._executeEditOperation=function(e){if(e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=ua.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);for(var n=[],o=[],i=0;i<e.commands.length;i++){var r=e.commands[i];r instanceof Qr.b&&r.enclosingRange&&r.closeCharacterRange&&(n.push(r.closeCharacterRange),o.push(r.enclosingRange))}0<n.length&&this._pushAutoClosedAction(n,o),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}},ca.prototype._interpretCommandResult=function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},ca.prototype._emitStateChangedIfNecessary=function(e,t,n){var o=new oa(this._model,this);if(o.equals(n))return!1;var i=this._cursors.getSelections(),r=this._cursors.getViewSelections();try{this._beginEmit().emit(new Qt(r,i))}finally{this._endEmit()}if(!n||n.cursorState.length!==o.cursorState.length||o.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,s=n?n.modelVersionId:0;this._onDidChange.fire(new na(i,o.modelVersionId,a,s,e||"keyboard",t))}return!0},ca.prototype._revealRange=function(e,t,n,o,i){var r=this._cursors.getViewPositions(),a=r[0];if(1===t)for(var s=1;s<r.length;s++)r[s].isBefore(a)&&(a=r[s]);else if(2===t)for(s=1;s<r.length;s++)a.isBeforeOrEqual(r[s])&&(a=r[s]);else if(1<r.length)return;var l=new Te.a(a.lineNumber,a.column,a.lineNumber,a.column);this.emitCursorRevealRange(e,l,n,o,i)},ca.prototype.emitCursorRevealRange=function(e,t,n,o,i){try{this._beginEmit().emit(new cn(e,t,n,o,i))}finally{this._endEmit()}},ca.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var t=[],n=0,o=e.length;n<o;n++){var i=e[n];if(!i.text||0<=i.text.indexOf("\n"))return null;var r=i.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;var a=r[1],s=this.context.config.autoClosingPairsClose2.get(a);if(!s||1!==s.length)return null;var l=s[0].open,c=i.text.length-r[2].length-1,u=i.text.lastIndexOf(l,c-1);if(-1===u)return null;t.push([u,c])}return t},ca.prototype.executeEdits=function(e,t,n){var o=this,i=null;"snippet"===e&&(i=this._findAutoClosingPairs(t)),i&&(t[0]._isTracked=!0);var r=[],a=[],s=this._model.pushEditOperations(this.getSelections(),t,(function(e){if(i)for(var t=0,s=i.length;t<s;t++){var l=i[t],c=l[0],u=l[1],d=e[t],h=d.range.startLineNumber,p=d.range.startColumn-1+c,f=d.range.startColumn-1+u;r.push(new Te.a(h,f+1,h,f+2)),a.push(new Te.a(h,p+1,h,f+2))}var g=n(e);return g&&(o._isHandling=!0),g}));s&&(this._isHandling=!1,this.setSelections(e,s)),0<r.length&&this._pushAutoClosedAction(r,a)},ca.prototype.trigger=function(e,t,n){var o=ea.b;if(t===o.CompositionStart)return this._isDoingComposition=!0,void(this._selectionsWhenCompositionStarted=this.getSelections().slice(0));if(t===o.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68))this._onDidAttemptReadOnlyEdit.fire(void 0);else{var i=new oa(this._model,this),r=0;t!==o.Undo&&t!==o.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case o.Type:this._type(e,n.text);break;case o.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case o.Paste:r=4,this._paste(n.text,n.pasteOnNewLine,n.multicursorText||[]);break;case o.Cut:this._cut();break;case o.Undo:r=5,this._interpretCommandResult(this._model.undo());break;case o.Redo:r=6,this._interpretCommandResult(this._model.redo());break;case o.ExecuteCommand:this._externalExecuteCommand(n);break;case o.ExecuteCommands:this._externalExecuteCommands(n);break;case o.CompositionEnd:this._interpretCompositionEnd(e)}}catch(e){Object(a.e)(e)}this._isHandling=!1,t!==o.Undo&&t!==o.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,r,i)&&this._revealRange(e,0,0,!0,0)}},ca.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&"keyboard"===e){var t=ra.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Qr.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),t)),this._selectionsWhenCompositionStarted=null}},ca.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(Qr.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=t.length,o=0;o<n;){var i=It.E(t,o),r=t.substr(o,i),a=ra.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Qr.a.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),a,r)),o+=i}},ca.prototype._replacePreviousChar=function(e,t){this._executeEditOperation(Qr.a.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,t))},ca.prototype._paste=function(e,t,n){this._executeEditOperation(Qr.a.paste(this.context.config,this.context.model,this.getSelections(),e,t,n))},ca.prototype._cut=function(){this._executeEditOperation(Jr.a.cut(this.context.config,this.context.model,this.getSelections()))},ca.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new Me.e(0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},ca.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new Me.e(0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},ca.MAX_CURSOR_COUNT=1e4,ca);function ca(e,t,n){var o=sa.call(this)||this;function i(){o.context=new Me.c(o._configuration,o._model,o._viewModel),o._cursors.updateContext(o.context)}return o._onDidReachMaxCursorCount=o._register(new s.a),o.onDidReachMaxCursorCount=o._onDidReachMaxCursorCount.event,o._onDidAttemptReadOnlyEdit=o._register(new s.a),o.onDidAttemptReadOnlyEdit=o._onDidAttemptReadOnlyEdit.event,o._onDidChange=o._register(new s.a),o.onDidChange=o._onDidChange.event,o._configuration=e,o._model=t,o._knownModelVersionId=o._model.getVersionId(),o._viewModel=n,o.context=new Me.c(o._configuration,o._model,o._viewModel),o._cursors=new Zr(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(n.addEventListener((function(e){!function(e){for(var t=0,n=e.length;t<n;t++)if(8===e[t].type)return 1}(e)||o._knownModelVersionId!==o._model.getVersionId()||o.setStates("viewModel",0,o.getAll())}))),o._register(o._model.onDidChangeLanguage((function(e){i()}))),o._register(o._model.onDidChangeLanguageConfiguration((function(){i()}))),o._register(o._model.onDidChangeOptions((function(){i()}))),o._register(o._configuration.onDidChange((function(e){Me.b.shouldRecreate(e)&&i()}))),o}var ua=(da.executeCommands=function(e,t,n){for(var o={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},i=this._innerExecuteCommands(o,n),r=0,a=o.trackedRanges.length;r<a;r++)o.model._setTrackedRange(o.trackedRanges[r],null,0);return i},da._innerExecuteCommands=function(e,t){if(this._arrayIsEmpty(t))return null;var n=this._getEditOperations(e,t);if(0===n.operations.length)return null;var o=n.operations,i=this._getLoserCursorMap(o);if(i.hasOwnProperty("0"))return null;for(var r=[],a=0,s=o.length;a<s;a++)i.hasOwnProperty(o[a].identifier.major.toString())||r.push(o[a]);n.hadTrackedEditOperation&&0<r.length&&(r[0]._isTracked=!0);var l=e.model.pushEditOperations(e.selectionsBefore,r,(function(n){for(var o=[],i=0;i<e.selectionsBefore.length;i++)o[i]=[];for(var r=0,a=n;r<a.length;r++){var s=a[r];s.identifier&&o[s.identifier.major].push(s)}var l=function(e,t){return e.identifier.minor-t.identifier.minor},c=[],u=function(n){0<o[n].length?(o[n].sort(l),c[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return o[n]},getTrackedSelection:function(t){var n=parseInt(t,10),o=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new et.a(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn):new et.a(o.endLineNumber,o.endColumn,o.startLineNumber,o.startColumn)}})):c[n]=e.selectionsBefore[n]};for(i=0;i<e.selectionsBefore.length;i++)u(i);return c}));l=l||e.selectionsBefore;var c=[];for(var u in i)i.hasOwnProperty(u)&&c.push(parseInt(u,10));c.sort((function(e,t){return t-e}));for(var d=0,h=c;d<h.length;d++){var p=h[d];l.splice(p,1)}return l},da._arrayIsEmpty=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0},da._getEditOperations=function(e,t){for(var n=[],o=!1,i=0,r=t.length;i<r;i++){var a=t[i];if(a){var s=this._getEditOperationsFromCommand(e,i,a);n=n.concat(s.operations),o=o||s.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:o}},da._getEditOperationsFromCommand=function(e,t,n){function o(e,o,a){void 0===a&&(a=!1),e.isEmpty()&&""===o||i.push({identifier:{major:t,minor:r++},range:e,text:o,forceMoveMarkers:a,isAutoWhitespaceEdit:n.insertsAutoWhitespace})}var i=[],r=0,s=!1,l={addEditOperation:o,addTrackedEditOperation:function(e,t,n){s=!0,o(e,t,n)},trackSelection:function(t,n){var o;if(t.isEmpty())if("boolean"==typeof n)o=n?2:3;else{var i=e.model.getLineMaxColumn(t.startLineNumber);o=t.startColumn===i?2:3}else o=1;var r=e.trackedRanges.length,a=e.model._setTrackedRange(null,t,o);return e.trackedRanges[r]=a,e.trackedRangesDirection[r]=t.getDirection(),r.toString()}};try{n.getEditOperations(e.model,l)}catch(l){return Object(a.e)(l),{operations:[],hadTrackedEditOperation:!1}}return{operations:i,hadTrackedEditOperation:s}},da._getLoserCursorMap=function(e){(e=e.slice(0)).sort((function(e,t){return-Te.a.compareRangesUsingEnds(e.range,t.range)}));for(var t={},n=1;n<e.length;n++){var o=e[n-1],i=e[n];if(o.range.getStartPosition().isBefore(i.range.getEndPosition())){var r=void 0;t[(r=o.identifier.major>i.identifier.major?o.identifier.major:i.identifier.major).toString()]=!0;for(var a=0;a<e.length;a++)e[a].identifier.major===r&&(e.splice(a,1),a<n&&n--,a--);0<n&&n--}}return t},da);function da(){}var ha=n(1089),pa=n(469),fa=n(1090),ga=n(1082),ma=(va.prototype.insert=function(e){this._hasPending=!0,this._inserts.push(e)},va.prototype.change=function(e){this._hasPending=!0,this._changes.push(e)},va.prototype.remove=function(e){this._hasPending=!0,this._removes.push(e)},va.prototype.mustCommit=function(){return this._hasPending},va.prototype.commit=function(e){if(this._hasPending){var t=this._inserts,n=this._changes,o=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,n,o)}},va);function va(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}var ya=function(e,t,n,o,i){this.id=e,this.afterLineNumber=t,this.ordinal=n,this.height=o,this.minWidth=i,this.prefixSum=0},ba=(_a.findInsertionIndex=function(e,t,n){for(var o=0,i=e.length;o<i;){var r=o+i>>>1;t===e[r].afterLineNumber?n<e[r].ordinal?i=r:o=1+r:t<e[r].afterLineNumber?i=r:o=1+r}return o},_a.prototype.setLineHeight=function(e){this._checkPendingChanges(),this._lineHeight=e},_a.prototype.onFlushed=function(e){this._checkPendingChanges(),this._lineCount=e},_a.prototype.changeWhitespace=function(e){var t=this;try{return e({insertWhitespace:function(e,n,o,i){e|=0,n|=0,o|=0,i|=0;var r=t._instanceId+ ++t._lastWhitespaceId;return t._pendingChanges.insert(new ya(r,e,n,o,i)),r},changeOneWhitespace:function(e,n,o){n|=0,o|=0,t._pendingChanges.change({id:e,newAfterLineNumber:n,newHeight:o})},removeWhitespace:function(e){t._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}},_a.prototype._commitPendingChanges=function(e,t,n){if((0<e.length||0<n.length)&&(this._minWidth=-1),e.length+t.length+n.length<=1){for(var o=0,i=e;o<i.length;o++){var r=i[o];this._insertWhitespace(r)}for(var a=0,s=t;a<s.length;a++){var l=s[a];this._changeOneWhitespace(l.id,l.newAfterLineNumber,l.newHeight)}for(var c=0,u=n;c<u.length;c++){var d=u[c],h=this._findWhitespaceIndex(d.id);-1!==h&&this._removeWhitespace(h)}}else{for(var p=new Set,f=0,g=n;f<g.length;f++)d=g[f],p.add(d.id);for(var m=new Map,v=0,y=t;v<y.length;v++)l=y[v],m.set(l.id,l);var b=function(e){for(var t=[],n=0,o=e;n<o.length;n++){var i=o[n];if(!p.has(i.id)){if(m.has(i.id)){var r=m.get(i.id);i.afterLineNumber=r.newAfterLineNumber,i.height=r.newHeight}t.push(i)}}return t},_=b(this._arr).concat(b(e));_.sort((function(e,t){return e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber})),this._arr=_,this._prefixSumValidIndex=-1}},_a.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)},_a.prototype._insertWhitespace=function(e){var t=_a.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},_a.prototype._findWhitespaceIndex=function(e){for(var t=this._arr,n=0,o=t.length;n<o;n++)if(t[n].id===e)return n;return-1},_a.prototype._changeOneWhitespace=function(e,t,n){var o=this._findWhitespaceIndex(e);if(-1!==o&&(this._arr[o].height!==n&&(this._arr[o].height=n,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,o-1)),this._arr[o].afterLineNumber!==t)){var i=this._arr[o];this._removeWhitespace(o),i.afterLineNumber=t,this._insertWhitespace(i)}},_a.prototype._removeWhitespace=function(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)},_a.prototype.onLinesDeleted=function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(var n=0,o=this._arr.length;n<o;n++){var i=this._arr[n].afterLineNumber;e<=i&&i<=t?this._arr[n].afterLineNumber=e-1:t<i&&(this._arr[n].afterLineNumber-=t-e+1)}},_a.prototype.onLinesInserted=function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(var n=0,o=this._arr.length;n<o;n++)e<=this._arr[n].afterLineNumber&&(this._arr[n].afterLineNumber+=t-e+1)},_a.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},_a.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},_a.prototype.getLinesTotalHeight=function(){return this._checkPendingChanges(),this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()},_a.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){this._checkPendingChanges(),e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)},_a.prototype._findLastWhitespaceBeforeLineNumber=function(e){e|=0;for(var t=this._arr,n=0,o=t.length-1;n<=o;){var i=n+((o-n|0)/2|0)|0;if(t[i].afterLineNumber<e){if(1+i>=t.length||t[1+i].afterLineNumber>=e)return i;n=1+i|0}else o=i-1|0}return-1},_a.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1},_a.prototype.getFirstWhitespaceIndexAfterLineNumber=function(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)},_a.prototype.getVerticalOffsetForLineNumber=function(e){return this._checkPendingChanges(),(1<(e|=0)?this._lineHeight*(e-1):0)+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e)},_a.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},_a.prototype.isAfterLines=function(e){return this._checkPendingChanges(),this.getLinesTotalHeight()<e},_a.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;for(var t=0|this._lineCount,n=this._lineHeight,o=1,i=t;o<i;){var r=(o+i)/2|0,a=0|this.getVerticalOffsetForLineNumber(r);if(a+n<=e)o=1+r;else{if(a<=e)return r;i=r}}return t<o?t:o},_a.prototype.getLinesViewportData=function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n,o,i=this._lineHeight,r=0|this.getLineNumberAtOrAfterVerticalOffset(e),a=0|this.getVerticalOffsetForLineNumber(r),s=0|this._lineCount,l=0|this.getFirstWhitespaceIndexAfterLineNumber(r),c=0|this.getWhitespacesCount();n=-1===l?(l=c,o=s+1,0):(o=0|this.getAfterLineNumberForWhitespaceIndex(l),0|this.getHeightForWhitespaceIndex(l));var u=a,d=u,h=0;5e5<=a&&(h=5e5*Math.floor(a/5e5),d-=h=Math.floor(h/i)*i);for(var p=[],f=e+(t-e)/2,g=-1,m=r;m<=s;m++){for(-1===g&&(u<=f&&f<u+i||f<u)&&(g=m),u+=i,p[m-r]=d,d+=i;o===m;)d+=n,u+=n,c<=++l?o=s+1:(o=0|this.getAfterLineNumberForWhitespaceIndex(l),n=0|this.getHeightForWhitespaceIndex(l));if(t<=u){s=m;break}}-1===g&&(g=s);var v=0|this.getVerticalOffsetForLineNumber(s),y=r,b=s;return y<b&&a<e&&y++,y<b&&t<v+i&&b--,{bigNumbersDelta:h,startLineNumber:r,endLineNumber:s,relativeVerticalOffset:p,centeredLineNumber:g,completelyVisibleStartLineNumber:y,completelyVisibleEndLineNumber:b}},_a.prototype.getVerticalOffsetForWhitespaceIndex=function(e){this._checkPendingChanges(),e|=0;var t=this.getAfterLineNumberForWhitespaceIndex(e);return(1<=t?this._lineHeight*t:0)+(0<e?this.getWhitespacesAccumulatedHeight(e-1):0)},_a.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){this._checkPendingChanges(),e|=0;var t=0,n=this.getWhitespacesCount()-1;if(n<0)return-1;if(this.getVerticalOffsetForWhitespaceIndex(n)+this.getHeightForWhitespaceIndex(n)<=e)return-1;for(;t<n;){var o=Math.floor((t+n)/2),i=this.getVerticalOffsetForWhitespaceIndex(o);if(i+this.getHeightForWhitespaceIndex(o)<=e)t=o+1;else{if(i<=e)return o;n=o}}return t},_a.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(e<n)return null;var o=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:o}},_a.prototype.getWhitespaceViewportData=function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),o=this.getWhitespacesCount()-1;if(n<0)return[];for(var i=[],r=n;r<=o;r++){var a=this.getVerticalOffsetForWhitespaceIndex(r),s=this.getHeightForWhitespaceIndex(r);if(t<=a)break;i.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:a,height:s})}return i},_a.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},_a.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},_a.prototype.getIdForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].id},_a.prototype.getAfterLineNumberForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber},_a.prototype.getHeightForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].height},_a.INSTANCE_COUNT=0,_a);function _a(e,t){this._instanceId=It.M(++_a.INSTANCE_COUNT),this._pendingChanges=new ma,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t}var wa,Ca=n(777),Sa=(wa=function(e,t){return(wa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}wa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Oa=(xa.prototype.equals=function(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight},xa);function xa(e,t,n,o){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(n|=0)<0&&(n=0),(o|=0)<0&&(o=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=n,this.contentHeight=o,this.scrollHeight=Math.max(n,o)}var Ea,ka=(Sa(Na,Ea=l.a),Na.prototype.getScrollable=function(){return this._scrollable},Na.prototype.setSmoothScrollDuration=function(e){this._scrollable.setSmoothScrollDuration(e)},Na.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},Na.prototype.getScrollDimensions=function(){return this._dimensions},Na.prototype.setScrollDimensions=function(e){if(!this._dimensions.equals(e)){var t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight});var n=t.contentWidth!==e.contentWidth,o=t.contentHeight!==e.contentHeight;(n||o)&&this._onDidContentSizeChange.fire({contentWidth:e.contentWidth,contentHeight:e.contentHeight,contentWidthChanged:n,contentHeightChanged:o})}},Na.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},Na.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},Na.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},Na.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},Na);function Na(e,t){var n=Ea.call(this)||this;return n._onDidContentSizeChange=n._register(new s.a),n.onDidContentSizeChange=n._onDidContentSizeChange.event,n._dimensions=new Oa(0,0,0,0),n._scrollable=n._register(new ga.a(e,t)),n.onDidScroll=n._scrollable.onScroll,n}var Da,La=(Sa(Pa,Da=l.a),Pa.prototype.dispose=function(){Da.prototype.dispose.call(this)},Pa.prototype.getScrollable=function(){return this._scrollable.getScrollable()},Pa.prototype.onHeightMaybeChanged=function(){this._updateHeight()},Pa.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?125:0)},Pa.prototype.onConfigurationChanged=function(e){var t=this._configuration.options;if(e.hasChanged(49)&&this._linesLayout.setLineHeight(t.get(49)),e.hasChanged(107)){var n=t.get(107),o=n.contentWidth,i=n.height,r=this._scrollable.getScrollDimensions(),a=r.scrollWidth;this._scrollable.setScrollDimensions(new Oa(o,r.contentWidth,i,this._getContentHeight(o,i,a)))}else this._updateHeight();e.hasChanged(87)&&this._configureSmoothScrollDuration()},Pa.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)},Pa.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t)},Pa.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t)},Pa.prototype._getHorizontalScrollbarHeight=function(e,t){var n=this._configuration.options.get(78);return 2===n.horizontal||t<=e?0:n.horizontalScrollbarSize},Pa.prototype._getContentHeight=function(e,t,n){var o=this._configuration.options,i=this._linesLayout.getLinesTotalHeight();return o.get(80)?i+=t-o.get(49):i+=this._getHorizontalScrollbarHeight(e,n),i},Pa.prototype._updateHeight=function(){var e=this._scrollable.getScrollDimensions(),t=e.width,n=e.height,o=e.scrollWidth;this._scrollable.setScrollDimensions(new Oa(t,e.contentWidth,n,this._getContentHeight(t,n,o)))},Pa.prototype.getCurrentViewport=function(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Ca.f(t.scrollTop,t.scrollLeft,e.width,e.height)},Pa.prototype.getFutureViewport=function(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Ca.f(t.scrollTop,t.scrollLeft,e.width,e.height)},Pa.prototype._computeContentWidth=function(e){var t=this._configuration.options,n=t.get(108),o=t.get(34);if(n.isViewportWrapping){var i=t.get(107),r=t.get(54);return e>i.contentWidth+o.typicalHalfwidthCharacterWidth&&r.enabled&&"right"===r.side?e+i.verticalScrollbarWidth:e}var a=t.get(79)*o.typicalHalfwidthCharacterWidth,s=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+a,s)},Pa.prototype.onMaxLineWidthChanged=function(e){var t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Oa(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()},Pa.prototype.saveState=function(){var e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}},Pa.prototype.changeWhitespace=function(e){return this._linesLayout.changeWhitespace(e)},Pa.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},Pa.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},Pa.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},Pa.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},Pa.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},Pa.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)},Pa.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},Pa.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},Pa.prototype.getContentWidth=function(){return this._scrollable.getScrollDimensions().contentWidth},Pa.prototype.getScrollWidth=function(){return this._scrollable.getScrollDimensions().scrollWidth},Pa.prototype.getContentHeight=function(){return this._scrollable.getScrollDimensions().contentHeight},Pa.prototype.getScrollHeight=function(){return this._scrollable.getScrollDimensions().scrollHeight},Pa.prototype.getCurrentScrollLeft=function(){return this._scrollable.getCurrentScrollPosition().scrollLeft},Pa.prototype.getCurrentScrollTop=function(){return this._scrollable.getCurrentScrollPosition().scrollTop},Pa.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},Pa.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},Pa.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},Pa.prototype.deltaScrollNow=function(e,t){var n=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},Pa);function Pa(e,t,n){var o=Da.call(this)||this;o._configuration=e;var i=o._configuration.options,r=i.get(107);return o._linesLayout=new ba(t,i.get(49)),o._scrollable=o._register(new ka(0,n)),o._configureSmoothScrollDuration(),o._scrollable.setScrollDimensions(new Oa(r.contentWidth,0,r.height,0)),o.onDidScroll=o._scrollable.onDidScroll,o.onDidContentSizeChange=o._scrollable.onDidContentSizeChange,o._updateHeight(),o}var Ia=n(495),Ta=n(1091),Ma=function(e,t){this.outputLineIndex=e,this.outputOffset=t},ja=(Ra.getInputOffsetOfOutputPosition=function(e,t,n){return 0===t?n:e[t-1]+n},Ra.getOutputPositionOfInputOffset=function(e,t){for(var n=0,o=e.length-1,i=0,r=0;n<=o;){var a=e[i=n+(o-n)/2|0];if(t<(r=0<i?e[i-1]:0))o=i-1;else{if(!(a<=t))break;n=i+1}}return new Ma(i,t-r)},Ra);function Ra(e,t,n){this.breakOffsets=e,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=n}var Aa=(Fa.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},Fa.prototype.convertViewRangeToModelRange=function(e){return this._lines.convertViewRangeToModelRange(e)},Fa.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},Fa.prototype.validateViewRange=function(e,t){return this._lines.validateViewRange(e,t)},Fa.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},Fa.prototype.convertModelRangeToViewRange=function(e){return this._lines.convertModelRangeToViewRange(e)},Fa.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},Fa);function Fa(e){this._lines=e}var Va=(Wa.prototype._invalidate=function(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)},Wa.prototype._ensureValid=function(){if(!this._isValid){for(var e=this._validEndIndex+1,t=this._counts.length;e<t;e++){var n=this._counts[e],o=0<e?this._modelToView[e-1]:0;this._modelToView[e]=o+n;for(var i=0;i<n;i++)this._viewToModel[o+i]=e}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1}},Wa.prototype.changeValue=function(e,t){this._counts[e]!==t&&(this._counts[e]=t,this._invalidate(e))},Wa.prototype.removeValues=function(e,t){this._counts.splice(e,t),this._invalidate(e)},Wa.prototype.insertValues=function(e,t){this._counts=fo.a(this._counts,e,t),this._invalidate(e)},Wa.prototype.getTotalValue=function(){return this._ensureValid(),this._viewToModel.length},Wa.prototype.getAccumulatedValue=function(e){return this._ensureValid(),this._modelToView[e]},Wa.prototype.getIndexOf=function(e){this._ensureValid();var t=this._viewToModel[e],n=0<t?this._modelToView[t-1]:0;return new Ta.b(t,e-n)},Wa);function Wa(e){this._counts=e,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}var Ba=(Ha.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},Ha.prototype.createCoordinatesConverter=function(){return new Aa(this)},Ha.prototype._constructLines=function(e,t){var n=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var o=this.model.getLinesContent(),i=o.length,r=this.createLineBreaksComputer(),a=0;a<i;a++)r.addRequest(o[a],t?t[a]:null);var s=r.finalize(),l=[],c=this.hiddenAreasIds.map((function(e){return n.model.getDecorationRange(e)})).sort(Te.a.compareRangesUsingStarts),u=1,d=0,h=-1,p=h+1<c.length?d+1:i+2;for(a=0;a<i;a++){var f=a+1;f===p&&(u=c[++h].startLineNumber,d=c[h].endLineNumber,p=h+1<c.length?d+1:i+2);var g=u<=f&&f<=d,m=Xa(s[a],!g);l[a]=m.getViewLineCount(),this.lines[a]=m}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Va(l)},Ha.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map((function(t){return e.model.getDecorationRange(t)}))},Ha.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(Te.a.compareRangesUsingStarts),o=[],i=n[0].startLineNumber,r=n[0].endLineNumber,a=1,s=n.length;a<s;a++){var l=n[a];l.startLineNumber>r+1?(o.push(new Te.a(i,1,r,1)),i=l.startLineNumber,r=l.endLineNumber):l.endLineNumber>r&&(r=l.endLineNumber)}return o.push(new Te.a(i,1,r,1)),o},Ha.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),o=this.hiddenAreasIds.map((function(e){return t.model.getDecorationRange(e)})).sort(Te.a.compareRangesUsingStarts);if(n.length===o.length){for(var i=!1,r=0;r<n.length;r++)if(!n[r].equalsRange(o[r])){i=!0;break}if(!i)return!1}for(var a=[],s=0,l=n;s<l.length;s++){var c=l[s];a.push({range:c,options:Ia.a.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,a);var u=n,d=1,h=0,p=-1,f=p+1<u.length?h+1:this.lines.length+2,g=!1;for(r=0;r<this.lines.length;r++){var m=r+1;m===f&&(d=u[++p].startLineNumber,h=u[p].endLineNumber,f=p+1<u.length?h+1:this.lines.length+2);var v=!1;if(d<=m&&m<=h?this.lines[r].isVisible()&&(this.lines[r]=this.lines[r].setVisible(!1),v=!0):(g=!0,this.lines[r].isVisible()||(this.lines[r]=this.lines[r].setVisible(!0),v=!0)),v){var y=this.lines[r].getViewLineCount();this.prefixSumComputer.changeValue(r,y)}}return g||this.setHiddenAreas([]),!0},Ha.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},Ha.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)},Ha.prototype.setWrappingSettings=function(e,t,n,o){var i=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===n,s=this.wrappingIndent===o;if(i&&r&&a&&s)return!1;var l=i&&r&&!a&&s;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=n,this.wrappingIndent=o;var c=null;if(l){c=[];for(var u=0,d=this.lines.length;u<d;u++)c[u]=this.lines[u].getLineBreakData()}return this._constructLines(!1,c),!0},Ha.prototype.createLineBreaksComputer=function(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)},Ha.prototype.onModelFlushed=function(){this._constructLines(!0,null)},Ha.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var o=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,i=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new sn(o,i)},Ha.prototype.onModelLinesInserted=function(e,t,n,o){if(e<=this._validModelVersionId)return null;for(var i=this.getHiddenAreas(),r=!1,a=new Ie.a(t,1),s=0,l=i;s<l.length;s++)if(l[s].containsPosition(a)){r=!0;break}for(var c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,u=0,d=[],h=[],p=0,f=o.length;p<f;p++){var g=Xa(o[p],!r);d.push(g);var m=g.getViewLineCount();u+=m,h[p]=m}return this.lines=this.lines.slice(0,t-1).concat(d).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,h),new ln(c,c+u-1)},Ha.prototype.onModelLineChanged=function(e,t,n){if(e<=this._validModelVersionId)return[!1,null,null,null];var o=t-1,i=this.lines[o].getViewLineCount(),r=Xa(n,this.lines[o].isVisible());this.lines[o]=r;var a=this.lines[o].getViewLineCount(),s=!1,l=0,c=-1,u=0,d=-1,h=0,p=-1;return a<i?(p=(h=1+(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+a-1))+(i-a)-1,s=!0):i<a?(d=(u=1+(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+i-1))+(a-i)-1,s=!0):c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+a-1,this.prefixSumComputer.changeValue(o,a),[s,l<=c?new an(l,c):null,u<=d?new ln(u,d):null,h<=p?new sn(h,p):null]},Ha.prototype.acceptVersionId=function(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])},Ha.prototype.getViewLineCount=function(){return this.prefixSumComputer.getTotalValue()},Ha.prototype._toValidViewLineNumber=function(e){if(e<1)return 1;var t=this.getViewLineCount();return t<e?t:0|e},Ha.prototype.getActiveIndentGuide=function(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);var o=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),a=this.model.getActiveIndentGuide(o.lineNumber,i.lineNumber,r.lineNumber),s=this.convertModelPositionToViewPosition(a.startLineNumber,1),l=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:s.lineNumber,endLineNumber:l.lineNumber,indent:a.indent}},Ha.prototype.getViewLinesIndentGuides=function(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),i=[],r=[],a=[],s=n.lineNumber-1,l=o.lineNumber-1,c=null,u=s;u<=l;u++){var d=this.lines[u];if(d.isVisible()){var h=d.getViewLineNumberOfModelPosition(0,u===s?n.column:1),p=d.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(u+1)),f=0;1<(C=p-h+1)&&1===d.getViewLineMinColumn(this.model,u+1,p)&&(f=0===h?1:2),r.push(C),a.push(f),null===c&&(c=new Ie.a(u+1,0))}else null!==c&&(i=i.concat(this.model.getLinesIndentGuides(c.lineNumber,u)),c=null)}null!==c&&(i=i.concat(this.model.getLinesIndentGuides(c.lineNumber,o.lineNumber)),c=null);for(var g=t-e+1,m=new Array(g),v=0,y=0,b=i.length;y<b;y++){var _,w=i[y],C=Math.min(g-v,r[y]);_=2===(f=a[y])?0:1===f?1:C;for(var S=0;S<C;S++)S===_&&(w=0),m[v++]=w}return m},Ha.prototype.getViewLineContent=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,o=t.remainder;return this.lines[n].getViewLineContent(this.model,n+1,o)},Ha.prototype.getViewLineLength=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,o=t.remainder;return this.lines[n].getViewLineLength(this.model,n+1,o)},Ha.prototype.getViewLineMinColumn=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,o=t.remainder;return this.lines[n].getViewLineMinColumn(this.model,n+1,o)},Ha.prototype.getViewLineMaxColumn=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,o=t.remainder;return this.lines[n].getViewLineMaxColumn(this.model,n+1,o)},Ha.prototype.getViewLineData=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,o=t.remainder;return this.lines[n].getViewLineData(this.model,n+1,o)},Ha.prototype.getViewLinesData=function(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var o=this.prefixSumComputer.getIndexOf(e-1),i=e,r=o.index,a=o.remainder,s=[],l=r,c=this.model.getLineCount();l<c;l++){var u=this.lines[l];if(u.isVisible()){var d=l===r?a:0,h=u.getViewLineCount()-d,p=!1;t<i+h&&(p=!0,h=t-i+1);var f=d+h;if(u.getViewLinesData(this.model,l+1,d,f,i-e,n,s),i+=h,p)break}}return s},Ha.prototype.validateViewPosition=function(e,t,n){e=this._toValidViewLineNumber(e);var o=this.prefixSumComputer.getIndexOf(e-1),i=o.index,r=o.remainder,a=this.lines[i],s=a.getViewLineMinColumn(this.model,i+1,r),l=a.getViewLineMaxColumn(this.model,i+1,r);t<s&&(t=s),l<t&&(t=l);var c=a.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Ie.a(i+1,c)).equals(n)?new Ie.a(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},Ha.prototype.validateViewRange=function(e,t){var n=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),o=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new Te.a(n.lineNumber,n.column,o.lineNumber,o.column)},Ha.prototype.convertViewPositionToModelPosition=function(e,t){e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),o=n.index,i=n.remainder,r=this.lines[o].getModelColumnOfViewPosition(i,t);return this.model.validatePosition(new Ie.a(o+1,r))},Ha.prototype.convertViewRangeToModelRange=function(e){var t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Te.a(t.lineNumber,t.column,n.lineNumber,n.column)},Ha.prototype.convertModelPositionToViewPosition=function(e,t){for(var n=this.model.validatePosition(new Ie.a(e,t)),o=n.lineNumber,i=n.column,r=o-1,a=!1;0<r&&!this.lines[r].isVisible();)r--,a=!0;if(0===r&&!this.lines[r].isVisible())return new Ie.a(1,1);var s=1+(0===r?0:this.prefixSumComputer.getAccumulatedValue(r-1));return a?this.lines[r].getViewPositionOfModelPosition(s,this.model.getLineMaxColumn(r+1)):this.lines[o-1].getViewPositionOfModelPosition(s,i)},Ha.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 Te.a(t.lineNumber,t.column,n.lineNumber-1,this.getViewLineMaxColumn(n.lineNumber-1)):new Te.a(t.lineNumber,t.column,n.lineNumber,n.column)},Ha.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var o=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(o,t)}for(;0<n&&!this.lines[n].isVisible();)n--;if(0===n&&!this.lines[n].isVisible())return 1;var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,this.model.getLineMaxColumn(n+1))},Ha.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var o=this.model.getOverviewRulerDecorations(e,t),i=new ns,r=0,a=o;r<a.length;r++){var s=a[r],l=s.options.overviewRuler,c=l?l.position:0;if(0!==c){var u=l.getColor(n),d=this._getViewLineNumberForModelPosition(s.range.startLineNumber,s.range.startColumn),h=this._getViewLineNumberForModelPosition(s.range.endLineNumber,s.range.endColumn);i.accept(u,d,h,c)}}return i.result},Ha.prototype.getDecorationsInRange=function(e,t,n){var o=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(i.lineNumber-o.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new Te.a(o.lineNumber,1,i.lineNumber,i.column),t,n);for(var r=[],a=o.lineNumber-1,s=i.lineNumber-1,l=null,c=a;c<=s;c++)if(this.lines[c].isVisible())null===l&&(l=new Ie.a(c+1,c===a?o.column:1));else if(null!==l){var u=this.model.getLineMaxColumn(c);r=r.concat(this.model.getDecorationsInRange(new Te.a(l.lineNumber,l.column,c,u),t,n)),l=null}null!==l&&(r=r.concat(this.model.getDecorationsInRange(new Te.a(l.lineNumber,l.column,i.lineNumber,i.column),t,n)),l=null),r.sort((function(e,t){var n=Te.a.compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n}));for(var d=[],h=0,p=null,f=0,g=r;f<g.length;f++){var m=g[f],v=m.id;p!==v&&(p=v,d[h++]=m)}return d},Ha);function Ha(e,t,n,o,i,r,a,s){this.model=e,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=o,this.tabSize=i,this.wrappingStrategy=r,this.wrappingColumn=a,this.wrappingIndent=s,this._constructLines(!0,null)}var za=(Ka.prototype.isVisible=function(){return!0},Ka.prototype.setVisible=function(e){return e?this:Ua.INSTANCE},Ka.prototype.getLineBreakData=function(){return null},Ka.prototype.getViewLineCount=function(){return 1},Ka.prototype.getViewLineContent=function(e,t,n){return e.getLineContent(t)},Ka.prototype.getViewLineLength=function(e,t,n){return e.getLineLength(t)},Ka.prototype.getViewLineMinColumn=function(e,t,n){return e.getLineMinColumn(t)},Ka.prototype.getViewLineMaxColumn=function(e,t,n){return e.getLineMaxColumn(t)},Ka.prototype.getViewLineData=function(e,t,n){var o=e.getLineTokens(t),i=o.getLineContent();return new Ca.c(i,!1,1,i.length+1,0,o.inflate())},Ka.prototype.getViewLinesData=function(e,t,n,o,i,r,a){r[i]?a[i]=this.getViewLineData(e,t,0):a[i]=null},Ka.prototype.getModelColumnOfViewPosition=function(e,t){return t},Ka.prototype.getViewPositionOfModelPosition=function(e,t){return new Ie.a(e,t)},Ka.prototype.getViewLineNumberOfModelPosition=function(e,t){return e},Ka.INSTANCE=new Ka,Ka);function Ka(){}var Ua=(qa.prototype.isVisible=function(){return!1},qa.prototype.setVisible=function(e){return e?za.INSTANCE:this},qa.prototype.getLineBreakData=function(){return null},qa.prototype.getViewLineCount=function(){return 0},qa.prototype.getViewLineContent=function(e,t,n){throw new Error("Not supported")},qa.prototype.getViewLineLength=function(e,t,n){throw new Error("Not supported")},qa.prototype.getViewLineMinColumn=function(e,t,n){throw new Error("Not supported")},qa.prototype.getViewLineMaxColumn=function(e,t,n){throw new Error("Not supported")},qa.prototype.getViewLineData=function(e,t,n){throw new Error("Not supported")},qa.prototype.getViewLinesData=function(e,t,n,o,i,r,a){throw new Error("Not supported")},qa.prototype.getModelColumnOfViewPosition=function(e,t){throw new Error("Not supported")},qa.prototype.getViewPositionOfModelPosition=function(e,t){throw new Error("Not supported")},qa.prototype.getViewLineNumberOfModelPosition=function(e,t){throw new Error("Not supported")},qa.INSTANCE=new qa,qa);function qa(){}var Ga=(Ya.prototype.isVisible=function(){return this._isVisible},Ya.prototype.setVisible=function(e){return this._isVisible=e,this},Ya.prototype.getLineBreakData=function(){return this._lineBreakData},Ya.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},Ya.prototype.getInputStartOffsetOfOutputLineIndex=function(e){return ja.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,0)},Ya.prototype.getInputEndOffsetOfOutputLineIndex=function(e,t,n){return n+1===this._lineBreakData.breakOffsets.length?e.getLineMaxColumn(t)-1:ja.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n+1,0)},Ya.prototype.getViewLineContent=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var o=this.getInputStartOffsetOfOutputLineIndex(n),i=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:o+1,endLineNumber:t,endColumn:i+1});return 0<n&&(r=$a(this._lineBreakData.wrappedTextIndentLength)+r),r},Ya.prototype.getViewLineLength=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var o=this.getInputStartOffsetOfOutputLineIndex(n),i=this.getInputEndOffsetOfOutputLineIndex(e,t,n)-o;return 0<n&&(i=this._lineBreakData.wrappedTextIndentLength+i),i},Ya.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return 0<n?this._lineBreakData.wrappedTextIndentLength+1:1},Ya.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1},Ya.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var o=this.getInputStartOffsetOfOutputLineIndex(n),i=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:o+1,endLineNumber:t,endColumn:i+1});0<n&&(r=$a(this._lineBreakData.wrappedTextIndentLength)+r);var a=0<n?this._lineBreakData.wrappedTextIndentLength+1:1,s=r.length+1,l=n+1<this.getViewLineCount(),c=0;0<n&&(c=this._lineBreakData.wrappedTextIndentLength);var u=e.getLineTokens(t),d=0===n?0:this._lineBreakData.breakOffsetsVisibleColumn[n-1];return new Ca.c(r,l,a,s,d,u.sliceAndInflate(o,i,c))},Ya.prototype.getViewLinesData=function(e,t,n,o,i,r,a){if(!this._isVisible)throw new Error("Not supported");for(var s=n;s<o;s++){var l=i+s-n;r[l]?a[l]=this.getViewLineData(e,t,s):a[l]=null}},Ya.prototype.getModelColumnOfViewPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=t-1;return 0<e&&(n<this._lineBreakData.wrappedTextIndentLength?n=0:n-=this._lineBreakData.wrappedTextIndentLength),ja.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,n)+1},Ya.prototype.getViewPositionOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=ja.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1),o=n.outputLineIndex,i=n.outputOffset+1;return 0<o&&(i+=this._lineBreakData.wrappedTextIndentLength),new Ie.a(e+o,i)},Ya.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");return e+ja.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1).outputLineIndex},Ya);function Ya(e,t){this._lineBreakData=e,this._isVisible=t}var Za=[""];function $a(e){if(e>=Za.length)for(var t=1;t<=e;t++)Za[t]=new Array(t+1).join(" ");return Za[e]}function Xa(e,t){return null===e?t?za.INSTANCE:Ua.INSTANCE:new Ga(e,t)}var Ja=(Qa.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},Qa.prototype._validRange=function(e){return this._lines.model.validateRange(e)},Qa.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},Qa.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},Qa.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},Qa.prototype.validateViewRange=function(e,t){return this._validRange(t)},Qa.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},Qa.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},Qa.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},Qa);function Qa(e){this._lines=e}var es=(ts.prototype.dispose=function(){},ts.prototype.createCoordinatesConverter=function(){return new Ja(this)},ts.prototype.getHiddenAreas=function(){return[]},ts.prototype.setHiddenAreas=function(e){return!1},ts.prototype.setTabSize=function(e){return!1},ts.prototype.setWrappingSettings=function(e,t,n,o){return!1},ts.prototype.createLineBreaksComputer=function(){var e=[];return{addRequest:function(){e.push(null)},finalize:function(){return e}}},ts.prototype.onModelFlushed=function(){},ts.prototype.onModelLinesDeleted=function(e,t,n){return new sn(t,n)},ts.prototype.onModelLinesInserted=function(e,t,n,o){return new ln(t,n)},ts.prototype.onModelLineChanged=function(e,t,n){return[!1,new an(t,t),null,null]},ts.prototype.acceptVersionId=function(e){},ts.prototype.getViewLineCount=function(){return this.model.getLineCount()},ts.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}},ts.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,o=new Array(n),i=0;i<n;i++)o[i]=0;return o},ts.prototype.getViewLineContent=function(e){return this.model.getLineContent(e)},ts.prototype.getViewLineLength=function(e){return this.model.getLineLength(e)},ts.prototype.getViewLineMinColumn=function(e){return this.model.getLineMinColumn(e)},ts.prototype.getViewLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},ts.prototype.getViewLineData=function(e){var t=this.model.getLineTokens(e),n=t.getLineContent();return new Ca.c(n,!1,1,n.length+1,0,t.inflate())},ts.prototype.getViewLinesData=function(e,t,n){var o=this.model.getLineCount();e=Math.min(Math.max(1,e),o),t=Math.min(Math.max(1,t),o);for(var i=[],r=e;r<=t;r++){var a=r-e;n[a]||(i[a]=null),i[a]=this.getViewLineData(r)}return i},ts.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var o=this.model.getOverviewRulerDecorations(e,t),i=new ns,r=0,a=o;r<a.length;r++){var s=a[r],l=s.options.overviewRuler,c=l?l.position:0;if(0!==c){var u=l.getColor(n),d=s.range.startLineNumber,h=s.range.endLineNumber;i.accept(u,d,h,c)}}return i.result},ts.prototype.getDecorationsInRange=function(e,t,n){return this.model.getDecorationsInRange(e,t,n)},ts);function ts(e){this.model=e}var ns=(os.prototype.accept=function(e,t,n,o){var i=this.result[e];if(i){var r=i[i.length-3],a=i[i.length-1];if(r===o&&t<=a+1)return void(a<n&&(i[i.length-1]=n));i.push(o,t,n)}else this.result[e]=[o,t,n]},os);function os(){this.result=Object.create(null)}var is=(rs.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},rs.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},rs.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},rs.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},rs.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},rs.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,n=this._decorationsCache[t];if(!n){var o=e.range,i=e.options,r=void 0;if(i.isWholeLine){var a=this._coordinatesConverter.convertModelPositionToViewPosition(new Ie.a(o.startLineNumber,1)),s=this._coordinatesConverter.convertModelPositionToViewPosition(new Ie.a(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber)));r=new Te.a(a.lineNumber,a.column,s.lineNumber,s.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(o);n=new Ca.e(r,i),this._decorationsCache[t]=n}return n},rs.prototype.getDecorationsViewportData=function(e){var t=null!==this._cachedModelDecorationsResolver;return(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},rs.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,Object(pe.j)(this.configuration.options)),n=e.startLineNumber,o=e.endLineNumber,i=[],r=0,a=[],s=n;s<=o;s++)a[s-n]=[];for(var l=0,c=t.length;l<c;l++){var u=t[l],d=u.options,h=this._getOrCreateViewModelDecoration(u),p=h.range;if(i[r++]=h,d.inlineClassName){var f=new Ca.a(p,d.inlineClassName,d.inlineClassNameAffectsLetterSpacing?3:0),g=Math.max(n,p.startLineNumber),m=Math.min(o,p.endLineNumber);for(s=g;s<=m;s++)a[s-n].push(f)}d.beforeContentClassName&&n<=p.startLineNumber&&p.startLineNumber<=o&&(f=new Ca.a(new Te.a(p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn),d.beforeContentClassName,1),a[p.startLineNumber-n].push(f)),d.afterContentClassName&&n<=p.endLineNumber&&p.endLineNumber<=o&&(f=new Ca.a(new Te.a(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn),d.afterContentClassName,2),a[p.endLineNumber-n].push(f))}return{decorations:i,inlineDecorations:a}},rs);function rs(e,t,n,o,i){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=o,this._coordinatesConverter=i,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}var as,ss,ls=((as=function(e,t){return(as=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}as(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(cs,ss=gn),cs.prototype.dispose=function(){ss.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.invalidateMinimapColorCache(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},cs.prototype.tokenizeViewport=function(){var e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new Ie.a(e.startLineNumber,1)),n=this.coordinatesConverter.convertViewPositionToModelPosition(new Ie.a(e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,n.lineNumber)},cs.prototype.setHasFocus=function(e){this.hasFocus=e},cs.prototype._onConfigurationChanged=function(e,t){var n=null;if(-1!==this.viewportStartLine){var o=new Ie.a(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(o)}var i=!1,r=this.configuration.options,a=r.get(34),s=r.get(103),l=r.get(108),c=r.get(102);if(this.lines.setWrappingSettings(a,s,l.wrappingColumn,c)&&(e.emit(new tn),e.emit(new rn),e.emit(new en),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(i=!0)),t.hasChanged(68)&&(this.decorations.reset(),e.emit(new en)),e.emit(new Zt(t)),this.viewLayout.onConfigurationChanged(t),i&&n){var u=this.coordinatesConverter.convertModelPositionToViewPosition(n),d=this.viewLayout.getVerticalOffsetForLineNumber(u.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:d+this.viewportStartLineDelta})}},cs.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast((function(t){try{for(var n=e._beginEmit(),o=!1,i=!1,r=t.changes,a=t.versionId,s=e.lines.createLineBreaksComputer(),l=0,c=r;l<c.length;l++)switch((v=c[l]).changeType){case 4:for(var u=0,d=v.detail;u<d.length;u++){var h=d[u];s.addRequest(h,null)}break;case 2:s.addRequest(v.detail,null)}for(var p=s.finalize(),f=0,g=0,m=r;g<m.length;g++){var v;switch((v=m[g]).changeType){case 1:e.lines.onModelFlushed(),n.emit(new tn),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),o=!0;break;case 3:null!==(O=e.lines.onModelLinesDeleted(a,v.fromLineNumber,v.toLineNumber))&&(n.emit(O),e.viewLayout.onLinesDeleted(O.fromLineNumber,O.toLineNumber)),o=!0;break;case 4:var y=p.slice(f,f+v.detail.length);f+=v.detail.length,null!==(S=e.lines.onModelLinesInserted(a,v.fromLineNumber,v.toLineNumber,y))&&(n.emit(S),e.viewLayout.onLinesInserted(S.fromLineNumber,S.toLineNumber)),o=!0;break;case 2:var b=p[f];f++;var _=e.lines.onModelLineChanged(a,v.lineNumber,b),w=_[0],C=_[1],S=_[2],O=_[3];i=w,C&&n.emit(C),S&&(n.emit(S),e.viewLayout.onLinesInserted(S.fromLineNumber,S.toLineNumber)),O&&(n.emit(O),e.viewLayout.onLinesDeleted(O.fromLineNumber,O.toLineNumber))}}e.lines.acceptVersionId(a),e.viewLayout.onHeightMaybeChanged(),!o&&i&&(n.emit(new rn),n.emit(new en),e.decorations.onLineMappingChanged())}finally{e._endEmit()}if(e.viewportStartLine=-1,e.configuration.setMaxLineNumber(e.model.getLineCount()),!e.hasFocus&&2<=e.model.getAttachedEditorCount()&&e.viewportStartLineTrackedRange){var x=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(x){var E=e.coordinatesConverter.convertModelPositionToViewPosition(x.getStartPosition()),k=e.viewLayout.getVerticalOffsetForLineNumber(E.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:k+e.viewportStartLineDelta})}}}))),this._register(this.model.onDidChangeTokens((function(t){for(var n=[],o=0,i=t.ranges.length;o<i;o++){var r=t.ranges[o],a=e.coordinatesConverter.convertModelPositionToViewPosition(new Ie.a(r.fromLineNumber,1)).lineNumber,s=e.coordinatesConverter.convertModelPositionToViewPosition(new Ie.a(r.toLineNumber,e.model.getLineMaxColumn(r.toLineNumber))).lineNumber;n[o]={fromLineNumber:a,toLineNumber:s}}try{e._beginEmit().emit(new hn(n))}finally{e._endEmit()}t.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule()}))),this._register(this.model.onDidChangeLanguageConfiguration((function(t){try{e._beginEmit().emit(new on)}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 tn),n.emit(new rn),n.emit(new en)}finally{e._endEmit()}}}))),this._register(this.model.onDidChangeDecorations((function(t){e.decorations.onModelDecorationsChanged();try{e._beginEmit().emit(new en)}finally{e._endEmit()}})))},cs.prototype.setHiddenAreas=function(e){try{var t=this._beginEmit();this.lines.setHiddenAreas(e)&&(t.emit(new tn),t.emit(new rn),t.emit(new en),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},cs.prototype.getVisibleRanges=function(){var e=this.getCompletelyVisibleViewRange(),t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this.lines.getHiddenAreas();if(0===n.length)return[t];for(var o=[],i=0,r=t.startLineNumber,a=t.startColumn,s=t.endLineNumber,l=t.endColumn,c=0,u=n.length;c<u;c++){var d=n[c].startLineNumber,h=n[c].endLineNumber;h<r||s<d||(r<d&&(o[i++]=new Te.a(r,a,d-1,this.model.getLineMaxColumn(d-1))),r=h+1,a=1)}return(r<s||r===s&&a<l)&&(o[i++]=new Te.a(r,a,s,l)),o},cs.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new Te.a(t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))},cs.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,o=t.completelyVisibleEndLineNumber;return new Te.a(n,this.getLineMinColumn(n),o,this.getLineMaxColumn(o))},cs.prototype.saveState=function(){var e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),o=this.coordinatesConverter.convertViewPositionToModelPosition(new Ie.a(n,this.getLineMinColumn(n))),i=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:o,firstPositionDeltaTop:i}},cs.prototype.reduceRestoreState=function(e){if(void 0===e.firstPosition)return this._reduceRestoreStateCompatibility(e);var t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),o=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:o}},cs.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}},cs.prototype.getTabSize=function(){return this.model.getOptions().tabSize},cs.prototype.getOptions=function(){return this.model.getOptions()},cs.prototype.getLineCount=function(){return this.lines.getViewLineCount()},cs.prototype.setViewport=function(e,t,n){this.viewportStartLine=e;var o=this.coordinatesConverter.convertViewPositionToModelPosition(new Ie.a(e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new Te.a(o.lineNumber,o.column,o.lineNumber,o.column),1);var i=this.viewLayout.getVerticalOffsetForLineNumber(e),r=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=r-i},cs.prototype.getActiveIndentGuide=function(e,t,n){return this.lines.getActiveIndentGuide(e,t,n)},cs.prototype.getLinesIndentGuides=function(e,t){return this.lines.getViewLinesIndentGuides(e,t)},cs.prototype.getLineContent=function(e){return this.lines.getViewLineContent(e)},cs.prototype.getLineLength=function(e){return this.lines.getViewLineLength(e)},cs.prototype.getLineMinColumn=function(e){return this.lines.getViewLineMinColumn(e)},cs.prototype.getLineMaxColumn=function(e){return this.lines.getViewLineMaxColumn(e)},cs.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=It.q(this.getLineContent(e));return-1===t?0:t+1},cs.prototype.getLineLastNonWhitespaceColumn=function(e){var t=It.D(this.getLineContent(e));return-1===t?0:t+2},cs.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations},cs.prototype.getViewLineRenderingData=function(e,t){var n=this.model.mightContainRTL(),o=this.model.mightContainNonBasicASCII(),i=this.getTabSize(),r=this.lines.getViewLineData(t),a=this.decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return new Ca.d(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,n,o,r.tokens,a,i,r.startVisibleColumn)},cs.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)},cs.prototype.getMinimapLinesRenderingData=function(e,t,n){var o=this.lines.getViewLinesData(e,t,n);return new Ca.b(this.getTabSize(),o)},cs.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,Object(pe.j)(this.configuration.options),e)},cs.prototype.invalidateOverviewRulerColorCache=function(){for(var e=0,t=this.model.getOverviewRulerDecorations();e<t.length;e++){var n=t[e].options.overviewRuler;n&&n.invalidateCachedColor()}},cs.prototype.invalidateMinimapColorCache=function(){for(var e=0,t=this.model.getAllDecorations();e<t.length;e++){var n=t[e].options.minimap;n&&n.invalidateCachedColor()}},cs.prototype.getValueInRange=function(e,t){var n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)},cs.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},cs.prototype.validateModelPosition=function(e){return this.model.validatePosition(e)},cs.prototype.validateModelRange=function(e){return this.model.validateRange(e)},cs.prototype.deduceModelPositionRelativeToViewPosition=function(e,t,n){var o=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);var i=this.model.getOffsetAt(o)+t;return this.model.getPositionAt(i)},cs.prototype.getEOL=function(){return this.model.getEOL()},cs.prototype.getPlainTextToCopy=function(e,t,n){var o=n?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(Te.a.compareRangesUsingStarts);for(var i=!1,r=!1,a=0,s=e;a<s.length;a++)s[a].isEmpty()?i=!0:r=!0;if(!r){if(!t)return"";for(var l=e.map((function(e){return e.startLineNumber})),c="",u=0;u<l.length;u++)0<u&&l[u-1]===l[u]||(c+=this.model.getLineContent(l[u])+o);return c}if(i&&t){for(var d=[],h=0,p=0,f=e;p<f.length;p++){var g=(b=f[p]).startLineNumber;b.isEmpty()?g!==h&&d.push(this.model.getLineContent(g)):d.push(this.model.getValueInRange(b,n?2:0)),h=g}return 1===d.length?d[0]:d}for(var m=[],v=0,y=e;v<y.length;v++){var b;(b=y[v]).isEmpty()||m.push(this.model.getValueInRange(b,n?2:0))}return 1===m.length?m[0]:m},cs.prototype.getRichTextToCopy=function(e,t){var n=this.model.getLanguageIdentifier();if(1===n.id)return null;if(1!==e.length)return null;var o=e[0];if(o.isEmpty()){if(!t)return null;var i=o.startLineNumber;o=new Te.a(i,this.model.getLineMinColumn(i),i,this.model.getLineMaxColumn(i))}var r=this.configuration.options.get(34),a=this._getColorMap(),s=r.fontFamily===pe.b.fontFamily?r.fontFamily:"'"+r.fontFamily+"', "+pe.b.fontFamily;return{mode:n.language,html:'<div style="color: '+a[1]+";background-color: "+a[2]+";font-family: "+s+";font-weight: "+r.fontWeight+";font-size: "+r.fontSize+"px;line-height: "+r.lineHeight+'px;white-space: pre;">'+this._getHTMLToCopy(o,a)+"</div>"}},cs.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,o=e.startColumn,i=e.endLineNumber,r=e.endColumn,a=this.getTabSize(),s="",l=n;l<=i;l++){var c=this.model.getLineTokens(l),u=c.getLineContent(),d=l===n?o-1:0,h=l===i?r-1:u.length;s+=""===u?"<br>":Object(fa.a)(u,c.inflate(),t,d,h,a,f.h)}return s},cs.prototype._getColorMap=function(){var e=di.B.getColorMap(),t=["#000000"];if(e)for(var n=1,o=e.length;n<o;n++)t[n]=Gi.a.Format.CSS.formatHex(e[n]);return t},cs);function cs(e,t,n,o,i,r){var a=ss.call(this)||this;if(a.editorId=e,a.configuration=t,a.model=n,a._tokenizeViewportSoon=a._register(new y.d((function(){return a.tokenizeViewport()}),50)),a.hasFocus=!1,a.viewportStartLine=-1,a.viewportStartLineTrackedRange=null,a.viewportStartLineDelta=0,a.model.isTooLargeForTokenization())a.lines=new es(a.model);else{var s=a.configuration.options,l=s.get(34),c=s.get(103),u=s.get(108),d=s.get(102);a.lines=new Ba(a.model,o,i,l,a.model.getOptions().tabSize,c,u.wrappingColumn,d)}return a.coordinatesConverter=a.lines.createCoordinatesConverter(),a.viewLayout=a._register(new La(a.configuration,a.getLineCount(),r)),a._register(a.viewLayout.onDidScroll((function(e){e.scrollTopChanged&&a._tokenizeViewportSoon.schedule();try{a._beginEmit().emit(new un(e))}finally{a._endEmit()}}))),a._register(a.viewLayout.onDidContentSizeChange((function(e){try{a._beginEmit().emit(new Jt(e))}finally{a._endEmit()}}))),a.decorations=new is(a.editorId,a.model,a.configuration,a.lines,a.coordinatesConverter),a._registerModelEvents(),a._register(a.configuration.onDidChange((function(e){try{var t=a._beginEmit();a._onConfigurationChanged(t,e)}finally{a._endEmit()}}))),a._register(hi.getInstance().onDidChange((function(){try{a._beginEmit().emit(new pn)}finally{a._endEmit()}}))),a}var us,ds,hs=n(489),ps=n(456),fs=n(448),gs=n(895),ms=n(532),vs=n(759),ys=n(465),bs=n(790),_s=((us=function(e,t){return(us=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}us(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(ws,ds=bs.a),ws.prototype.get=function(e){return 0<=e&&e<256?this._asciiMap[e]:12352<=e&&e<=12543||13312<=e&&e<=19903||19968<=e&&e<=40959?3:this._map.get(e)||this._defaultValue},ws);function ws(e,t){for(var n=ds.call(this,0)||this,o=0;o<e.length;o++)n.set(e.charCodeAt(o),1);for(o=0;o<t.length;o++)n.set(t.charCodeAt(o),2);return n}var Cs=[],Ss=[],Os=(xs.create=function(e){return new xs(e.get(99),e.get(98))},xs.prototype.createLineBreaksComputer=function(e,t,n,o){var i=this;t|=0,n=+n;var r=[],a=[];return{addRequest:function(e,t){r.push(e),a.push(t)},finalize:function(){for(var s=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,l=[],c=0,u=r.length;c<u;c++){var d=a[c];l[c]=d?Es(i.classifier,d,r[c],t,n,s,o):ks(i.classifier,r[c],t,n,s,o)}return Cs.length=0,Ss.length=0,l}}},xs);function xs(e,t){this.classifier=new _s(e,t)}function Es(e,t,n,o,i,r,a){if(-1===i)return null;var s=n.length;if(s<=1)return null;var l=t.breakOffsets,c=t.breakOffsetsVisibleColumn,u=Ps(n,o,i,r,a),d=i-u,h=Cs,p=Ss,f=0,g=i,m=l.length,v=0;if(0<=v)for(var y=Math.abs(c[v]-g);v+1<m&&!(y<=(F=Math.abs(c[v+1]-g)));)y=F,v++;for(;v<m;){var b=v<0?0:l[v],_=v<0?0:c[v],w=0,C=0,S=0,O=0;if(_<=g){for(var x=_,E=n.charCodeAt(b-1),k=e.get(E),N=!0,D=b;D<s;D++){var L=D,P=n.charCodeAt(D),I=void 0,T=void 0;if(T=It.z(P)?(D++,I=0,2):(I=e.get(P),Ns(P,x,o,r)),Ls(E,k,P,I)&&(w=L,C=x),g<(x+=T)){S=L,O=x-T,d<x-C&&(w=0),N=!1;break}E=P,k=I}if(N){0<f&&(h[f]=l[l.length-1],p[f]=c[l.length-1],f++);break}}if(0===w){x=_,P=n.charCodeAt(b),I=e.get(P);var M=!1;for(D=b-1;0<=D;D--){if(L=D+1,9===(E=n.charCodeAt(D))){M=!0;break}k=void 0;var j;if(j=It.A(E)?(D--,k=0,2):(k=e.get(E),It.y(E)?r:1),x<=g){if(0===S&&(S=L,O=x),x<=g-d)break;if(Ls(E,k,P,I)){w=L,C=x;break}}x-=j,P=E,I=k}if(0!==w){var R=d-(O-C);if(R<=o){var A=n.charCodeAt(S);T=void 0,R-(T=It.z(A)?2:Ns(A,O,o,r))<0&&(w=0)}}if(M){v--;continue}}for(0===w&&(w=S,C=O),h[f]=w,p[f]=C,f++,g=C+d;v<0||v<m&&c[v]<C;)v++;for(y=Math.abs(c[v]-g);v+1<m;){var F;if(y<=(F=Math.abs(c[v+1]-g)))break;y=F,v++}}return 0===f?null:(h.length=f,p.length=f,Cs=t.breakOffsets,Ss=t.breakOffsetsVisibleColumn,t.breakOffsets=h,t.breakOffsetsVisibleColumn=p,t.wrappedTextIndentLength=u,t)}function ks(e,t,n,o,i,r){if(-1===o)return null;var a=t.length;if(a<=1)return null;var s=Ps(t,n,o,i,r),l=o-s,c=[],u=[],d=0,h=0,p=0,f=o,g=t.charCodeAt(0),m=e.get(g),v=Ns(g,0,n,i),y=1;It.z(g)&&(v+=1,g=t.charCodeAt(1),m=e.get(g),y++);for(var b=y;b<a;b++){var _,w=b,C=t.charCodeAt(b),S=void 0;_=It.z(C)?(b++,S=0,2):(S=e.get(C),Ns(C,v,n,i)),Ls(g,m,C,S)&&(h=w,p=v),f<(v+=_)&&((0===h||l<v-p)&&(h=w,p=v-_),c[d]=h,u[d]=p,d++,f=p+l,h=0),g=C,m=S}return 0===d?null:(c[d]=a,u[d]=v,new ja(c,u,s))}function Ns(e,t,n,o){return 9===e?n-t%n:It.y(e)?o:1}function Ds(e,t){return t-e%t}function Ls(e,t,n,o){return 32!==n&&(2===t||3===t&&2!==o||1===o||3===o&&1!==t)}function Ps(e,t,n,o,i){var r=0;if(0!==i){var a=It.q(e);if(-1!==a){for(var s=0;s<a;s++)r+=9===e.charCodeAt(s)?Ds(r,t):1;var l=3===i?2:2===i?1:0;for(s=0;s<l;s++)r+=Ds(r,t);n<r+o&&(r=0)}}return r}var Is=(Ts.create=function(){return new Ts},Ts.prototype.createLineBreaksComputer=function(e,t,n,o){t|=0,n=+n;var i=[];return{addRequest:function(e){i.push(e)},finalize:function(){return function(e,t,n,o,i){if(-1===o){for(var r=[],a=0,s=e.length;a<s;a++)r[a]=null;return r}var l=Math.round(o*t.typicalHalfwidthCharacterWidth);2!==i&&3!==i||(i=1);var c=document.createElement("div");u.a.applyFontInfoSlow(c,t);var d=Object(An.a)(1e4),h=[],p=[],f=[],g=[],m=[];for(a=0;a<e.length;a++){var v=e[a],y=0,b=0,_=l;if(0!==i)if(-1===(y=It.q(v)))y=0;else{for(var w=0;w<y;w++){b+=9===v.charCodeAt(w)?n-b%n:1}var C=Math.ceil(t.spaceWidth*b);C+t.typicalFullwidthCharacterWidth>l?b=y=0:_=l-C}var S=v.substr(y),O=Ms(S,b,n,_,d);h[a]=y,p[a]=b,f[a]=S,g[a]=O[0],m[a]=O[1]}c.innerHTML=d.build(),c.style.position="absolute",c.style.top="10000",c.style.wordWrap="break-word",document.body.appendChild(c);var x=document.createRange(),E=Array.prototype.slice.call(c.children,0),k=[];for(a=0;a<e.length;a++){var N=js(x,E[a],f[a],g[a]);if(null!==N){y=h[a],b=p[a];var D=m[a],L=[],P=0;for(s=N.length;P<s;P++)L[P]=D[N[P]];if(0!==y)for(P=0,s=N.length;P<s;P++)N[P]+=y;k[a]=new ja(N,L,b)}else k[a]=null}return document.body.removeChild(c),k}(i,e,t,n,o)}}},Ts);function Ts(){}function Ms(e,t,n,o,i){i.appendASCIIString('<div style="width:'),i.appendASCIIString(String(o)),i.appendASCIIString('px;">');for(var r=e.length,a=t,s=0,l=[],c=[],u=0<r?e.charCodeAt(0):0,d=0;d<r;d++){l[d]=s,c[d]=a;var h=u;u=d+1<r?e.charCodeAt(d+1):0;var p=1,f=1;switch(h){case 9:f=p=n-a%n;for(var g=1;g<=p;g++)g<p?i.write1(160):i.appendASCII(32);break;case 32:32===u?i.write1(160):i.appendASCII(32);break;case 60:i.appendASCIIString("<");break;case 62:i.appendASCIIString(">");break;case 38:i.appendASCIIString("&");break;case 0:i.appendASCIIString("�");break;case 65279:case 8232:i.write1(65533);break;default:It.y(h)&&f++,i.write1(h)}s+=p,a+=f}return l[e.length]=s,c[e.length]=a,i.appendASCIIString("</div>"),[l,c]}function js(e,t,n,o){if(n.length<=1)return null;var i=[];return function e(t,n,o,i,r,a,s,l){if(i!==a&&(r=r||Rs(t,n,o[i],o[i+1]),s=s||Rs(t,n,o[a],o[a+1]),!(Math.abs(r[0].top-s[0].top)<=.1)))if(i+1!==a){var c=i+(a-i)/2|0,u=Rs(t,n,o[c],o[1+c]);e(t,n,o,i,r,c,u,l),e(t,n,o,c,u,a,s,l)}else l.push(a)}(e,t.firstChild,o,0,null,n.length-1,null,i),0===i.length?null:(i.push(n.length),i)}function Rs(e,t,n,o){return e.setStart(t,n),e.setEnd(t,o),e.getClientRects()}n.d(t,"a",(function(){return Ks}));var As,Fs=(As=function(e,t){return(As=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}As(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Vs=function(e,t){return function(n,o){t(n,o,e)}},Ws=0,Bs=(Hs.prototype.dispose=function(){Object(l.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},Hs);function Hs(e,t,n,o,i,r){this.model=e,this.viewModel=t,this.cursor=n,this.view=o,this.hasRealView=i,this.listenersToRemove=r}var zs,Ks=(Fs(Us,zs=l.a),Us.prototype._createConfiguration=function(e,t){return new u.a(this.isSimpleWidget,e,this._domElement,t)},Us.prototype.getId=function(){return this.getEditorType()+":"+this._id},Us.prototype.getEditorType=function(){return ea.a.ICodeEditor},Us.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var e=Object.keys(this._contributions),t=0,n=e.length;t<n;t++){var o=e[t];this._contributions[o].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),zs.prototype.dispose.call(this)},Us.prototype.invokeWithinContext=function(e){return this._instantiationService.invokeFunction(e)},Us.prototype.updateOptions=function(e){this._configuration.updateOptions(e)},Us.prototype.getOptions=function(){return this._configuration.options},Us.prototype.getOption=function(e){return this._configuration.options.get(e)},Us.prototype.getRawOptions=function(){return this._configuration.getRawOptions()},Us.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)},Us.prototype.setValue=function(e){this._modelData&&this._modelData.model.setValue(e)},Us.prototype.getModel=function(){return this._modelData?this._modelData.model:null},Us.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(),o=this._detachModel();this._attachModel(t),n&&this.hasModel()&&this.focus();var i={oldModelUrl:o?o.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(i),this._postDetachModelCleanup(o)}},Us.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={}}},Us.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},Us.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},Us._getVerticalOffsetForPosition=function(e,t,n){var o=e.model.validatePosition({lineNumber:t,column:n}),i=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(o);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)},Us.prototype.getTopForLineNumber=function(e){return this._modelData?Us._getVerticalOffsetForPosition(this._modelData,e,1):-1},Us.prototype.getTopForPosition=function(e,t){return this._modelData?Us._getVerticalOffsetForPosition(this._modelData,e,t):-1},Us.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map((function(e){return Te.a.lift(e)})))},Us.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return Me.a.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1},Us.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},Us.prototype.setPosition=function(e){if(this._modelData){if(!Ie.a.isIPosition(e))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}},Us.prototype._sendRevealRange=function(e,t,n,o){if(this._modelData){if(!Te.a.isIRange(e))throw new Error("Invalid arguments");var i=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(i);this._modelData.cursor.emitCursorRevealRange("api",r,t,n,o)}},Us.prototype.revealLine=function(e,t){void 0===t&&(t=0),this._revealLine(e,0,t)},Us.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this._revealLine(e,1,t)},Us.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealLine(e,2,t)},Us.prototype._revealLine=function(e,t,n){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new Te.a(e,1,e,1),t,!1,n)},Us.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this._revealPosition(e,0,!0,t)},Us.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this._revealPosition(e,1,!0,t)},Us.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealPosition(e,2,!0,t)},Us.prototype._revealPosition=function(e,t,n,o){if(!Ie.a.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Te.a(e.lineNumber,e.column,e.lineNumber,e.column),t,n,o)},Us.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},Us.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},Us.prototype.setSelection=function(e){var t=et.a.isISelection(e),n=Te.a.isIRange(e);if(!t&&!n)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(n){var o={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(o)}},Us.prototype._setSelectionImpl=function(e){if(this._modelData){var t=new et.a(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[t])}},Us.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,0,n)},Us.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,1,n)},Us.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,2,n)},Us.prototype._revealLines=function(e,t,n,o){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new Te.a(e,1,t,1),n,!1,o)},Us.prototype.revealRange=function(e,t,n,o){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===o&&(o=!0),this._revealRange(e,n?1:0,o,t)},Us.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this._revealRange(e,1,!0,t)},Us.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealRange(e,2,!0,t)},Us.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this._revealRange(e,3,!0,t)},Us.prototype._revealRange=function(e,t,n,o){if(!Te.a.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Te.a.lift(e),t,n,o)},Us.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,o=e.length;n<o;n++)if(!et.a.isISelection(e[n]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(t,e)}},Us.prototype.getContentWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1},Us.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},Us.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},Us.prototype.getContentHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1},Us.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},Us.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},Us.prototype.setScrollLeft=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})}},Us.prototype.setScrollTop=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})}},Us.prototype.setScrollPosition=function(e){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPositionNow(e)},Us.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},t=0,n=Object.keys(this._contributions);t<n.length;t++){var o=n[t],i=this._contributions[o];"function"==typeof i.saveViewState&&(e[o]=i.saveViewState())}return{cursorState:this._modelData.cursor.saveState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}},Us.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 o=t.contributionsState||{},i=Object.keys(this._contributions),r=0,a=i.length;r<a;r++){var s=i[r],l=this._contributions[s];"function"==typeof l.restoreViewState&&l.restoreViewState(o[s])}var c=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(c)}}},Us.prototype.getContribution=function(e){return this._contributions[e]||null},Us.prototype.getActions=function(){for(var e=[],t=Object.keys(this._actions),n=0,o=t.length;n<o;n++){var i=t[n];e.push(this._actions[i])}return e},Us.prototype.getSupportedActions=function(){var e=this.getActions();return e.filter((function(e){return e.isSupported()}))},Us.prototype.getAction=function(e){return this._actions[e]||null},Us.prototype.trigger=function(e,t,n){if(n=n||{},t===ea.b.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!==ea.b.Paste){var o=this.getAction(t);o?Promise.resolve(o.run()).then(void 0,a.e):this._modelData&&(this._triggerEditorCommand(e,t,n)||(this._modelData.cursor.trigger(e,t,n),t===ea.b.CompositionStart&&this._onDidCompositionStart.fire(),t===ea.b.CompositionEnd&&this._onDidCompositionEnd.fire()))}else{if(!this._modelData||"string"!=typeof n.text||0===n.text.length)return;var i=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,t,n);var r=this._modelData.cursor.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({range:new Te.a(i.lineNumber,i.column,r.lineNumber,r.column),mode:n.mode})}},Us.prototype._triggerEditorCommand=function(e,t,n){var o=this,i=d.d.getEditorCommand(t);return!!i&&((n=n||{}).source=e,this._instantiationService.invokeFunction((function(e){Promise.resolve(i.runEditorCommand(e,o,n)).then(void 0,a.e)})),!0)},Us.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},Us.prototype.pushUndoStop=function(){return!!this._modelData&&!this._configuration.options.get(68)&&(this._modelData.model.pushStackElement(),!0)},Us.prototype.executeEdits=function(e,t,n){return!!this._modelData&&!this._configuration.options.get(68)&&(o=n?Array.isArray(n)?function(){return n}:n:function(){return null},this._modelData.cursor.executeEdits(e,t,o),!0);var o},Us.prototype.executeCommand=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,ea.b.ExecuteCommand,t)},Us.prototype.executeCommands=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,ea.b.ExecuteCommands,t)},Us.prototype.changeDecorations=function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null},Us.prototype.getLineDecorations=function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Object(pe.j)(this._configuration.options)):null},Us.prototype.deltaDecorations=function(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]},Us.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]},Us.prototype.getLayoutInfo=function(){return this._configuration.options.get(107)},Us.prototype.createOverviewRuler=function(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null},Us.prototype.getContainerDomNode=function(){return this._domElement},Us.prototype.getDomNode=function(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null},Us.prototype.delegateVerticalScrollbarMouseDown=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)},Us.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render()},Us.prototype.focus=function(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()},Us.prototype.hasTextFocus=function(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()},Us.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},Us.prototype.addContentWidget=function(e){var t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)},Us.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)}},Us.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)}},Us.prototype.addOverlayWidget=function(e){var t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId()),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)},Us.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)}},Us.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)}},Us.prototype.changeViewZones=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)&&this._onDidChangeViewZones.fire()},Us.prototype.getTargetAtClientPoint=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null},Us.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var t=this._modelData.model.validatePosition(e),n=this._configuration.options,o=n.get(107);return{top:Us._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+o.glyphMarginWidth+o.lineNumbersWidth+o.decorationsWidth-this.getScrollLeft(),height:n.get(49)}},Us.prototype.getOffsetForColumn=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1},Us.prototype.render=function(e){void 0===e&&(e=!1),this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)},Us.prototype.setAriaOptions=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)},Us.prototype.applyFontInfo=function(e){u.a.applyFontInfoSlow(e,this._configuration.options.get(34))},Us.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 o=new ls(this._id,this._configuration,e,Is.create(),Os.create(this._configuration.options),(function(e){return r.W(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 a=new la(this._configuration,e,o);n.push(a.onDidReachMaxCursorCount((function(){t._notificationService.warn(i.a("cursors.maximum","The number of cursors has been limited to {0}.",la.MAX_CURSOR_COUNT))}))),n.push(a.onDidAttemptReadOnlyEdit((function(){t._onDidAttemptReadOnlyEdit.fire(void 0)}))),n.push(a.onDidChange((function(e){for(var n=[],o=0,i=e.selections.length;o<i;o++)n[o]=e.selections[o].getPosition();var r={position:n[0],secondaryPositions:n.slice(1),reason:e.reason,source:e.source};t._onDidChangeCursorPosition.fire(r);var a={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(a)})));var s=this._createView(o,a),l=s[0],c=s[1];if(c){this._domElement.appendChild(l.domNode.domNode);for(var u=Object.keys(this._contentWidgets),d=0,h=u.length;d<h;d++){var p=u[d];l.addContentWidget(this._contentWidgets[p])}for(d=0,h=(u=Object.keys(this._overlayWidgets)).length;d<h;d++)p=u[d],l.addOverlayWidget(this._overlayWidgets[p]);l.render(!1,!0),l.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Bs(e,o,a,l,c,n)}else this._modelData=null},Us.prototype._createView=function(e,t){var n,o=this;n=this.isSimpleWidget?{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,i,r){o.trigger(e,ea.b.Paste,{text:t,pasteOnNewLine:n,multicursorText:i,mode:r})},type:function(e,t){o.trigger(e,ea.b.Type,{text:t})},replacePreviousChar:function(e,t,n){o.trigger(e,ea.b.ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(e){o.trigger(e,ea.b.CompositionStart,void 0)},compositionEnd:function(e){o.trigger(e,ea.b.CompositionEnd,void 0)},cut:function(e){o.trigger(e,ea.b.Cut,void 0)}}:{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,i,r){o._commandService.executeCommand(ea.b.Paste,{text:t,pasteOnNewLine:n,multicursorText:i,mode:r})},type:function(e,t){o._commandService.executeCommand(ea.b.Type,{text:t})},replacePreviousChar:function(e,t,n){o._commandService.executeCommand(ea.b.ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(){o._commandService.executeCommand(ea.b.CompositionStart,{})},compositionEnd:function(){o._commandService.executeCommand(ea.b.CompositionEnd,{})},cut:function(){o._commandService.executeCommand(ea.b.Cut,{})}};var i=new Tn(e);return i.onDidContentSizeChange=function(e){return o._onDidContentSizeChange.fire(e)},i.onDidScroll=function(e){return o._onDidScrollChange.fire(e)},i.onDidGainFocus=function(){return o._editorTextFocus.setValue(!0)},i.onDidLoseFocus=function(){return o._editorTextFocus.setValue(!1)},i.onContextMenu=function(e){return o._onContextMenu.fire(e)},i.onMouseDown=function(e){return o._onMouseDown.fire(e)},i.onMouseUp=function(e){return o._onMouseUp.fire(e)},i.onMouseDrag=function(e){return o._onMouseDrag.fire(e)},i.onMouseDrop=function(e){return o._onMouseDrop.fire(e)},i.onKeyUp=function(e){return o._onKeyUp.fire(e)},i.onMouseMove=function(e){return o._onMouseMove.fire(e)},i.onMouseLeave=function(e){return o._onMouseLeave.fire(e)},i.onMouseWheel=function(e){return o._onMouseWheel.fire(e)},i.onKeyDown=function(e){return o._onKeyDown.fire(e)},[new Kr(n,this._configuration,this._themeService,e,t,i),!0]},Us.prototype._postDetachModelCleanup=function(e){e&&e.removeAllDecorationsWithOwnerId(this._id)},Us.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},Us.prototype._removeDecorationType=function(e){this._codeEditorService.removeDecorationType(e)},Us.prototype.hasModel=function(){return null!==this._modelData},Us=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([Vs(3,fs.a),Vs(4,h.a),Vs(5,hs.b),Vs(6,ps.c),Vs(7,he.c),Vs(8,ms.a),Vs(9,vs.b)],Us));function Us(e,t,n,o,i,r,l,c,u,h){var p=zs.call(this)||this;p._onDidDispose=p._register(new s.a),p.onDidDispose=p._onDidDispose.event,p._onDidChangeModelContent=p._register(new s.a),p.onDidChangeModelContent=p._onDidChangeModelContent.event,p._onDidChangeModelLanguage=p._register(new s.a),p.onDidChangeModelLanguage=p._onDidChangeModelLanguage.event,p._onDidChangeModelLanguageConfiguration=p._register(new s.a),p.onDidChangeModelLanguageConfiguration=p._onDidChangeModelLanguageConfiguration.event,p._onDidChangeModelOptions=p._register(new s.a),p.onDidChangeModelOptions=p._onDidChangeModelOptions.event,p._onDidChangeModelDecorations=p._register(new s.a),p.onDidChangeModelDecorations=p._onDidChangeModelDecorations.event,p._onDidChangeConfiguration=p._register(new s.a),p.onDidChangeConfiguration=p._onDidChangeConfiguration.event,p._onDidChangeModel=p._register(new s.a),p.onDidChangeModel=p._onDidChangeModel.event,p._onDidChangeCursorPosition=p._register(new s.a),p.onDidChangeCursorPosition=p._onDidChangeCursorPosition.event,p._onDidChangeCursorSelection=p._register(new s.a),p.onDidChangeCursorSelection=p._onDidChangeCursorSelection.event,p._onDidAttemptReadOnlyEdit=p._register(new s.a),p.onDidAttemptReadOnlyEdit=p._onDidAttemptReadOnlyEdit.event,p._onDidLayoutChange=p._register(new s.a),p.onDidLayoutChange=p._onDidLayoutChange.event,p._editorTextFocus=p._register(new Gs),p.onDidFocusEditorText=p._editorTextFocus.onDidChangeToTrue,p.onDidBlurEditorText=p._editorTextFocus.onDidChangeToFalse,p._editorWidgetFocus=p._register(new Gs),p.onDidFocusEditorWidget=p._editorWidgetFocus.onDidChangeToTrue,p.onDidBlurEditorWidget=p._editorWidgetFocus.onDidChangeToFalse,p._onWillType=p._register(new s.a),p.onWillType=p._onWillType.event,p._onDidType=p._register(new s.a),p.onDidType=p._onDidType.event,p._onDidCompositionStart=p._register(new s.a),p.onDidCompositionStart=p._onDidCompositionStart.event,p._onDidCompositionEnd=p._register(new s.a),p.onDidCompositionEnd=p._onDidCompositionEnd.event,p._onDidPaste=p._register(new s.a),p.onDidPaste=p._onDidPaste.event,p._onMouseUp=p._register(new s.a),p.onMouseUp=p._onMouseUp.event,p._onMouseDown=p._register(new s.a),p.onMouseDown=p._onMouseDown.event,p._onMouseDrag=p._register(new s.a),p.onMouseDrag=p._onMouseDrag.event,p._onMouseDrop=p._register(new s.a),p.onMouseDrop=p._onMouseDrop.event,p._onContextMenu=p._register(new s.a),p.onContextMenu=p._onContextMenu.event,p._onMouseMove=p._register(new s.a),p.onMouseMove=p._onMouseMove.event,p._onMouseLeave=p._register(new s.a),p.onMouseLeave=p._onMouseLeave.event,p._onMouseWheel=p._register(new s.a),p.onMouseWheel=p._onMouseWheel.event,p._onKeyUp=p._register(new s.a),p.onKeyUp=p._onKeyUp.event,p._onKeyDown=p._register(new s.a),p.onKeyDown=p._onKeyDown.event,p._onDidContentSizeChange=p._register(new s.a),p.onDidContentSizeChange=p._onDidContentSizeChange.event,p._onDidScrollChange=p._register(new s.a),p.onDidScrollChange=p._onDidScrollChange.event,p._onDidChangeViewZones=p._register(new s.a),p.onDidChangeViewZones=p._onDidChangeViewZones.event,p._domElement=e,p._id=++Ws,p._decorationTypeKeysToIds={},p._decorationTypeSubtypes={},p.isSimpleWidget=n.isSimpleWidget||!1,p._telemetryData=n.telemetryData,t=t||{},p._configuration=p._register(p._createConfiguration(t,h)),p._register(p._configuration.onDidChange((function(e){p._onDidChangeConfiguration.fire(e);var t=p._configuration.options;if(e.hasChanged(107)){var n=t.get(107);p._onDidLayoutChange.fire(n)}}))),p._contextKeyService=p._register(l.createScoped(p._domElement)),p._notificationService=u,p._codeEditorService=i,p._commandService=r,p._themeService=c,p._register(new $s(p,p._contextKeyService)),p._register(new Qs(p,p._contextKeyService)),p._instantiationService=o.createChild(new gs.a([ps.c,p._contextKeyService])),p._modelData=null,p._contributions={},p._actions={},p._focusTracker=new nl(e),p._focusTracker.onChange((function(){p._editorWidgetFocus.setValue(p._focusTracker.hasFocus())})),p._contentWidgets={},p._overlayWidgets={};for(var f=0,g=Array.isArray(n.contributions)?n.contributions:d.d.getEditorContributions();f<g.length;f++){var m=g[f];try{var v=p._instantiationService.createInstance(m.ctor,p);p._contributions[m.id]=v}catch(e){Object(a.e)(e)}}return d.d.getEditorActions().forEach((function(e){var t=new ha.a(e.id,e.label,e.alias,Object(ys.n)(e.precondition),(function(){return p._instantiationService.invokeFunction((function(t){return Promise.resolve(e.runEditorCommand(t,p,null))}))}),p._contextKeyService);p._actions[t.id]=t})),p._codeEditorService.addCodeEditor(p),p}var qs,Gs=(Fs(Ys,qs=l.a),Ys.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())},Ys);function Ys(){var e=qs.call(this)||this;return e._onDidChangeToTrue=e._register(new s.a),e.onDidChangeToTrue=e._onDidChangeToTrue.event,e._onDidChangeToFalse=e._register(new s.a),e.onDidChangeToFalse=e._onDidChangeToFalse.event,e._value=0,e}var Zs,$s=(Fs(Xs,Zs=l.a),Xs.prototype._updateFromConfig=function(){var e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(106)),this._editorReadonly.set(e.get(68))},Xs.prototype._updateFromSelection=function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(1<e.length),this._hasNonEmptySelection.set(e.some((function(e){return!e.isEmpty()})))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},Xs.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())},Xs.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},Xs);function Xs(e,t){var n=Zs.call(this)||this;return n._editor=e,t.createKey("editorId",e.getId()),n._editorSimpleInput=pa.a.editorSimpleInput.bindTo(t),n._editorFocus=pa.a.focus.bindTo(t),n._textInputFocus=pa.a.textInputFocus.bindTo(t),n._editorTextFocus=pa.a.editorTextFocus.bindTo(t),n._editorTabMovesFocus=pa.a.tabMovesFocus.bindTo(t),n._editorReadonly=pa.a.readOnly.bindTo(t),n._hasMultipleSelections=pa.a.hasMultipleSelections.bindTo(t),n._hasNonEmptySelection=pa.a.hasNonEmptySelection.bindTo(t),n._canUndo=pa.a.canUndo.bindTo(t),n._canRedo=pa.a.canRedo.bindTo(t),n._register(n._editor.onDidChangeConfiguration((function(){return n._updateFromConfig()}))),n._register(n._editor.onDidChangeCursorSelection((function(){return n._updateFromSelection()}))),n._register(n._editor.onDidFocusEditorWidget((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidBlurEditorWidget((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidFocusEditorText((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidBlurEditorText((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidChangeModel((function(){return n._updateFromModel()}))),n._register(n._editor.onDidChangeConfiguration((function(){return n._updateFromModel()}))),n._updateFromConfig(),n._updateFromSelection(),n._updateFromFocus(),n._updateFromModel(),n._editorSimpleInput.set(n._editor.isSimpleWidget),n}var Js,Qs=(Fs(el,Js=l.a),el.prototype.dispose=function(){Js.prototype.dispose.call(this)},el.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()}))},el.prototype._update=function(){var e=this,t=this._editor.getModel();t?this._contextKeyService.bufferChangeEvents((function(){e._langId.set(t.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(di.d.has(t)),e._hasCodeActionsProvider.set(di.a.has(t)),e._hasCodeLensProvider.set(di.b.has(t)),e._hasDefinitionProvider.set(di.f.has(t)),e._hasDeclarationProvider.set(di.e.has(t)),e._hasImplementationProvider.set(di.q.has(t)),e._hasTypeDefinitionProvider.set(di.C.has(t)),e._hasHoverProvider.set(di.p.has(t)),e._hasDocumentHighlightProvider.set(di.i.has(t)),e._hasDocumentSymbolProvider.set(di.m.has(t)),e._hasReferenceProvider.set(di.u.has(t)),e._hasRenameProvider.set(di.v.has(t)),e._hasSignatureHelpProvider.set(di.x.has(t)),e._hasDocumentFormattingProvider.set(di.g.has(t)||di.j.has(t)),e._hasDocumentSelectionFormattingProvider.set(di.j.has(t)),e._hasMultipleDocumentFormattingProvider.set(1<di.g.all(t).length+di.j.all(t).length),e._hasMultipleDocumentSelectionFormattingProvider.set(1<di.j.all(t).length),e._isInWalkThrough.set(t.uri.scheme===c.b.walkThroughSnippet)})):this.reset()},el);function el(e,t){var n=Js.call(this)||this;function o(){return n._update()}return n._editor=e,n._contextKeyService=t,n._langId=pa.a.languageId.bindTo(t),n._hasCompletionItemProvider=pa.a.hasCompletionItemProvider.bindTo(t),n._hasCodeActionsProvider=pa.a.hasCodeActionsProvider.bindTo(t),n._hasCodeLensProvider=pa.a.hasCodeLensProvider.bindTo(t),n._hasDefinitionProvider=pa.a.hasDefinitionProvider.bindTo(t),n._hasDeclarationProvider=pa.a.hasDeclarationProvider.bindTo(t),n._hasImplementationProvider=pa.a.hasImplementationProvider.bindTo(t),n._hasTypeDefinitionProvider=pa.a.hasTypeDefinitionProvider.bindTo(t),n._hasHoverProvider=pa.a.hasHoverProvider.bindTo(t),n._hasDocumentHighlightProvider=pa.a.hasDocumentHighlightProvider.bindTo(t),n._hasDocumentSymbolProvider=pa.a.hasDocumentSymbolProvider.bindTo(t),n._hasReferenceProvider=pa.a.hasReferenceProvider.bindTo(t),n._hasRenameProvider=pa.a.hasRenameProvider.bindTo(t),n._hasSignatureHelpProvider=pa.a.hasSignatureHelpProvider.bindTo(t),n._hasDocumentFormattingProvider=pa.a.hasDocumentFormattingProvider.bindTo(t),n._hasDocumentSelectionFormattingProvider=pa.a.hasDocumentSelectionFormattingProvider.bindTo(t),n._hasMultipleDocumentFormattingProvider=pa.a.hasMultipleDocumentFormattingProvider.bindTo(t),n._hasMultipleDocumentSelectionFormattingProvider=pa.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),n._isInWalkThrough=pa.a.isInEmbeddedEditor.bindTo(t),n._register(e.onDidChangeModel(o)),n._register(e.onDidChangeModelLanguage(o)),n._register(di.d.onDidChange(o)),n._register(di.a.onDidChange(o)),n._register(di.b.onDidChange(o)),n._register(di.f.onDidChange(o)),n._register(di.e.onDidChange(o)),n._register(di.q.onDidChange(o)),n._register(di.C.onDidChange(o)),n._register(di.p.onDidChange(o)),n._register(di.i.onDidChange(o)),n._register(di.m.onDidChange(o)),n._register(di.u.onDidChange(o)),n._register(di.v.onDidChange(o)),n._register(di.g.onDidChange(o)),n._register(di.j.onDidChange(o)),n._register(di.x.onDidChange(o)),o(),n}var tl,nl=(Fs(ol,tl=l.a),ol.prototype.hasFocus=function(){return this._hasFocus},ol);function ol(e){var t=tl.call(this)||this;return t._onChange=t._register(new s.a),t.onChange=t._onChange.event,t._hasFocus=!1,t._domFocusTracker=t._register(r.Z(e)),t._register(t._domFocusTracker.onDidFocus((function(){t._hasFocus=!0,t._onChange.fire(void 0)}))),t._register(t._domFocusTracker.onDidBlur((function(){t._hasFocus=!1,t._onChange.fire(void 0)}))),t}var il=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='"),rl=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 al(e){return il+encodeURIComponent(e.toString())+rl}var sl=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),ll=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');Object(he.e)((function(e,t){var n=e.getColor(fi.p);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var o=e.getColor(fi.q);o&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+al(o)+'") repeat-x bottom left; }');var i=e.getColor(fi.O);i&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+i+"; }");var r=e.getColor(fi.P);r&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+al(r)+'") repeat-x bottom left; }');var a=e.getColor(fi.G);a&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+a+"; }");var s=e.getColor(fi.H);s&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+al(s)+'") repeat-x bottom left; }');var l=e.getColor(fi.y);l&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+l+"; }");var c=e.getColor(fi.z);c&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+(sl+encodeURIComponent(c.toString())+ll)+'") no-repeat bottom left; }');var u=e.getColor(Vt.o);u&&t.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+u.rgba.a+"; }");var d=e.getColor(Vt.n);d&&t.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }");var h=e.getColor(fi.x)||"inherit";t.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+h+"}")}))},,,,,,,,,,,function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}(),i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),o))}};function r(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?e:l(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function h(e){return 11===e?u:10!==e&&u||d}function p(e){if(!e)return document.documentElement;for(var t=h(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function f(e){return null!==e.parentNode?f(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,i=n?t:e,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var a,s,l=r.commonAncestorContainer;if(e!==l&&t!==l||o.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&p(a.firstElementChild)!==a?p(l):l;var c=f(e);return c.host?g(c.host,t):g(e,f(t).host)}function m(e,t){var n="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"!==o&&"HTML"!==o)return e[n];var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[n]}function v(e,t){var n="x"===t?"Left":"Top",o="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function y(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],h(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function b(e){var t=e.body,n=e.documentElement,o=h(10)&&getComputedStyle(n);return{height:y("Height",t,n,o),width:y("Width",t,n,o)}}function _(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function S(e){return C({},e,{right:e.left+e.width,bottom:e.top+e.height})}function O(e){var t={};try{if(h(10)){t=e.getBoundingClientRect();var n=m(e,"top"),o=m(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?b(e.ownerDocument):{},s=r.width||e.clientWidth||i.width,l=r.height||e.clientHeight||i.height,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var d=a(e);c-=v(d,"x"),u-=v(d,"y"),i.width-=c,i.height-=u}return S(i)}function x(e,t,n){var o=2<arguments.length&&void 0!==n&&n,i=h(10),r="HTML"===t.nodeName,s=O(e),c=O(t),u=l(e),d=a(t),p=parseFloat(d.borderTopWidth),f=parseFloat(d.borderLeftWidth);o&&r&&(c.top=Math.max(c.top,0),c.left=Math.max(c.left,0));var g=S({top:s.top-c.top-p,left:s.left-c.left-f,width:s.width,height:s.height});if(g.marginTop=0,g.marginLeft=0,!i&&r){var v=parseFloat(d.marginTop),y=parseFloat(d.marginLeft);g.top-=p-v,g.bottom-=p-v,g.left-=f-y,g.right-=f-y,g.marginTop=v,g.marginLeft=y}return(i&&!o?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(g=function(e,t,n){var o=2<arguments.length&&void 0!==n&&n,i=m(t,"top"),r=m(t,"left"),a=o?-1:1;return e.top+=i*a,e.bottom+=i*a,e.left+=r*a,e.right+=r*a,e}(g,t)),g}function E(e){if(!e||!e.parentElement||h())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function k(e,t,n,o,i){var r=4<arguments.length&&void 0!==i&&i,u={top:0,left:0},d=r?E(e):g(e,c(t));if("viewport"===o)u=function(e,t){var n=1<arguments.length&&void 0!==t&&t,o=e.ownerDocument.documentElement,i=x(e,o),r=Math.max(o.clientWidth,window.innerWidth||0),a=Math.max(o.clientHeight,window.innerHeight||0),s=n?0:m(o),l=n?0:m(o,"left");return S({top:s-i.top+i.marginTop,left:l-i.left+i.marginLeft,width:r,height:a})}(d,r);else{var h=void 0;"scrollParent"===o?"BODY"===(h=l(s(t))).nodeName&&(h=e.ownerDocument.documentElement):h="window"===o?e.ownerDocument.documentElement:o;var p=x(h,d,r);if("HTML"!==h.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===a(t,"position"))return!0;var o=s(t);return!!o&&e(o)}(d))u=p;else{var f=b(e.ownerDocument),v=f.height,y=f.width;u.top+=p.top-p.marginTop,u.bottom=v+p.top,u.left+=p.left-p.marginLeft,u.right=y+p.left}}var _="number"==typeof(n=n||0);return u.left+=_?n:n.left||0,u.top+=_?n:n.top||0,u.right-=_?n:n.right||0,u.bottom-=_?n:n.bottom||0,u}function N(e,t,n,o,i,r){var a=5<arguments.length&&void 0!==r?r:0;if(-1===e.indexOf("auto"))return e;var s=k(n,o,a,i),l={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},c=Object.keys(l).map((function(e){return C({key:e},l[e],{area:(t=l[e]).width*t.height});var t})).sort((function(e,t){return t.area-e.area})),u=c.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),d=0<u.length?u[0].key:c[0].key,h=e.split("-")[1];return d+(h?"-"+h:"")}function D(e,t,n,o){var i=3<arguments.length&&void 0!==o?o:null;return x(n,i?E(t):g(t,c(n)),i)}function L(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function P(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function I(e,t,n){n=n.split("-")[0];var o=L(e),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return i[a]=t[a]+t[l]/2-o[l]/2,i[s]=n===s?t[s]-o[c]:t[P(s)],i}function T(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function M(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=T(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function;var n=e.function||e.fn;e.enabled&&r(n)&&(t.offsets.popper=S(t.offsets.popper),t.offsets.reference=S(t.offsets.reference),t=n(t,e))})),t}function j(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var i=t[o],r=i?""+i+n:e;if(void 0!==document.body.style[r])return r}return null}function A(e){var t=e.ownerDocument;return t?t.defaultView:window}function F(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,A(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function V(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function W(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&V(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var B=n&&/Firefox/i.test(navigator.userAgent);function H(e,t,n){var o=T(e,(function(e){return e.name===t})),i=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));return i}var z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],K=z.slice(3);function U(e,t){var n=1<arguments.length&&void 0!==t&&t,o=K.indexOf(e),i=K.slice(o+1).concat(K.slice(0,o));return n?i.reverse():i}var q={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var i=e.offsets,r=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:w({},l,r[l]),end:w({},l,r[l]+r[c]-a[c])};e.offsets.popper=C({},a,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,o=t.offset,i=e.placement,r=e.offsets,a=r.popper,s=r.reference,l=i.split("-")[0];return n=V(+o)?[+o,0]:function(e,t,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(T(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&a[s].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,o){var i=(1===o?!r:r)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],a=i[2];if(!r)return e;if(0!==a.indexOf("%"))return"vh"!==a&&"vw"!==a?r:("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=o}return S(s)[t]/100*r}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){V(n)&&(i[t]+=n*("-"===e[o-1]?-1:1))}))})),i}(o,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var o=R("transform"),i=e.instance.popper.style,r=i.top,a=i.left,s=i[o];i.top="",i.left="",i[o]="";var l=k(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=r,i.left=a,i[o]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),w({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(o=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),w({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=C({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,i=e.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<r(o[l])&&(e.offsets.popper[l]=r(o[l])-n[c]),n[l]>r(o[s])&&(e.offsets.popper[l]=r(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!H(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return e;var i=e.placement.split("-")[0],r=e.offsets,s=r.popper,l=r.reference,c=-1!==["left","right"].indexOf(i),u=c?"height":"width",d=c?"Top":"Left",h=d.toLowerCase(),p=c?"left":"top",f=c?"bottom":"right",g=L(o)[u];l[f]-g<s[h]&&(e.offsets.popper[h]-=s[h]-(l[f]-g)),l[h]+g>s[f]&&(e.offsets.popper[h]+=l[h]+g-s[f]),e.offsets.popper=S(e.offsets.popper);var m=l[h]+l[u]/2-g/2,v=a(e.instance.popper),y=parseFloat(v["margin"+d]),b=parseFloat(v["border"+d+"Width"]),_=m-e.offsets.popper[h]-y-b;return _=Math.max(Math.min(s[u]-g,_),0),e.arrowElement=o,e.offsets.arrow=(w(n={},h,Math.round(_)),w(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(j(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=k(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],i=P(o),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[o,i];break;case"clockwise":a=U(o);break;case"counterclockwise":a=U(o,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(o!==s||a.length===l+1)return e;o=e.placement.split("-")[0],i=P(o);var c,u=e.offsets.popper,d=e.offsets.reference,h=Math.floor,p="left"===o&&h(u.right)>h(d.left)||"right"===o&&h(u.left)<h(d.right)||"top"===o&&h(u.bottom)>h(d.top)||"bottom"===o&&h(u.top)<h(d.bottom),f=h(u.left)<h(n.left),g=h(u.right)>h(n.right),m=h(u.top)<h(n.top),v=h(u.bottom)>h(n.bottom),y="left"===o&&f||"right"===o&&g||"top"===o&&m||"bottom"===o&&v,b=-1!==["top","bottom"].indexOf(o),_=!!t.flipVariations&&(b&&"start"===r&&f||b&&"end"===r&&g||!b&&"start"===r&&m||!b&&"end"===r&&v),w=!!t.flipVariationsByContent&&(b&&"start"===r&&g||b&&"end"===r&&f||!b&&"start"===r&&v||!b&&"end"===r&&m),S=_||w;(p||y||S)&&(e.flipped=!0,(p||y)&&(o=a[l+1]),S&&(r="end"===(c=r)?"start":"start"===c?"end":c),e.placement=o+(r?"-"+r:""),e.offsets.popper=C({},e.offsets.popper,I(e.instance.popper,e.offsets.reference,e.placement)),e=M(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,i=o.popper,r=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=r[n]-(s?i[a?"width":"height"]:0),e.placement=P(t),e.offsets.popper=S(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!H(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=T(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n,o,i=t.x,r=t.y,a=e.offsets.popper,s=T(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration,l=void 0!==s?s:t.gpuAcceleration,c=p(e.instance.popper),u=O(c),d={position:a.position},h=function(e,t){function n(e){return e}var o=e.offsets,i=o.popper,r=o.reference,a=Math.round,s=Math.floor,l=a(r.width),c=a(i.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),h=t?u||d||l%2==c%2?a:s:n,p=t?a:n;return{left:h(l%2==1&&c%2==1&&!d&&t?i.left-1:i.left),top:p(i.top),bottom:p(i.bottom),right:h(i.right)}}(e,window.devicePixelRatio<2||!B),f="bottom"===i?"top":"bottom",g="right"===r?"left":"right",m=R("transform");if(o="bottom"==f?"HTML"===c.nodeName?-c.clientHeight+h.bottom:-u.height+h.bottom:h.top,n="right"==g?"HTML"===c.nodeName?-c.clientWidth+h.right:-u.width+h.right:h.left,l&&m)d[m]="translate3d("+n+"px, "+o+"px, 0)",d[f]=0,d[g]=0,d.willChange="transform";else{var v="bottom"==f?-1:1,y="right"==g?-1:1;d[f]=o*v,d[g]=n*y,d.willChange=f+", "+g}var b={"x-placement":e.placement};return e.attributes=C({},b,e.attributes),e.styles=C({},d,e.styles),e.arrowStyles=C({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return W(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&W(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,i){var r=D(i,t,e,n.positionFixed),a=N(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),W(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},G=(function(e,t,n){t&&_(e.prototype,t),n&&_(e,n)}(Y,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=D(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=N(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=I(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=M(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,j(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=function(e,t,n,o){n.updateBound=o,A(e).addEventListener("resize",n.updateBound,{passive:!0});var i=l(e);return function e(t,n,o,i){var r="BODY"===t.nodeName,a=r?t.ownerDocument.defaultView:t;a.addEventListener(n,o,{passive:!0}),r||e(l(a.parentNode),n,o,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return F.call(this)}}]),Y);function Y(e,t){var n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Y),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=i(this.update.bind(this)),this.options=C({},Y.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(C({},Y.Defaults.modifiers,o.modifiers)).forEach((function(e){n.options.modifiers[e]=C({},Y.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return C({name:e},n.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&r(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}G.Utils=("undefined"!=typeof window?window:e).PopperUtils,G.placements=z,G.Defaults=q,t.a=G}).call(this,n(64))},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var o=n(443);function i(e,t){void 0===t&&(t={});var n=a(t);return n.textContent=e,n}function r(e,t){void 0===t&&(t={});var n=a(t);return function e(t,n,i){var r;if(2===n.type)r=document.createTextNode(n.content||"");else if(3===n.type)r=document.createElement("b");else if(4===n.type)r=document.createElement("i");else if(5===n.type&&i){var a=document.createElement("a");a.href="#",i.disposeables.add(o.o(a,"click",(function(e){i.callback(String(n.index),e)}))),r=a}else 7===n.type?r=document.createElement("br"):1===n.type&&(r=t);r&&t!==r&&t.appendChild(r),r&&Array.isArray(n.children)&&n.children.forEach((function(t){e(r,t,i)}))}(n,function(e){for(var t={type:1,children:[]},n=0,o=t,i=[],r=new s(e);!r.eos();){var a=r.next(),l="\\"===a&&0!==c(r.peek());if(l&&(a=r.next()),l||0===c(a)||a!==r.peek())if("\n"===a)2===o.type&&(o=i.pop()),o.children.push({type:7});else if(2!==o.type){var u={type:2,content:a};o.children.push(u),i.push(o),o=u}else o.content+=a;else{r.advance(),2===o.type&&(o=i.pop());var d=c(a);if(o.type===d||5===o.type&&6===d)o=i.pop();else{var h={type:d,children:[]};5===d&&(h.index=n,n++),o.children.push(h),i.push(o),o=h}}}return 2===o.type&&(o=i.pop()),i.length,t}(e),t.actionHandler),n}function a(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}var s=(l.prototype.eos=function(){return this.index>=this.source.length},l.prototype.next=function(){var e=this.peek();return this.advance(),e},l.prototype.peek=function(){return this.source[this.index]},l.prototype.advance=function(){this.index++},l);function l(e){this.source=e,this.index=0}function c(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},function(e,t,n){"use strict";function o(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return N})),n.d(t,"d",(function(){return B})),n.d(t,"c",(function(){return H}));var o,i=n(445),r=n(442),a=n(439),s=n(505),l=n(459),c=n(530),u=n(883),d=n(946),h=n(789),p=n(571),f=n(822),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(){return(m=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},v=(y.prototype.getTabFocusMode=function(){return this._tabFocus},y.prototype.setTabFocusMode=function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))},new y);function y(){this._tabFocus=!1,this._onDidChangeTabFocus=new r.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}var b=Object.hasOwnProperty,_=(w.prototype._read=function(e){return this._values[e]},w.prototype.get=function(e){return this._values[e]},w.prototype._write=function(e,t){this._values[e]=t},w);function w(){this._values=[]}var C=(S.prototype._read=function(e){return this._values[e]},S.prototype._write=function(e,t){this._values[e]=t},S);function S(){this._values=[]}var O=(x.readOptions=function(e){for(var t=e,n=new C,o=0,i=c.i;o<i.length;o++){var r=i[o],a="_never_"===r.name?void 0:t[r.name];n._write(r.id,a)}return n},x.validateOptions=function(e){for(var t=new c.h,n=0,o=c.i;n<o.length;n++){var i=o[n];t._write(i.id,i.validate(e._read(i.id)))}return t},x.computeOptions=function(e,t){for(var n=new _,o=0,i=c.i;o<i.length;o++){var r=i[o];n._write(r.id,r.compute(t,n,e._read(r.id)))}return n},x._deepEquals=function(e,t){if("object"!=typeof e||"object"!=typeof t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&l.g(e,t);for(var n in e)if(!x._deepEquals(e[n],t[n]))return!1;return!0},x.checkEquals=function(e,t){for(var n=[],o=!1,i=0,r=c.i;i<r.length;i++){var a=r[i],s=!x._deepEquals(e._read(a.id),t._read(a.id));(n[a.id]=s)&&(o=!0)}return o?new c.a(n):null},x);function x(){}function E(e){var t=s.c(e);return function(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"),!1===e.autoClosingBrackets&&(e.autoClosingBrackets="never",e.autoClosingQuotes="never",e.autoSurround="never"),"visible"===e.cursorBlinking&&(e.cursorBlinking="solid");var o=e.renderWhitespace;!0===o?e.renderWhitespace="boundary":!1===o&&(e.renderWhitespace="none");var i=e.renderLineHighlight;!0===i?e.renderLineHighlight="line":!1===i&&(e.renderLineHighlight="none");var r=e.acceptSuggestionOnEnter;!0===r?e.acceptSuggestionOnEnter="on":!1===r&&(e.acceptSuggestionOnEnter="off");var a=e.tabCompletion;!1===a?e.tabCompletion="off":!0===a&&(e.tabCompletion="onlySnippets");var s=e.suggest;if(s&&"object"==typeof s.filteredTypes&&s.filteredTypes){Object(f.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"},(function(e){var t=s.filteredTypes[e.key];!1===t&&(s[e.value]=t)}))}var l=e.hover;!0===l?e.hover={enabled:!0}:!1===l&&(e.hover={enabled:!1});var c=e.parameterHints;!0===c?e.parameterHints={enabled:!0}:!1===c&&(e.parameterHints={enabled:!1});var u=e.autoIndent;!0===u?e.autoIndent="full":!1===u&&(e.autoIndent="advanced");var d=e.matchBrackets;!0===d?e.matchBrackets="always":!1===d&&(e.matchBrackets="never")}(t),t}var k,N=(g(D,k=a.a),D.prototype.observeReferenceElement=function(e){},D.prototype.dispose=function(){k.prototype.dispose.call(this)},D.prototype._recomputeOptions=function(){var e=this.options,t=this._computeInternalOptions();if(e){var n=O.checkEquals(e,t);if(null===n)return;this.options=t,this._onDidChange.fire(n)}else this.options=t},D.prototype.getRawOptions=function(){return this._rawOptions},D.prototype._computeInternalOptions=function(){var e=this._getEnvConfiguration(),t=d.a.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:v.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return O.computeOptions(this._validatedOptions,n)},D._subsetEquals=function(e,t){for(var n in t)if(b.call(t,n)){var o=t[n],i=e[n];if(i===o)continue;if(Array.isArray(i)&&Array.isArray(o)){if(!l.g(i,o))return!1;continue}if("object"!=typeof i||"object"!=typeof o)return!1;if(!this._subsetEquals(i,o))return!1}return!0},D.prototype.updateOptions=function(e){if(void 0!==e){var t=E(e);D._subsetEquals(this._rawOptions,t)||(this._rawOptions=s.g(this._rawOptions,t||{}),this._readOptions=O.readOptions(this._rawOptions),this._validatedOptions=O.validateOptions(this._readOptions),this._recomputeOptions())}},D.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e,this._recomputeOptions()},D.prototype.setMaxLineNumber=function(e){var t=D._digitCount(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())},D._digitCount=function(e){for(var t=0;e;)e=Math.floor(e/10),t++;return t||1},D);function D(e,t){var n=k.call(this)||this;return n._onDidChange=n._register(new r.a),n.onDidChange=n._onDidChange.event,n.isSimpleWidget=e,n._isDominatedByLongLines=!1,n._lineNumbersDigitCount=1,n._rawOptions=E(t),n._readOptions=O.readOptions(n._rawOptions),n._validatedOptions=O.validateOptions(n._readOptions),n._register(u.a.onDidChangeZoomLevel((function(e){return n._recomputeOptions()}))),n._register(v.onDidChangeTabFocus((function(e){return n._recomputeOptions()}))),n}for(var L,P=Object.freeze({id:"editor",order:5,type:"object",title:i.a("editorConfigurationTitle","Editor"),scope:5}),I=p.a.as(h.a.Configuration),T=m(m({},P),{properties:{"editor.tabSize":{type:"number",default:c.c.tabSize,minimum:1,markdownDescription:i.a("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:c.c.insertSpaces,markdownDescription:i.a("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:c.c.detectIndentation,markdownDescription:i.a("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:c.c.trimAutoWhitespace,description:i.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:c.c.largeFileOptimizations,description:i.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:i.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{type:"boolean",default:!1,description:i.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:i.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:i.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:i.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:i.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:i.a("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:i.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}}),M=0,j=c.i;M<j.length;M++){var R=j[M],A=R.schema;if(void 0!==A)if(void 0!==(L=A).type||void 0!==L.anyOf)T.properties["editor."+R.name]=A;else for(var F in A)b.call(A,F)&&(T.properties[F]=A[F])}var V=null;function W(){return null===V&&(V=Object.create(null),Object.keys(T.properties).forEach((function(e){V[e]=!0}))),V}function B(e){return W()["editor."+e]||!1}function H(e){return W()["diffEditor."+e]||!1}I.registerConfiguration(T)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var o,i=n(452),r=n(883),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=i.e?1.5:1.35,l=(c.createFromValidatedSettings=function(e,t,n){var o=e.get(33),i=e.get(37),r=e.get(36),a=e.get(35),s=e.get(49),l=e.get(46);return c._create(o,i,r,a,s,l,t,n)},c._create=function(e,t,n,o,i,a,l,u){0===i?i=Math.round(s*n):i<8&&(i=8);var d=1+(u?0:.1*r.a.getZoomLevel());return new c({zoomLevel:l,fontFamily:e,fontWeight:t,fontSize:n*=d,fontFeatureSettings:o,lineHeight:i*=d,letterSpacing:a})},c.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing},c.prototype.getMassagedFontFamily=function(){return!/[,"']/.test(this.fontFamily)&&/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},c);function c(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}var u,d=(a(h,u=l),h.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.maxDigitWidth===e.maxDigitWidth},h);function h(e,t){var n=u.call(this,e)||this;return n.isTrusted=t,n.isMonospace=e.isMonospace,n.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,n.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,n.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,n.spaceWidth=e.spaceWidth,n.middotWidth=e.middotWidth,n.maxDigitWidth=e.maxDigitWidth,n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return v}));var o=n(444),i=n(823),r=n(450),a=n(440),s=n(599),l=(c.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t<n;t++)if(92===e.charCodeAt(t)){if(n<=++t)break;var o=e.charCodeAt(t);if(110===o||114===o||87===o||119===o)return!0}return!1}(this.searchString):0<=this.searchString.indexOf("\n");var t=null;try{t=o.l(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;var n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new u(t,this.wordSeparators?Object(i.a)(this.wordSeparators):null,n?this.searchString:null)},c);function c(e,t,n,o){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=o}var u=function(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n};function d(e,t,n){if(!n)return new s.b(e,null);for(var o=[],i=0,r=t.length;i<r;i++)o[i]=t[i];return new s.b(e,o)}var h=(p.prototype.findLineFeedCountBeforeOffset=function(e){var t=this._lineFeedsOffsets,n=0,o=t.length-1;if(-1===o)return 0;if(e<=t[0])return 0;for(;n<o;){var i=n+((o-n)/2>>0);t[i]>=e?o=i-1:t[i+1]>=e?o=n=i:n=i+1}return n+1},p);function p(e){for(var t=[],n=0,o=0,i=e.length;o<i;o++)10===e.charCodeAt(o)&&(t[n++]=o);this._lineFeedsOffsets=t}var f=(g.findMatches=function(e,t,n,o,i){var r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,n,new v(r.wordSeparators,r.regex),o,i):this._doFindMatchesLineByLine(e,n,r,o,i):[]},g._getMultilineMatchRange=function(e,t,n,o,i,r){var s,l,c=0;if(s=o?t+i+(c=o.findLineFeedCountBeforeOffset(i)):t+i,o){var u=o.findLineFeedCountBeforeOffset(i+r.length)-c;l=s+r.length+u}else l=s+r.length;var d=e.getPositionAt(s),h=e.getPositionAt(l);return new a.a(d.lineNumber,d.column,h.lineNumber,h.column)},g._doFindMatchesMultiline=function(e,t,n,o,i){var r,a=e.getOffsetAt(t.getStartPosition()),s=e.getValueInRange(t,1),l="\r\n"===e.getEOL()?new h(s):null,c=[],u=0;for(n.reset(0);r=n.next(s);)if(c[u++]=d(this._getMultilineMatchRange(e,a,s,l,r.index,r[0]),r,o),i<=u)return c;return c},g._doFindMatchesLineByLine=function(e,t,n,o,i){var r=[],a=0;if(t.startLineNumber===t.endLineNumber){var s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,r,o,i),r}var l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(n,l,t.startLineNumber,t.startColumn-1,a,r,o,i);for(var c=t.startLineNumber+1;c<t.endLineNumber&&a<i;c++)a=this._findMatchesInLine(n,e.getLineContent(c),c,0,a,r,o,i);if(a<i){var u=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);a=this._findMatchesInLine(n,u,t.endLineNumber,0,a,r,o,i)}return r},g._findMatchesInLine=function(e,t,n,o,i,r,l,c){var u=e.wordSeparators;if(!l&&e.simpleSearch){for(var h=e.simpleSearch,p=h.length,f=t.length,g=-p;-1!==(g=t.indexOf(h,g+p));)if((!u||m(u,t,f,g,p))&&(r[i++]=new s.b(new a.a(n,g+1+o,n,g+1+p+o),null),c<=i))return i;return i}var y,b=new v(e.wordSeparators,e.regex);b.reset(0);do{if((y=b.next(t))&&(r[i++]=d(new a.a(n,y.index+1+o,n,y.index+1+y[0].length+o),y,l),c<=i))return i}while(y);return i},g.findNextMatch=function(e,t,n,o){var i=t.parseSearchRequest();if(!i)return null;var r=new v(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(e,n,r,o):this._doFindNextMatchLineByLine(e,n,r,o)},g._doFindNextMatchMultiline=function(e,t,n,o){var i=new r.a(t.lineNumber,1),s=e.getOffsetAt(i),l=e.getLineCount(),c=e.getValueInRange(new a.a(i.lineNumber,i.column,l,e.getLineMaxColumn(l)),1),u="\r\n"===e.getEOL()?new h(c):null;n.reset(t.column-1);var p=n.next(c);return p?d(this._getMultilineMatchRange(e,s,c,u,p.index,p[0]),p,o):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.a(1,1),n,o):null},g._doFindNextMatchLineByLine=function(e,t,n,o){var i=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r),s=this._findFirstMatchInLine(n,a,r,t.column,o);if(s)return s;for(var l=1;l<=i;l++){var c=(r+l-1)%i,u=e.getLineContent(1+c),d=this._findFirstMatchInLine(n,u,1+c,1,o);if(d)return d}return null},g._findFirstMatchInLine=function(e,t,n,o,i){e.reset(o-1);var r=e.next(t);return r?d(new a.a(n,r.index+1,n,r.index+1+r[0].length),r,i):null},g.findPreviousMatch=function(e,t,n,o){var i=t.parseSearchRequest();if(!i)return null;var r=new v(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindPreviousMatchMultiline(e,n,r,o):this._doFindPreviousMatchLineByLine(e,n,r,o)},g._doFindPreviousMatchMultiline=function(e,t,n,o){var i=this._doFindMatchesMultiline(e,new a.a(1,1,t.lineNumber,t.column),n,o,9990);if(0<i.length)return i[i.length-1];var s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new r.a(s,e.getLineMaxColumn(s)),n,o):null},g._doFindPreviousMatchLineByLine=function(e,t,n,o){var i=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r).substring(0,t.column-1),s=this._findLastMatchInLine(n,a,r,o);if(s)return s;for(var l=1;l<=i;l++){var c=(i+r-l-1)%i,u=e.getLineContent(1+c),d=this._findLastMatchInLine(n,u,1+c,o);if(d)return d}return null},g._findLastMatchInLine=function(e,t,n,o){var i,r=null;for(e.reset(0);i=e.next(t);)r=d(new a.a(n,i.index+1,n,i.index+1+i[0].length),i,o);return r},g);function g(){}function m(e,t,n,o,i){return function(e,t,n,o){if(0===n)return!0;var i=t.charCodeAt(n-1);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(0<o){var r=t.charCodeAt(n);if(0!==e.get(r))return!0}return!1}(e,t,o,i)&&function(e,t,n,o,i){if(o+i===n)return!0;var r=t.charCodeAt(o+i);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(0<i){var a=t.charCodeAt(o+i-1);if(0!==e.get(a))return!0}return!1}(e,t,n,o,i)}var v=(y.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},y.prototype.next=function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(!(t=this._searchRegex.exec(e)))return null;var o=t.index,i=t[0].length;if(o!==this._prevMatchStartIndex||i!==this._prevMatchLength){if(this._prevMatchStartIndex=o,this._prevMatchLength=i,!this._wordSeparators||m(this._wordSeparators,e,n,o,i))return t}else{if(0!==i)return null;this._searchRegex.lastIndex+=1}}while(t);return null},y);function y(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}},function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return m})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return C}));var o=n(459),i=n(824),r=n(450),a=n(454);function s(e){for(var t=0,n=0,o=0,i=0,r=e.length;i<r;i++){var a=e.charCodeAt(i);13===a?(0===t&&(n=i),t++,i+1<r&&10===e.charCodeAt(i+1)&&i++,o=i+1):10===a&&(0===t&&(n=i),t++,o=i+1)}return 0===t&&(n=e.length),[t,n,e.length-o]}function l(e){return(e<<0|16384|2<<23)>>>0}var c=new Uint32Array(0).buffer,u=(d.prototype.add=function(e,t){if(0<this.tokens.length){var n=this.tokens[this.tokens.length-1];if(n.startLineNumber+n.tokens.length-1+1===e)return void n.tokens.push(t)}this.tokens.push(new y(e,[t]))},d);function d(){this.tokens=[]}var h=(p.prototype.getMaxDeltaLine=function(){var e=this.getTokenCount();return 0===e?-1:this.getDeltaLine(e-1)},p.prototype.getTokenCount=function(){return this._tokenCount},p.prototype.getDeltaLine=function(e){return this._tokens[4*e]},p.prototype.getStartCharacter=function(e){return this._tokens[4*e+1]},p.prototype.getEndCharacter=function(e){return this._tokens[4*e+2]},p.prototype.getMetadata=function(e){return this._tokens[4*e+3]},p.prototype.clear=function(){this._tokenCount=0},p.prototype.acceptDeleteRange=function(e,t,n,o,i){for(var r=this._tokens,a=this._tokenCount,s=o-t,l=0,c=!1,u=0;u<a;u++){var d=4*u,h=r[d],p=r[1+d],f=r[2+d],g=r[3+d];if(h<t||h===t&&f<=n)l++;else{if(h===t&&p<n)h===o&&i<f?f-=i-n:f=n;else if(h===t&&p===n){if(!(h===o&&i<f)){c=!0;continue}f-=i-n}else if(h<o||h===o&&p<i){if(!(h===o&&i<f)){c=!0;continue}f=h===t?(p=n)+(f-i):(p=0)+(f-i)}else if(o<h){if(0==s&&!c){l=a;break}h-=s}else{if(!(h===o&&i<=p))throw new Error("Not possible!");e&&0===h&&(p+=e,f+=e),h-=s,p-=i-n,f-=i-n}var m=4*l;r[m]=h,r[1+m]=p,r[2+m]=f,r[3+m]=g,l++}}this._tokenCount=l},p.prototype.acceptInsertText=function(e,t,n,o,i,r){for(var a=0===n&&1===o&&(48<=r&&r<=57||65<=r&&r<=90||97<=r&&r<=122),s=this._tokens,l=this._tokenCount,c=0;c<l;c++){var u=4*c,d=s[u],h=s[1+u],p=s[2+u];if(!(d<e||d===e&&p<t)){if(d===e&&p===t){if(!a)continue;p+=1}else if(d===e&&h<t&&t<p)0===n?p+=o:p=t;else{if(d===e&&h===t&&a)continue;if(d===e)if(d+=n,0===n)h+=o,p+=o;else{var f=p-h;p=(h=i+(h-t))+f}else d+=n}s[u]=d,s[1+u]=h,s[2+u]=p}}},p);function p(e){this._tokens=e,this._tokenCount=e.length/4}var f=(g.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},g.prototype.getStartCharacter=function(e){return this._actual.getStartCharacter(this._startTokenIndex+e)},g.prototype.getEndCharacter=function(e){return this._actual.getEndCharacter(this._startTokenIndex+e)},g.prototype.getMetadata=function(e){return this._actual.getMetadata(this._startTokenIndex+e)},g);function g(e,t,n){this._actual=e,this._startTokenIndex=t,this._endTokenIndex=n}var m=(v.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},v.prototype.getLineTokens=function(e){if(this.startLineNumber<=e&&e<=this.endLineNumber){var t=v._findTokensWithLine(this.tokens,e-this.startLineNumber);if(t){var n=t[0],o=t[1];return new f(this.tokens,n,o)}}return null},v._findTokensWithLine=function(e,t){for(var n=0,o=e.getTokenCount()-1;n<o;){var i=n+Math.floor((o-n)/2),r=e.getDeltaLine(i);if(r<t)n=i+1;else{if(!(t<r)){for(var a=i;n<a&&e.getDeltaLine(a-1)===t;)a--;for(var s=i;s<o&&e.getDeltaLine(s+1)===t;)s++;return[a,s]}o=i-1}}return e.getDeltaLine(n)===t?[n,n]:null},v.prototype.applyEdit=function(e,t){var n=s(t),o=n[0],i=n[1],r=n[2];this.acceptEdit(e,o,i,r,0<t.length?t.charCodeAt(0):0)},v.prototype.acceptEdit=function(e,t,n,o,i){this._acceptDeleteRange(e),this._acceptInsertText(new r.a(e.startLineNumber,e.startColumn),t,n,o,i),this._updateEndLineNumber()},v.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 o=n-t;this.startLineNumber-=o}else{var i=this.tokens.getMaxDeltaLine();if(!(i+1<=t)){if(t<0&&i+1<=n)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)}}}},v.prototype._acceptInsertText=function(e,t,n,o,i){if(0!==t||0!==n){var r=e.lineNumber-this.startLineNumber;r<0?this.startLineNumber+=t:this.tokens.getMaxDeltaLine()+1<=r||this.tokens.acceptInsertText(r,e.column-1,t,n,o,i)}},v);function v(e,t){this.startLineNumber=e,this.tokens=t,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}var y=function(e,t){this.startLineNumber=e,this.tokens=t};function b(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var _=(w.prototype.flush=function(){this._pieces=[]},w.prototype.set=function(e){this._pieces=e||[]},w.prototype.addSemanticTokens=function(e,t){var n=this._pieces;if(0===n.length)return t;var o=w._findFirstPieceWithLine(n,e),r=this._pieces[o].getLineTokens(e);if(!r)return t;for(var a=t.getCount(),s=r.getCount(),l=0,c=[],u=0,d=0;d<s;d++){for(var h=r.getStartCharacter(d),p=r.getEndCharacter(d),f=r.getMetadata(d),g=((1&f?2048:0)|(2&f?4096:0)|(4&f?8192:0)|(8&f?8372224:0)|(16&f?4286578688:0))>>>0,m=~g>>>0;l<a&&t.getEndOffset(l)<=h;)c[u++]=t.getEndOffset(l),c[u++]=t.getMetadata(l),l++;for(l<a&&t.getStartOffset(l)<h&&(c[u++]=h,c[u++]=t.getMetadata(l));l<a&&t.getEndOffset(l)<p;)c[u++]=t.getEndOffset(l),c[u++]=t.getMetadata(l)&m|f&g,l++;if(l<a&&t.getEndOffset(l)===p)c[u++]=t.getEndOffset(l),c[u++]=t.getMetadata(l)&m|f&g,l++;else{var v=Math.min(Math.max(0,l-1),a-1);c[u++]=p,c[u++]=t.getMetadata(v)&m|f&g}}for(;l<a;)c[u++]=t.getEndOffset(l),c[u++]=t.getMetadata(l),l++;return new i.a(new Uint32Array(c),t.getLineContent())},w._findFirstPieceWithLine=function(e,t){for(var n=0,o=e.length-1;n<o;){var i=n+Math.floor((o-n)/2);if(e[i].endLineNumber<t)n=i+1;else{if(!(e[i].startLineNumber>t)){for(;n<i&&e[i-1].startLineNumber<=t&&t<=e[i-1].endLineNumber;)i--;return i}o=i-1}}return n},w.prototype.acceptEdit=function(e,t,n,o,i){for(var r=0,a=this._pieces;r<a.length;r++)a[r].acceptEdit(e,t,n,o,i)},w);function w(){this._pieces=[]}var C=(S.prototype.flush=function(){this._lineTokens=[],this._len=0},S.prototype.getTokens=function(e,t,n){var o=null;if(t<this._len&&(o=this._lineTokens[t]),null!==o&&o!==c)return new i.a(b(o),n);var r=new Uint32Array(2);return r[0]=n.length,r[1]=l(e),new i.a(r,n)},S._massageTokens=function(e,t,n){var o=n?b(n):null;if(0===t){var i=!1;if(o&&1<o.length&&(i=a.A.getLanguageId(o[1])!==e),!i)return c}if(o&&0!==o.length)return o[o.length-2]=t,0===o.byteOffset&&o.byteLength===o.buffer.byteLength?o.buffer:o;var r=new Uint32Array(2);return r[0]=t,r[1]=l(e),r.buffer},S.prototype._ensureLine=function(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++},S.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)},S.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],i=0;i<t;i++)n[i]=null;this._lineTokens=o.a(this._lineTokens,e,n),this._len+=t}},S.prototype.setTokens=function(e,t,n,o){var i=S._massageTokens(e,n,o);this._ensureLine(t),this._lineTokens[t]=i},S.prototype.acceptEdit=function(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new r.a(e.startLineNumber,e.startColumn),t,n)},S.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(!(t>=this._len))if(e.startLineNumber!==e.endLineNumber){this._lineTokens[t]=S._deleteEnding(this._lineTokens[t],e.startColumn-1);var n=e.endLineNumber-1,o=null;n<this._len&&(o=S._deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=S._append(this._lineTokens[t],o),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}else{if(e.startColumn===e.endColumn)return;this._lineTokens[t]=S._delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1)}},S.prototype._acceptInsertText=function(e,t,n){if(0!==t||0!==n){var o=e.lineNumber-1;o>=this._len||(0!==t?(this._lineTokens[o]=S._deleteEnding(this._lineTokens[o],e.column-1),this._lineTokens[o]=S._insert(this._lineTokens[o],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[o]=S._insert(this._lineTokens[o],e.column-1,n))}},S._deleteBeginning=function(e,t){return null===e||e===c?e:S._delete(e,0,t)},S._deleteEnding=function(e,t){if(null===e||e===c)return e;var n=b(e),o=n[n.length-2];return S._delete(e,t,o)},S._delete=function(e,t,n){if(null===e||e===c||t===n)return e;var o=b(e),r=o.length>>>1;if(0===t&&o[o.length-2]===n)return c;var a,s,l=i.a.findIndexInTokensArray(o,t),u=0<l?o[l-1<<1]:0;if(n<o[l<<1]){for(var d=n-t,h=l;h<r;h++)o[h<<1]-=d;return e}s=u!==t?(a=l+1<<1,o[l<<1]=t):(a=l<<1,u);for(var p=n-t,f=l+1;f<r;f++){var g=o[f<<1]-p;s<g&&(o[a++]=g,o[a++]=o[1+(f<<1)],s=g)}if(a===o.length)return e;var m=new Uint32Array(a);return m.set(o.subarray(0,a),0),m.buffer},S._append=function(e,t){if(t===c)return e;if(e===c)return t;if(null===e)return e;if(null===t)return null;var n=b(e),o=b(t),i=o.length>>>1,r=new Uint32Array(n.length+o.length);r.set(n,0);for(var a=n.length,s=n[n.length-2],l=0;l<i;l++)r[a++]=o[l<<1]+s,r[a++]=o[1+(l<<1)];return r.buffer},S._insert=function(e,t,n){if(null===e||e===c)return e;var o=b(e),r=o.length>>>1,a=i.a.findIndexInTokensArray(o,t);0<a&&o[a-1<<1]===t&&a--;for(var s=a;s<r;s++)o[s<<1]+=n;return e},S);function S(){this._lineTokens=[],this._len=0}},function(e,t,n){"use strict";function o(e,t){for(var n=e.getCount(),o=e.findTokenIndexAtOffset(t),r=e.getLanguageId(o),a=o;a+1<n&&e.getLanguageId(a+1)===r;)a++;for(var s=o;0<s&&e.getLanguageId(s-1)===r;)s--;return new i(e,r,s,a+1,e.getStartOffset(s),e.getEndOffset(a))}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var i=(r.prototype.getLineContent=function(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)},r.prototype.getActualLineContentBefore=function(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)},r.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},r.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},r.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},r);function r(e,t,n,o,i,r){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=o,this.firstCharOffset=i,this._lastCharOffset=r}function a(e){return 0!=(7&e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return m}));var o=n(444),i=n(440),r=(a.prototype.isOpen=function(e){return this._openSet.has(e)},a.prototype.isClose=function(e){return this._closeSet.has(e)},a._toSet=function(e){for(var t=new Set,n=0,o=e;n<o.length;n++){var i=o[n];t.add(i)}return t},a);function a(e,t,n,o,i,r){this.languageIdentifier=e,this.index=t,this.open=n,this.close=o,this.forwardRegex=i,this.reversedRegex=r,this._openSet=a._toSet(this.open),this._closeSet=a._toSet(this.close)}var s=function(e,t){var n=function(e){var t,n,o,i,r,a,s=e.length;e=e.map((function(e){return[e[0].toLowerCase(),e[1].toLowerCase()]}));for(var l=[],c=0;c<s;c++)l[c]=c;function u(e,t){for(var n=Math.min(e,t),o=Math.max(e,t),i=0;i<s;i++)l[i]===o&&(l[i]=n)}for(c=0;c<s;c++)for(var d=e[c],h=c+1;h<s;h++){n=e[h],o=(t=d)[0],i=t[1],r=n[0],a=n[1],o!==r&&o!==a&&i!==r&&i!==a||u(l[c],l[h])}for(var p=[],f=0;f<s;f++){var g=[],m=[];for(c=0;c<s;c++)if(l[c]===f){var v=e[c],y=v[0],b=v[1];g.push(y),m.push(b)}0<g.length&&p.push({open:g,close:m})}return p}(t);this.brackets=n.map((function(t,o){return new r(e,o,t.open,t.close,function(e,t,n,o){for(var i=[],r=0,a=(i=(i=i.concat(e)).concat(t)).length;r<a;r++)l(i[r],n,o,i);return(i=u(i)).sort(c),i.reverse(),h(i)}(t.open,t.close,n,o),function(e,t,n,o){for(var i=[],r=0,a=(i=(i=i.concat(e)).concat(t)).length;r<a;r++)l(i[r],n,o,i);return(i=u(i)).sort(c),i.reverse(),h(i.map(g))}(t.open,t.close,n,o))})),this.forwardRegex=function(e){for(var t=[],n=0,o=e;n<o.length;n++){for(var i=o[n],r=0,a=i.open;r<a.length;r++){var s=a[r];t.push(s)}for(var l=0,c=i.close;l<c.length;l++){var d=c[l];t.push(d)}}return h(t=u(t))}(this.brackets),this.reversedRegex=function(e){for(var t=[],n=0,o=e;n<o.length;n++){for(var i=o[n],r=0,a=i.open;r<a.length;r++){var s=a[r];t.push(s)}for(var l=0,c=i.close;l<c.length;l++){var d=c[l];t.push(d)}}return h((t=u(t)).map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={};for(var o=this.maxBracketLength=0,i=this.brackets;o<i.length;o++){for(var a=i[o],s=0,d=a.open;s<d.length;s++){var p=d[s];this.textIsBracket[p]=a,this.textIsOpenBracket[p]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,p.length)}for(var f=0,m=a.close;f<m.length;f++){var v=m[f];this.textIsBracket[v]=a,this.textIsOpenBracket[v]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,v.length)}}};function l(e,t,n,o){for(var i=0,r=t.length;i<r;i++)if(i!==n){for(var a=t[i],s=0,l=a.open;s<l.length;s++){var c=l[s];0<=c.indexOf(e)&&o.push(c)}for(var u=0,d=a.close;u<d.length;u++){var h=d[u];0<=h.indexOf(e)&&o.push(h)}}}function c(e,t){return e.length-t.length}function u(e){if(e.length<=1)return e;for(var t=[],n=new Set,o=0,i=e;o<i.length;o++){var r=i[o];n.has(r)||(t.push(r),n.add(r))}return t}function d(e){var t=/^[\w ]+$/.test(e);return e=o.p(e),t?"\\b"+e+"\\b":e}function h(e){var t="("+e.map(d).join(")|(")+")";return o.l(t,!0)}var p,f,g=(f=p=null,function(e){return p!==e&&(f=function(e){for(var t="",n=e.length-1;0<=n;n--)t+=e.charAt(n);return t}(p=e)),f}),m=(v._findPrevBracketInText=function(e,t,n,o){var r=n.match(e);if(!r)return null;var a=n.length-(r.index||0),s=r[0].length,l=o+a;return new i.a(t,l-s+1,t,l+1)},v.findPrevBracketInRange=function(e,t,n,o,i){var r=g(n).substring(n.length-i,n.length-o);return this._findPrevBracketInText(e,t,r,o)},v.findNextBracketInText=function(e,t,n,o){var r=n.match(e);if(!r)return null;var a=r.index||0,s=r[0].length;if(0===s)return null;var l=o+a;return new i.a(t,l+1,t,l+1+s)},v.findNextBracketInRange=function(e,t,n,o,i){var r=n.substring(o,i);return this.findNextBracketInText(e,t,r,o)},v);function v(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("IWorkspaceEditService")},function(e,t,n){"use strict";function o(e,t){switch(void 0===t&&(t=0),typeof e){case"object":return null===e?i(349,t):Array.isArray(e)?(s=i(104579,s=t),e.reduce((function(e,t){return o(t,e)}),s)):(n=e,a=i(181387,a=t),Object.keys(n).sort().reduce((function(e,t){return e=r(t,e),o(n[t],e)}),a));case"string":return r(e,t);case"boolean":return i(e?433:863,t);case"number":return i(e,t);case"undefined":return 29047;default:return 19127}var n,a,s}function i(e,t){return(t<<5)-t+e|0}function r(e,t){t=i(149417,t);for(var n=0,o=e.length;n<o;n++)t=i(e.charCodeAt(n),t);return t}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(555),i=n(450),r=n(440),a=n(444),s=function(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n},l=(c.leftPosition=function(e,t,n){return n>e.getLineMinColumn(t)?n-=a.G(e.getLineContent(t),n-1):1<t&&(--t,n=e.getLineMaxColumn(t)),new i.a(t,n)},c.left=function(e,t,n,o){var i=c.leftPosition(t,n,o);return new s(i.lineNumber,i.column,0)},c.moveLeft=function(e,t,n,o,i){var r,a;if(n.hasSelection()&&!o)r=n.selection.startLineNumber,a=n.selection.startColumn;else{var s=c.left(e,t,n.position.lineNumber,n.position.column-(i-1));r=s.lineNumber,a=s.column}return n.move(o,r,a,0)},c.rightPosition=function(e,t,n){return n<e.getLineMaxColumn(t)?n+=a.E(e.getLineContent(t),n-1):t<e.getLineCount()&&(t+=1,n=e.getLineMinColumn(t)),new i.a(t,n)},c.right=function(e,t,n,o){var i=c.rightPosition(t,n,o);return new s(i.lineNumber,i.column,0)},c.moveRight=function(e,t,n,o,i){var r,a;if(n.hasSelection()&&!o)r=n.selection.endLineNumber,a=n.selection.endColumn;else{var s=c.right(e,t,n.position.lineNumber,n.position.column+(i-1));r=s.lineNumber,a=s.column}return n.move(o,r,a,0)},c.down=function(e,t,n,i,r,a,l){var c=o.a.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+r;n+=a;var u=t.getLineCount();return i=u<n?(n=u,l?t.getLineMaxColumn(n):Math.min(t.getLineMaxColumn(n),i)):o.a.columnFromVisibleColumn2(e,t,n,c),r=c-o.a.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new s(n,i,r)},c.moveDown=function(e,t,n,o,i){var r,a;a=n.hasSelection()&&!o?(r=n.selection.endLineNumber,n.selection.endColumn):(r=n.position.lineNumber,n.position.column);var s=c.down(e,t,r,a,n.leftoverVisibleColumns,i,!0);return n.move(o,s.lineNumber,s.column,s.leftoverVisibleColumns)},c.translateDown=function(e,t,n){var a=n.selection,s=c.down(e,t,a.selectionStartLineNumber,a.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),l=c.down(e,t,a.positionLineNumber,a.positionColumn,n.leftoverVisibleColumns,1,!1);return new o.f(new r.a(s.lineNumber,s.column,s.lineNumber,s.column),s.leftoverVisibleColumns,new i.a(l.lineNumber,l.column),l.leftoverVisibleColumns)},c.up=function(e,t,n,i,r,a,l){var c=o.a.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+r;return i=(n-=a)<1?(n=1,l?t.getLineMinColumn(n):Math.min(t.getLineMaxColumn(n),i)):o.a.columnFromVisibleColumn2(e,t,n,c),r=c-o.a.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new s(n,i,r)},c.moveUp=function(e,t,n,o,i){var r,a;a=n.hasSelection()&&!o?(r=n.selection.startLineNumber,n.selection.startColumn):(r=n.position.lineNumber,n.position.column);var s=c.up(e,t,r,a,n.leftoverVisibleColumns,i,!0);return n.move(o,s.lineNumber,s.column,s.leftoverVisibleColumns)},c.translateUp=function(e,t,n){var a=n.selection,s=c.up(e,t,a.selectionStartLineNumber,a.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),l=c.up(e,t,a.positionLineNumber,a.positionColumn,n.leftoverVisibleColumns,1,!1);return new o.f(new r.a(s.lineNumber,s.column,s.lineNumber,s.column),s.leftoverVisibleColumns,new i.a(l.lineNumber,l.column),l.leftoverVisibleColumns)},c.moveToBeginningOfLine=function(e,t,n,o){var i,r=n.position.lineNumber,a=t.getLineMinColumn(r),s=t.getLineFirstNonWhitespaceColumn(r)||a;return i=n.position.column===s?a:s,n.move(o,r,i,0)},c.moveToEndOfLine=function(e,t,n,o){var i=n.position.lineNumber,r=t.getLineMaxColumn(i);return n.move(o,i,r,0)},c.moveToBeginningOfBuffer=function(e,t,n,o){return n.move(o,1,1,0)},c.moveToEndOfBuffer=function(e,t,n,o){var i=t.getLineCount(),r=t.getLineMaxColumn(i);return n.move(o,i,r,0)},c);function c(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p}));var o,i=n(444),r=n(555),a=n(823),s=n(450),l=n(440),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=(d._createWord=function(e,t,n,o,i){return{start:o,end:i,wordType:t,nextCharClass:n}},d._findPreviousWordOnLine=function(e,t,n){var o=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(o,e,n)},d._doFindPreviousWordOnLine=function(e,t,n){for(var o=0,i=n.column-2;0<=i;i--){var r=e.charCodeAt(i),a=t.get(r);if(0===a){if(2===o)return this._createWord(e,o,a,i+1,this._findEndOfWord(e,t,o,i+1));o=1}else if(2===a){if(1===o)return this._createWord(e,o,a,i+1,this._findEndOfWord(e,t,o,i+1));o=2}else if(1===a&&0!==o)return this._createWord(e,o,a,i+1,this._findEndOfWord(e,t,o,i+1))}return 0!==o?this._createWord(e,o,1,0,this._findEndOfWord(e,t,o,0)):null},d._findEndOfWord=function(e,t,n,o){for(var i=e.length,r=o;r<i;r++){var a=e.charCodeAt(r),s=t.get(a);if(1===s)return r;if(1===n&&2===s)return r;if(2===n&&0===s)return r}return i},d._findNextWordOnLine=function(e,t,n){var o=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(o,e,n)},d._doFindNextWordOnLine=function(e,t,n){for(var o=0,i=e.length,r=n.column-1;r<i;r++){var a=e.charCodeAt(r),s=t.get(a);if(0===s){if(2===o)return this._createWord(e,o,s,this._findStartOfWord(e,t,o,r-1),r);o=1}else if(2===s){if(1===o)return this._createWord(e,o,s,this._findStartOfWord(e,t,o,r-1),r);o=2}else if(1===s&&0!==o)return this._createWord(e,o,s,this._findStartOfWord(e,t,o,r-1),r)}return 0!==o?this._createWord(e,o,1,this._findStartOfWord(e,t,o,i-1),i):null},d._findStartOfWord=function(e,t,n,o){for(var i=o;0<=i;i--){var r=e.charCodeAt(i),a=t.get(r);if(1===a)return i+1;if(1===n&&2===a)return i+1;if(2===n&&0===a)return i+1}return 0},d.moveWordLeft=function(e,t,n,o){var i=n.lineNumber,r=n.column,a=!1;1===r&&1<i&&(a=!0,--i,r=t.getLineMaxColumn(i));var l=d._findPreviousWordOnLine(e,t,new s.a(i,r));if(0===o)return l&&!a&&t.getLineLastNonWhitespaceColumn(i)<r?new s.a(i,l.end+1):new s.a(i,l?l.start+1:1);if(1===o)return l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=d._findPreviousWordOnLine(e,t,new s.a(i,l.start+1))),new s.a(i,l?l.start+1:1);if(3!==o)return l&&r<=l.end+1&&(l=d._findPreviousWordOnLine(e,t,new s.a(i,l.start+1))),new s.a(i,l?l.end+1:1);for(;l&&2===l.wordType;)l=d._findPreviousWordOnLine(e,t,new s.a(i,l.start+1));return new s.a(i,l?l.start+1:1)},d._moveWordPartLeft=function(e,t){var n=t.lineNumber,o=e.getLineMaxColumn(n);if(1===t.column)return 1<n?new s.a(n-1,e.getLineMaxColumn(n-1)):t;for(var r=e.getLineContent(n),a=t.column-1;1<a;a--){var l=r.charCodeAt(a-2),c=r.charCodeAt(a-1);if(95!==l&&95===c)return new s.a(n,a);if(i.B(l)&&i.C(c))return new s.a(n,a);if(i.C(l)&&i.C(c)&&a+1<o){var u=r.charCodeAt(a);if(i.B(u))return new s.a(n,a)}}return new s.a(n,1)},d.moveWordRight=function(e,t,n,o){var i=n.lineNumber,r=n.column,a=!1;r===t.getLineMaxColumn(i)&&i<t.getLineCount()&&(a=!0,i+=1,r=1);var l=d._findNextWordOnLine(e,t,new s.a(i,r));if(2===o)l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=d._findNextWordOnLine(e,t,new s.a(i,l.end+1))),r=l?l.end+1:t.getLineMaxColumn(i);else if(3===o){for(a&&(r=0);l&&(2===l.wordType||l.start+1<=r);)l=d._findNextWordOnLine(e,t,new s.a(i,l.end+1));r=l?l.start+1:t.getLineMaxColumn(i)}else l&&!a&&r>=l.start+1&&(l=d._findNextWordOnLine(e,t,new s.a(i,l.end+1))),r=l?l.start+1:t.getLineMaxColumn(i);return new s.a(i,r)},d._moveWordPartRight=function(e,t){var n=t.lineNumber,o=e.getLineMaxColumn(n);if(t.column===o)return n<e.getLineCount()?new s.a(n+1,1):t;for(var r=e.getLineContent(n),a=t.column+1;a<o;a++){var l=r.charCodeAt(a-2),c=r.charCodeAt(a-1);if(95===l&&95!==c)return new s.a(n,a);if(i.B(l)&&i.C(c))return new s.a(n,a);if(i.C(l)&&i.C(c)&&a+1<o){var u=r.charCodeAt(a);if(i.B(u))return new s.a(n,a)}}return new s.a(n,o)},d._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),o=t.column-2,r=i.D(n,o);return r+1<o?new l.a(t.lineNumber,r+2,t.lineNumber,t.column):null},d.deleteWordLeft=function(e,t,n,o,i){if(!n.isEmpty())return n;var r=new s.a(n.positionLineNumber,n.positionColumn),a=r.lineNumber,c=r.column;if(1===a&&1===c)return null;if(o){var u=this._deleteWordLeftWhitespace(t,r);if(u)return u}var h=d._findPreviousWordOnLine(e,t,r);return c=0===i?h?h.start+1:1<c?1:(a--,t.getLineMaxColumn(a)):(h&&c<=h.end+1&&(h=d._findPreviousWordOnLine(e,t,new s.a(a,h.start+1))),h?h.end+1:1<c?1:(a--,t.getLineMaxColumn(a))),new l.a(a,c,r.lineNumber,r.column)},d._deleteWordPartLeft=function(e,t){if(!t.isEmpty())return t;var n=t.getPosition(),o=d._moveWordPartLeft(e,n);return new l.a(n.lineNumber,n.column,o.lineNumber,o.column)},d._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,o=t;o<n;o++){var i=e.charAt(o);if(" "!==i&&"\t"!==i)return o}return n},d._deleteWordRightWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),o=t.column-1,i=this._findFirstNonWhitespaceChar(n,o);return 1+o<i?new l.a(t.lineNumber,t.column,t.lineNumber,i+1):null},d.deleteWordRight=function(e,t,n,o,i){if(!n.isEmpty())return n;var r=new s.a(n.positionLineNumber,n.positionColumn),a=r.lineNumber,c=r.column,u=t.getLineCount(),h=t.getLineMaxColumn(a);if(a===u&&c===h)return null;if(o){var p=this._deleteWordRightWhitespace(t,r);if(p)return p}var f=d._findNextWordOnLine(e,t,r);return c=2===i?f?f.end+1:c<h||a===u?h:(a++,(f=d._findNextWordOnLine(e,t,new s.a(a,1)))?f.start+1:t.getLineMaxColumn(a)):(f&&c>=f.start+1&&(f=d._findNextWordOnLine(e,t,new s.a(a,f.end+1))),f?f.start+1:c<h||a===u?h:(a++,(f=d._findNextWordOnLine(e,t,new s.a(a,1)))?f.start+1:t.getLineMaxColumn(a))),new l.a(a,c,r.lineNumber,r.column)},d._deleteWordPartRight=function(e,t){if(!t.isEmpty())return t;var n=t.getPosition(),o=d._moveWordPartRight(e,n);return new l.a(n.lineNumber,n.column,o.lineNumber,o.column)},d.word=function(e,t,n,o,i){var c,u,h,p,f=Object(a.a)(e.wordSeparators),g=d._findPreviousWordOnLine(f,t,i),m=d._findNextWordOnLine(f,t,i);if(!o)return u=g&&1===g.wordType&&g.start<=i.column-1&&i.column-1<=g.end?(c=g.start+1,g.end+1):m&&1===m.wordType&&m.start<=i.column-1&&i.column-1<=m.end?(c=m.start+1,m.end+1):(c=g?g.end+1:1,m?m.start+1:t.getLineMaxColumn(i.lineNumber)),new r.f(new l.a(i.lineNumber,c,i.lineNumber,u),0,new s.a(i.lineNumber,u),0);p=g&&1===g.wordType&&g.start<i.column-1&&i.column-1<g.end?(h=g.start+1,g.end+1):m&&1===m.wordType&&m.start<i.column-1&&i.column-1<m.end?(h=m.start+1,m.end+1):(h=i.column,i.column);var v,y=i.lineNumber;if(n.selectionStart.containsPosition(i))v=n.selectionStart.endColumn;else if(i.isBeforeOrEqual(n.selectionStart.getStartPosition())){v=h;var b=new s.a(y,v);n.selectionStart.containsPosition(b)&&(v=n.selectionStart.endColumn)}else v=p,b=new s.a(y,v),n.selectionStart.containsPosition(b)&&(v=n.selectionStart.startColumn);return n.move(!0,y,v,0)},d);function d(){}var h,p=(c(f,h=u),f.deleteWordPartLeft=function(e,t,n,o){var i=g([u.deleteWordLeft(e,t,n,o,0),u.deleteWordLeft(e,t,n,o,2),u._deleteWordPartLeft(t,n)]);return i.sort(l.a.compareRangesUsingEnds),i[2]},f.deleteWordPartRight=function(e,t,n,o){var i=g([u.deleteWordRight(e,t,n,o,0),u.deleteWordRight(e,t,n,o,2),u._deleteWordPartRight(t,n)]);return i.sort(l.a.compareRangesUsingStarts),i[0]},f.moveWordPartLeft=function(e,t,n){var o=g([u.moveWordLeft(e,t,n,0),u.moveWordLeft(e,t,n,2),u._moveWordPartLeft(t,n)]);return o.sort(s.a.compare),o[2]},f.moveWordPartRight=function(e,t,n){var o=g([u.moveWordRight(e,t,n,0),u.moveWordRight(e,t,n,2),u._moveWordPartRight(t,n)]);return o.sort(s.a.compare),o[0]},f);function f(){return null!==h&&h.apply(this,arguments)||this}function g(e){return e.filter((function(e){return Boolean(e)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("clipboardService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return h}));var o=n(479),i=n(791),r=n(444),a=n(596),s=n(452),l=n(554);function c(e,t,n){if("string"==typeof e&&(e=o.a.file(e)),n){var c=n.getWorkspaceFolder(e);if(c){var u=1<n.getWorkspace().folders.length,f=void 0;if(f=Object(l.e)(c.uri,e)?"":Object(l.h)(c.uri,e),u){var g=c.name?c.name:Object(l.b)(c.uri);f=f?g+" \u2022 "+f:g}return f}}if(e.scheme!==a.b.file&&e.scheme!==a.b.untitled)return e.with({query:null,fragment:null}).toString(!0);if(d(e.fsPath))return Object(i.normalize)(h(e.fsPath));var m=Object(i.normalize)(e.fsPath);return!s.h&&t&&(m=function(e,t){if(s.h||!e||!t)return e;var n=p.original===t?p.normalized:void 0;return n||(n=""+Object(r.K)(t,i.posix.sep)+i.posix.sep,p={original:t,normalized:n}),(s.d?Object(r.N):Object(r.O))(e,n)&&(e="~/"+e.substr(n.length)),e}(m,t.userHome)),m}function u(e){if(e){"string"==typeof e&&(e=o.a.file(e));var t=Object(l.b)(e)||(e.scheme===a.b.file?e.fsPath:e.path);return d(t)?h(t):t}}function d(e){return s.h&&e&&":"===e[1]}function h(e){return d(e)?e.charAt(0).toUpperCase()+e.slice(1):e}var p=Object.create(null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o,i,r=n(505),a=n(504),s=n(930),l=n(489),c=n(456),u=n(448),d=n(532),h=n(451),p=n(759),f=function(e,t){return function(n,o){t(n,o,e)}},g=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(m,i=s.a),m.prototype.getParentEditor=function(){return this._parentEditor},m.prototype._onParentConfigurationChanged=function(e){i.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),i.prototype.updateOptions.call(this,this._overwriteOptions)},m.prototype.updateOptions=function(e){r.g(this._overwriteOptions,e,!0),i.prototype.updateOptions.call(this,this._overwriteOptions)},m=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([f(3,u.a),f(4,a.a),f(5,l.b),f(6,c.c),f(7,h.c),f(8,d.a),f(9,p.b)],m));function m(e,t,n,o,r,a,s,l,c,u){var d=i.call(this,e,n.getRawOptions(),{},o,r,a,s,l,c,u)||this;return d._parentEditor=n,d._overwriteOptions=t,i.prototype.updateOptions.call(d,d._overwriteOptions),d._register(n.onDidChangeConfiguration((function(e){return d._onParentConfigurationChanged(e)}))),d}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var o=n(444),i=(r._equals=function(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type},r.equalsArr=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var o=0;o<n;o++)if(!r._equals(e[o],t[o]))return!1;return!0},r.filter=function(e,t,n,o){if(0===e.length)return[];for(var i=[],a=0,s=0,l=e.length;s<l;s++){var c=e[s],u=c.range;if(!(u.endLineNumber<t||u.startLineNumber>t||u.isEmpty()&&(0===c.type||3===c.type))){var d=u.startLineNumber===t?u.startColumn:n,h=u.endLineNumber===t?u.endColumn:o;i[a++]=new r(d,h,c.inlineClassName,c.type)}}return i},r.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},r);function r(e,t,n,o){this.startColumn=e,this.endColumn=t,this.className=n,this.type=o}var a=function(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n},s=(l.prototype.consumeLowerThan=function(e,t,n){for(;0<this.count&&this.stopOffsets[0]<e;){for(var o=0;o+1<this.count&&this.stopOffsets[o]===this.stopOffsets[o+1];)o++;n.push(new a(t,this.stopOffsets[o],this.classNames.join(" "))),t=this.stopOffsets[o]+1,this.stopOffsets.splice(0,o+1),this.classNames.splice(0,o+1),this.count-=o+1}return 0<this.count&&t<e&&(n.push(new a(t,e-1,this.classNames.join(" "))),t=e),t},l.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++},l);function l(){this.stopOffsets=[],this.classNames=[],this.count=0}var c=(u.normalize=function(e,t){if(0===t.length)return[];for(var n=[],i=new s,r=0,a=0,l=t.length;a<l;a++){var c=t[a],u=c.startColumn,d=c.endColumn,h=c.className;if(1<u){var p=e.charCodeAt(u-2);o.z(p)&&u--}1<d&&(p=e.charCodeAt(d-2),o.z(p)&&d--);var f=u-1,g=d-2;r=i.consumeLowerThan(f,r,n),0===i.count&&(r=f),i.insert(g,h)}return i.consumeLowerThan(1073741824,r,n),n},u);function u(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var o=(i.prototype.nextId=function(){return this._prefix+ ++this._lastId},i);function i(e){this._prefix=e,this._lastId=0}var r=new o("id#")},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n(1355);var o,i=n(443),r=n(961),a=n(439),s=n(896),l=n(505),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=(Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")},enumerable:!0,configurable:!0}),d.prototype.dispose=function(){this.disposed=!0},d);function d(e){this._element=e}var h,p=(c(f,h=a.a),f.prototype.setLabel=function(e,t,n){var o=["monaco-icon-label"];n&&(n.extraClasses&&o.push.apply(o,n.extraClasses),n.italic&&o.push("italic")),this.domNode.className=o.join(" "),this.domNode.title=(null==n?void 0:n.title)||"",this.nameNode.setLabel(e,n),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof r.a?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),null!=n&&n.descriptionTitle?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=(null==n?void 0:n.descriptionTitle)||"",this.descriptionNode.empty=!t))},f);function f(e,t){var n=h.call(this)||this;n.domNode=n._register(new u(i.q(e,i.a(".monaco-icon-label"))));var o=i.q(n.domNode.element,i.a(".monaco-icon-label-container")),a=i.q(o,i.a("span.monaco-icon-name-container"));return n.descriptionContainer=n._register(new u(i.q(o,i.a("span.monaco-icon-description-container")))),null!=t&&t.supportHighlights?n.nameNode=new v(a,!!t.supportCodicons):n.nameNode=new g(a),null!=t&&t.supportDescriptionHighlights?n.descriptionNodeFactory=function(){return new r.a(i.q(n.descriptionContainer.element,i.a("span.label-description")),!!t.supportCodicons)}:n.descriptionNodeFactory=function(){return n._register(new u(i.q(n.descriptionContainer.element,i.a("span.label-description"))))},n}var g=(m.prototype.setLabel=function(e,t){if(this.label!==e||!Object(l.e)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerHTML="",i.P(this.container,"multiple"),this.singleLabel=i.q(this.container,i.a("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerHTML="",i.f(this.container,"multiple"),this.singleLabel=void 0;for(var n=0;n<e.length;n++){var o=e[n],r=(null==t?void 0:t.domId)&&(null==t?void 0:t.domId)+"_"+n;i.q(this.container,i.a("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":n},o)),n<e.length-1&&i.q(this.container,i.a("span.label-separator",void 0,(null==t?void 0:t.separator)||"/"))}}},m);function m(e){this.container=e,this.label=void 0,this.singleLabel=void 0}var v=(y.prototype.setLabel=function(e,t){if(this.label!==e||!Object(l.e)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerHTML="",i.P(this.container,"multiple"),this.singleLabel=new r.a(i.q(this.container,i.a("a.label-name",{id:null==t?void 0:t.domId})),this.supportCodicons)),this.singleLabel.set(e,null==t?void 0:t.matches,null==t?void 0:t.title,null==t?void 0:t.labelEscapeNewLines);else{this.container.innerHTML="",i.f(this.container,"multiple"),this.singleLabel=void 0;for(var n=(null==t?void 0:t.separator)||"/",o=function(e,t,n){if(n){var o=0;return e.map((function(e){var i={start:o,end:o+e.length},r=n.map((function(e){return s.a.intersect(i,e)})).filter((function(e){return!s.a.isEmpty(e)})).map((function(e){var t=e.start,n=e.end;return{start:t-o,end:n-o}}));return o=i.end+t.length,r}))}}(e,n,null==t?void 0:t.matches),a=0;a<e.length;a++){var c=e[a],u=o?o[a]:void 0,d=(null==t?void 0:t.domId)&&(null==t?void 0:t.domId)+"_"+a,h=i.a("a.label-name",{id:d,"data-icon-label-count":e.length,"data-icon-label-index":a});new r.a(i.q(this.container,h),this.supportCodicons).set(c,u,null==t?void 0:t.title,null==t?void 0:t.labelEscapeNewLines),a<e.length-1&&i.q(h,i.a("span.label-separator",void 0,n))}}},y);function y(e,t){this.container=e,this.supportCodicons=t,this.label=void 0,this.singleLabel=void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(505),i=n(890),r=n(444),a=(Object.defineProperty(s.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),s.prototype.set=function(e,t,n,i){void 0===t&&(t=[]),void 0===n&&(n=""),e=e||"",i&&(e=s.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===n&&o.e(this.highlights,t)||(Array.isArray(t)||(t=[]),this.text=e,this.title=n,this.highlights=t,this.render())},s.prototype.render=function(){for(var e="",t=0,n=0,o=this.highlights;n<o.length;n++){var a=o[n];if(a.end!==a.start){if(t<a.start){e+="<span>";var s=this.text.substring(t,a.start);e+=this.supportCodicons?Object(i.c)(Object(r.o)(s)):Object(r.o)(s),e+="</span>",t=a.end}a.extraClasses?e+='<span class="highlight '+a.extraClasses+'">':e+='<span class="highlight">';var l=this.text.substring(a.start,a.end);e+=this.supportCodicons?Object(i.c)(Object(r.o)(l)):Object(r.o)(l),e+="</span>",t=a.end}}t<this.text.length&&(e+="<span>",l=this.text.substring(t),e+=this.supportCodicons?Object(i.c)(Object(r.o)(l)):Object(r.o)(l),e+="</span>"),this.domNode.innerHTML=e,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},s.escapeNewLines=function(e,t){var n=0,o=0;return e.replace(/\r\n|\r|\n/g,(function(e,i){o="\r\n"===e?-1:0,i+=n;for(var r=0,a=t;r<a.length;r++){var s=a[r];s.end<=i||(s.start>=i&&(s.start+=o),s.end>=i&&(s.end+=o))}return n+=o,"\u23ce"}))},s);function s(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)}},function(e,t,n){"use strict";function o(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var o,i,r=n(479),a=n(554),s=n(448),l=n(553),c=Object(s.c)("contextService");function u(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=null),this._id=e,this._configuration=n,this._foldersMap=l.c.forPaths(),this.folders=t}(o||(o={})).isIWorkspace=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&Array.isArray(e.folders)},(i||(i={})).isIWorkspaceFolder=function(e){return e&&"object"==typeof e&&r.a.isUri(e.uri)&&"string"==typeof e.name&&"function"==typeof e.toResource},Object.defineProperty(u.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),u.prototype.getFolder=function(e){return e&&this._foldersMap.findSubstr(e.with({scheme:e.scheme,authority:e.authority,path:e.path}).toString())||null},u.prototype.updateFoldersMap=function(){this._foldersMap=l.c.forPaths();for(var e=0,t=this.folders;e<t.length;e++){var n=t[e];this._foldersMap.set(n.uri.toString(),n)}},u.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}};var d=(h.prototype.toResource=function(e){return a.f(this.uri,e)},h.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},h);function h(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}},function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return R}));var o,i,r=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},s=(l.isDigitCharacter=function(e){return 48<=e&&e<=57},l.isVariableCharacter=function(e){return 95===e||97<=e&&e<=122||65<=e&&e<=90},l.prototype.text=function(e){this.value=e,this.pos=0},l.prototype.tokenText=function(e){return this.value.substr(e.pos,e.len)},l.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var e,t=this.pos,n=0,o=this.value.charCodeAt(t);if("number"==typeof(e=l._table[o]))return this.pos+=1,{type:e,pos:t,len:1};if(l.isDigitCharacter(o)){for(e=8;n+=1,o=this.value.charCodeAt(t+n),l.isDigitCharacter(o););return this.pos+=n,{type:e,pos:t,len:n}}if(l.isVariableCharacter(o)){for(e=9;o=this.value.charCodeAt(t+ ++n),l.isVariableCharacter(o)||l.isDigitCharacter(o););return this.pos+=n,{type:e,pos:t,len:n}}for(e=10;n+=1,o=this.value.charCodeAt(t+n),!isNaN(o)&&void 0===l._table[o]&&!l.isDigitCharacter(o)&&!l.isVariableCharacter(o););return this.pos+=n,{type:e,pos:t,len:n}},l._table=((i={})[36]=0,i[58]=1,i[44]=2,i[123]=3,i[125]=4,i[92]=5,i[47]=6,i[124]=7,i[43]=11,i[45]=12,i[63]=13,i),l);function l(){this.value="",this.pos=0}var c=(u.prototype.appendChild=function(e){return e instanceof h&&this._children[this._children.length-1]instanceof h?this._children[this._children.length-1].value+=e.value:(e.parent=this)._children.push(e),this},u.prototype.replace=function(e,t){var n=e.parent,o=n.children.indexOf(e),i=n.children.slice(0);i.splice.apply(i,a([o,1],t)),n._children=i,function e(t,n){for(var o=0,i=t;o<i.length;o++){var r=i[o];r.parent=n,e(r.children,r)}}(t,n)},Object.defineProperty(u.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"snippet",{get:function(){for(var e=this;;){if(!e)return;if(e instanceof M)return e;e=e.parent}},enumerable:!0,configurable:!0}),u.prototype.toString=function(){return this.children.reduce((function(e,t){return e+t.toString()}),"")},u.prototype.len=function(){return 0},u);function u(){this._children=[]}var d,h=(r(p,d=c),p.prototype.toString=function(){return this.value},p.prototype.len=function(){return this.value.length},p.prototype.clone=function(){return new p(this.value)},p);function p(e){var t=d.call(this)||this;return t.value=e,t}var f,g=(r(m,f=c),m);function m(){return null!==f&&f.apply(this,arguments)||this}var v,y=(r(b,v=g),b.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(b.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof w?this._children[0]:void 0},enumerable:!0,configurable:!0}),b.prototype.clone=function(){var e=new b(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e},b);function b(e){var t=v.call(this)||this;return t.index=e,t}var _,w=(r(C,_=c),C.prototype.appendChild=function(e){return e instanceof h&&(e.parent=this).options.push(e),this},C.prototype.toString=function(){return this.options[0].value},C.prototype.len=function(){return this.options[0].len()},C.prototype.clone=function(){var e=new C;return this.options.forEach(e.appendChild,e),e},C);function C(){var e=null!==_&&_.apply(this,arguments)||this;return e.options=[],e}var S,O=(r(x,S=c),x.prototype.resolve=function(e){var t=this,n=!1,o=e.replace(this.regexp,(function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!n&&this._children.some((function(e){return e instanceof k&&Boolean(e.elseValue)}))&&(o=this._replace([])),o},x.prototype._replace=function(e){for(var t="",n=0,o=this._children;n<o.length;n++){var i=o[n];if(i instanceof k){var r=e[i.index]||"";t+=r=i.resolve(r)}else t+=i.toString()}return t},x.prototype.toString=function(){return""},x.prototype.clone=function(){var e=new x;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},x);function x(){var e=null!==S&&S.apply(this,arguments)||this;return e.regexp=new RegExp(""),e}var E,k=(r(N,E=c),N.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},N.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},N.prototype.clone=function(){return new N(this.index,this.shorthandName,this.ifValue,this.elseValue)},N);function N(e,t,n,o){var i=E.call(this)||this;return i.index=e,i.shorthandName=t,i.ifValue=n,i.elseValue=o,i}var D,L=(r(P,D=g),P.prototype.resolve=function(e){var t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new h(t)],!0)},P.prototype.clone=function(){var e=new P(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e},P);function P(e){var t=D.call(this)||this;return t.name=e,t}function I(e,t){for(var n=a(e);0<n.length;){var o=n.shift();if(!t(o))break;n.unshift.apply(n,o.children)}}var T,M=(r(j,T=c),Object.defineProperty(j.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk((function(n){return n instanceof y&&(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(j.prototype,"placeholders",{get:function(){return this.placeholderInfo.all},enumerable:!0,configurable:!0}),j.prototype.offset=function(e){var t=0,n=!1;return this.walk((function(o){return o===e?!(n=!0):(t+=o.len(),!0)})),n?t:-1},j.prototype.fullLen=function(e){var t=0;return I([e],(function(e){return t+=e.len(),!0})),t},j.prototype.enclosingPlaceholders=function(e){for(var t=[],n=e.parent;n;)n instanceof y&&t.push(n),n=n.parent;return t},j.prototype.resolveVariables=function(e){var t=this;return this.walk((function(n){return n instanceof L&&n.resolve(e)&&(t._placeholders=void 0),!0})),this},j.prototype.appendChild=function(e){return this._placeholders=void 0,T.prototype.appendChild.call(this,e)},j.prototype.replace=function(e,t){return this._placeholders=void 0,T.prototype.replace.call(this,e,t)},j.prototype.clone=function(){var e=new j;return this._children=this.children.map((function(e){return e.clone()})),e},j.prototype.walk=function(e){I(this.children,e)},j);function j(){return null!==T&&T.apply(this,arguments)||this}var R=(A.escape=function(e){return e.replace(/\$|}|\\/g,"\\$&")},A.prototype.parse=function(e,t,n){this._scanner.text(e),this._token=this._scanner.next();for(var o=new M;this._parse(o););var i=new Map,r=[],a=0;o.walk((function(e){return e instanceof y&&(a+=1,e.isFinalTabstop?i.set(0,void 0):!i.has(e.index)&&0<e.children.length?i.set(e.index,e.children):r.push(e)),!0}));for(var s=0,l=r;s<l.length;s++){var c=l[s],u=i.get(c.index);if(u){var d=new y(c.index);d.transform=c.transform;for(var h=0,p=u;h<p.length;h++){var f=p[h];d.appendChild(f.clone())}o.replace(c,[d])}}return n=n||0<a&&t,!i.has(0)&&n&&o.appendChild(new y(0)),o},A.prototype._accept=function(e,t){if(void 0!==e&&this._token.type!==e)return!1;var n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n},A.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1},A.prototype._until=function(e){for(var t=this._token;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 o=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),o},A.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)},A.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 h(t)),!0)},A.prototype._parseTabstopOrVariableName=function(e){var t,n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new y(Number(t)):new L(t)),!0):this._backTo(n)},A.prototype._parseComplexPlaceholder=function(e){var t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);var o=new y(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new h("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else{if(!(0<o.index&&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);for(var i=new w;;){if(this._parseChoiceElement(i)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(i),this._accept(4)))return e.appendChild(o),!0}return this._backTo(n),!1}}},A.prototype._parseChoiceElement=function(e){for(var t=this._token,n=[];2!==this._token.type&&7!==this._token.type;){var o=void 0;if(!(o=(o=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||o:this._accept(void 0,!0)))return this._backTo(t),!1;n.push(o)}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new h(n.join(""))),!0)},A.prototype._parseComplexVariable=function(e){var t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);var o=new L(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);for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new h("${"+t+":")),o.children.forEach(e.appendChild,e),!0}},A.prototype._parseTransform=function(e){for(var t=new O,n="",o="";!this._accept(6);){var i=void 0;if(i=this._accept(5,!0))n+=i=this._accept(6,!0)||i;else{if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}}for(;!this._accept(6);)if(i=void 0,i=this._accept(5,!0))i=this._accept(5,!0)||this._accept(6,!0)||i,t.appendChild(new h(i));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1;for(;!this._accept(4);){if(14===this._token.type)return!1;o+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,o)}catch(e){return!1}return e.transform=t,!0},A.prototype._parseFormatString=function(e){var t=this._token;if(!this._accept(0))return!1;var n=!1;this._accept(3)&&(n=!0);var o=this._accept(8,!0);if(!o)return this._backTo(t),!1;if(!n)return e.appendChild(new k(Number(o))),!0;if(this._accept(4))return e.appendChild(new k(Number(o))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){var i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new k(Number(o),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){if(r=this._until(4))return e.appendChild(new k(Number(o),void 0,r,void 0)),!0}else if(this._accept(12)){if(a=this._until(4))return e.appendChild(new k(Number(o),void 0,void 0,a)),!0}else if(this._accept(13)){var r;if((r=this._until(1))&&(a=this._until(4)))return e.appendChild(new k(Number(o),void 0,r,a)),!0}else{var a;if(a=this._until(4))return e.appendChild(new k(Number(o),void 0,void 0,a)),!0}return this._backTo(t),!1},A.prototype._parseAnything=function(e){return 14!==this._token.type&&(e.appendChild(new h(this._scanner.tokenText(this._token))),this._accept(void 0),!0)},A);function A(){this._scanner=new s,this._token={type:14,pos:0,len:0}}},,,,function(e,t,n){"use strict";n(1357);var o=n(449),i=n(495),r=n(443),a=(n(1358),n(445)),s=n(452),l=n(465),c=(u.prototype.getId=function(e,t){if(!t)return null;var n=this.modelProvider.getModel();return n===t?"__root__":n.dataSource.getId(t)},u.prototype.hasChildren=function(e,t){var n=this.modelProvider.getModel();return!!(n&&n===t&&0<n.entries.length)},u.prototype.getChildren=function(e,t){var n=this.modelProvider.getModel();return Promise.resolve(n===t?n.entries:[])},u.prototype.getParent=function(e,t){return Promise.resolve(null)},u);function u(e){this.modelProvider=Object(l.g)(e.getModel)?e:{getModel:function(){return e}}}var d=(h.prototype.getAriaLabel=function(e,t){var n=this.modelProvider.getModel();return n.accessibilityProvider?n.accessibilityProvider.getAriaLabel(t):null},h.prototype.getPosInSet=function(e,t){var n=this.modelProvider.getModel(),o=0;if(n.filter)for(var i=0,r=n.entries;i<r.length;i++){var a=r[i];if(n.filter.isVisible(a)&&o++,a===t)break}else o=n.entries.indexOf(t)+1;return String(o)},h.prototype.getSetSize=function(){var e=this.modelProvider.getModel(),t=0;if(e.filter)for(var n=0,o=e.entries;n<o.length;n++){var i=o[n];e.filter.isVisible(i)&&t++}else t=e.entries.length;return String(t)},h);function h(e){this.modelProvider=e}var p=(f.prototype.isVisible=function(e,t){var n=this.modelProvider.getModel();return!n.filter||n.filter.isVisible(t)},f);function f(e){this.modelProvider=e}var g=(m.prototype.updateStyles=function(e){this.styles=e},m.prototype.getHeight=function(e,t){return this.modelProvider.getModel().renderer.getHeight(t)},m.prototype.getTemplateId=function(e,t){return this.modelProvider.getModel().renderer.getTemplateId(t)},m.prototype.renderTemplate=function(e,t,n){return this.modelProvider.getModel().renderer.renderTemplate(t,n,this.styles)},m.prototype.renderElement=function(e,t,n,o){this.modelProvider.getModel().renderer.renderElement(t,n,o,this.styles)},m.prototype.disposeTemplate=function(e,t,n){this.modelProvider.getModel().renderer.disposeTemplate(t,n)},m);function m(e,t){this.modelProvider=e,this.styles=t}var v=n(976),y=(n(1359),n(446)),b=n(548),_=(w.prototype.set=function(e,t){this._arr.push({keybinding:Object(b.f)(e,s.a),callback:t})},w.prototype.dispatch=function(e){for(var t=this._arr.length-1;0<=t;t--){var n=this._arr[t];if(e.toChord().equals(n.keybinding))return n.callback}return null},w);function w(){this._arr=[]}var C=(S.prototype.onMouseDown=function(e,t,n,o){if(void 0===o&&(o="mouse"),0!==this.options.clickBehavior||!n.leftButton&&!n.middleButton)return!1;if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(r.x(n.target,"scrollbar","monaco-tree"))return!1;if(r.x(n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,o)},S.prototype.onClick=function(e,t,n){return s.e&&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)},S.prototype.onLeftClick=function(e,t,n,o){void 0===o&&(o="mouse");var i=n,r={origin:o,originalEvent:n,didClickOnTwistie:this.isClickOnTwistie(i)};return e.getInput()===t?(e.clearFocus(r),e.clearSelection(r)):(n&&i.browserEvent&&"mousedown"===i.browserEvent.type&&1===i.browserEvent.detail||n.preventDefault(),n.stopPropagation(),e.domFocus(),e.setSelection([t],r),e.setFocus(t,r),this.shouldToggleExpansion(t,i,o)&&(e.isExpanded(t)?e.collapse(t).then(void 0,y.e):e.expand(t).then(void 0,y.e))),!0},S.prototype.shouldToggleExpansion=function(e,t,n){var o="mouse"===n&&2===t.detail;return this.openOnSingleClick||o||this.isClickOnTwistie(t)},Object.defineProperty(S.prototype,"openOnSingleClick",{get:function(){return 0===this.options.openMode},enumerable:!0,configurable:!0}),S.prototype.isClickOnTwistie=function(e){var t=e.target;if(!r.I(t,"content"))return!1;var n=window.getComputedStyle(t,":before");if("none"===n.backgroundImage||"none"===n.display)return!1;var o=parseInt(n.width)+parseInt(n.paddingRight);return e.browserEvent.offsetX<=o},S.prototype.onContextMenu=function(e,t,n){return n.target&&n.target.tagName&&"input"===n.target.tagName.toLowerCase()||n&&(n.preventDefault(),n.stopPropagation()),!1},S.prototype.onTap=function(e,t,n){var o=n.initialTarget;return(!o||!o.tagName||"input"!==o.tagName.toLowerCase())&&this.onLeftClick(e,t,n,"touch")},S.prototype.onKeyDown=function(e,t){return this.onKey(this.downKeyBindingDispatcher,e,t)},S.prototype.onKeyUp=function(e,t){return this.onKey(this.upKeyBindingDispatcher,e,t)},S.prototype.onKey=function(e,t,n){var o=e.dispatch(n.toKeybinding());return!(!o||!o(t,n)||(n.preventDefault(),n.stopPropagation(),0))},S.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,y.e)),!0},S.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,y.e)),!0},S.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,y.e)),!0},S.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,y.e)),!0},S.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,y.e)),!0},S.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,y.e)),!0},S.prototype.onLeft=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var o=e.getFocus();e.collapse(o).then((function(t){if(o&&!t)return e.focusParent(n),e.reveal(e.getFocus())})).then(void 0,y.e)}return!0},S.prototype.onRight=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var o=e.getFocus();e.expand(o).then((function(t){if(o&&!t)return e.focusFirstChild(n),e.reveal(e.getFocus())})).then(void 0,y.e)}return!0},S.prototype.onEnter=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())return!1;var o=e.getFocus();return o&&e.setSelection([o],n),!0},S.prototype.onSpace=function(e,t){if(e.getHighlight())return!1;var n=e.getFocus();return n&&e.toggleExpansion(n),!0},S.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)},S);function S(e){var t=this;void 0===e&&(e={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=e,this.downKeyBindingDispatcher=new _,this.upKeyBindingDispatcher=new _,"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)))}var O=(x.prototype.getDragURI=function(e,t){return null},x.prototype.onDragStart=function(e,t,n){},x.prototype.onDragOver=function(e,t,n,o){return null},x.prototype.drop=function(e,t,n,o){},x);function x(){}var E=(k.prototype.isVisible=function(e,t){return!0},k);function k(){}var N=(D.prototype.getAriaLabel=function(e,t){return null},D);function D(){}var L=(P.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 o=n.join("\n");o!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=o)},P);function P(e,t){this.styleElement=e,this.selectorSuffix=t}var I,T=n(944),M=n(439),j=n(442),R=(I=function(e,t){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}I(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),A=(Object.defineProperty(F.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),F.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},F);function F(e){this._onDispose=new j.a,this.onDispose=this._onDispose.event,this._item=e}var V=(W.prototype.isLocked=function(e){return!!this.locks[e.id]},W.prototype.run=function(e,t){var n=this,o=this.getLock(e);return new Promise(o?function(i,r){j.b.once(o.onDispose)((function(){return n.run(e,t).then(i,r)}))}:function(o,i){if(e.isDisposed())return i(new Error("Item is disposed."));var r=n.locks[e.id]=new A(e);return t().then((function(t){return delete n.locks[e.id],r.dispose(),t})).then(o,i)})},W.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},W);function W(){this.locks=Object.create({})}var B=(H.prototype.register=function(e){T.a(!this.isRegistered(e.id),"item already registered: "+e.id);var t=Object(M.e)(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}},H.prototype.deregister=function(e){T.a(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},H.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},H.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},H.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},H.prototype.isDisposed=function(){return this._isDisposed},H);function H(){this._isDisposed=!1,this._onDidRevealItem=new j.d,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new j.d,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new j.d,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new j.d,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new j.d,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new j.d,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new j.d,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new j.d,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new j.d,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new j.d,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new j.d,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}var z=(K.prototype.getElement=function(){return this.element},K.prototype.hasChildren=function(){return this.doesHaveChildren},K.prototype.getDepth=function(){return this.depth},K.prototype.isVisible=function(){return this.visible},K.prototype.setVisible=function(e){this.visible=e},K.prototype.isExpanded=function(){return this.expanded},K.prototype._setExpanded=function(e){this.expanded=e},K.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)},K.prototype.expand=function(){var e=this;return this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,(function(){if(e.isExpanded()||!e.doesHaveChildren)return Promise.resolve(!1);var t={item:e};return e._onExpand.fire(t),(e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Promise.resolve(null)).then((function(){return e._setExpanded(!0),e._onDidExpand.fire(t),!0}))})).then((function(t){return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then((function(){return!0})):t)}))},K.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)}))},K.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},K.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},K.prototype.hasTrait=function(e){return this.traits[e]||!1},K.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},K.prototype.getHeight=function(){return this.height},K.prototype.refreshChildren=function(e,t,n){var o=this;if(void 0===t&&(t=!1),void 0===n&&(n=!1),!n&&!this.isExpanded())return function e(t){t.needsChildrenRefresh=!0,t.forEachChild(e)}(this),Promise.resolve(this);function i(){var n={item:o,isNested:t};return o._onRefreshChildren.fire(n),(o.doesHaveChildren?o.context.dataSource.getChildren(o.context.tree,o.element):Promise.resolve([])).then((function(t){if(o.isDisposed()||o.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(t))return Promise.reject(new Error("Please return an array of children."));t=t?t.slice(0):[],t=o.sort(t);for(var n={};null!==o.firstChild;)n[o.firstChild.id]=o.firstChild,o.removeChild(o.firstChild);for(var i=0,r=t.length;i<r;i++){var a=t[i],s=o.context.dataSource.getId(o.context.tree,a),l=n[s]||new K(s,o.registry,o.context,o.lock,a);l.element=a,e&&(l.needsChildrenRefresh=e),delete n[s],o.addChild(l)}for(var c in n)n.hasOwnProperty(c)&&n[c].dispose();return e?Promise.all(o.mapEachChild((function(t){return t.doRefresh(e,!0)}))):Promise.all(o.mapEachChild((function(t){return t.isExpanded()&&t.needsChildrenRefresh?t.doRefresh(e,!0):(t.updateVisibility(),Promise.resolve(null))})))})).then(void 0,y.e).then((function(){return o._onDidRefreshChildren.fire(n)}))}return this.needsChildrenRefresh=!1,t?i():this.lock.run(this,i)},K.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)},K.prototype.updateVisibility=function(){this.setVisible(this._isVisible())},K.prototype.refresh=function(e){return this.doRefresh(e)},K.prototype.getNavigator=function(){return new Y(this)},K.prototype.intersects=function(e){return this.isAncestorOf(e)||e.isAncestorOf(this)},K.prototype.isAncestorOf=function(e){for(var t=e;t;){if(t.id===this.id)return!0;t=t.parent}return!1},K.prototype.addChild=function(e,t){void 0===t&&(t=this.lastChild);var n=null===this.firstChild,o=null===t,i=t===this.lastChild;if(n)this.firstChild=this.lastChild=e,e.next=e.previous=null;else if(o){if(!this.firstChild)throw new Error("Invalid tree state");(this.firstChild.previous=e).next=this.firstChild,e.previous=null,this.firstChild=e}else if(i){if(!this.lastChild)throw new Error("Invalid tree state");(this.lastChild.next=e).next=null,e.previous=this.lastChild,this.lastChild=e}else{if(!(e.previous=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},K.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},K.prototype.forEachChild=function(e){for(var t,n=this.firstChild;n;)t=n.next,e(n),n=t},K.prototype.mapEachChild=function(e){var t=[];return this.forEachChild((function(n){t.push(e(n))})),t},K.prototype.sort=function(e){var t=this,n=this.context.sorter;return n?e.sort((function(e,o){return n.compare(t.context.tree,e,o)})):e},K.prototype._getHeight=function(){return this.context.renderer?this.context.renderer.getHeight(this.context.tree,this.element):0},K.prototype._isVisible=function(){return!!this.context.filter&&this.context.filter.isVisible(this.context.tree,this.element)},K.prototype.isDisposed=function(){return this._isDisposed},K.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},K);function K(e,t,n,o,i){this._onDidCreate=new j.a,this._onDidReveal=new j.a,this.onDidReveal=this._onDidReveal.event,this._onExpand=new j.a,this.onExpand=this._onExpand.event,this._onDidExpand=new j.a,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new j.a,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new j.a,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new j.a,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new j.a,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new j.a,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new j.a,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new j.a,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new j.a,this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=n,this.lock=o,this.element=i,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,i)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}var U,q=(R(G,U=z),G.prototype.isVisible=function(){return!1},G.prototype.setVisible=function(e){},G.prototype.isExpanded=function(){return!0},G.prototype._setExpanded=function(e){},G.prototype._getHeight=function(){return 0},G.prototype._isVisible=function(){return!1},G);function G(e,t,n,o,i){return U.call(this,e,t,n,o,i)||this}var Y=(Z.lastDescendantOf=function(e){return e?e instanceof q?Z.lastDescendantOf(e.lastChild):e.isVisible()?e.isExpanded()&&null!==e.lastChild?Z.lastDescendantOf(e.lastChild):e:Z.lastDescendantOf(e.previous):null},Z.prototype.current=function(){return this.item||null},Z.prototype.next=function(){if(this.item)do{if((this.item instanceof q||this.item.isVisible()&&this.item.isExpanded())&&this.item.firstChild)this.item=this.item.firstChild;else if(this.item===this.start)this.item=null;else{for(;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},Z.prototype.previous=function(){if(this.item)do{var e=Z.lastDescendantOf(this.item.previous);e?this.item=e: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},Z.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},Z.prototype.first=function(){return this.item=this.start,this.next(),this.item||null},Z.prototype.last=function(){return Z.lastDescendantOf(this.start)},Z);function Z(e,t){void 0===t&&(t=!0),this.item=e,this.start=t?e:null}var $=(X.prototype.setInput=function(e){var t=this,n={item:this.input};this._onSetInput.fire(n),this.setSelection([]),this.setFocus(),this.setHighlight(),this.lock=new V,this.input&&this.input.dispose(),this.registry&&(this.registry.dispose(),this.registryDisposable.dispose()),this.registry=new B,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 o=this.context.dataSource.getId(this.context.tree,e);return this.input=new q(o,this.registry,this.context,this.lock,e),n={item:this.input},this._onDidSetInput.fire(n),this.refresh(this.input)},X.prototype.getInput=function(){return this.input?this.input.getElement():null},X.prototype.refresh=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=!0);var o=this.getItem(e);if(!o)return Promise.resolve(null);var i={item:o,recursive:t};return this._onRefresh.fire(i),o.refresh(t).then((function(){n._onDidRefresh.fire(i)}))},X.prototype.expand=function(e){var t=this.getItem(e);return t?t.expand():Promise.resolve(!1)},X.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getItem(e);return n?n.collapse(t):Promise.resolve(!1)},X.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.isExpanded(e)?this.collapse(e,t):this.expand(e)},X.prototype.isExpanded=function(e){var t=this.getItem(e);return!!t&&t.isExpanded()},X.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 o=n.getItem(e);if(o)return o.reveal(t)}))},X.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([])}))},X.prototype.setHighlight=function(e,t){this.setTraits("highlighted",e?[e]:[]);var n={highlight:this.getHighlight(),payload:t};this._onDidHighlight.fire(n)},X.prototype.getHighlight=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("highlighted",e);return 0===t.length?null:t[0]},X.prototype.setSelection=function(e,t){this.setTraits("selected",e);var n={selection:this.getSelection(),payload:t};this._onDidSelect.fire(n)},X.prototype.getSelection=function(e){return void 0===e&&(e=!1),this.getElementsWithTrait("selected",e)},X.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var n={focus:this.getFocus(),payload:t};this._onDidFocus.fire(n)},X.prototype.getFocus=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0]},X.prototype.focusNext=function(e,t){void 0===e&&(e=1);for(var n,o=this.getFocus()||this.input,i=this.getNavigator(o,!1),r=0;r<e&&(n=i.next());r++)o=n;this.setFocus(o,t)},X.prototype.focusPrevious=function(e,t){void 0===e&&(e=1);for(var n,o=this.getFocus()||this.input,i=this.getNavigator(o,!1),r=0;r<e&&(n=i.previous());r++)o=n;this.setFocus(o,t)},X.prototype.focusParent=function(e){var t=this.getFocus()||this.input,n=this.getNavigator(t,!1).parent();n&&this.setFocus(n,e)},X.prototype.focusFirstChild=function(e){var t=this.getItem(this.getFocus()||this.input),n=this.getNavigator(t,!1),o=n.next();n.parent()===t&&this.setFocus(o,e)},X.prototype.focusFirst=function(e,t){this.focusNth(0,e,t)},X.prototype.focusNth=function(e,t,n){for(var o=this.getParent(n),i=this.getNavigator(o),r=i.first(),a=0;a<e;a++)r=i.next();r&&this.setFocus(r,t)},X.prototype.focusLast=function(e,t){var n,o=this.getParent(t);(n=t&&o?o.lastChild:this.getNavigator(o).last())&&this.setFocus(n,e)},X.prototype.getParent=function(e){if(e){var t=this.getItem(e);if(t&&t.parent)return t.parent}return this.getItem(this.input)},X.prototype.getNavigator=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!0),new Y(this.getItem(e),t)},X.prototype.getItem=function(e){return void 0===e&&(e=null),null===e?this.input:e instanceof z?e:"string"==typeof e?this.registry.getItem(e):this.registry.getItem(this.context.dataSource.getId(this.context.tree,e))},X.prototype.removeTraits=function(e,t){var n,o,i=this.traitsToItems[e]||{};if(0===t.length){for(o in i)i.hasOwnProperty(o)&&(n=i[o]).removeTrait(e);delete this.traitsToItems[e]}else for(var r=0,a=t.length;r<a;r++)(n=this.getItem(t[r]))&&(n.removeTrait(e),delete i[n.id])},X.prototype.setTraits=function(e,t){if(0===t.length)this.removeTraits(e,t);else{for(var n={},o=void 0,i=0,r=t.length;i<r;i++)(o=this.getItem(t[i]))&&(n[o.id]=o);var a=this.traitsToItems[e]||{},s=[],l=void 0;for(l in a)a.hasOwnProperty(l)&&(n.hasOwnProperty(l)?delete n[l]:s.push(a[l]));for(i=0,r=s.length;i<r;i++)(o=s[i]).removeTrait(e),delete a[o.id];for(l in n)n.hasOwnProperty(l)&&((o=n[l]).addTrait(e),a[l]=o);this.traitsToItems[e]=a}},X.prototype.getElementsWithTrait=function(e,t){var n,o=[],i=this.traitsToItems[e]||{};for(n in i)i.hasOwnProperty(n)&&(i[n].isVisible()||t)&&o.push(i[n].getElement());return o},X.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()},X);function X(e){this.registry=new B,this.registryDisposable=M.a.None,this._onSetInput=new j.a,this.onSetInput=this._onSetInput.event,this._onDidSetInput=new j.a,this.onDidSetInput=this._onDidSetInput.event,this._onRefresh=new j.a,this.onRefresh=this._onRefresh.event,this._onDidRefresh=new j.a,this.onDidRefresh=this._onDidRefresh.event,this._onDidHighlight=new j.a,this.onDidHighlight=this._onDidHighlight.event,this._onDidSelect=new j.a,this.onDidSelect=this._onDidSelect.event,this._onDidFocus=new j.a,this.onDidFocus=this._onDidFocus.event,this._onDidRevealItem=new j.f,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new j.f,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new j.f,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new j.f,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new j.f,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new j.f,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new j.f,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new j.f,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new j.f,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new j.f,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new j.f,this.context=e,this.input=null,this.traitsToItems={}}var J=n(478),Q=n(977),ee=n(702),te=n(444),ne=n(595),oe=n(701),ie=(re.prototype.update=function(e){},re.prototype.getData=function(){return this.elements},re);function re(e){this.elements=e}var ae=(se.prototype.update=function(e){},se.prototype.getData=function(){return this.elements},se);function se(e){this.elements=e}var le=(ce.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})))},ce.prototype.getData=function(){return{types:this.types,files:this.files}},ce);function ce(){this.types=[],this.files=[]}var ue=n(700),de=n(688),he=(pe.prototype.getContentHeight=function(){var e=this.heightMap[this.heightMap.length-1];return e?e.top+e.height:0},pe.prototype.onInsertItems=function(e,t){void 0===t&&(t=null);var n,o,i,r,a=null,s=0;if(null===t)r=o=0;else{if(o=this.indexes[t]+1,!(n=this.heightMap[o-1]))return;r=n.top+n.height}for(var l=this.heightMap.splice.bind(this.heightMap,o,0),c=[];a=e.next();)(n=this.createViewItem(a)).top=r+s,this.indexes[a.id]=o++,c.push(n),s+=n.height;for(l.apply(this.heightMap,c),i=o;i<this.heightMap.length;i++)(n=this.heightMap[i]).top+=s,this.indexes[n.model.id]=i;for(i=c.length-1;0<=i;i--)this.onInsertItem(c[i]);for(i=this.heightMap.length-1;o<=i;i--)this.onRefreshItem(this.heightMap[i]);return s},pe.prototype.onInsertItem=function(e){},pe.prototype.onRemoveItems=function(e){for(var t,n=null,o=null,i=0,r=0;n=e.next();){if(i=this.indexes[n],!(t=this.heightMap[i]))return;r-=t.height,delete this.indexes[n],this.onRemoveItem(t),null===o&&(o=i)}if(0!==r&&null!==o)for(this.heightMap.splice(o,i-o+1),i=o;i<this.heightMap.length;i++)(t=this.heightMap[i]).top+=r,this.indexes[t.model.id]=i,this.onRefreshItem(t)},pe.prototype.onRemoveItem=function(e){},pe.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 ue.a(n))},pe.prototype.onRefreshItems=function(e){for(var t,n,o,i=null,r=null,a=0;i=e.next();){for(o=this.indexes[i.id];0!==a&&null!==r&&r<o;r++)(t=this.heightMap[r]).top+=a,this.onRefreshItem(t);t=this.heightMap[o],n=i.getHeight(),t.top+=a,a+=n-t.height,t.height=n,this.onRefreshItem(t,!0),r=o+1}if(0!==a&&null!==r)for(;r<this.heightMap.length;r++)(t=this.heightMap[r]).top+=a,this.onRefreshItem(t)},pe.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1)},pe.prototype.indexAt=function(e){for(var t,n,o=0,i=this.heightMap.length;o<i;)if(t=Math.floor((o+i)/2),e<(n=this.heightMap[t]).top)i=t;else{if(!(e>=n.top+n.height))return t;if(o===t)break;o=t}return this.heightMap.length},pe.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},pe.prototype.itemAtIndex=function(e){return this.heightMap[e]},pe.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},pe.prototype.createViewItem=function(e){throw new Error("not implemented")},pe.prototype.dispose=function(){this.heightMap=[],this.indexes={}},pe);function pe(){this.heightMap=[],this.indexes={}}var fe,ge=(fe=function(e,t){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}fe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),me=(ve.prototype.preventDefault=function(){},ve.prototype.stopPropagation=function(){},Object.defineProperty(ve.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),ve);function ve(e,t,n){this._posx=e,this._posy=t,this._target=n}var ye,be=(ge(_e,ye=me),_e.prototype.preventDefault=function(){this.originalEvent.preventDefault()},_e.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},_e);function _e(e){var t=ye.call(this,e.posx,e.posy,e.target)||this;return t.originalEvent=e,t}var we,Ce=(ge(Se,we=me),Se.prototype.preventDefault=function(){this.originalEvent.preventDefault()},Se.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},Se);function Se(e,t,n){var o=we.call(this,e,t,n.target)||this;return o.originalEvent=n,o}var Oe,xe=n(888),Ee=n(453),ke=(Oe=function(e,t){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ne=(De.prototype.alloc=function(e){var t=this.cache(e).pop();if(!t){var n=document.createElement("div");n.className="content";var o=document.createElement("div");o.appendChild(n);var i=null;try{i=this.context.renderer.renderTemplate(this.context.tree,e,n)}catch(e){}t={element:o,templateId:e,templateData:i}}return t},De.prototype.release=function(e,t){!function(e){try{e.parentElement.removeChild(e)}catch(e){}}(t.element),this.cache(e).push(t)},De.prototype.cache=function(e){return this._cache[e]||(this._cache[e]=[])},De.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]}))},De.prototype.dispose=function(){this.garbageCollect(),this._cache=null},De);function De(e){this.context=e,this._cache={"":[]}}var Le=(Object.defineProperty(Pe.prototype,"expanded",{set:function(e){e?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"loading",{set:function(e){e?this.addClass("codicon-loading"):this.removeClass("codicon-loading")},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable=e,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"dropTarget",{set:function(e){e?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.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}),Pe.prototype.addClass=function(e){this._styles[e]=!0,this.render(!0)},Pe.prototype.removeClass=function(e){delete this._styles[e],this.render(!0)},Pe.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 o=this.context.accessibilityProvider,i=o.getAriaLabel(this.context.tree,this.model.getElement());if(i&&this.element.setAttribute("aria-label",i),o.getPosInSet&&o.getSetSize&&(this.element.setAttribute("aria-setsize",o.getSetSize()),this.element.setAttribute("aria-posinset",o.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var a=te.L(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",a)}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=r.j(this.element,"dragstart",(function(e){t.onDragStart(e)}))):this.uri=null),!e&&this.element){var l=0;if(this.context.horizontalScrolling){var c=window.getComputedStyle(this.element);l=parseFloat(c.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width=J.h?"-moz-fit-content":"fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(e){}this.context.horizontalScrolling&&(this.width=r.B(this.element)+l,this.element.style.width="")}}},Pe.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[Re.BINDING]=this),!this.element.parentElement){if(null===t)e.appendChild(this.element);else try{e.insertBefore(this.element,t)}catch(t){e.appendChild(this.element)}this.render()}},Pe.prototype.removeFromDOM=function(){this.row&&(this.unbindDragStart.dispose(),this.uri=null,this.element[Re.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null)},Pe.prototype.dispose=function(){this.row=null},Pe);function Pe(e,t){var n=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=M.a.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")}var Ie,Te=(ke(Me,Ie=Le),Me.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(" ")}},Me.prototype.insertInDOM=function(e,t){},Me.prototype.removeFromDOM=function(){},Me);function Me(e,t,n){var o=Ie.call(this,e,t)||this;return o.row={element:n,templateData:null,templateId:null},o}var je,Re=(ke(Ae,je=he),Ae.prototype.applyStyles=function(e){this.treeStyler.style(e)},Ae.prototype.createViewItem=function(e){return new Le(this.context,e)},Ae.prototype.getHTMLElement=function(){return this.domNode},Ae.prototype.focus=function(){this.domNode.focus()},Ae.prototype.isFocused=function(){return document.activeElement===this.domNode},Ae.prototype.blur=function(){this.domNode.blur()},Ae.prototype.setupMSGesture=function(){var e=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout((function(){return e.msGesture.target=e.wrapper}),100))},Ae.prototype.isTreeVisible=function(){return null===this.onHiddenScrollTop},Ae.prototype.layout=function(e,t){this.isTreeVisible()&&(this.viewHeight=e||r.A(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=t||r.B(this.wrapper)))},Ae.prototype.render=function(e,t,n,o,i){var r,a,s=e,l=e+t,c=this.lastRenderTop+this.lastRenderHeight;for(r=this.indexAfter(l)-1,a=this.indexAt(Math.max(c,s));a<=r;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(l))-1,a=this.indexAt(s);a<=r;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=this.indexAt(this.lastRenderTop),a=Math.min(this.indexAt(s),this.indexAfter(c));r<a;r++)this.removeItemFromDOM(this.itemAtIndex(r));for(r=Math.max(this.indexAfter(l),this.indexAt(this.lastRenderTop)),a=this.indexAfter(c);r<a;r++)this.removeItemFromDOM(this.itemAtIndex(r));var u=this.itemAtIndex(this.indexAt(s));u&&(this.rowsContainer.style.top=u.top-s+"px"),this.horizontalScrolling&&(this.rowsContainer.style.left=-n+"px",this.rowsContainer.style.width=Math.max(i,o)+"px"),this.lastRenderTop=s,this.lastRenderHeight=l-s},Ae.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)},Ae.prototype.onRefreshing=function(){this.isRefreshing=!0},Ae.prototype.onRefreshed=function(){this.isRefreshing=!1,this.onRowsChanged()},Ae.prototype.onRowsChanged=function(e){void 0===e&&(e=this.scrollTop),this.isRefreshing||(this.scrollTop=e,this.updateScrollWidth())},Ae.prototype.updateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.contentWidthUpdateDelayer.trigger((function(){for(var t=0,n=0,o=Object.keys(e.items);n<o.length;n++){var i=o[n];t=Math.max(t,e.items[i].width)}e.scrollWidth=t+10}))},Ae.prototype.focusNextPage=function(e){var t=this,n=this.indexAt(this.scrollTop+this.viewHeight);n=0===n?0:n-1;var o=this.itemAtIndex(n).model.getElement();if(this.model.getFocus()!==o)this.model.setFocus(o,e);else{var i=this.scrollTop;this.scrollTop+=this.viewHeight,this.scrollTop!==i&&setTimeout((function(){t.focusNextPage(e)}),0)}},Ae.prototype.focusPreviousPage=function(e){var t,n=this;t=0===this.scrollTop?this.indexAt(this.scrollTop):this.indexAfter(this.scrollTop-1);var o=this.itemAtIndex(t).model.getElement();if(this.model.getFocus()!==o)this.model.setFocus(o,e);else{var i=this.scrollTop;this.scrollTop-=this.viewHeight,this.scrollTop!==i&&setTimeout((function(){n.focusPreviousPage(e)}),0)}},Object.defineProperty(Ae.prototype,"viewHeight",{get:function(){return this.scrollableElement.getScrollDimensions().height},set:function(e){this.scrollableElement.setScrollDimensions({height:e})},enumerable:!0,configurable:!0}),Object.defineProperty(Ae.prototype,"scrollHeight",{set:function(e){e+=this.horizontalScrolling?10:0,this.scrollableElement.setScrollDimensions({scrollHeight:e})},enumerable:!0,configurable:!0}),Object.defineProperty(Ae.prototype,"viewWidth",{get:function(){return this.scrollableElement.getScrollDimensions().width},set:function(e){this.scrollableElement.setScrollDimensions({width:e})},enumerable:!0,configurable:!0}),Object.defineProperty(Ae.prototype,"scrollWidth",{set:function(e){this.scrollableElement.setScrollDimensions({scrollWidth:e})},enumerable:!0,configurable:!0}),Object.defineProperty(Ae.prototype,"scrollTop",{get:function(){return this.scrollableElement.getScrollPosition().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}),Ae.prototype.onClearingInput=function(e){var t=e.item;t&&(this.onRemoveItems(new ue.e(t.getNavigator(),(function(e){return e&&e.id}))),this.onRowsChanged())},Ae.prototype.onSetInput=function(e){this.context.cache.garbageCollect(),this.inputItem=new Te(this.context,e.item,this.wrapper)},Ae.prototype.onItemChildrenRefreshing=function(e){var t=e.item,n=this.items[t.id];if(n&&this.context.options.showLoading&&(n.loadingTimer=setTimeout((function(){n.loadingTimer=0,n.loading=!0}),Ae.LOADING_DECORATION_DELAY)),!e.isNested){for(var o=[],i=t.getNavigator(),r=void 0;r=i.next();)o.push(r.id);this.refreshingPreviousChildrenIds[t.id]=o}},Ae.prototype.onItemChildrenRefreshed=function(e){var t=this,n=e.item,o=this.items[n.id];if(o&&(o.loadingTimer&&(clearTimeout(o.loadingTimer),o.loadingTimer=0),o.loading=!1),!e.isNested){for(var i=this.refreshingPreviousChildrenIds[n.id],r=[],a=n.getNavigator(),s=void 0;s=a.next();)r.push(s);var l=1e3<Math.abs(i.length-r.length),c=[],u=!1;if(l||(u=(c=new Q.a({getElements:function(){return i}},{getElements:function(){return r.map((function(e){return e.id}))}},null).ComputeDiff(!1).changes).some((function(e){if(0<e.modifiedLength)for(var n=e.modifiedStart,o=e.modifiedStart+e.modifiedLength;n<o;n++)if(t.items.hasOwnProperty(r[n].id))return!0;return!1}))),!l&&!u&&c.length<50)for(var d=0,h=c;d<h.length;d++){var p=h[d];if(0<p.originalLength&&this.onRemoveItems(new ue.a(i,p.originalStart,p.originalStart+p.originalLength)),0<p.modifiedLength){var f=r[p.modifiedStart-1]||n;f=0<f.getDepth()?f:null,this.onInsertItems(new ue.a(r,p.modifiedStart,p.modifiedStart+p.modifiedLength),f?f.id:null)}}else(l||c.length)&&(this.onRemoveItems(new ue.a(i)),this.onInsertItems(new ue.a(r),0<n.getDepth()?n.id:null));(l||c.length)&&this.onRowsChanged()}},Ae.prototype.onItemRefresh=function(e){this.onItemsRefresh([e])},Ae.prototype.onItemsRefresh=function(e){var t=this;this.onRefreshItemSet(e.filter((function(e){return t.items.hasOwnProperty(e.id)}))),this.onRowsChanged()},Ae.prototype.onItemExpanding=function(e){var t=this.items[e.item.id];t&&(t.expanded=!0)},Ae.prototype.onItemExpanded=function(e){var t=e.item,n=this.items[t.id];if(n){n.expanded=!0;var o=this.onInsertItems(t.getNavigator(),t.id)||0,i=this.scrollTop;n.top+n.height<=this.scrollTop&&(i+=o),this.onRowsChanged(i)}},Ae.prototype.onItemCollapsing=function(e){var t=e.item,n=this.items[t.id];n&&(n.expanded=!1,this.onRemoveItems(new ue.e(t.getNavigator(),(function(e){return e&&e.id}))),this.onRowsChanged())},Ae.prototype.onItemReveal=function(e){var t=e.item,n=e.relativeTop,o=this.items[t.id];if(o)if(null!==n){n=1<(n=n<0?0:n)?1:n;var i=o.height-this.viewHeight;this.scrollTop=i*n+o.top}else{var r=o.top+o.height,a=this.scrollTop+this.viewHeight;o.top<this.scrollTop?this.scrollTop=o.top:a<=r&&(this.scrollTop=r-this.viewHeight)}},Ae.prototype.onItemAddTrait=function(e){var t=e.item,n=e.trait,o=this.items[t.id];o&&o.addClass(n),"highlighted"===n&&(r.f(this.domNode,n),o&&(this.highlightedItemWasDraggable=!!o.draggable,o.draggable&&(o.draggable=!1)))},Ae.prototype.onItemRemoveTrait=function(e){var t=e.item,n=e.trait,o=this.items[t.id];o&&o.removeClass(n),"highlighted"===n&&(r.P(this.domNode,n),this.highlightedItemWasDraggable&&(o.draggable=!0),this.highlightedItemWasDraggable=!1)},Ae.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();r.Y(this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",te.L(this.context.dataSource.getId(this.context.tree,e))):this.domNode.removeAttribute("aria-activedescendant")},Ae.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},Ae.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1),e.needsRender=e.needsRender||t,this.refreshViewItem(e)},Ae.prototype.onRemoveItem=function(e){this.removeItemFromDOM(e),e.dispose(),delete this.items[e.id]},Ae.prototype.refreshViewItem=function(e){e.render(),this.shouldBeRendered(e)?this.insertItemInDOM(e):this.removeItemFromDOM(e)},Ae.prototype.onClick=function(e){if(!this.lastPointerType||"mouse"===this.lastPointerType){var t=new ne.b(e),n=this.getItemAround(t.target);n&&(J.i&&Date.now()-this.lastClickTimeStamp<300&&(t.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,n.model.getElement(),t))}},Ae.prototype.onMouseMiddleClick=function(e){if(this.context.controller.onMouseMiddleClick){var t=new ne.b(e),n=this.getItemAround(t.target);n&&this.context.controller.onMouseMiddleClick(this.context.tree,n.model.getElement(),t)}},Ae.prototype.onMouseDown=function(e){if(this.didJustPressContextMenuKey=!1,this.context.controller.onMouseDown&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new ne.b(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)}}},Ae.prototype.onMouseUp=function(e){if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new ne.b(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)}}},Ae.prototype.onTap=function(e){var t=this.getItemAround(e.initialTarget);t&&this.context.controller.onTap(this.context.tree,t.model.getElement(),e)},Ae.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},Ae.prototype.onContextMenu=function(e){var t,n;if(e instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var o=new oe.a(e),i=void 0;if(n=this.model.getFocus()){var a=this.context.dataSource.getId(this.context.tree,n),s=this.items[a];i=r.C(s.element)}else n=this.model.getInput(),i=r.C(this.inputItem.element);t=new Ce(i.left+i.width,i.top,o)}else{var l=new ne.b(e),c=this.getItemAround(l.target);if(!c)return;n=c.model.getElement(),t=new be(l)}this.context.controller.onContextMenu(this.context.tree,n,t)},Ae.prototype.onKeyDown=function(e){var t=new oe.a(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))},Ae.prototype.onKeyUp=function(e){this.didJustPressContextMenuKey&&this.onContextMenu(e),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new oe.a(e))},Ae.prototype.onDragStart=function(e,t){if(!this.model.getHighlight()){var n,o=e.model.getElement(),i=this.model.getSelection();if(n=-1<i.indexOf(o)?i:[o],t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setData(xe.a.RESOURCES,JSON.stringify([e.uri])),t.dataTransfer.setDragImage){var r;r=this.context.dnd.getDragLabel?this.context.dnd.getDragLabel(this.context.tree,n):String(n.length);var a=document.createElement("div");a.className="monaco-tree-drag-image",a.textContent=r,document.body.appendChild(a),t.dataTransfer.setDragImage(a,-10,-10),setTimeout((function(){return document.body.removeChild(a)}),0)}this.currentDragAndDropData=new ie(n),xe.c.CurrentDragAndDropData=new ae(n),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new ne.a(t))}},Ae.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=r.F(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval((function(){if(null!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,o=0,i=e.viewHeight-35;n<35?o=Math.max(-14,.2*(n-35)):i<n&&(o=Math.min(14,.2*(n-i))),e.scrollTop+=o}}),10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout((function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null}),1e3))},Ae.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},Ae.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},Ae.prototype.onDragOver=function(e){var t=this;e.preventDefault();var n,o=new ne.a(e),i=this.getItemAround(o.target);if(!i||0===o.posx&&0===o.posy&&o.browserEvent.type===r.d.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=o.posy,!this.currentDragAndDropData)if(xe.c.CurrentDragAndDropData)this.currentDragAndDropData=xe.c.CurrentDragAndDropData;else{if(!o.dataTransfer.types)return!1;this.currentDragAndDropData=new le}this.currentDragAndDropData.update(o.browserEvent.dataTransfer);var a,s=i.model;do{if(n=s?s.getElement():this.model.getInput(),!(a=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,n,o))||1!==a.bubble)break;s=s&&s.parent}while(s);if(!s)return this.currentDropElement=null,!1;var l=a&&a.accept;l?(this.currentDropElement=s.getElement(),o.preventDefault(),o.dataTransfer.dropEffect=0===a.effect?"copy":"move"):this.currentDropElement=null;var c,u,d=s.id===this.inputItem.id?this.inputItem:this.items[s.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==d||(u=a,!(!(c=this.currentDropElementReaction)&&!u||c&&u&&c.accept===u.accept&&c.bubble===u.bubble&&c.effect===u.effect)))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach((function(e){return e.dropTarget=!1})),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=d,this.currentDropElementReaction=a,l)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),0===a.bubble)for(var h=s.getNavigator(),p=void 0;p=h.next();)(i=this.items[p.id])&&(i.dropTarget=!0,this.currentDropTargets.push(i));if(a.autoExpand){var f=Object(Ee.l)(500);this.currentDropDisposable=M.h((function(){return f.cancel()})),f.then((function(){return t.context.tree.expand(t.currentDropElement)})).then((function(){return t.shouldInvalidateDropReaction=!0}))}}return!0},Ae.prototype.onDrop=function(e){if(this.currentDropElement){var t=new ne.a(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()},Ae.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,xe.c.CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},Ae.prototype.onFocus=function(){this.context.options.alwaysFocused||r.f(this.domNode,"focused"),this._onDOMFocus.fire()},Ae.prototype.onBlur=function(){this.context.options.alwaysFocused||r.P(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},Ae.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"}},Ae.prototype.onThrottledMsGestureChange=function(e){this.scrollTop-=e.translationY},Ae.prototype.onMsGestureTap=function(e){e.initialTarget=document.elementFromPoint(e.clientX,e.clientY),this.onTap(e)},Ae.prototype.insertItemInDOM=function(e){var t=null,n=this.itemAfter(e);n&&n.element&&(t=n.element),e.insertInDOM(this.rowsContainer,t)},Ae.prototype.removeItemFromDOM=function(e){e&&e.removeFromDOM()},Ae.prototype.shouldBeRendered=function(e){return e.top<this.lastRenderTop+this.lastRenderHeight&&e.top+e.height>this.lastRenderTop},Ae.prototype.getItemAround=function(e){var t=this.inputItem,n=e;do{if(n[Ae.BINDING]&&(t=n[Ae.BINDING]),n===this.wrapper||n===this.domNode)return t;if(n===this.scrollableElement.getDomNode()||n===document.body)return}while(n=n.parentElement)},Ae.prototype.releaseModel=function(){this.model&&(this.modelListeners=M.f(this.modelListeners),this.model=null)},Ae.prototype.dispose=function(){var e=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=M.f(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach((function(t){return e.items[t].removeFromDOM()})),this.context.cache&&this.context.cache.dispose(),this.gestureDisposable.dispose(),je.prototype.dispose.call(this)},Ae.BINDING="monaco-tree-row",Ae.LOADING_DECORATION_DELAY=800,Ae.counter=0,Ae);function Ae(e,t){var n=je.call(this)||this;n.model=null,n.lastPointerType="",n.lastClickTimeStamp=0,n.contentWidthUpdateDelayer=new Ee.a(50),n.isRefreshing=!1,n.refreshingPreviousChildrenIds={},n.currentDragAndDropData=null,n.currentDropTarget=null,n.currentDropTargets=null,n.currentDropDisposable=M.a.None,n.gestureDisposable=M.a.None,n.dragAndDropScrollInterval=null,n.dragAndDropScrollTimeout=null,n.dragAndDropMouseY=null,n.highlightedItemWasDraggable=!1,n.onHiddenScrollTop=null,n._onDOMFocus=new j.a,n.onDOMFocus=n._onDOMFocus.event,n._onDOMBlur=new j.a,n._onDidScroll=new j.a,Ae.counter++,n.instance=Ae.counter;var o=void 0===e.options.horizontalScrollMode?2:e.options.horizontalScrollMode;n.horizontalScrolling=2!==o,n.context={dataSource:e.dataSource,renderer:e.renderer,controller:e.controller,dnd:e.dnd,filter:e.filter,sorter:e.sorter,tree:e.tree,accessibilityProvider:e.accessibilityProvider,options:e.options,cache:new Ne(e),horizontalScrolling:n.horizontalScrolling},n.modelListeners=[],n.viewListeners=[],n.items={},n.domNode=document.createElement("div"),n.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+n.instance,n.domNode.tabIndex=e.options.preventRootFocus?-1:0,n.styleElement=r.w(n.domNode),n.treeStyler=e.styler||new L(n.styleElement,"monaco-tree-instance-"+n.instance),n.domNode.setAttribute("role","tree"),n.context.options.ariaLabel&&n.domNode.setAttribute("aria-label",n.context.options.ariaLabel),n.context.options.alwaysFocused&&r.f(n.domNode,"focused"),n.context.options.paddingOnRow||r.f(n.domNode,"no-row-padding"),n.wrapper=document.createElement("div"),n.wrapper.className="monaco-tree-wrapper",n.scrollableElement=new de.b(n.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:o,vertical:void 0!==e.options.verticalScrollMode?e.options.verticalScrollMode:1,useShadows:e.options.useShadows}),n.scrollableElement.onScroll((function(e){n.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth),n._onDidScroll.fire()})),J.i?(n.wrapper.style.msTouchAction="none",n.wrapper.style.msContentZooming="none"):n.gestureDisposable=ee.b.addTarget(n.wrapper),n.rowsContainer=document.createElement("div"),n.rowsContainer.className="monaco-tree-rows",e.options.showTwistie&&(n.rowsContainer.className+=" show-twisties");var i=r.Z(n.domNode);return n.viewListeners.push(i.onDidFocus((function(){return n.onFocus()}))),n.viewListeners.push(i.onDidBlur((function(){return n.onBlur()}))),n.viewListeners.push(i),n.viewListeners.push(r.j(n.domNode,"keydown",(function(e){return n.onKeyDown(e)}))),n.viewListeners.push(r.j(n.domNode,"keyup",(function(e){return n.onKeyUp(e)}))),n.viewListeners.push(r.j(n.domNode,"mousedown",(function(e){return n.onMouseDown(e)}))),n.viewListeners.push(r.j(n.domNode,"mouseup",(function(e){return n.onMouseUp(e)}))),n.viewListeners.push(r.j(n.wrapper,"auxclick",(function(e){e&&1===e.button&&n.onMouseMiddleClick(e)}))),n.viewListeners.push(r.j(n.wrapper,"click",(function(e){return n.onClick(e)}))),n.viewListeners.push(r.j(n.domNode,"contextmenu",(function(e){return n.onContextMenu(e)}))),n.viewListeners.push(r.j(n.wrapper,ee.a.Tap,(function(e){return n.onTap(e)}))),n.viewListeners.push(r.j(n.wrapper,ee.a.Change,(function(e){return n.onTouchChange(e)}))),J.i&&(n.viewListeners.push(r.j(n.wrapper,"MSPointerDown",(function(e){return n.onMsPointerDown(e)}))),n.viewListeners.push(r.j(n.wrapper,"MSGestureTap",(function(e){return n.onMsGestureTap(e)}))),n.viewListeners.push(r.m(n.wrapper,"MSGestureChange",(function(e){return n.onThrottledMsGestureChange(e)}),(function(e,t){t.stopPropagation(),t.preventDefault();var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n})))),n.viewListeners.push(r.j(window,"dragover",(function(e){return n.onDragOver(e)}))),n.viewListeners.push(r.j(n.wrapper,"drop",(function(e){return n.onDrop(e)}))),n.viewListeners.push(r.j(window,"dragend",(function(e){return n.onDragEnd(e)}))),n.viewListeners.push(r.j(window,"dragleave",(function(e){return n.onDragOver(e)}))),n.wrapper.appendChild(n.rowsContainer),n.domNode.appendChild(n.scrollableElement.getDomNode()),t.appendChild(n.domNode),n.lastRenderTop=0,n.lastRenderHeight=0,n.didJustPressContextMenuKey=!1,n.currentDropTarget=null,n.currentDropTargets=[],n.shouldInvalidateDropReaction=!1,n.dragAndDropScrollInterval=null,n.dragAndDropScrollTimeout=null,n.onRowsChanged(),n.layout(),n.setupMSGesture(),n.applyStyles(e.options),n}var Fe=n(490),Ve=n(505),We=function(e,t,n){if(void 0===n&&(n={}),this.tree=e,this.configuration=t,this.options=n,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer,this.controller=t.controller||new C({clickBehavior:1,keyboardSupport:"boolean"!=typeof n.keyboardSupport||n.keyboardSupport}),this.dnd=t.dnd||new O,this.filter=t.filter||new E,this.sorter=t.sorter,this.accessibilityProvider=t.accessibilityProvider||new N,this.styler=t.styler},Be={listFocusBackground:Fe.a.fromHex("#073655"),listActiveSelectionBackground:Fe.a.fromHex("#0E639C"),listActiveSelectionForeground:Fe.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:Fe.a.fromHex("#094771"),listFocusAndSelectionForeground:Fe.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:Fe.a.fromHex("#3F3F46"),listHoverBackground:Fe.a.fromHex("#2A2D2E"),listDropBackground:Fe.a.fromHex("#383B3D")},He=(ze.prototype.style=function(e){this.view.applyStyles(e)},Object.defineProperty(ze.prototype,"onDidFocus",{get:function(){return this.view.onDOMFocus},enumerable:!0,configurable:!0}),ze.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},ze.prototype.layout=function(e,t){this.view.layout(e,t)},ze.prototype.domFocus=function(){this.view.focus()},ze.prototype.isDOMFocused=function(){return this.view.isFocused()},ze.prototype.domBlur=function(){this.view.blur()},ze.prototype.setInput=function(e){return this.model.setInput(e)},ze.prototype.getInput=function(){return this.model.getInput()},ze.prototype.expand=function(e){return this.model.expand(e)},ze.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t)},ze.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t)},ze.prototype.isExpanded=function(e){return this.model.isExpanded(e)},ze.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},ze.prototype.getHighlight=function(){return this.model.getHighlight()},ze.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},ze.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},ze.prototype.getSelection=function(){return this.model.getSelection()},ze.prototype.clearSelection=function(e){this.model.setSelection([],e)},ze.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},ze.prototype.getFocus=function(){return this.model.getFocus()},ze.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},ze.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},ze.prototype.focusParent=function(e){this.model.focusParent(e)},ze.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)},ze.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)},ze.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},ze.prototype.focusLast=function(e,t){this.model.focusLast(e,t)},ze.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},ze.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},ze.prototype.clearFocus=function(e){this.model.setFocus(null,e)},ze.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()},ze);function ze(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new j.f,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new j.f,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new j.f,this._onDidExpandItem=new j.f,this._onDidCollapseItem=new j.f,this._onDispose=new j.a,this.onDidDispose=this._onDispose.event,this.container=e,Object(Ve.g)(n,Be,!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 We(this,t,n),this.model=new $(this.context),this.view=new Re(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}n(1360);var Ke,Ue,qe=(Ke=function(e,t){return(Ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ke(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ge={progressBarBackground:Fe.a.fromHex("#0E70C0")},Ye=(qe(Ze,Ue=M.a),Ze.prototype.create=function(e){this.element=document.createElement("div"),Object(r.f)(this.element,"monaco-progress-container"),e.appendChild(this.element),this.bit=document.createElement("div"),Object(r.f)(this.bit,"progress-bit"),this.element.appendChild(this.bit),this.applyStyles()},Ze.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(r.Q)(this.element,"active","infinite","discrete"),this.workedVal=0,this.totalWork=void 0},Ze.prototype.stop=function(){return this.doDone(!1)},Ze.prototype.doDone=function(e){var t=this;return Object(r.f)(this.element,"done"),Object(r.I)(this.element,"infinite")?this.bit.style.opacity="0":this.bit.style.width="inherit",e?setTimeout((function(){return t.off()}),200):this.off(),this},Ze.prototype.hide=function(){Object(r.J)(this.element),this.showDelayedScheduler.cancel()},Ze.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},Ze.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}},Ze);function Ze(e,t){var n=Ue.call(this)||this;return n.options=t||Object.create(null),Object(Ve.g)(n.options,Ge,!1),n.workedVal=0,n.progressBarBackground=n.options.progressBarBackground,n._register(n.showDelayedScheduler=new Ee.d((function(){return Object(r.X)(n.element)}),0)),n.create(e),n}var $e,Xe,Je=($e=function(e,t){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)},function(e,t){function n(){this.constructor=e}$e(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Qe=(Je(et,Xe=C),et.prototype.onContextMenu=function(e,t,n){return s.e?this.onLeftClick(e,t,n):Xe.prototype.onContextMenu.call(this,e,t,n)},et);function et(){return null!==Xe&&Xe.apply(this,arguments)||this}var tt,nt={background:Fe.a.fromHex("#1E1E1E"),foreground:Fe.a.fromHex("#CCCCCC"),pickerGroupForeground:Fe.a.fromHex("#0097FB"),pickerGroupBorder:Fe.a.fromHex("#3F3F46"),widgetShadow:Fe.a.fromHex("#000000"),progressBarBackground:Fe.a.fromHex("#0E70C0")},ot=a.a("quickOpenAriaLabel","Quick picker. Type to narrow down results."),it=(Je(rt,tt=M.a),rt.prototype.getModel=function(){return this.model},rt.prototype.create=function(){var e=this;this.element=document.createElement("div"),r.f(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(r.j(this.element,r.d.CONTEXT_MENU,(function(e){return r.c.stop(e,!0)}))),this._register(r.j(this.element,r.d.FOCUS,(function(t){return e.gainingFocus()}),!0)),this._register(r.j(this.element,r.d.BLUR,(function(t){return e.loosingFocus(t)}),!0)),this._register(r.j(this.element,r.d.KEY_DOWN,(function(t){var n=new oe.a(t);if(9===n.keyCode)r.c.stop(t,!0),e.hide(2);else if(2===n.keyCode&&!n.altKey&&!n.ctrlKey&&!n.metaKey){var o=t.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");n.shiftKey&&n.target===o[0]?(r.c.stop(t,!0),o[o.length-1].focus()):n.shiftKey||n.target!==o[o.length-1]||(r.c.stop(t,!0),o[0].focus())}}))),this.progressBar=this._register(new Ye(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),r.f(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new v.b(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:ot,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(r.j(this.inputBox.inputElement,r.d.INPUT,(function(t){return e.onType()}))),this._register(r.j(this.inputBox.inputElement,r.d.KEY_DOWN,(function(t){var n=new oe.a(t),o=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)r.c.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart===e.inputBox.inputElement.selectionEnd&&(e.inputBox.inputElement.selectionStart=e.inputBox.value.length);else if(3===n.keyCode||o){r.c.stop(t,!0);var i=e.tree.getFocus();i&&e.elementSelected(i,t,o?2:1)}}))),this.resultCount=document.createElement("div"),r.f(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),r.f(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var t=this.options.treeCreator||function(e,t,n){return new He(e,t,n)};return this.tree=this._register(t(this.treeContainer,{dataSource:new c(this),controller:new Qe({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new g(this,this.styles),filter:new p(this),accessibilityProvider:new d(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:a.a("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus((function(t){e.elementFocused(t.focus,t)}))),this._register(this.tree.onDidChangeSelection((function(t){if(t.selection&&0<t.selection.length){var n=t.payload&&t.payload.originalEvent instanceof ne.b?t.payload.originalEvent:void 0,o=!!n&&e.shouldOpenInBackground(n);e.elementSelected(t.selection[0],t,o?2:1)}}))),this._register(r.j(this.treeContainer,r.d.KEY_DOWN,(function(t){var n=new oe.a(t);if(e.quickNavigateConfiguration)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)r.c.stop(t,!0),e.navigateInTree(n.keyCode);else if(3===n.keyCode){r.c.stop(t,!0);var o=e.tree.getFocus();o&&e.elementSelected(o,t)}}))),this._register(r.j(this.treeContainer,r.d.KEY_UP,(function(t){var n=new oe.a(t),o=n.keyCode;if(e.quickNavigateConfiguration&&e.quickNavigateConfiguration.keybindings.some((function(e){var t=e.getParts(),i=t[0];return!(t[1]||(i.shiftKey&&4===o?n.ctrlKey||n.altKey||n.metaKey:!(i.altKey&&6===o||i.ctrlKey&&5===o||i.metaKey&&57===o)))}))){var i=e.tree.getFocus();i&&e.elementSelected(i,t)}}))),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(r.j(this.treeContainer,r.d.KEY_DOWN,(function(t){var n=new oe.a(t);e.quickNavigateConfiguration||18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(r.c.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.treeElement.focus())}))),this.element},rt.prototype.style=function(e){this.styles=e,this.applyStyles()},rt.prototype.applyStyles=function(){if(this.element){var e=this.styles.foreground?this.styles.foreground.toString():"",t=this.styles.background?this.styles.background.toString():"",n=this.styles.borderColor?this.styles.borderColor.toString():"",o=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=o?"0 5px 8px "+o:""}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)},rt.prototype.shouldOpenInBackground=function(e){if(e instanceof oe.a){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},rt.prototype.onType=function(){var e=this.inputBox.value;this.helpText&&(e?r.J(this.helpText):r.X(this.helpText)),this.callbacks.onType(e)},rt.prototype.navigateInTree=function(e,t){var n=this.tree.getInput(),o=n?n.entries:[],i=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()}var r=this.tree.getFocus();1<o.length&&i===r&&(16===e||2===e&&t?this.tree.focusLast():18!==e&&(2!==e||t)||this.tree.focusFirst()),(r=this.tree.getFocus())&&this.tree.reveal(r)},rt.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 o={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(e,0,o)}},rt.prototype.elementSelected=function(e,t,n){var o=!0;if(this.isVisible()){var i=n||1,r={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};o=this.model.runner.run(e,i,r)}o&&this.hide(0)},rt.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)}},rt.prototype.show=function(e,t){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=t?t.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(r.J(this.inputContainer),r.X(this.element),this.tree.domFocus()):(r.X(this.inputContainer),r.X(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||l.j(e)?r.J(this.helpText):r.X(this.helpText)),l.j(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()},rt.prototype.restoreLastInput=function(e){this.inputBox.value=e,this.inputBox.select(),this.callbacks.onType(e)},rt.prototype.doShowWithPrefix=function(e){this.inputBox.value=e,this.callbacks.onType(e)},rt.prototype.doShowWithInput=function(e,t){this.setInput(e,t)},rt.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&&0<e.entries.length)),n.tree.setInput(e)})).then((function(){n.tree.layout();var o=e?e.entries.filter((function(t){return n.isElementVisible(e,t)})):[];n.updateResultCount(o.length),o.length&&n.autoFocus(e,o,t)}))},rt.prototype.isElementVisible=function(e,t){return!e.filter||e.filter.isVisible(t)},rt.prototype.autoFocus=function(e,t,n){if(void 0===n&&(n={}),n.autoFocusPrefixMatch){for(var o=void 0,i=void 0,r=n.autoFocusPrefixMatch,a=r.toLowerCase(),s=0,l=t;s<l.length;s++){var c=l[s],u=e.dataSource.getLabel(c)||"";if(o||0!==u.indexOf(r)?i||0!==u.toLowerCase().indexOf(a)||(i=c):o=c,o&&i)break}var d=o||i;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?1<t.length&&this.tree.focusNth(1):n.autoFocusLastEntry&&1<t.length&&(this.tree.focusLast(),this.tree.reveal(this.tree.getFocus()))},rt.prototype.getHeight=function(e){var t=this,n=e.renderer;if(!e){var o=n.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*o:0}var i,r=0;this.layoutDimensions&&this.layoutDimensions.height&&(i=.4*(this.layoutDimensions.height-50)),(!i||rt.MAX_ITEMS_HEIGHT<i)&&(i=rt.MAX_ITEMS_HEIGHT);for(var a=e.entries.filter((function(n){return t.isElementVisible(e,n)})),s=this.options.maxItemsToShow||a.length,l=0;l<s&&l<a.length;l++){var c=n.getHeight(a[l]);if(!(r+c<=i))break;r+=c}return r},rt.prototype.updateResultCount=function(e){this.resultCount.textContent=a.a({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)},rt.prototype.hide=function(e){this.isVisible()&&(this.visible=!1,r.J(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))},rt.prototype.setInput=function(e,t,n){this.isVisible()&&(this.getInput()&&this.onInputChanging(),this.setInputAndLayout(e,t),this.inputBox&&this.inputBox.setAriaLabel(n||ot))},rt.prototype.onInputChanging=function(){var e=this;this.inputChangingTimeoutHandle&&(clearTimeout(this.inputChangingTimeoutHandle),this.inputChangingTimeoutHandle=null),r.f(this.element,"content-changing"),this.inputChangingTimeoutHandle=setTimeout((function(){r.P(e.element,"content-changing")}),500)},rt.prototype.getInput=function(){return this.tree.getInput()},rt.prototype.isVisible=function(){return this.visible},rt.prototype.layout=function(e){this.layoutDimensions=e;var t=Math.min(.62*this.layoutDimensions.width,rt.MAX_WIDTH);this.element&&(this.element.style.width=t+"px",this.element.style.marginLeft="-"+t/2+"px",this.inputContainer.style.width=t-12+"px")},rt.prototype.gainingFocus=function(){this.isLoosingFocus=!1},rt.prototype.loosingFocus=function(e){var t=this;if(this.isVisible()){var n=e.relatedTarget;!this.quickNavigateConfiguration&&r.K(n,this.element)||(this.isLoosingFocus=!0,setTimeout((function(){t.isLoosingFocus&&!t.isDisposed&&(t.callbacks.onFocusLost&&t.callbacks.onFocusLost()||t.hide(1))}),0))}},rt.prototype.dispose=function(){tt.prototype.dispose.call(this),this.isDisposed=!0},rt.MAX_WIDTH=600,rt.MAX_ITEMS_HEIGHT=440,rt);function rt(e,t,n){var o=tt.call(this)||this;return o.isDisposed=!1,o.container=e,o.callbacks=t,o.options=n,o.styles=n||Object.create(null),Object(Ve.g)(o.styles,nt,!1),o.model=null,o}var at=n(461),st=n(826),lt=(ct.prototype.setInput=function(e,t){this.quickOpenWidget.setInput(e,t)},ct.prototype.getId=function(){return ct.ID},ct.prototype.getDomNode=function(){return this.domNode},ct.prototype.destroy=function(){this.codeEditor.removeOverlayWidget(this),this.quickOpenWidget.dispose(),this.styler.dispose()},ct.prototype.show=function(e){this.visible=!0;var t=this.codeEditor.getLayoutInfo();t&&this.quickOpenWidget.layout(new r.b(t.width,t.height)),this.quickOpenWidget.show(e),this.codeEditor.layoutOverlayWidget(this)},ct.prototype.getPosition=function(){return this.visible?{preference:2}:null},ct.ID="editor.contrib.quickOpenEditorWidget",ct);function ct(e,t,n,o,i,r){this.codeEditor=e,this.themeService=r,this.visible=!1,this.domNode=document.createElement("div"),this.quickOpenWidget=new it(this.domNode,{onOk:t,onCancel:n,onType:o},{inputPlaceHolder:void 0,inputAriaLabel:i.inputAriaLabel,keyboardSupport:!0}),this.styler=Object(st.d)(this.quickOpenWidget,this.themeService,{pickerGroupForeground:at.W}),this.quickOpenWidget.create(),this.codeEditor.addOverlayWidget(this)}var ut=n(451);n.d(t,"a",(function(){return mt}));var dt,ht=(dt=function(e,t){return(dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pt=(ft.get=function(e){return e.getContribution(ft.ID)},ft.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},ft.prototype.run=function(e){var t=this;function n(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&&(this.widget.destroy(),this.widget=null),this.widget=new lt(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("")},ft.prototype.decorateLine=function(e,t){var n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var o=[{range:e,options:ft._RANGE_HIGHLIGHT_DECORATION}],i=t.deltaDecorations(n,o);this.rangeHighlightDecorationId=i[0]},ft.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},ft.ID="editor.controller.quickOpenController",ft._RANGE_HIGHLIGHT_DECORATION=i.a.register({className:"rangeHighlight",isWholeLine:!0}),ft=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(1,ut.c)],ft));function ft(e,t){this.themeService=t,this.widget=null,this.rangeHighlightDecorationId=null,this.lastKnownEditorSelection=null,this.editor=e}var gt,mt=(ht(vt,gt=o.b),vt.prototype.getController=function(e){return pt.get(e)},vt.prototype._show=function(e,t){e.run({inputAriaLabel:this._inputAriaLabel,getModel:function(e){return t.getModel(e)},getAutoFocus:function(e){return t.getAutoFocus(e)}})},vt);function vt(e,t){var n=gt.call(this,t)||this;return n._inputAriaLabel=e,n}Object(o.h)(pt.ID,pt)},function(e,t,n){"use strict";var o,i,r=n(443),a=n(972),s=n(439),l=n(445),c=n(573),u=n(789),d=n(456),h=n(448),p=n(531),f=n(571),g=n(826),m=n(451),v=(n(1364),n(442)),y=n(701),b=n(888),_=n(459),w=n(973),C=n(686),S=n(760),O=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(x,i=Error),x);function x(e,t){return i.call(this,"TreeError ["+e+"] "+t)||this}var E=(k.prototype.map=function(e){var t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t},k);function k(e){this.fn=e,this._map=new WeakMap}var N=n(700),D=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};function L(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function P(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function I(e){return"boolean"==typeof e.collapsible}var T=(M.prototype.splice=function(e,t,n,o,i){var r,a=this;if(0===e.length)throw new O(this.user,"Invalid tree location");for(var s=this.getParentNodeWithListIndex(e),l=s.parentNode,c=s.listIndex,u=s.revealed,d=s.visible,h=[],p=N.d.map(N.d.from(n),(function(e){return a.createTreeNode(e,l,l.visible?1:0,u,h,o)})),f=e[e.length-1],g=0,m=f;0<=m&&m<l.children.length;m--)if((x=l.children[m]).visible){g=x.visibleChildIndex;break}var v=[],y=0,b=0;N.d.forEach(p,(function(e){v.push(e),b+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=g+y++)}));for(var _=(r=l.children).splice.apply(r,D([f,t],v)),w=0,C=0,S=_;C<S.length;C++)(x=S[C]).visible&&w++;if(0!==w)for(m=f+v.length;m<l.children.length;m++){var x;(x=l.children[m]).visible&&(x.visibleChildIndex-=w)}if(l.visibleChildrenCount+=y-w,u&&d){var E=_.reduce((function(e,t){return e+(t.visible?t.renderNodeCount:0)}),0);this._updateAncestorsRenderNodeCount(l,b-E),this.list.splice(c,E,h)}0<_.length&&i&&_.forEach((function e(t){i(t),t.children.forEach(e)})),this._onDidSplice.fire({insertedNodes:v,deletedNodes:_})},M.prototype.rerender=function(e){if(0===e.length)throw new O(this.user,"Invalid tree location");var t=this.getTreeNodeWithListIndex(e),n=t.node,o=t.listIndex;t.revealed&&this.list.splice(o,1,[n])},M.prototype.has=function(e){return this.hasTreeNode(e)},M.prototype.getListIndex=function(e){var t=this.getTreeNodeWithListIndex(e),n=t.listIndex,o=t.visible,i=t.revealed;return o&&i?n:-1},M.prototype.getListRenderCount=function(e){return this.getTreeNode(e).renderNodeCount},M.prototype.isCollapsible=function(e){return this.getTreeNode(e).collapsible},M.prototype.setCollapsible=function(e,t){var n=this,o=this.getTreeNode(e);void 0===t&&(t=!o.collapsible);var i={collapsible:t};return this.eventBufferer.bufferEvents((function(){return n._setCollapseState(e,i)}))},M.prototype.isCollapsed=function(e){return this.getTreeNode(e).collapsed},M.prototype.setCollapsed=function(e,t,n){var o=this,i=this.getTreeNode(e);void 0===t&&(t=!i.collapsed);var r={collapsed:t,recursive:n||!1};return this.eventBufferer.bufferEvents((function(){return o._setCollapseState(e,r)}))},M.prototype._setCollapseState=function(e,t){var n=this.getTreeNodeWithListIndex(e),o=n.node,i=n.listIndex,r=n.revealed,a=this._setListNodeCollapseState(o,i,r,t);if(o!==this.root&&this.autoExpandSingleChildren&&a&&!I(t)&&o.collapsible&&!o.collapsed&&!t.recursive){for(var s=-1,l=0;l<o.children.length;l++)if(o.children[l].visible){if(-1<s){s=-1;break}s=l}-1<s&&this._setCollapseState(D(e,[s]),t)}return a},M.prototype._setListNodeCollapseState=function(e,t,n,o){var i=this._setNodeCollapseState(e,o,!1);if(!n||!e.visible||!i)return i;var r=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),s=r-(-1===t?0:1);return this.list.splice(t+1,s,a.slice(1)),i},M.prototype._setNodeCollapseState=function(e,t,n){var o;if(e===this.root?o=!1:(I(t)?(o=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(o=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):o=!1,o&&this._onDidChangeCollapseState.fire({node:e,deep:n})),!I(t)&&t.recursive)for(var i=0,r=e.children;i<r.length;i++){var a=r[i];o=this._setNodeCollapseState(a,t,!0)||o}return o},M.prototype.expandTo=function(e){var t=this;this.eventBufferer.bufferEvents((function(){for(var n=t.getTreeNode(e);n.parent;)n=n.parent,e=e.slice(0,e.length-1),n.collapsed&&t._setCollapseState(e,{collapsed:!1,recursive:!1})}))},M.prototype.refilter=function(){var e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)},M.prototype.createTreeNode=function(e,t,n,o,i,r){var a=this,s={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},l=this._filterNode(s,n);o&&i.push(s);var c=N.d.from(e.children),u=o&&0!==l&&!s.collapsed,d=N.d.map(c,(function(e){return a.createTreeNode(e,s,l,u,i,r)})),h=0,p=1;return N.d.forEach(d,(function(e){s.children.push(e),p+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=h++)})),s.collapsible=s.collapsible||0<s.children.length,s.visibleChildrenCount=h,s.visible=2===l?0<h:1===l,s.visible?s.collapsed||(s.renderNodeCount=p):(s.renderNodeCount=0,o&&i.pop()),r&&r(s),s},M.prototype.updateNodeAfterCollapseChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},M.prototype._updateNodeAfterCollapseChange=function(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(var n=0,o=e.children;n<o.length;n++){var i=o[n];e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t)}return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount},M.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},M.prototype._updateNodeAfterFilterChange=function(e,t,n,o){var i;if(void 0===o&&(o=!0),e!==this.root){if(0===(i=this._filterNode(e,t)))return e.visible=!1,e.renderNodeCount=0,!1;o&&n.push(e)}var r=n.length;e.renderNodeCount=e===this.root?0:1;var a=!1;if(e.collapsed&&0===i)e.visibleChildrenCount=0;else{for(var s=0,l=0,c=e.children;l<c.length;l++){var u=c[l];a=this._updateNodeAfterFilterChange(u,i,n,o&&!e.collapsed)||a,u.visible&&(u.visibleChildIndex=s++)}e.visibleChildrenCount=s}return e!==this.root&&(e.visible=2===i?a:1===i),e.visible?e.collapsed||(e.renderNodeCount+=n.length-r):(e.renderNodeCount=0,o&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible},M.prototype._updateAncestorsRenderNodeCount=function(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent},M.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):L(n)?(e.filterData=n.data,P(n.visibility)):(e.filterData=void 0,P(n))},M.prototype.hasTreeNode=function(e,t){if(void 0===t&&(t=this.root),!e||0===e.length)return!0;var n=e[0],o=e.slice(1);return!(n<0||n>t.children.length)&&this.hasTreeNode(o,t.children[n])},M.prototype.getTreeNode=function(e,t){if(void 0===t&&(t=this.root),!e||0===e.length)return t;var n=e[0],o=e.slice(1);if(n<0||n>t.children.length)throw new O(this.user,"Invalid tree location");return this.getTreeNode(o,t.children[n])},M.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,o=t.listIndex,i=t.revealed,r=t.visible,a=e[e.length-1];if(a<0||a>n.children.length)throw new O(this.user,"Invalid tree location");var s=n.children[a];return{node:s,listIndex:o,revealed:i,visible:r&&s.visible}},M.prototype.getParentNodeWithListIndex=function(e,t,n,o,i){void 0===t&&(t=this.root),void 0===n&&(n=0),void 0===o&&(o=!0),void 0===i&&(i=!0);var r=e[0],a=e.slice(1);if(r<0||r>t.children.length)throw new O(this.user,"Invalid tree location");for(var s=0;s<r;s++)n+=t.children[s].renderNodeCount;return o=o&&!t.collapsed,i=i&&t.visible,0===a.length?{parentNode:t,listIndex:n,revealed:o,visible:i}:this.getParentNodeWithListIndex(a,t.children[r],n+1,o,i)},M.prototype.getNode=function(e){return void 0===e&&(e=[]),this.getTreeNode(e)},M.prototype.getNodeLocation=function(e){for(var t=[],n=e;n.parent;)t.push(n.parent.children.indexOf(n)),n=n.parent;return t.reverse()},M.prototype.getParentNodeLocation=function(e){return 0===e.length?void 0:1===e.length?[]:Object(_.w)(e)[0]},M);function M(e,t,n,o){void 0===o&&(o={}),this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new v.c,this._onDidChangeCollapseState=new v.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new v.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new v.a,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=void 0!==o.collapseByDefault&&o.collapseByDefault,this.filter=o.filter,this.autoExpandSingleChildren=void 0!==o.autoExpandSingleChildren&&o.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}}var j,R,A=n(453),F=n(452),V=n(553),W=n(962),B=n(822),H=(j=function(e,t){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),z=function(){return(z=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},K=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},U=(H(q,R=w.a),q);function q(e){var t=R.call(this,e.elements.map((function(e){return e.element})))||this;return t.data=e,t}function G(e){return e instanceof w.a?new U(e):e}var Y=(Z.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},Z.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)},Z.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(G(e),t)},Z.prototype.onDragOver=function(e,t,n,o,i){var r=this;void 0===i&&(i=!0);var a=this.dnd.onDragOver(G(e),t&&t.element,n,o),s=this.autoExpandNode!==t;if(s&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return a;if(s&&"boolean"!=typeof a&&a.autoExpand&&(this.autoExpandDisposable=Object(A.g)((function(){var e=r.modelProvider(),n=e.getNodeLocation(t);e.isCollapsed(n)&&e.setCollapsed(n,!1),r.autoExpandNode=void 0}),500)),"boolean"==typeof a||!a.accept||void 0===a.bubble||a.feedback)return i?a:{accept:"boolean"==typeof a?a:a.accept,effect:"boolean"==typeof a?void 0:a.effect,feedback:[n]};if(1===a.bubble){var l=this.modelProvider(),c=l.getNodeLocation(t),u=l.getParentNodeLocation(c),d=l.getNode(u),h=u&&l.getListIndex(u);return this.onDragOver(e,d,h,o,!1)}var p=this.modelProvider(),f=p.getNodeLocation(t),g=p.getListIndex(f),m=p.getListRenderCount(f);return z(z({},a),{feedback:Object(_.u)(g,g+m)})},Z.prototype.drop=function(e,t,n,o){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(G(e),t&&t.element,n,o)},Z.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},Z);function Z(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=s.a.None}var $,X,J=(Q.prototype.getHeight=function(e){return this.delegate.getHeight(e.element)},Q.prototype.getTemplateId=function(e){return this.delegate.getTemplateId(e.element)},Q.prototype.hasDynamicHeight=function(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)},Q.prototype.setDynamicHeight=function(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)},Q);function Q(e){this.delegate=e}(X=$=$||{}).None="none",X.OnHover="onHover",X.Always="always";var ee=(Object.defineProperty(te.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),te);function te(e,t){var n=this;void 0===t&&(t=[]),this._elements=t,this.onDidChange=v.b.forEach(e,(function(e){return n._elements=e}))}var ne=(oe.prototype.updateOptions=function(e){if(void 0===e&&(e={}),void 0!==e.indent&&(this.indent=Object(W.a)(e.indent,0,40)),void 0!==e.renderIndentGuides){var t=e.renderIndentGuides!==$.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){var n=new s.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,n),this.indentGuidesDisposable=n,this._onDidChangeActiveNodes(this.activeNodes.elements)}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)},oe.prototype.renderTemplate=function(e){var t=Object(r.q)(e,Object(r.a)(".monaco-tl-row")),n=Object(r.q)(t,Object(r.a)(".monaco-tl-indent")),o=Object(r.q)(t,Object(r.a)(".monaco-tl-twistie")),i=Object(r.q)(t,Object(r.a)(".monaco-tl-contents")),a=this.renderer.renderTemplate(i);return{container:e,indent:n,twistie:o,indentGuidesDisposable:s.a.None,templateData:a}},oe.prototype.renderElement=function(e,t,n,o){"number"==typeof o&&(this.renderedNodes.set(e,{templateData:n,height:o}),this.renderedElements.set(e.element,e));var i=oe.DefaultIndent+(e.depth-1)*this.indent;n.twistie.style.paddingLeft=i+"px",n.indent.style.width=i+this.indent-16+"px",this.renderTwistie(e,n),"number"==typeof o&&this.renderIndentGuides(e,n),this.renderer.renderElement(e,t,n.templateData,o)},oe.prototype.disposeElement=function(e,t,n,o){n.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.templateData,o),"number"==typeof o&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))},oe.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},oe.prototype.onDidChangeTwistieState=function(e){var t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)},oe.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))},oe.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e.element,t.twistie),e.collapsible&&(!this.hideTwistiesOfChildlessElements||0<e.visibleChildrenCount)?(Object(r.g)(t.twistie,"codicon","codicon-chevron-down","collapsible"),Object(r.Y)(t.twistie,"collapsed",e.collapsed)):Object(r.Q)(t.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")},oe.prototype.renderIndentGuides=function(e,t){var n=this;if(Object(r.t)(t.indent),t.indentGuidesDisposable.dispose(),this.shouldRenderIndentGuides){for(var o=new s.b,i=this.modelProvider(),a=e,l=function(){var e=i.getNodeLocation(a),l=i.getParentNodeLocation(e);if(!l)return"break";var u=i.getNode(l),d=Object(r.a)(".indent-guide",{style:"width: "+c.indent+"px"});c.activeIndentNodes.has(u)&&Object(r.f)(d,"active"),0===t.indent.childElementCount?t.indent.appendChild(d):t.indent.insertBefore(d,t.indent.firstElementChild),c.renderedIndentGuides.add(u,d),o.add(Object(s.h)((function(){return n.renderedIndentGuides.delete(u,d)}))),a=u},c=this;"break"!==l(););t.indentGuidesDisposable=o}},oe.prototype._onDidChangeActiveNodes=function(e){var t=this;if(this.shouldRenderIndentGuides){var n=new Set,o=this.modelProvider();e.forEach((function(e){var t=o.getNodeLocation(e);try{var i=o.getParentNodeLocation(t);e.collapsible&&0<e.children.length&&!e.collapsed?n.add(e):i&&n.add(o.getNode(i))}catch(e){}})),this.activeIndentNodes.forEach((function(e){n.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return Object(r.P)(e,"active")}))})),n.forEach((function(e){t.activeIndentNodes.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return Object(r.f)(e,"active")}))})),this.activeIndentNodes=n}},oe.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(s.f)(this.disposables)},oe.DefaultIndent=8,oe);function oe(e,t,n,o,i){void 0===i&&(i={}),this.renderer=e,this.modelProvider=t,this.activeNodes=o,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=oe.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new B.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=s.a.None,this.disposables=new s.b,this.templateId=e.templateId,this.updateOptions(i),v.b.map(n,(function(e){return e.node}))(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}var ie=(Object.defineProperty(re.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(re.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(re.prototype,"pattern",{set:function(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()},enumerable:!0,configurable:!0}),re.prototype.filter=function(e,t){if(this._filter){var n=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return n;if(0===("boolean"==typeof n?n?1:0:L(n)?P(n.visibility):n))return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:S.a.Default,visibility:!0};var o=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),i=o&&o.toString();if(void 0===i)return{data:S.a.Default,visibility:!0};var r=Object(S.d)(this._pattern,this._lowercasePattern,0,i,i.toLowerCase(),0,!0);return r?(this._matchCount++,{data:r,visibility:!0}):this.tree.options.filterOnType?2:{data:S.a.Default,visibility:!0}},re.prototype.reset=function(){this._totalCount=0,this._matchCount=0},re.prototype.dispose=function(){Object(s.f)(this.disposables)},re);function re(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 s.b,e.onWillRefilter(this.reset,this,this.disposables)}var ae=(Object.defineProperty(se.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(se.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(se.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),se.prototype.updateOptions=function(e){e.simpleKeyboardNavigation?this.disable():this.enable(),void 0!==e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},se.prototype.enable=function(){var e=this;if(!this._enabled){var t=v.b.chain(Object(C.a)(this.view.getHTMLElement(),"keydown")).filter((function(t){return!le(t.target)||t.target===e.filterOnTypeDomNode})).filter((function(e){return"Dead"!==e.key&&!/^Media/.test(e.key)})).map((function(e){return new y.a(e)})).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).filter((function(t){return e.keyboardNavigationDelegate.mightProducePrintableCharacter(t)||(0<e.pattern.length||e.triggered)&&(9===t.keyCode||1===t.keyCode)&&!t.altKey&&!t.ctrlKey&&!t.metaKey||1===t.keyCode&&(F.e?t.altKey&&!t.metaKey:t.ctrlKey)&&!t.shiftKey})).forEach((function(e){e.stopPropagation(),e.preventDefault()})).event,n=Object(C.a)(this.clearDomNode,"click");v.b.chain(v.b.any(t,n)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}},se.prototype.disable=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)},se.prototype.onEventOrInput=function(e){"string"==typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(F.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)},se.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!S.a.isDefault(e.filterData)}));var n=this.tree.getFocus();if(0<n.length){var o=n[0];null===this.tree.getRelativeTop(o)&&this.tree.reveal(o,.5)}this.render(),e||(this.triggered=!1)},se.prototype.onDragStart=function(){function e(){switch(u){case"nw":t.domNode.style.top="4px",t.domNode.style.left="4px";break;case"ne":t.domNode.style.top="4px",t.domNode.style.left=i-l-6+"px"}}var t=this,n=this.view.getHTMLElement(),o=Object(r.C)(n).left,i=n.clientWidth,a=i/2,l=this.domNode.clientWidth,c=new s.b,u=this.positionClassName;e(),Object(r.P)(this.domNode,u),Object(r.f)(this.domNode,"dragging"),c.add(Object(s.h)((function(){return Object(r.P)(t.domNode,"dragging")}))),Object(C.a)(document,"dragover")((function(t){t.preventDefault();var n=t.screenX-o;t.dataTransfer&&(t.dataTransfer.dropEffect="none"),u=n<a?"nw":"ne",e()}),null,c),Object(C.a)(this.domNode,"dragend")((function(){t.positionClassName=u,t.domNode.className="monaco-list-type-filter "+t.positionClassName,t.domNode.style.top="",t.domNode.style.left="",Object(s.f)(c)}),null,c),b.c.CurrentDragAndDropData=new b.b("vscode-ui"),c.add(Object(s.h)((function(){return b.c.CurrentDragAndDropData=void 0})))},se.prototype.onDidSpliceModel=function(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())},se.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},se.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(l.a)("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(l.a)("enable filter on type","Enable Filter on Type")},se.prototype.render=function(){var e=0<this.filter.totalCount&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=Object(l.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(r.Y)(this.domNode,"no-matches",e),this.domNode.title=Object(l.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=16<this.pattern.length?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},se.prototype.shouldAllowFocus=function(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||0<this.filter.totalCount&&this.filter.matchCount<=1||!S.a.isDefault(e.filterData)},se.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(s.f)(this.disposables)},se);function se(e,t,n,o,i){this.tree=e,this.view=n,this.filter=o,this.keyboardNavigationDelegate=i,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new v.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new v.a,this.enabledDisposables=new s.b,this.disposables=new s.b,this.domNode=Object(r.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(C.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(r.q)(n.getHTMLElement(),Object(r.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(r.q)(this.domNode,Object(r.a)("span.label"));var a=Object(r.q)(this.domNode,Object(r.a)(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=Object(r.q)(a,Object(r.a)("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(C.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(r.q)(a,Object(r.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(l.a)("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}function le(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function ce(e){return{elements:e.elements.map((function(e){return e.element})),browserEvent:e.browserEvent}}function ue(e,t){t(e),e.children.forEach((function(e){return ue(e,t)}))}var de=(Object.defineProperty(he.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),he.prototype.set=function(e,t){Object(_.g)(this.nodes,e)||this._set(e,!1,t)},he.prototype._set=function(e,t,n){if(this.nodes=K(e),this.elements=void 0,this._nodeSet=void 0,!t){var o=this;this._onDidChange.fire({get elements(){return o.get()},browserEvent:n})}},he.prototype.get=function(){return this.elements||(this.elements=this.nodes.map((function(e){return e.element}))),K(this.elements)},he.prototype.getNodes=function(){return this.nodes},he.prototype.has=function(e){return this.nodeSet.has(e)},he.prototype.onDidModelSplice=function(e){var t=this,n=e.insertedNodes,o=e.deletedNodes;if(!this.identityProvider){var i=this.createNodeSet(),r=function(e){return i.delete(e)};return o.forEach((function(e){return ue(e,r)})),void this.set(Object(V.e)(i))}function a(e){return s.add(t.identityProvider.getId(e.element).toString())}var s=new Set;function l(e){return c.set(t.identityProvider.getId(e.element).toString(),e)}o.forEach((function(e){return ue(e,a)}));var c=new Map;n.forEach((function(e){return ue(e,l)}));for(var u=[],d=0,h=this.nodes;d<h.length;d++){var p=h[d],f=this.identityProvider.getId(p.element).toString();if(s.has(f)){var g=c.get(f);g&&u.push(g)}else u.push(p)}this._set(u,!0)},he.prototype.createNodeSet=function(){for(var e=new Set,t=0,n=this.nodes;t<n.length;t++){var o=n[t];e.add(o)}return e},he);function he(e){this.identityProvider=e,this.nodes=[],this._onDidChange=new v.a,this.onDidChange=this._onDidChange.event}var pe,fe=(H(ge,pe=a.d),ge.prototype.onPointer=function(e){if(!le(e.browserEvent.target)){var t=e.element;if(!t)return pe.prototype.onPointer.call(this,e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return pe.prototype.onPointer.call(this,e);var n=Object(r.I)(e.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&2!==e.browserEvent.detail&&!n)return pe.prototype.onPointer.call(this,e);var o;if((o="function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick)&&!n)return pe.prototype.onPointer.call(this,e);if(t.collapsible){var i=this.tree.model,a=i.getNodeLocation(t),s=e.browserEvent.altKey;if(i.setCollapsed(a,void 0,s),o&&n)return}pe.prototype.onPointer.call(this,e)}},ge.prototype.onDoubleClick=function(e){Object(r.I)(e.browserEvent.target,"monaco-tl-twistie")||pe.prototype.onDoubleClick.call(this,e)},ge);function ge(e,t){var n=pe.call(this,e)||this;return n.tree=t,n}var me,ve=(H(ye,me=a.c),ye.prototype.createMouseController=function(e){return new fe(this,e.tree)},ye.prototype.splice=function(e,t,n){var o=this;if(void 0===n&&(n=[]),me.prototype.splice.call(this,e,t,n),0!==n.length){var i=[],r=[];n.forEach((function(t,n){o.focusTrait.has(t)&&i.push(e+n),o.selectionTrait.has(t)&&r.push(e+n)})),0<i.length&&me.prototype.setFocus.call(this,Object(_.f)(K(me.prototype.getFocus.call(this),i))),0<r.length&&me.prototype.setSelection.call(this,Object(_.f)(K(me.prototype.getSelection.call(this),r)))}},ye.prototype.setFocus=function(e,t,n){var o=this;void 0===n&&(n=!1),me.prototype.setFocus.call(this,e,t),n||this.focusTrait.set(e.map((function(e){return o.element(e)})),t)},ye.prototype.setSelection=function(e,t,n){var o=this;void 0===n&&(n=!1),me.prototype.setSelection.call(this,e,t),n||this.selectionTrait.set(e.map((function(e){return o.element(e)})),t)},ye);function ye(e,t,n,o,i,r,a){var s=me.call(this,e,t,n,o,a)||this;return s.focusTrait=i,s.selectionTrait=r,s}var be=(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 v.b.map(this.view.onDidOpen,ce)},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 void 0===this._options.openOnSingleClick||this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"expandOnlyOnTwistieClick",{get:function(){return void 0!==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=z(z({},this._options),e);for(var t=0,n=this.renderers;t<n.length;t++)n[t].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),Object(r.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===$.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 o=n.join("\n");o!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=o),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.isCollapsible=function(e){return this.model.isCollapsible(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.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},_e.prototype.setSelection=function(e,t){var n=this,o=e.map((function(e){return n.model.getNode(e)}));this.selection.set(o,t);var i=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return-1<e}));this.view.setSelection(i,t,!0)},_e.prototype.getSelection=function(){return this.selection.get()},_e.prototype.setFocus=function(e,t){var n=this,o=e.map((function(e){return n.model.getNode(e)}));this.focus.set(o,t);var i=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return-1<e}));this.view.setFocus(i,t,!0)},_e.prototype.focusNext=function(e,t,n,o){void 0===e&&(e=1),void 0===t&&(t=!1),void 0===o&&(o=this.focusNavigationFilter),this.view.focusNext(e,t,n,o)},_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],o=this.model.getNodeLocation(n);if(!this.model.setCollapsed(o,!0)){var i=this.model.getParentNodeLocation(o);if(!i)return;var r=this.model.getListIndex(i);this.view.reveal(r),this.view.setFocus([r])}}},_e.prototype.onRightArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],o=this.model.getNodeLocation(n);if(!this.model.setCollapsed(o,!1)){if(!n.children.some((function(e){return e.visible})))return;var i=this.view.getFocus()[0]+1;this.view.reveal(i),this.view.setFocus([i])}}},_e.prototype.onSpace=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],o=this.model.getNodeLocation(n),i=e.browserEvent.altKey;this.model.setCollapsed(o,void 0,i)}},_e.prototype.dispose=function(){Object(s.f)(this.disposables),this.view.dispose()},_e);function _e(e,t,n,o,i){var l=this;void 0===i&&(i={}),this._options=i,this.eventBufferer=new v.c,this.disposables=new s.b,this._onWillRefilter=new v.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new v.a;var c,u,d,h=new J(n),p=new v.f,f=new v.f,g=new ee(f.event);this.renderers=o.map((function(e){return new ne(e,(function(){return l.model}),p.event,g,i)}));for(var m=0,b=this.renderers;m<b.length;m++){var w=b[m];this.disposables.add(w)}i.keyboardNavigationLabelProvider&&(c=new ie(this,i.keyboardNavigationLabelProvider,i.filter),i=z(z({},i),{filter:c}),this.disposables.add(c)),this.focus=new de(i.identityProvider),this.selection=new de(i.identityProvider),this.view=new ve(e,t,h,this.renderers,this.focus,this.selection,z(z({},(u=function(){return l.model},(d=i)&&z(z({},d),{identityProvider:d.identityProvider&&{getId:function(e){return d.identityProvider.getId(e.element)}},dnd:d.dnd&&new Y(u,d.dnd),multipleSelectionController:d.multipleSelectionController&&{isSelectionSingleChangeEvent:function(e){return d.multipleSelectionController.isSelectionSingleChangeEvent(z(z({},e),{element:e.element}))},isSelectionRangeChangeEvent:function(e){return d.multipleSelectionController.isSelectionRangeChangeEvent(z(z({},e),{element:e.element}))}},accessibilityProvider:d.accessibilityProvider&&z(z({},d.accessibilityProvider),{getAriaLabel:function(e){return d.accessibilityProvider.getAriaLabel(e.element)},getAriaLevel:function(e){return e.depth},getActiveDescendantId:d.accessibilityProvider.getActiveDescendantId&&function(e){return d.accessibilityProvider.getActiveDescendantId(e.element)}}),keyboardNavigationLabelProvider:d.keyboardNavigationLabelProvider&&z(z({},d.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(e){return d.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),enableKeyboardNavigation:d.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(e){var t=u(),n=t.getNodeLocation(e),o=t.getParentNodeLocation(n);return t.getNode(o).visibleChildrenCount},getPosInSet:function(e){return e.visibleChildIndex+1},isChecked:d.ariaProvider&&d.ariaProvider.isChecked?function(e){return d.ariaProvider.isChecked(e.element)}:void 0,getRole:d.ariaProvider&&d.ariaProvider.getRole?function(e){return d.ariaProvider.getRole(e.element)}:void 0}}))),{tree:this})),this.model=this.createModel(e,this.view,i),p.input=this.model.onDidChangeCollapseState;var C=v.b.forEach(this.model.onDidSplice,(function(e){l.eventBufferer.bufferEvents((function(){l.focus.onDidModelSplice(e),l.selection.onDidModelSplice(e)}))}));if(C((function(){return null}),null,this.disposables),f.input=v.b.chain(v.b.any(C,this.focus.onDidChange,this.selection.onDidChange)).debounce((function(){return null}),0).map((function(){for(var e=new Set,t=0,n=l.focus.getNodes();t<n.length;t++){var o=n[t];e.add(o)}for(var i=0,r=l.selection.getNodes();i<r.length;i++)o=r[i],e.add(o);return Object(_.n)(e)})).event,!1!==i.keyboardSupport){var S=v.b.chain(this.view.onKeyDown).filter((function(e){return!le(e.target)})).map((function(e){return new y.a(e)}));S.filter((function(e){return 15===e.keyCode})).on(this.onLeftArrow,this,this.disposables),S.filter((function(e){return 17===e.keyCode})).on(this.onRightArrow,this,this.disposables),S.filter((function(e){return 10===e.keyCode})).on(this.onSpace,this,this.disposables)}if(i.keyboardNavigationLabelProvider){var O=i.keyboardNavigationDelegate||a.a;this.typeFilterController=new ae(this,this.model,this.view,c,O),this.focusNavigationFilter=function(e){return l.typeFilterController.shouldAllowFocus(e)},this.disposables.add(this.typeFilterController)}this.styleElement=Object(r.w)(this.view.getHTMLElement()),Object(r.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===$.Always)}var we=function(){return(we=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ce=(Se.prototype.setChildren=function(e,t,n,o){var i=this.getElementLocation(e);this._setChildren(i,this.preserveCollapseState(t),n,o)},Se.prototype._setChildren=function(e,t,n,o){var i=this,r=new Set,a=new Set;this.model.splice(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o}(e,[0]),Number.MAX_VALUE,t,(function(e){if(r.add(e.element),i.nodes.set(e.element,e),i.identityProvider){var t=i.identityProvider.getId(e.element).toString();a.add(t),i.nodesByIdentity.set(t,e)}n&&n(e)}),(function(e){if(r.has(e.element)||i.nodes.delete(e.element),i.identityProvider){var t=i.identityProvider.getId(e.element).toString();a.has(t)||i.nodesByIdentity.delete(t)}o&&o(e)}))},Se.prototype.preserveCollapseState=function(e){var t=this,n=e?Object(N.f)(e):N.d.empty();return this.sorter&&(n=N.d.fromArray(Object(_.r)(N.d.collect(n),this.sorter.compare.bind(this.sorter)))),N.d.map(n,(function(e){var n=t.nodes.get(e.element);if(!n&&t.identityProvider){var o=t.identityProvider.getId(e.element).toString();n=t.nodesByIdentity.get(o)}if(!n)return we(we({},e),{children:t.preserveCollapseState(e.children)});var i="boolean"==typeof e.collapsible?e.collapsible:n.collapsible,r=void 0!==e.collapsed?e.collapsed:n.collapsed;return we(we({},e),{collapsible:i,collapsed:r,children:t.preserveCollapseState(e.children)})}))},Se.prototype.rerender=function(e){var t=this.getElementLocation(e);this.model.rerender(t)},Se.prototype.has=function(e){return this.nodes.has(e)},Se.prototype.getListIndex=function(e){var t=this.getElementLocation(e);return this.model.getListIndex(t)},Se.prototype.getListRenderCount=function(e){var t=this.getElementLocation(e);return this.model.getListRenderCount(t)},Se.prototype.isCollapsible=function(e){var t=this.getElementLocation(e);return this.model.isCollapsible(t)},Se.prototype.setCollapsible=function(e,t){var n=this.getElementLocation(e);return this.model.setCollapsible(n,t)},Se.prototype.isCollapsed=function(e){var t=this.getElementLocation(e);return this.model.isCollapsed(t)},Se.prototype.setCollapsed=function(e,t,n){var o=this.getElementLocation(e);return this.model.setCollapsed(o,t,n)},Se.prototype.expandTo=function(e){var t=this.getElementLocation(e);this.model.expandTo(t)},Se.prototype.refilter=function(){this.model.refilter()},Se.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 O(this.user,"Tree element not found: "+e);return t},Se.prototype.getNodeLocation=function(e){return e.element},Se.prototype.getParentNodeLocation=function(e){if(null===e)throw new O(this.user,"Invalid getParentNodeLocation call");var t=this.nodes.get(e);if(!t)throw new O(this.user,"Tree element not found: "+e);var n=this.model.getNodeLocation(t),o=this.model.getParentNodeLocation(n);return this.model.getNode(o).element},Se.prototype.getElementLocation=function(e){if(null===e)return[];var t=this.nodes.get(e);if(!t)throw new O(this.user,"Tree element not found: "+e);return this.model.getNodeLocation(t)},Se);function Se(e,t,n){void 0===n&&(n={}),this.user=e,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new T(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}var Oe=function(){return(Oe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function xe(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:N.d.map(N.d.from(e.children),xe),collapsible:e.collapsible,collapsed:e.collapsed}}function Ee(e){for(var t,n,o=[e.element],i=e.incompressible||!1;t=N.d.from(e.children),1===(n=N.d.collect(t,2)).length&&!(e=n[0]).incompressible;)o.push(e.element);return{element:{elements:o,incompressible:i},children:N.d.map(N.d.concat(N.d.fromArray(n),t),Ee),collapsible:e.collapsible,collapsed:e.collapsed}}function ke(e){return function e(t,n){var o;return void 0===n&&(n=0),o=n<t.element.elements.length-1?N.d.single(e(t,n+1)):N.d.map(N.d.from(t.children),(function(t){return e(t,0)})),0===n&&t.element.incompressible?{element:t.element.elements[n],children:o,incompressible:!0,collapsible:t.collapsible,collapsed:t.collapsed}:{element:t.element.elements[n],children:o,collapsible:t.collapsible,collapsed:t.collapsed}}(e,0)}var Ne=(Object.defineProperty(De.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),De.prototype.setChildren=function(e,t){if(null!==e){var n=this.nodes.get(e);if(!n)throw new Error("Unknown compressed tree node");var o=this.model.getNode(n),i=this.model.getParentNodeLocation(n),r=this.model.getNode(i),a=function e(t,n,o){return t.element===n?Oe(Oe({},t),{children:o}):Oe(Oe({},t),{children:N.d.map(N.d.from(t.children),(function(t){return e(t,n,o)}))})}(ke(o),e,N.d.from(t)),s=(this.enabled?Ee:xe)(a),l=r.children.map((function(e){return e===o?s:e}));this._setChildren(r.element,l)}else{var c=N.d.map(N.d.from(t),this.enabled?Ee:xe);this._setChildren(null,c)}},De.prototype.setCompressionEnabled=function(e){if(e!==this.enabled){this.enabled=e;var t=this.model.getNode(),n=N.d.from(t.children),o=N.d.map(n,ke),i=N.d.map(o,e?Ee:xe);this._setChildren(null,i)}},De.prototype._setChildren=function(e,t){var n=this,o=new Set;this.model.setChildren(e,t,(function(e){for(var t=0,i=e.element.elements;t<i.length;t++){var r=i[t];o.add(r),n.nodes.set(r,e.element)}}),(function(e){for(var t=0,i=e.element.elements;t<i.length;t++){var r=i[t];o.has(r)||n.nodes.delete(r)}}))},De.prototype.has=function(e){return this.nodes.has(e)},De.prototype.getListIndex=function(e){var t=this.getCompressedNode(e);return this.model.getListIndex(t)},De.prototype.getListRenderCount=function(e){var t=this.getCompressedNode(e);return this.model.getListRenderCount(t)},De.prototype.getNode=function(e){if(void 0===e)return this.model.getNode();var t=this.getCompressedNode(e);return this.model.getNode(t)},De.prototype.getNodeLocation=function(e){var t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]},De.prototype.getParentNodeLocation=function(e){var t=this.getCompressedNode(e),n=this.model.getParentNodeLocation(t);return null===n?null:n.elements[n.elements.length-1]},De.prototype.isCollapsible=function(e){var t=this.getCompressedNode(e);return this.model.isCollapsible(t)},De.prototype.setCollapsible=function(e,t){var n=this.getCompressedNode(e);return this.model.setCollapsible(n,t)},De.prototype.isCollapsed=function(e){var t=this.getCompressedNode(e);return this.model.isCollapsed(t)},De.prototype.setCollapsed=function(e,t,n){var o=this.getCompressedNode(e);return this.model.setCollapsed(o,t,n)},De.prototype.expandTo=function(e){var t=this.getCompressedNode(e);this.model.expandTo(t)},De.prototype.rerender=function(e){var t=this.getCompressedNode(e);this.model.rerender(t)},De.prototype.refilter=function(){this.model.refilter()},De.prototype.getCompressedNode=function(e){if(null===e)return null;var t=this.nodes.get(e);if(!t)throw new O(this.user,"Tree element not found: "+e);return t},De);function De(e,t,n){void 0===n&&(n={}),this.user=e,this.nodes=new Map,this.model=new Ce(e,t,n),this.enabled=void 0===n.compressionEnabled||n.compressionEnabled}function Le(e){return e[e.length-1]}var Pe=(Object.defineProperty(Ie.prototype,"element",{get:function(){return null===this.node.element?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"children",{get:function(){var e=this;return this.node.children.map((function(t){return new Ie(e.unwrapper,t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Ie);function Ie(e,t){this.unwrapper=e,this.node=t}var Te=(Object.defineProperty(Me.prototype,"onDidSplice",{get:function(){var e=this;return v.b.map(this.model.onDidSplice,(function(t){var n=t.insertedNodes,o=t.deletedNodes;return{insertedNodes:n.map((function(t){return e.nodeMapper.map(t)})),deletedNodes:o.map((function(t){return e.nodeMapper.map(t)}))}}))},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"onDidChangeCollapseState",{get:function(){var e=this;return v.b.map(this.model.onDidChangeCollapseState,(function(t){var n=t.node,o=t.deep;return{node:e.nodeMapper.map(n),deep:o}}))},enumerable:!0,configurable:!0}),Me.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},Me.prototype.setCompressionEnabled=function(e){this.model.setCompressionEnabled(e)},Me.prototype.has=function(e){return this.model.has(e)},Me.prototype.getListIndex=function(e){return this.model.getListIndex(e)},Me.prototype.getListRenderCount=function(e){return this.model.getListRenderCount(e)},Me.prototype.getNode=function(e){return this.nodeMapper.map(this.model.getNode(e))},Me.prototype.getNodeLocation=function(e){return e.element},Me.prototype.getParentNodeLocation=function(e){return this.model.getParentNodeLocation(e)},Me.prototype.isCollapsible=function(e){return this.model.isCollapsible(e)},Me.prototype.setCollapsible=function(e,t){return this.model.setCollapsible(e,t)},Me.prototype.isCollapsed=function(e){return this.model.isCollapsed(e)},Me.prototype.setCollapsed=function(e,t,n){return this.model.setCollapsed(e,t,n)},Me.prototype.expandTo=function(e){return this.model.expandTo(e)},Me.prototype.rerender=function(e){return this.model.rerender(e)},Me.prototype.refilter=function(){return this.model.refilter()},Me.prototype.getCompressedTreeNode=function(e){return void 0===e&&(e=null),this.model.getNode(e)},Me);function Me(e,t,n){var o,i,r,a,s=this;function l(e){return s.elementMapper(e.elements)}void 0===n&&(n={}),this.elementMapper=n.elementMapper||Le,this.nodeMapper=new E((function(e){return new Pe(l,e)})),this.model=new Ne(e,(r=this.nodeMapper,a=t,{splice:function(e,t,n){a.splice(e,t,n.map((function(e){return r.map(e)})))}}),(o=l,Oe(Oe({},i=n),{sorter:i.sorter&&{compare:function(e,t){return i.sorter.compare(e.elements[0],t.elements[0])}},identityProvider:i.identityProvider&&{getId:function(e){return i.identityProvider.getId(o(e))}},filter:i.filter&&{filter:function(e,t){return i.filter.filter(o(e),t)}}})))}var je,Re,Ae=n(881),Fe=(je=function(e,t){return(je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}je(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ve=function(){return(Ve=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},We=(Fe(Be,Re=be),Object.defineProperty(Be.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Be.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},Be.prototype.rerender=function(e){void 0!==e?this.model.rerender(e):this.view.rerender()},Be.prototype.hasElement=function(e){return this.model.has(e)},Be.prototype.createModel=function(e,t,n){return new Ce(e,t,n)},Be);function Be(e,t,n,o,i){return void 0===i&&(i={}),Re.call(this,e,t,n,o,i)||this}var He=(Object.defineProperty(ze.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),ze.prototype.renderTemplate=function(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}},ze.prototype.renderElement=function(e,t,n,o){var i=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===i.element.elements.length?(n.compressedTreeNode=void 0,this.renderer.renderElement(e,t,n.data,o)):(n.compressedTreeNode=i,this.renderer.renderCompressedElements(i,t,n.data,o))},ze.prototype.disposeElement=function(e,t,n,o){n.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(n.compressedTreeNode,t,n.data,o):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.data,o)},ze.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.data)},ze.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)},function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);3<r&&a&&Object.defineProperty(t,n,a)}([Ae.a],ze.prototype,"compressedTreeNodeProvider",null),ze);function ze(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}var Ke,Ue=(Fe(qe,Ke=We),qe.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},qe.prototype.createModel=function(e,t,n){return new Te(e,t,n)},qe.prototype.updateOptions=function(e){void 0===e&&(e={}),Ke.prototype.updateOptions.call(this,e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)},qe.prototype.getCompressedTreeNode=function(e){return void 0===e&&(e=null),this.model.getCompressedTreeNode(e)},qe);function qe(e,t,n,o,i){function r(){return l}void 0===i&&(i={});var a,s,l=this,c=o.map((function(e){return new He(r,e)}));return l=Ke.call(this,e,t,n,c,(a=r,(s=i)&&Ve(Ve({},s),{keyboardNavigationLabelProvider:s.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(e){var t;try{t=a().getCompressedTreeNode(e)}catch(t){return s.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e)}return 1===t.element.elements.length?s.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e):s.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.element.elements)}}})))||this}var Ge,Ye=n(446),Ze=(Ge=function(e,t){return(Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ge(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$e=function(){return($e=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Xe=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},Je=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}};function Qe(e){return $e($e({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function et(e,t){return!!t.parent&&(t.parent===e||et(e,t.parent))}var tt=(Object.defineProperty(nt.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"children",{get:function(){return this.node.children.map((function(e){return new nt(e)}))},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),nt);function nt(e){this.node=e}var ot=(it.prototype.renderTemplate=function(e){return{templateData:this.renderer.renderTemplate(e)}},it.prototype.renderElement=function(e,t,n,o){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,o)},it.prototype.renderTwistie=function(e,t){return Object(r.Y)(t,"codicon-loading",e.slow),!1},it.prototype.disposeElement=function(e,t,n,o){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,o)},it.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},it.prototype.dispose=function(){this.renderedNodes.clear()},it);function it(e,t,n){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.templateId=e.templateId}function rt(e){return{browserEvent:e.browserEvent,elements:e.elements.map((function(e){return e.element}))}}var at,st=(Ze(lt,at=w.a),lt);function lt(e){var t=at.call(this,e.elements.map((function(e){return e.element})))||this;return t.data=e,t}function ct(e){return e instanceof w.a?new st(e):e}var ut=(dt.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},dt.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)},dt.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(ct(e),t)},dt.prototype.onDragOver=function(e,t,n,o,i){return void 0===i&&(i=!0),this.dnd.onDragOver(ct(e),t&&t.element,n,o)},dt.prototype.drop=function(e,t,n,o){this.dnd.drop(ct(e),t&&t.element,n,o)},dt.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},dt);function dt(e){this.dnd=e}function ht(e){return e&&$e($e({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:function(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new ut(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:function(t){return e.multipleSelectionController.isSelectionSingleChangeEvent($e($e({},t),{element:t.element}))},isSelectionRangeChangeEvent:function(t){return e.multipleSelectionController.isSelectionRangeChangeEvent($e($e({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&$e($e({},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&&$e($e({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:function(t){return e.expandOnlyOnTwistieClick(t.element)},ariaProvider:e.ariaProvider&&{getPosInSet:function(t,n){return e.ariaProvider.getPosInSet(t.element,n)},getSetSize:function(t,n,o){return e.ariaProvider.getSetSize(t.element,n,o)},getRole:e.ariaProvider.getRole?function(t){return e.ariaProvider.getRole(t.element)}:void 0,isChecked:e.ariaProvider.isChecked?function(t){var n;return(null===(n=e.ariaProvider)||void 0===n?void 0:n.isChecked)(t.element)}:void 0},additionalScrollHeight:e.additionalScrollHeight})}function pt(e,t){t(e),e.children.forEach((function(e){return pt(e,t)}))}var ft=(Object.defineProperty(gt.prototype,"onDidChangeFocus",{get:function(){return v.b.map(this.tree.onDidChangeFocus,rt)},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidChangeSelection",{get:function(){return v.b.map(this.tree.onDidChangeSelection,rt)},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidOpen",{get:function(){return v.b.map(this.tree.onDidOpen,rt)},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),gt.prototype.createTree=function(e,t,n,o,i){var r=this,a=new J(n),s=o.map((function(e){return new ot(e,r.nodeMapper,r._onDidChangeNodeSlowState.event)})),l=ht(i)||{};return new We(e,t,a,s,l)},gt.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},gt.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(gt.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(e){this.tree.scrollTop=e},enumerable:!0,configurable:!0}),gt.prototype.domFocus=function(){this.tree.domFocus()},gt.prototype.layout=function(e,t){this.tree.layout(e,t)},gt.prototype.style=function(e){this.tree.style(e)},gt.prototype.getInput=function(){return this.root.element},gt.prototype.setInput=function(e,t){return Xe(this,void 0,void 0,(function(){var n;return Je(this,(function(o){switch(o.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 o.sent(),n&&(this.tree.setFocus(n.focus),this.tree.setSelection(n.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop),[2]}}))}))},gt.prototype._updateChildren=function(e,t,n,o){return void 0===e&&(e=this.root.element),void 0===t&&(t=!0),void 0===n&&(n=!1),Xe(this,void 0,void 0,(function(){var i;return Je(this,(function(r){switch(r.label){case 0:if(void 0===this.root.element)throw new O(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return r.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 2:r.sent(),r.label=3;case 3:return i=this.getDataNode(e),[4,this.refreshAndRenderNode(i,t,o)];case 4:if(r.sent(),n)try{this.tree.rerender(i)}catch(r){}return[2]}}))}))},gt.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()},gt.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)},gt.prototype.expand=function(e,t){return void 0===t&&(t=!1),Xe(this,void 0,void 0,(function(){var n,o;return Je(this,(function(i){switch(i.label){case 0:if(void 0===this.root.element)throw new O(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return i.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 2:i.sent(),i.label=3;case 3:return n=this.getDataNode(e),this.tree.hasElement(n)&&!this.tree.isCollapsible(n)?[2,!1]:n.refreshPromise?[4,this.root.refreshPromise]:[3,6];case 4:return i.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 5:i.sent(),i.label=6;case 6:return n===this.root||n.refreshPromise||this.tree.isCollapsed(n)?(o=this.tree.expand(n===this.root?null:n,t),n.refreshPromise?[4,this.root.refreshPromise]:[3,9]):[2,!1];case 7:return i.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 8:i.sent(),i.label=9;case 9:return[2,o]}}))}))},gt.prototype.setSelection=function(e,t){var n=this,o=e.map((function(e){return n.getDataNode(e)}));this.tree.setSelection(o,t)},gt.prototype.getSelection=function(){return this.tree.getSelection().map((function(e){return e.element}))},gt.prototype.setFocus=function(e,t){var n=this,o=e.map((function(e){return n.getDataNode(e)}));this.tree.setFocus(o,t)},gt.prototype.getFocus=function(){return this.tree.getFocus().map((function(e){return e.element}))},gt.prototype.reveal=function(e,t){this.tree.reveal(this.getDataNode(e),t)},gt.prototype.getDataNode=function(e){var t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new O(this.user,"Data tree node not found: "+e);return t},gt.prototype.refreshAndRenderNode=function(e,t,n){return Xe(this,void 0,void 0,(function(){return Je(this,(function(o){switch(o.label){case 0:return[4,this.refreshNode(e,t,n)];case 1:return o.sent(),this.render(e,n),[2]}}))}))},gt.prototype.refreshNode=function(e,t,n){return Xe(this,void 0,void 0,(function(){var o,i=this;return Je(this,(function(r){return this.subTreeRefreshPromises.forEach((function(r,a){var s,l;o||(s=a)!==(l=e)&&!et(s,l)&&!et(l,s)||(o=r.then((function(){return i.refreshNode(e,t,n)})))})),o?[2,o]:[2,this.doRefreshSubTree(e,t,n)]}))}))},gt.prototype.doRefreshSubTree=function(e,t,n){return Xe(this,void 0,void 0,(function(){var o,i,r=this;return Je(this,(function(a){switch(a.label){case 0:e.refreshPromise=new Promise((function(e){return o=e})),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((function(){e.refreshPromise=void 0,r.subTreeRefreshPromises.delete(e)})),a.label=1;case 1:return a.trys.push([1,,4,5]),[4,this.doRefreshNode(e,t,n)];case 2:return i=a.sent(),e.stale=!1,[4,Promise.all(i.map((function(e){return r.doRefreshSubTree(e,t,n)})))];case 3:return a.sent(),[3,5];case 4:return o(),[7];case 5:return[2]}}))}))},gt.prototype.doRefreshNode=function(e,t,n){return Xe(this,void 0,void 0,(function(){var o,i,r,a,s=this;return Je(this,(function(l){switch(l.label){case 0:e.hasChildren=!!this.dataSource.hasChildren(e.element),o=e.hasChildren?((i=Object(A.l)(800)).then((function(){e.slow=!0,s._onDidChangeNodeSlowState.fire(e)}),(function(e){return null})),this.doGetChildren(e).finally((function(){return i.cancel()}))):Promise.resolve([]),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,o];case 2:return r=l.sent(),[2,this.setChildren(e,r,t,n)];case 3:if(a=l.sent(),e!==this.root&&this.tree.collapse(e===this.root?null:e),Object(Ye.d)(a))return[2,[]];throw a;case 4:return e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e)),[7];case 5:return[2]}}))}))},gt.prototype.doGetChildren=function(e){var t=this,n=this.refreshPromises.get(e);return n||(n=Object(A.f)((function(){return Xe(t,void 0,void 0,(function(){var t;return Je(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)})))},gt.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(Ye.e))},gt.prototype.setChildren=function(e,t,n,o){var i,r=this;if(0===e.children.length&&0===t.length)return[];for(var a=new Map,s=new Map,l=0,c=e.children;l<c.length;l++){var u=c[l];if(a.set(u.element,u),this.identityProvider){var d=this.tree.isCollapsed(u);s.set(u.id,{node:u,collapsed:d})}}for(var h=[],p=t.map((function(t){var i=!!r.dataSource.hasChildren(t);if(!r.identityProvider){var l=Qe({element:t,parent:e,hasChildren:i});return i&&r.collapseByDefault&&!r.collapseByDefault(t)&&(l.collapsedByDefault=!1,h.push(l)),l}var c=r.identityProvider.getId(t).toString(),u=s.get(c);if(u)return l=u.node,a.delete(l.element),r.nodes.delete(l.element),r.nodes.set(t,l),l.element=t,l.hasChildren=i,n?u.collapsed?(l.children.forEach((function(e){return pt(e,(function(e){return r.nodes.delete(e.element)}))})),l.children.splice(0,l.children.length),l.stale=!0):h.push(l):i&&r.collapseByDefault&&!r.collapseByDefault(t)&&(l.collapsedByDefault=!1,h.push(l)),l;var d=Qe({element:t,parent:e,id:c,hasChildren:i});return o&&o.viewState.focus&&-1<o.viewState.focus.indexOf(c)&&o.focus.push(d),o&&o.viewState.selection&&-1<o.viewState.selection.indexOf(c)&&o.selection.push(d),o&&o.viewState.expanded&&-1<o.viewState.expanded.indexOf(c)?h.push(d):i&&r.collapseByDefault&&!r.collapseByDefault(t)&&(d.collapsedByDefault=!1,h.push(d)),d})),f=0,g=Object(V.e)(a);f<g.length;f++)pt(g[f],(function(e){return r.nodes.delete(e.element)}));for(var m=0,v=p;m<v.length;m++)u=v[m],this.nodes.set(u.element,u);return(i=e.children).splice.apply(i,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o}([0,e.children.length],p)),e!==this.root&&this.autoExpandSingleChildren&&1===p.length&&0===h.length&&(p[0].collapsedByDefault=!1,h.push(p[0])),h},gt.prototype.render=function(e,t){var n=this,o=e.children.map((function(e){return n.asTreeElement(e,t)}));this.tree.setChildren(e===this.root?null:e,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()},gt.prototype.asTreeElement=function(e,t){var n,o=this;return e.stale?{element:e,collapsible:e.hasChildren,collapsed:!0}:(n=!(t&&t.viewState.expanded&&e.id&&-1<t.viewState.expanded.indexOf(e.id))&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?N.d.map(N.d.fromArray(e.children),(function(e){return o.asTreeElement(e,t)})):[],collapsible:e.hasChildren,collapsed:n})},gt.prototype.processChildren=function(e){return this.sorter&&e.sort(this.sorter.compare.bind(this.sorter)),e},gt.prototype.dispose=function(){this.disposables.dispose()},gt);function gt(e,t,n,o,i,r){void 0===r&&(r={}),this.user=e,this.dataSource=i,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new v.a,this._onDidChangeNodeSlowState=new v.a,this.nodeMapper=new E((function(e){return new tt(e)})),this.disposables=new s.b,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=void 0!==r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,n,o,r),this.root=Qe({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=$e($e({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}var mt=(Object.defineProperty(vt.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(vt.prototype,"children",{get:function(){return this.node.children.map((function(e){return new vt(e)}))},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),vt);function vt(e){this.node=e}var yt=(bt.prototype.renderTemplate=function(e){return{templateData:this.renderer.renderTemplate(e)}},bt.prototype.renderElement=function(e,t,n,o){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,o)},bt.prototype.renderCompressedElements=function(e,t,n,o){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,o)},bt.prototype.renderTwistie=function(e,t){return Object(r.Y)(t,"codicon-loading",e.slow),!1},bt.prototype.disposeElement=function(e,t,n,o){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,o)},bt.prototype.disposeCompressedElements=function(e,t,n,o){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,o)},bt.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},bt.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(s.f)(this.disposables)},bt);function bt(e,t,n,o){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=n,this.onDidChangeTwistieState=o,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}var _t,wt=(Ze(Ct,_t=ft),Ct.prototype.createTree=function(e,t,n,o,i){var r,a,s=this,l=new J(n),c=o.map((function(e){return new yt(e,s.nodeMapper,(function(){return s.compressibleNodeMapper}),s._onDidChangeNodeSlowState.event)})),u=(a=(r=i)&&ht(r))&&$e($e({},a),{keyboardNavigationLabelProvider:a.keyboardNavigationLabelProvider&&$e($e({},a.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(e){return r.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(e.map((function(e){return e.element})))}})})||{};return new Ue(e,t,l,c,u)},Ct.prototype.asTreeElement=function(e,t){return $e({incompressible:this.compressionDelegate.isIncompressible(e.element)},_t.prototype.asTreeElement.call(this,e,t))},Ct.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},Ct.prototype.render=function(e,t){var n=this;if(!this.identityProvider)return _t.prototype.render.call(this,e,t);function o(e){return n.identityProvider.getId(e).toString()}function i(e){for(var t=new Set,i=0,r=e;i<r.length;i++){var a=r[i],s=n.tree.getCompressedTreeNode(a===n.root?null:a);if(s.element)for(var l=0,c=s.element.elements;l<c.length;l++){var u=c[l];t.add(o(u.element))}}return t}var r=i(this.tree.getSelection()),a=i(this.tree.getFocus());_t.prototype.render.call(this,e,t);var s=this.getSelection(),l=!1,c=this.getFocus(),u=!1;!function e(t){var n=t.element;if(n)for(var i=0;i<n.elements.length;i++){var d=o(n.elements[i].element),h=n.elements[n.elements.length-1].element;r.has(d)&&-1===s.indexOf(h)&&(s.push(h),l=!0),a.has(d)&&-1===c.indexOf(h)&&(c.push(h),u=!0)}t.children.forEach(e)}(this.tree.getCompressedTreeNode(e===this.root?null:e)),l&&this.setSelection(s),u&&this.setFocus(c)},Ct.prototype.processChildren=function(e){var t=this;return this.filter&&(e=e.filter((function(e){var n,o="boolean"==typeof(n=t.filter.filter(e,1))?n?1:0:L(n)?P(n.visibility):P(n);if(2===o)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===o}))),_t.prototype.processChildren.call(this,e)},Ct);function Ct(e,t,n,o,i,r,a){void 0===a&&(a={});var s=_t.call(this,e,t,n,i,r,a)||this;return s.compressionDelegate=o,s.compressibleNodeMapper=new E((function(e){return new mt(e)})),s.filter=a.filter,s}var St,Ot,xt=((St=function(e,t){return(St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}St(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Et,Ot=be),Et.prototype.createModel=function(e,t,n){return new Ce(e,t,n)},Et);function Et(e,t,n,o,i,r){void 0===r&&(r={});var a=Ot.call(this,e,t,n,o,r)||this;return a.user=e,a.dataSource=i,a.identityProvider=r.identityProvider,a}var kt=n(759);n.d(t,"a",(function(){return Mt})),n.d(t,"b",(function(){return jt})),n.d(t,"d",(function(){return Vt})),n.d(t,"c",(function(){return gn}));var Nt,Dt,Lt=(Nt=function(e,t){return(Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Pt=function(){return(Pt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},It=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},Tt=function(e,t){return function(n,o){t(n,o,e)}},Mt=Object(h.c)("listService"),jt=(Object.defineProperty(Rt.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),Rt.prototype.register=function(e,t){var n=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var o=new a.b(Object(r.w)(),"");this.disposables.add(Object(g.b)(o,this._themeService))}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),Object(s.e)(e.onDidFocus((function(){return n._lastFocusedWidget=e})),Object(s.h)((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)})))},Rt.prototype.dispose=function(){this.disposables.dispose()},Rt=It([Tt(0,m.c)],Rt));function Rt(e){this._themeService=e,this.disposables=new s.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}var At=new d.d("listFocus",!0),Ft=new d.d("listSupportsMultiselect",!0),Vt=d.a.and(At,d.a.not("inputFocus")),Wt=new d.d("listHasSelectionOrFocus",!1),Bt=new d.d("listDoubleSelection",!1),Ht=new d.d("listMultiSelection",!1),zt=new d.d("listSupportsKeyboardNavigation",!0),Kt="listAutomaticKeyboardNavigation",Ut=new d.d(Kt,!0),qt=!1,Gt="workbench.list.multiSelectModifier",Yt="workbench.list.openMode",Zt="workbench.list.horizontalScrolling",$t="workbench.list.keyboardNavigation",Xt="workbench.list.automaticKeyboardNavigation",Jt="workbench.tree.indent",Qt="workbench.tree.renderIndentGuides";function en(e){return"alt"===e.getValue(Gt)}function tn(e){return"doubleClick"!==e.getValue(Yt)}var nn,on=(Lt(rn,nn=s.a),rn.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(Gt)&&(e.useAltAsMultipleSelectionModifier=en(e.configurationService))})))},rn.prototype.isSelectionSingleChangeEvent=function(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:Object(a.f)(e)},rn.prototype.isSelectionRangeChangeEvent=function(e){return Object(a.e)(e)},rn);function rn(e){var t=nn.call(this)||this;return t.configurationService=e,t.useAltAsMultipleSelectionModifier=en(e),t.registerListeners(),t}var an,sn,ln,cn=(Lt(un,an=s.a),un.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(Yt)&&(e.openOnSingleClick=tn(e.configurationService))})))},un.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)},un);function un(e,t){var n=an.call(this)||this;return n.configurationService=e,n.existingOpenController=t,n.openOnSingleClick=tn(e),n.registerListeners(),n}function dn(e,t,n,o,i,r,a,s,l,c,u){var d=this,h=yn(t,i,r,l,c,u),p=h.options,f=h.getAutomaticKeyboardNavigation,g=h.disposable;return(d=sn.call(this,e,t,n,o,p)||this).disposables.add(g),d.internals=new bn(d,p,f,i.overrideStyles,r,a,s,l,u),d.disposables.add(d.internals),d}function hn(e,t,n,o,i,r,a,s,l,c,u,d){var h=this,p=yn(t,r,a,c,u,d),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return(h=ln.call(this,e,t,n,o,i,f)||this).disposables.add(m),h.internals=new bn(h,f,g,r.overrideStyles,a,s,l,c,d),h.disposables.add(h.internals),h}Lt(dn,sn=We),dn=It([Tt(5,d.c),Tt(6,Mt),Tt(7,m.c),Tt(8,c.a),Tt(9,p.a),Tt(10,kt.b)],dn),Lt(hn,ln=xt),hn.prototype.updateOptions=function(e){void 0===e&&(e={}),ln.prototype.updateOptions.call(this,e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)},hn=It([Tt(6,d.c),Tt(7,Mt),Tt(8,m.c),Tt(9,c.a),Tt(10,p.a),Tt(11,kt.b)],hn);var pn,fn,gn=(Lt(mn,pn=ft),mn.prototype.updateOptions=function(e){void 0===e&&(e={}),pn.prototype.updateOptions.call(this,e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)},mn=It([Tt(6,d.c),Tt(7,Mt),Tt(8,m.c),Tt(9,c.a),Tt(10,p.a),Tt(11,kt.b)],mn));function mn(e,t,n,o,i,r,a,s,l,c,u,d){var h=this,p=yn(t,r,a,c,u,d),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return(h=pn.call(this,e,t,n,o,i,f)||this).disposables.add(m),h.internals=new bn(h,f,g,r.overrideStyles,a,s,l,c,d),h.disposables.add(h.internals),h}function vn(e,t,n,o,i,r,a,s,l,c,u,d,h){var p=this,f=yn(t,a,s,u,d,h),g=f.options,m=f.getAutomaticKeyboardNavigation,v=f.disposable;return(p=fn.call(this,e,t,n,o,i,r,g)||this).disposables.add(v),p.internals=new bn(p,g,m,a.overrideStyles,s,l,c,u,h),p.disposables.add(p.internals),p}function yn(e,t,n,o,i,r){function a(){var e=n.getContextKeyValue(Kt);return e&&o.getValue(Xt)}zt.bindTo(n),qt||(Ut.bindTo(n),qt=!0);var l,u,d,h,p=r.isScreenReaderOptimized()?"simple":o.getValue($t),f=void 0!==t.horizontalScrolling?t.horizontalScrolling:(l=o,Object(c.f)(l,Zt,"workbench.tree.horizontalScrolling")),g=tn(o),m=function(e,t,n){var o=new s.b,i=Pt({},e);if(!1!==e.multipleSelectionSupport&&!e.multipleSelectionController){var r=new on(t);i.multipleSelectionController=r,o.add(r)}var a=new cn(t,e.openController);return i.openController=a,o.add(a),i.keyboardNavigationDelegate={mightProducePrintableCharacter:function(e){return n.mightProducePrintableCharacter(e)}},[i,o]}(t,o,i),v=m[0],y=m[1],b=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:a,disposable:y,options:Pt(Pt({keyboardSupport:!1},v),{indent:o.getValue(Jt),renderIndentGuides:o.getValue(Qt),automaticKeyboardNavigation:a(),simpleKeyboardNavigation:"simple"===p,filterOnType:"filter"===p,horizontalScrolling:f,openOnSingleClick:g,keyboardNavigationEventFilter:(u=e,d=i,h=!1,function(e){if(h)return h=!1;var t=d.softDispatch(e,u);return t&&t.enterChord?!(h=!0):!(h=!1)}),additionalScrollHeight:b,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements})}}Lt(vn,fn=wt),vn=It([Tt(7,d.c),Tt(8,Mt),Tt(9,m.c),Tt(10,c.a),Tt(11,p.a),Tt(12,kt.b)],vn);var bn=(_n.prototype.updateStyleOverrides=function(e){Object(s.f)(this.styler),this.styler=e?Object(g.b)(this.tree,this.themeService,e):s.a.None},_n.prototype.dispose=function(){this.disposables=Object(s.f)(this.disposables),this.styler=Object(s.f)(this.styler)},_n=It([Tt(4,d.c),Tt(5,Mt),Tt(6,m.c),Tt(7,c.a),Tt(8,kt.b)],_n));function _n(e,t,n,o,i,r,a,s,l){var c,u,d=this;this.tree=e,this.themeService=a,this.disposables=[],this.contextKeyService=(c=e,u=i.createScoped(c.getHTMLElement()),At.bindTo(u),u),Ft.bindTo(this.contextKeyService).set(!(!1===t.multipleSelectionSupport)),this.hasSelectionOrFocus=Wt.bindTo(this.contextKeyService),this.hasDoubleSelection=Bt.bindTo(this.contextKeyService),this.hasMultiSelection=Ht.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=en(s);var h=new Set;function p(){var t=l.isScreenReaderOptimized()?"simple":s.getValue($t);e.updateOptions({simpleKeyboardNavigation:"simple"===t,filterOnType:"filter"===t})}h.add(Kt),this.updateStyleOverrides(o),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection((function(){var t=e.getSelection(),n=e.getFocus();d.hasSelectionOrFocus.set(0<t.length||0<n.length),d.hasMultiSelection.set(1<t.length),d.hasDoubleSelection.set(2===t.length)})),e.onDidChangeFocus((function(){var t=e.getSelection(),n=e.getFocus();d.hasSelectionOrFocus.set(0<t.length||0<n.length)})),s.onDidChangeConfiguration((function(t){if(t.affectsConfiguration(Yt)&&e.updateOptions({openOnSingleClick:tn(s)}),t.affectsConfiguration(Gt)&&(d._useAltAsMultipleSelectionModifier=en(s)),t.affectsConfiguration(Jt)){var o=s.getValue(Jt);e.updateOptions({indent:o})}if(t.affectsConfiguration(Qt)){var i=s.getValue(Qt);e.updateOptions({renderIndentGuides:i})}t.affectsConfiguration($t)&&p(),t.affectsConfiguration(Xt)&&e.updateOptions({automaticKeyboardNavigation:n()})})),this.contextKeyService.onDidChangeContext((function(t){t.affectsSome(h)&&e.updateOptions({automaticKeyboardNavigation:n()})})),l.onDidChangeScreenReaderOptimized((function(){return p()})))}f.a.as(u.a.Configuration).registerConfiguration({id:"workbench",order:7,title:Object(l.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:((Dt={})[Gt]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(l.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(l.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(l.a)({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.")},Dt[Yt]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(l.a)({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. ")},Dt[Zt]={type:"boolean",default:!1,description:Object(l.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},Dt["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(l.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(l.a)("deprecated","This setting is deprecated, please use '{0}' instead.",Zt)},Dt[Jt]={type:"number",default:8,minimum:0,maximum:40,description:Object(l.a)("tree indent setting","Controls tree indentation in pixels.")},Dt[Qt]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(l.a)("render tree indent guides","Controls whether the tree should render indent guides.")},Dt[$t]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(l.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(l.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(l.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(l.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},Dt[Xt]={type:"boolean",default:!0,markdownDescription:Object(l.a)("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.")},Dt)})},,function(e,t,n){"use strict";n(498);var o=n(499),i=(n(577),n(579)),r=n(8),a=n(7),s=n(10),l=n(9),c=n(35),u=n(11),d=n(0),h=n.n(d),p=n(413),f=n(1280),g=n(1278),m=n(1279),v=n(1276),y=n(1281),b=n(1403),_=n(28),w=(n(12),window.$,window.location.origin),C=function(e){function t(){var e,n;Object(r.a)(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(n=Object(s.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).showOrHideEditor=function(e){var t=n.props.user,o=window.$,i=e.id,r="#reply_message_".concat(i),a="#reply_iconup_".concat(i);""==o(r).html()?(o(".reply_to_message").html(""),o(r).html('<div className="orig_reply_box borderBottomNone reply_to_message" id="reply_to_message_'.concat(i,'">\n <div class="homepagePostReplyPortrait mr15 imageFuzzy fl" id="reply_image_').concat(i,'"><a href="').concat(t.user_url,'" target="_blank" alt="\u7528\u6237\u5934\u50cf"><img alt="0?1442652658" height="33" src="').concat(w,"/images/").concat(t.image_url,'" width="33" /></a></div>\n <div class="orig_textarea fl" style="margin-bottom: 0px">\n <div nhname=\'new_message_').concat(i,'\'>\n <form accept-charset="UTF-8" action="/discusses?challenge_id=118&dis_id=61&dis_type=Shixun" data-remote="true" id="new_comment_form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /><input name="authenticity_token" type="hidden" value="HJTbMpfI8LKUpwghfkvgB2SaMmcIVyVdAezyKmzJ7FU=" /></div>\n <input type="hidden" id="dis_reply_id" name="reply_id" value="').concat(i,"\">\n <div nhname='toolbar_container_").concat(i,'\'></div>\n <textarea placeholder="\u6709\u95ee\u9898\u6216\u6709\u5efa\u8bae\uff0c\u8bf7\u76f4\u63a5\u7ed9\u6211\u7559\u8a00\u5427\uff01" id="comment_news_').concat(i,'" style="display: none" nhname=\'new_message_textarea_').concat(i,'\' name="content"></textarea>\n <a id="new_message_submit_btn_').concat(i,'" href="javascript:void(0)" onclick="this.style.display=\'none\'" class="mt10 task-btn task-btn-orange fr">\u53d1\u9001</a>\n <div class="cl"></div>\n <p nhname=\'contentmsg_').concat(i,'\'></p>\n</form> </div>\n <div class="cl"></div>\n </div>\n <div class="cl"></div>\n</div>\n')),o(a).show(),o((function(){window.sd_create_editor_from_data(i,null,"100%","Discuss")}))):o(r).is(":visible")?o(r).hide():o(r).show(),setTimeout((function(){var e=o("#reply_to_message_".concat(i)).find("iframe")[0];e&&e.contentDocument.body.focus()}),200)},n}return Object(u.a)(t,e),Object(a.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.item,o=t.currentReplyComment;e.showReplyEditorFlag!=this.props.showReplyEditorFlag&&o&&o.id==n.id&&this.showOrHideEditor(o)}},{key:"render",value:function(){var e=this.props,t=(e.match,e.history,e.item);return e.user,t?h.a.createElement("div",null,h.a.createElement("div",{className:"cl"}),h.a.createElement("div",{id:"reply_message_".concat(t.id),className:"reply_to_message"})):h.a.createElement("div",null)}}]),t}(d.Component),S=n(30),O=(n(942),window.$,window.location.origin,function(e){function t(){var e,n;Object(r.a)(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(n=Object(s.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).showOrHideEditor=function(e){n.props.user;var t=window.$,o=e.id,i="#reply_message_".concat(o),r="reply_message_editorMd_".concat(o),a=".commentItemMDEditorView_".concat(o);if("#commitBtn_".concat(o),1===t("#".concat(r," textarea")).length){var s="".concat(Object(_.Q)()),l=window.create_editorMD_4comment("".concat(r),"",120,"\u6211\u8981\u56de\u590d...",s,(function(){l.cm.focus(),window.initMDEditorDragResize(".editor__resize",l,{initHeight:120})}),{watch:!1,htmlDecode:"style,script,iframe",mode:"markdown",toolbar:!0,markdown:"",readOnly:!1,tex:!0,flowChart:!1,sequenceDiagram:!1,dialogLockScreen:!1});l.state.preview=!1,n.commentMDEditor=l,t(".commentItemMDEditorView").hide(),t(a).show()}else t(i).is(":visible")?t(a).hide():(t(".commentItemMDEditorView").hide(),t(a).show(),window._currentChildcommentMDEditor&&window._currentChildcommentMDEditor.resize(),setTimeout((function(){n.commentMDEditor&&n.commentMDEditor.cm&&n.commentMDEditor.cm.focus(),n.commentMDEditor.resize()}),200));window._currentChildcommentMDEditor=n.commentMDEditor},n.onCommit=function(){window.$(document).trigger("onReply",{commentContent:n.commentMDEditor.getValue(),id:n.props.item.id,editor:n.commentMDEditor})},n}return Object(u.a)(t,e),Object(a.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.item,o=t.currentReplyComment;e.showReplyEditorFlag!=this.props.showReplyEditorFlag&&o&&o.id==n.id&&this.showOrHideEditor(o)}},{key:"render",value:function(){var e=this.props,t=(e.match,e.history,e.item),n=e.user,o=e.buttonText;return t?h.a.createElement("div",{className:"commentItemMDEditorView commentItemMDEditorView_".concat(t.id),style:{display:"none"}},h.a.createElement("div",{className:"homepagePostReplyPortrait mr15 fl imageFuzzy",id:"reply_image_3097",style:{marginTop:"2px",marginRight:"-20px"}},h.a.createElement("a",{href:"".concat(n.user_url),target:"_blank",alt:"\u7528\u6237\u5934\u50cf"},h.a.createElement("img",{alt:"0?1442652658",height:"33",src:"/images/".concat(n.image_url),width:"33"}))),h.a.createElement("div",{id:"reply_message_".concat(t.id),className:"reply_to_message commentItemMDEditor editormd-image-click-expand",style:{paddingTop:"0px",paddingBottom:"0px",marginTop:"36px"}},h.a.createElement("div",{id:"reply_message_editorMd_".concat(t.id),className:"editorMD",style:{marginBottom:"0px"}},h.a.createElement("textarea",{style:{display:"none"}})),h.a.createElement("div",{className:"editor__resize",href:"javascript:void(0);",style:{display:""}},"\u8c03\u6574\u9ad8\u5ea6"),h.a.createElement("div",{class:"clearfix"},h.a.createElement("a",Object(S.a)({id:"commitBtn_".concat(t.id),href:"javascript:void(0)",onClick:this.onCommit,style:{marginRight:"44px"},className:"commentsbtn task-btn task-btn-blue fr "},"style",{display:""}),o||"\u53d1\u9001")))):h.a.createElement("div",null)}}]),t}(d.Component)),x=(n(872),n(93)),E=window.location.origin,k=function(e){function t(e){var n;return Object(r.a)(this,t),(n=Object(s.a)(this,Object(l.a)(t).call(this,e))).replyTo=function(e){},n.parseCommentContent=function(e){if(!(e&&e.startsWith("<")&&e.endsWith(">"))&&window.$("#md_div").length){window.$("#md_div").html("");try{window.editormd.markdownToHTML("md_div",{markdown:e,emoji:!0,htmlDecode:"style,script,iframe",taskList:!0,tex:!0,flowChart:!0,sequenceDiagram:!0}),e=window.$("#md_div").html()}catch(e){}}return e},n.onDialogOkBtnClick=function(){var e=n.props,t=e.deleteComment,o=e.hiddenComment,i=n.state.dialogType;"delete"===i?t(n.comment,n.childComment?n.childComment.id:""):"hidden"!==i&&"hiddenCancel"!==i||o(n.comment,n.childComment?n.childComment.id:""),n.setState({dialogOpen:!1})},n.handleDialogClose=n.handleDialogClose.bind(Object(c.a)(n)),n.handleGoldRewardDialogClose=n.handleGoldRewardDialogClose.bind(Object(c.a)(n)),n.state={dialogOpen:!1,goldRewardDialogOpen:!1,goldRewardInput:"",showReplyEditorFlag:!1,currentReplyComment:null},n}return Object(u.a)(t,e),Object(a.a)(t,[{key:"componentWillUnmount",value:function(){(0,window.$)(document).off("onReply")}},{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){(0,window.$)(document).on("onReply",(function(t,n){var o=n.commentContent,i=n.id,r=n.editor;e.props.replyComment(o,i,r)}))}),1e3)}},{key:"initReply",value:function(e){if(this.props.initReply&&this.props.initReply(e),!0===window.__useKindEditor){var t=this.props.user,n=window.$,o=e.id,i="#reply_message_".concat(o),r="#reply_iconup_".concat(o);""==n(i).html()?(n(".reply_to_message").html(""),n(i).html('<div className="orig_reply_box borderBottomNone reply_to_message" id="reply_to_message_'.concat(o,'">\n <div class="homepagePostReplyPortrait mr15 imageFuzzy fl" id="reply_image_').concat(o,'"><a href="').concat(t.user_url,'" target="_blank" alt="\u7528\u6237\u5934\u50cf"><img alt="0?1442652658" height="33" src="').concat(E,"/images/").concat(t.image_url,'" width="33" /></a></div>\n <div class="orig_textarea fl" style="margin-bottom: 0px">\n <div nhname=\'new_message_').concat(o,'\'>\n <form accept-charset="UTF-8" action="/discusses?challenge_id=118&dis_id=61&dis_type=Shixun" data-remote="true" id="new_comment_form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /><input name="authenticity_token" type="hidden" value="HJTbMpfI8LKUpwghfkvgB2SaMmcIVyVdAezyKmzJ7FU=" /></div>\n <input type="hidden" id="dis_reply_id" name="reply_id" value="').concat(o,"\">\n <div nhname='toolbar_container_").concat(o,'\'></div>\n <textarea placeholder="\u6709\u95ee\u9898\u6216\u6709\u5efa\u8bae\uff0c\u8bf7\u76f4\u63a5\u7ed9\u6211\u7559\u8a00\u5427\uff01" id="comment_news_').concat(o,'" style="display: none" nhname=\'new_message_textarea_').concat(o,'\' name="content"></textarea>\n <a id="new_message_submit_btn_').concat(o,'" href="javascript:void(0)" onclick="this.style.display=\'none\'" class="mt10 task-btn task-btn-orange fr">').concat(this.props.buttonText||"\u53d1\u9001",'</a>\n <div class="cl"></div>\n <p nhname=\'contentmsg_').concat(o,'\'></p>\n</form> </div>\n <div class="cl"></div>\n </div>\n <div class="cl"></div>\n</div>\n')),n(r).show(),n((function(){window.sd_create_editor_from_data(o,null,"100%","Discuss")}))):n(i).is(":visible")?n(i).hide():n(i).show()}else this.setState({currentReplyComment:e,showReplyEditorFlag:!this.state.showReplyEditorFlag})}},{key:"renderChildenComments",value:function(e){var t=this;if(!e.children||0===e.children.length)return"";var n=this.props.user;return e.children.map((function(o,i){var r=t.parseCommentContent(o.content);return h.a.createElement("div",{key:i,className:"childComment"},h.a.createElement("div",{className:"J_Comment_Info clearfix mt3"},h.a.createElement("div",{className:"t_info fl"},h.a.createElement("a",{href:"".concat(E,"/users/").concat(o.user_login),className:"content-username hide fl"},o.username),h.a.createElement("span",{className:"t_area fl"},o.time),o.reward?h.a.createElement(b.a,{title:"\u5df2\u5956\u52b1\u91d1\u5e01".concat(o.reward),disableFocusListener:!0},h.a.createElement("a",{href:"javascript:void(0);",style:{marginLeft:"20px",cursor:"default"},className:"rewarded color-grey-8 font-12 fl ".concat(!0===o.admin?"":"normalUser")},h.a.createElement("i",{className:"iconfont icon-gift mr5 color-orange fl",style:{display:"inline"}}),h.a.createElement("span",{className:"fl"},o.reward))):""),h.a.createElement("p",{className:"fr orig_reply lineh-20"},h.a.createElement("span",{id:"hidden_discuss_btn_952"}),0!=t.props.showRewardButton&&!0===e.admin?h.a.createElement("a",{href:"javascript:void(0);",className:"color-grey-8",onClick:function(){return t.showGoldRewardDialog(e,o)}},h.a.createElement(b.a,{title:"\u7ed9TA\u5956\u52b1\u91d1\u5e01",disableFocusListener:!0},h.a.createElement("i",{className:"iconfont icon-jiangli fl"}))):"","",!0===e.admin||o.can_delete||o.user_id===n.user_id||o.user_login==n.login?h.a.createElement("a",{href:"javascript:void(0);",className:"color-grey-8",id:"delete_reply_118_952",onClick:function(){return t.onCommentBtnClick(e,o,"delete")}},h.a.createElement(b.a,{title:"\u5220\u9664",disableFocusListener:!0},h.a.createElement("i",{className:"iconfont icon-shanchu mr5"}))):"")),h.a.createElement("div",{className:"comment_content clearfix",id:"reply_content_".concat(o.id)},h.a.createElement("div",{className:"color-grey-3",id:"reply_content_".concat(o.id)},h.a.createElement("div",{className:"break_word_comments markdown-body",dangerouslySetInnerHTML:{__html:r}}),h.a.createElement("div",{className:"cl"}))))}))}},{key:"renderComments",value:function(){var e=this,t=this.props,n=t.comments,o=(t.currentUser,t.deleteComment,t.commentPraise),i=(t.hiddenComment,t.user),r=this.state,a=r.showReplyEditorFlag,s=r.currentReplyComment;if(n&&0!==n.length)return n.map((function(t,n){var r;return r=e.parseCommentContent(t.content),h.a.createElement("div",{className:"comment_item_cont df clearfix",key:n},h.a.createElement("div",{className:"J_Comment_Face fl"},h.a.createElement("a",{href:"".concat(E,"/users/").concat(t.user_login),target:"_blank"},h.a.createElement("img",{alt:"\u7528\u6237\u5934\u50cf",height:"50",src:Object(_.L)("images/".concat(t.image_url)),width:"50"}))),h.a.createElement("div",{className:"t_content fl"},h.a.createElement("div",{className:"J_Comment_Reply"},h.a.createElement("div",{className:"comment_orig_content",style:{margin:"0px"}},h.a.createElement("div",{className:"J_Comment_Info clearfix mt3"},h.a.createElement("div",{className:"t_info fl"},h.a.createElement("a",{href:"".concat(E,"/users/").concat(t.user_login),className:"content-username hide fl"},t.username),h.a.createElement("span",{className:"t_area fl"},t.time),t.position&&h.a.createElement("span",{className:"fl color-light-green font-14 ml15"},"[\u7b2c",t.position,"\u5173]"),t.game_url?h.a.createElement(b.a,{title:"\u70b9\u51fb\u67e5\u770bTA\u7684\u4ee3\u7801\u9875\u9762",disableFocusListener:!0},h.a.createElement("a",{href:t.game_url,target:"_blank",className:"fl font-14 ml15",style:{color:"#4CACFF",cursor:"pointer"}},"\u67e5\u770b")):"",t.reward?h.a.createElement(b.a,{title:"\u5df2\u5956\u52b1\u91d1\u5e01".concat(t.reward),disableFocusListener:!0},h.a.createElement("a",{href:"javascript:void(0);",style:{marginLeft:"20px",cursor:"default"},className:"rewarded color-grey-8 font-12 fl ".concat(!0===t.admin?"":"normalUser")},h.a.createElement("i",{className:"iconfont icon-gift mr5 color-orange fl"}),h.a.createElement("span",{className:"fl"},t.reward))):"")),h.a.createElement("div",{className:"comment_content clearfix",id:"reply_content_".concat(t.id)},h.a.createElement("div",{className:"color-grey-3",id:"reply_content_".concat(t.id)},h.a.createElement("div",{className:"break_word_comments markdown-body",dangerouslySetInnerHTML:{__html:r}}),h.a.createElement("div",{className:"cl"}))),h.a.createElement("div",{className:"childrenCommentsView"},t&&t.children&&t.children.length?h.a.createElement("div",{className:"trangle"}):"",e.renderChildenComments(t),1!=t.isAllChildrenLoaded&&t.children&&1==e.props.isChildCommentPagination&&5<t.child_message_count?h.a.createElement(b.a,{title:"\u70b9\u51fb\u67e5\u770b\u66f4\u591a\u56de\u590d",disableFocusListener:!0},h.a.createElement("div",{className:"loadMoreChildComments",onClick:function(){e.props.loadMoreChildComments&&e.props.loadMoreChildComments(t)}},h.a.createElement("i",{className:"iconfont icon-xiajiantou"}))):""),h.a.createElement("p",{className:"fr orig_reply"},h.a.createElement("span",{id:"hidden_discuss_btn_952"}),0!=e.props.showRewardButton&&!0===t.admin?h.a.createElement("a",{href:"javascript:void(0);",className:"color-grey-8 fl mt2",onClick:function(){return e.showGoldRewardDialog(t)}},h.a.createElement(b.a,{title:"\u7ed9TA\u5956\u52b1\u91d1\u5e01",disableFocusListener:!0},h.a.createElement("i",{className:"iconfont icon-jiangli mr5 fl"}))):"",1==e.props.showHiddenButton&&(e.props.onlySuperAdminCouldHide&&t.isSuperAdmin||!e.props.onlySuperAdminCouldHide&&!0===t.admin)?h.a.createElement(b.a,{title:t.hidden?"\u53d6\u6d88\u9690\u85cf":"\u9690\u85cf\u8bc4\u8bba",disableFocusListener:!0},h.a.createElement("a",{href:"javascript:void(0);",className:"color-grey-8 fl mt1",onClick:function(){return e.onCommentBtnClick(t,"",t.hidden?"hiddenCancel":"hidden")}},h.a.createElement("i",{className:" ".concat(t.hidden?"iconfont icon-yincangbiyan":"fa fa-eye"," mr5")}))):"",!t.admin||t.children&&0!==t.children.length?"":h.a.createElement("a",{href:"javascript:void(0);",className:"color-grey-8",onClick:function(){return e.onCommentBtnClick(t,"","delete")}},h.a.createElement(b.a,{title:"\u5220\u9664",disableFocusListener:!0},h.a.createElement("i",{className:"iconfont icon-shanchu mr5"}))),(null==e.props.showReply||1==e.props.showReply)&&h.a.createElement("a",{href:"javascript:void(0)",className:"color-grey-8",onClick:function(){return e.initReply(t)}},h.a.createElement(b.a,{title:"\u56de\u590d"},h.a.createElement("i",{className:"iconfont icon-huifu1 mr5"}))),h.a.createElement("span",{className:"reply_praise_count_952"},h.a.createElement(b.a,{title:t.user_praise?"\u53d6\u6d88\u70b9\u8d5e":"\u70b9\u8d5e"},h.a.createElement("a",{href:"javascript:void(0)",className:"fr mr5 ".concat(t.user_praise?"color-orange03":"color-grey-8"),onClick:function(){return o(t.id)}},h.a.createElement("i",{className:t.user_praise?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3"}),h.a.createElement("span",{className:"fr font-14",style:{marginTop:"1px"}},t.praise_count?t.praise_count:""))))),window.__useKindEditor?h.a.createElement(C,{showReplyEditorFlag:a,currentReplyComment:s,item:t,user:i}):h.a.createElement(O,{showReplyEditorFlag:a,currentReplyComment:s,item:t,user:i,buttonText:e.props.buttonText})))))}))}},{key:"onCommentBtnClick",value:function(e,t,n){this.comment=e,this.childComment=t,this.setState({dialogOpen:!0,dialogType:n})}},{key:"handleDialogClose",value:function(){this.setState({dialogOpen:!1})}},{key:"showGoldRewardDialog",value:function(e,t){!0===e.admin&&(this.comment=e,this.childComment=t,this.setState({goldRewardDialogOpen:!0}))}},{key:"handleGoldRewardDialogClose",value:function(){this.setState({goldRewardDialogOpen:!1})}},{key:"onGoldRewardDialogOkBtnClick",value:function(){var e=this.state.goldRewardInput;e&&"0"!==e?(this.setState({goldRewardDialogOpen:!1}),this.props.rewardCode(this.comment,this.childComment,e)):this.setState({goldRewardInputError:!0})}},{key:"onGoldRewardInputChange",value:function(e){var t=parseInt(e||0,10);Number.isNaN(t)||this.setState({goldRewardInput:t,goldRewardInputError:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.deleteComment,t.onPaginationChange),r=t.comment_count_without_reply,a=t.currentPage,s=(t.comments,t.usingAntdModal),l=this.state,c=l.dialogOpen,u=l.goldRewardDialogOpen,d=l.dialogType;return l.goldRewardInputError,h.a.createElement("div",{className:"fit -scroll",style:{"overflow-x":"hidden"}},s?h.a.createElement(x.a,{modalsType:c,modalsTopval:"delete"===d?"\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u56de\u590d\u5417\uff1f":"hidden"===d?"\u786e\u5b9a\u8981\u9690\u85cf\u8be5\u6761\u56de\u590d\u5417\uff1f":"hiddenCancel"===d?"\u786e\u5b9a\u8981\u53d6\u6d88\u9690\u85cf\u8be5\u6761\u56de\u590d\u5417\uff1f":"",modalsBottomval:"",modalCancel:this.handleDialogClose,modalSave:this.onDialogOkBtnClick}):h.a.createElement(p.a,{open:c,disableEscapeKeyDown:!0,onClose:this.handleDialogClose},h.a.createElement(v.a,{id:"alert-dialog-title"},"\u63d0\u793a"),h.a.createElement(g.a,null,h.a.createElement(m.a,{id:"alert-dialog-description",style:{textAlign:"center"}},"delete"===d?"\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u56de\u590d\u5417\uff1f":"hidden"===d?"\u786e\u5b9a\u8981\u9690\u85cf\u8be5\u6761\u56de\u590d\u5417\uff1f":"hiddenCancel"===d?"\u786e\u5b9a\u8981\u53d6\u6d88\u9690\u85cf\u8be5\u6761\u56de\u590d\u5417\uff1f":"")),h.a.createElement(f.a,null,h.a.createElement(y.a,{onClick:this.handleDialogClose,color:"primary"},"\u53d6\u6d88"),h.a.createElement(y.a,{variant:"raised",onClick:function(){return e.onDialogOkBtnClick()},color:"primary",autoFocus:!0},"\u786e\u5b9a"))),h.a.createElement(p.a,{open:u,disableEscapeKeyDown:!0,onClose:this.handleGoldRewardDialogClose},h.a.createElement(v.a,{id:"alert-dialog-title"},"\u5956\u52b1\u8bbe\u7f6e"),h.a.createElement(g.a,null,h.a.createElement(i.a,{placeholder:"\u8bf7\u8f93\u5165\u5956\u52b1\u7684\u91d1\u5e01\u6570\u91cf",id:"goldReward",type:"number",value:this.state.goldRewardInput,onChange:function(t){return e.onGoldRewardInputChange(t)},width:228,style:{width:"228px"}})),h.a.createElement(f.a,null,h.a.createElement(y.a,{onClick:this.handleGoldRewardDialogClose,color:"primary"},"\u53d6\u6d88"),h.a.createElement(y.a,{variant:"raised",onClick:function(){return e.onGoldRewardDialogOkBtnClick()},color:"primary",autoFocus:!0},"\u786e\u5b9a"))),h.a.createElement("div",{className:"-layout-v -fit"},h.a.createElement("div",{className:"panel-comment_item"},this.renderComments()),10<r?h.a.createElement("div",{className:"paginationSection"},h.a.createElement(o.a,{showQuickJumper:!0,onChange:n,current:a,total:r})):"",0==r?h.a.createElement("div",null,h.a.createElement("div",{className:"edu-tab-con-box clearfix edu-txt-center"},h.a.createElement("img",{className:"edu-nodata-img mb20",src:Object(_.L)("images/educoder/nodata.png")}),h.a.createElement("p",{className:"edu-nodata-p mb20"},"\u6682\u65f6\u8fd8\u6ca1\u6709\u76f8\u5173\u6570\u636e\u54e6\uff01"))):""))}}]),t}(d.Component);t.a=k},function(e,t,n){"use strict";n(1363);var o,i,r,a=n(445),s=n(439),l=n(465),c=n(459),u=n(881),d=n(443),h=n(452),p=n(702),f=n(701),g=n(442),m=n(686),v=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});(r=i=i||{}).TREE="tree",r.FORM="form";var y,b=(v(_,y=Error),_);function _(e,t){return y.call(this,"ListError ["+e+"] "+t)||this}var w=n(973),C=n(490),S=n(505),O=(x.prototype.splice=function(e,t,n){this.spliceables.forEach((function(o){return o.splice(e,t,n)}))},x);function x(e){this.spliceables=e}var E=n(962),k=n(760);n.d(t,"a",(function(){return G})),n.d(t,"f",(function(){return Q})),n.d(t,"e",(function(){return ee})),n.d(t,"d",(function(){return ie})),n.d(t,"b",(function(){return ae})),n.d(t,"c",(function(){return ye}));var N,D=(N=function(e,t){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),L=function(){return(L=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},P=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},I=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},T=(Object.defineProperty(M.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),M.prototype.renderTemplate=function(e){return e},M.prototype.renderElement=function(e,t,n){var o=Object(c.k)(this.renderedElements,(function(e){return e.templateData===n}));if(0<=o){var i=this.renderedElements[o];this.trait.unrender(n),i.index=t}else i={index:t,templateData:n},this.renderedElements.push(i);this.trait.renderIndex(t,n)},M.prototype.splice=function(e,t,n){for(var o=[],i=0,r=this.renderedElements;i<r.length;i++){var a=r[i];a.index<e?o.push(a):a.index>=e+t&&o.push({index:a.index+n-t,templateData:a.templateData})}this.renderedElements=o},M.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t<n.length;t++){var o=n[t],i=o.index,r=o.templateData;-1<e.indexOf(i)&&this.trait.renderIndex(i,r)}},M.prototype.disposeTemplate=function(e){var t=Object(c.k)(this.renderedElements,(function(t){return t.templateData===e}));t<0||this.renderedElements.splice(t,1)},M);function M(e){this.trait=e,this.renderedElements=[]}var j=(Object.defineProperty(R.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"renderer",{get:function(){return new T(this)},enumerable:!0,configurable:!0}),R.prototype.splice=function(e,t,n){var o=n.length-t,i=e+t,r=I(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 i<=e})).map((function(e){return e+o})));this.renderer.splice(e,t,n.length),this._set(r,r)},R.prototype.renderIndex=function(e,t){d.Y(t,this._trait,this.contains(e))},R.prototype.unrender=function(e){d.P(e,this._trait)},R.prototype.set=function(e,t){return this._set(e,I(e).sort(de),t)},R.prototype._set=function(e,t,n){var o=this.indexes,i=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;var r=ue(i,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:n}),o},R.prototype.get=function(){return this.indexes},R.prototype.contains=function(e){return 0<=Object(c.c)(this.sortedIndexes,e,de)},R.prototype.dispose=function(){Object(s.f)(this._onChange)},P([u.a],R.prototype,"renderer",null),R);function R(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.a,this.onChange=this._onChange.event}var A,F=(D(V,A=j),V.prototype.renderIndex=function(e,t){A.prototype.renderIndex.call(this,e,t),this.contains(e)?t.setAttribute("aria-selected","true"):t.removeAttribute("aria-selected")},V);function V(){return A.call(this,"focused")||this}var W=(B.prototype.splice=function(e,t,n){var o=this;if(!this.identityProvider)return this.trait.splice(e,t,n.map((function(){return!1})));var i=this.trait.get().map((function(e){return o.identityProvider.getId(o.view.element(e)).toString()})),r=n.map((function(e){return-1<i.indexOf(o.identityProvider.getId(e).toString())}));this.trait.splice(e,t,r)},B);function B(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}function H(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var z,K,U=(q.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)},q.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()},q.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()},q.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},q.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},q.prototype.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Object(c.u)(this.list.length),e.browserEvent),this.view.domNode.focus()},q.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus()},q.prototype.dispose=function(){this.disposables.dispose()},q);function q(e,t,n){this.list=e,this.view=t,this.disposables=new s.b;var o=!1!==n.multipleSelectionSupport;this.openController=n.openController||oe;var i=g.b.chain(Object(m.a)(t.domNode,"keydown")).filter((function(e){return!H(e.target)})).map((function(e){return new f.a(e)}));i.filter((function(e){return 3===e.keyCode})).on(this.onEnter,this,this.disposables),i.filter((function(e){return 16===e.keyCode})).on(this.onUpArrow,this,this.disposables),i.filter((function(e){return 18===e.keyCode})).on(this.onDownArrow,this,this.disposables),i.filter((function(e){return 11===e.keyCode})).on(this.onPageUpArrow,this,this.disposables),i.filter((function(e){return 12===e.keyCode})).on(this.onPageDownArrow,this,this.disposables),i.filter((function(e){return 9===e.keyCode})).on(this.onEscape,this,this.disposables),o&&i.filter((function(e){return(h.e?e.metaKey:e.ctrlKey)&&31===e.keyCode})).on(this.onCtrlA,this,this.disposables)}(K=z=z||{})[K.Idle=0]="Idle",K[K.Typing=1]="Typing";var G=(Y.prototype.mightProducePrintableCharacter=function(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(31<=e.keyCode&&e.keyCode<=56||21<=e.keyCode&&e.keyCode<=30||93<=e.keyCode&&e.keyCode<=102||80<=e.keyCode&&e.keyCode<=90)},new Y);function Y(){}var Z=($.prototype.updateOptions=function(e){void 0===e.enableKeyboardNavigation||e.enableKeyboardNavigation?this.enable():this.disable(),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)},$.prototype.enable=function(){var e=this;if(!this.enabled){var t=g.b.chain(Object(m.a)(this.view.domNode,"keydown")).filter((function(e){return!H(e.target)})).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).map((function(e){return new f.a(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=g.b.debounce(t,(function(){return null}),800);g.b.reduce(g.b.any(t,n),(function(e,t){return null===t?null:(e||"")+t}))(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}},$.prototype.disable=function(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)},$.prototype.onInput=function(e){if(!e)return this.state=z.Idle,void(this.triggered=!1);var t=this.list.getFocus(),n=0<t.length?t[0]:0,o=this.state===z.Idle?1:0;this.state=z.Typing;for(var i=0;i<this.list.length;i++){var r=(n+i+o)%this.list.length,a=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(r)),s=a&&a.toString();if(void 0===s||Object(k.g)(e,s))return this.list.setFocus([r]),void this.list.reveal(r)}},$.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},$);function $(e,t,n,o){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.delegate=o,this.enabled=!1,this.state=z.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new s.b,this.disposables=new s.b,this.updateOptions(e.options)}var X=(J.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 o=n.querySelector("[tabIndex]");if(o&&o instanceof HTMLElement&&-1!==o.tabIndex){var i=window.getComputedStyle(o);"hidden"!==i.visibility&&"none"!==i.display&&(e.preventDefault(),e.stopPropagation(),o.focus())}}}}},J.prototype.dispose=function(){this.disposables.dispose()},J);function J(e,t){this.list=e,this.view=t,this.disposables=new s.b,g.b.chain(Object(m.a)(t.domNode,"keydown")).filter((function(e){return!H(e.target)})).map((function(e){return new f.a(e)})).filter((function(e){return!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)})).on(this.onTab,this,this.disposables)}function Q(e){return h.e?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function ee(e){return e.browserEvent.shiftKey}function te(e){return e instanceof MouseEvent&&2===e.button}var ne={isSelectionSingleChangeEvent:Q,isSelectionRangeChangeEvent:ee},oe={shouldOpen:function(e){return!(e instanceof MouseEvent)||!te(e)}},ie=(re.prototype.isSelectionSingleChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):h.e?e.browserEvent.metaKey:e.browserEvent.ctrlKey},re.prototype.isSelectionRangeChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey},re.prototype.isSelectionChangeEvent=function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)},re.prototype.onMouseDown=function(e){document.activeElement!==e.browserEvent.target&&this.list.domFocus()},re.prototype.onContextMenu=function(e){var t=void 0===e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)},re.prototype.onPointer=function(e){if(this.mouseSupport&&!H(e.browserEvent.target)){var t=this.list.getFocus()[0],n=this.list.getSelection();t=void 0===t?n[0]:t;var o=e.index;if(void 0===o)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([o],e.browserEvent),te(e.browserEvent)||(this.list.setSelection([o],e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open([o],e.browserEvent))}},re.prototype.onDoubleClick=function(e){if(!(H(e.browserEvent.target)||this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))){var t=this.list.getFocus();this.list.setSelection(t,e.browserEvent),this.list.pin(t)}},re.prototype.changeSelection=function(e,t){var n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){var o=Math.min(t,n),i=Math.max(t,n),r=Object(c.u)(o,i+1),a=function(e,t){var n=e.indexOf(t);if(-1===n)return[];for(var o=[],i=n-1;0<=i&&e[i]===t-(n-i);)o.push(e[i--]);for(o.reverse(),i=n;i<e.length&&e[i]===t+(i-n);)o.push(e[i++]);return o}(ue(l=this.list.getSelection(),[t]),t);if(0===a.length)return;var s=ue(r,function(e,t){for(var n=[],o=0,i=0;o<e.length||i<t.length;)if(o>=e.length)n.push(t[i++]);else if(i>=t.length)n.push(e[o++]);else{if(e[o]===t[i]){o++,i++;continue}e[o]<t[i]?n.push(e[o++]):i++}return n}(l,a));this.list.setSelection(s,e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){var l;s=(l=this.list.getSelection()).filter((function(e){return e!==n})),this.list.setFocus([n]),l.length===s.length?this.list.setSelection(I(s,[n]),e.browserEvent):this.list.setSelection(s,e.browserEvent)}},re.prototype.dispose=function(){this.disposables.dispose()},re);function re(e){this.list=e,this.disposables=new s.b,this.multipleSelectionSupport=!(!1===e.options.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=e.options.multipleSelectionController||ne),this.openController=e.options.openController||oe,this.mouseSupport=void 0===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(p.b.addTarget(e.getHTMLElement()))),e.onMouseClick(this.onPointer,this,this.disposables),e.onMouseMiddleClick(this.onPointer,this,this.disposables),e.onTap(this.onPointer,this,this.disposables)}var ae=(se.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+"; }"):h.e),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 o=n.join("\n");o!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=o)},se);function se(e,t){this.styleElement=e,this.selectorSuffix=t}var le={listFocusBackground:C.a.fromHex("#7FB0D0"),listActiveSelectionBackground:C.a.fromHex("#0E639C"),listActiveSelectionForeground:C.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:C.a.fromHex("#094771"),listFocusAndSelectionForeground:C.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:C.a.fromHex("#3F3F46"),listHoverBackground:C.a.fromHex("#2A2D2E"),listDropBackground:C.a.fromHex("#383B3D"),treeIndentGuidesStroke:C.a.fromHex("#a9a9a9")},ce={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:i.TREE};function ue(e,t){for(var n=[],o=0,i=0;o<e.length||i<t.length;)if(o>=e.length)n.push(t[i++]);else if(i>=t.length)n.push(e[o++]);else{if(e[o]===t[i]){n.push(e[o]),o++,i++;continue}e[o]<t[i]?n.push(e[o++]):n.push(t[i++])}return n}var de=function(e,t){return e-t},he=(Object.defineProperty(pe.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),pe.prototype.renderTemplate=function(e){return this.renderers.map((function(t){return t.renderTemplate(e)}))},pe.prototype.renderElement=function(e,t,n,o){for(var i=0,r=0,a=this.renderers;r<a.length;r++)a[r].renderElement(e,t,n[i++],o)},pe.prototype.disposeElement=function(e,t,n,o){for(var i=0,r=0,a=this.renderers;r<a.length;r++){var s=a[r];s.disposeElement&&s.disposeElement(e,t,n[i],o),i+=1}},pe.prototype.disposeTemplate=function(e){for(var t=0,n=0,o=this.renderers;n<o.length;n++)o[n].disposeTemplate(e[t++])},pe);function pe(e,t){this._templateId=e,this.renderers=t}var fe=(ge.prototype.renderTemplate=function(e){return e},ge.prototype.renderElement=function(e,t,n){var o=this.accessibilityProvider.getAriaLabel(e);o?n.setAttribute("aria-label",o):n.removeAttribute("aria-label");var i=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof i?n.setAttribute("aria-level",""+i):n.removeAttribute("aria-level")},ge.prototype.disposeTemplate=function(e){},ge);function ge(e){this.accessibilityProvider=e,this.templateId="a18n"}var me=(ve.prototype.getDragElements=function(e){var t=this.list.getSelectedElements();return-1<t.indexOf(e)?t:[e]},ve.prototype.getDragURI=function(e){return this.dnd.getDragURI(e)},ve.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)},ve.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)},ve.prototype.onDragOver=function(e,t,n,o){return this.dnd.onDragOver(e,t,n,o)},ve.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},ve.prototype.drop=function(e,t,n,o){this.dnd.drop(e,t,n,o)},ve);function ve(e,t){this.list=e,this.dnd=t}var ye=(Object.defineProperty(be.prototype,"onFocusChange",{get:function(){var e=this;return g.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onSelectionChange",{get:function(){var e=this;return g.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onContextMenu",{get:function(){var e=this,t=g.b.chain(Object(m.a)(this.view.domNode,"keydown")).map((function(e){return new f.a(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=g.b.chain(Object(m.a)(this.view.domNode,"keyup")).filter((function(){var t=e.didJustPressContextMenuKey;return e.didJustPressContextMenuKey=!1,t})).filter((function(){return 0<e.getFocus().length&&!!e.view.domElement(e.getFocus()[0])})).map((function(t){var n=e.getFocus()[0];return{index:n,element:e.view.element(n),anchor:e.view.domElement(n),browserEvent:t}})).event,o=g.b.chain(this.view.onContextMenu).filter((function(){return!e.didJustPressContextMenuKey})).map((function(e){var t=e.element,n=e.index,o=e.browserEvent;return{element:t,index:n,anchor:{x:o.clientX+1,y:o.clientY},browserEvent:o}})).event;return g.b.any(t,n,o)},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onKeyDown",{get:function(){return Object(m.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),be.prototype.createMouseController=function(e){return new ie(this)},be.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=L(L({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(be.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),be.prototype.splice=function(e,t,n){var o=this;if(void 0===n&&(n=[]),e<0||e>this.view.length)throw new b(this.user,"Invalid start index: "+e);if(t<0)throw new b(this.user,"Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents((function(){return o.spliceable.splice(e,t,n)}))},be.prototype.rerender=function(){this.view.rerender()},be.prototype.element=function(e){return this.view.element(e)},Object.defineProperty(be.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(e){this.view.setScrollTop(e)},enumerable:!0,configurable:!0}),be.prototype.domFocus=function(){this.view.domNode.focus()},be.prototype.layout=function(e,t){this.view.layout(e,t)},be.prototype.setSelection=function(e,t){for(var n=0,o=e;n<o.length;n++){var i=o[n];if(i<0||i>=this.length)throw new b(this.user,"Invalid index "+i)}this.selection.set(e,t)},be.prototype.getSelection=function(){return this.selection.get()},be.prototype.getSelectedElements=function(){var e=this;return this.getSelection().map((function(t){return e.view.element(t)}))},be.prototype.setFocus=function(e,t){for(var n=0,o=e;n<o.length;n++){var i=o[n];if(i<0||i>=this.length)throw new b(this.user,"Invalid index "+i)}this.focus.set(e,t)},be.prototype.focusNext=function(e,t,n,o){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var i=this.focus.get(),r=this.findNextIndex(0<i.length?i[0]+e:0,t,o);-1<r&&this.setFocus([r],n)}},be.prototype.focusPrevious=function(e,t,n,o){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var i=this.focus.get(),r=this.findPreviousIndex(0<i.length?i[0]-e:0,t,o);-1<r&&this.setFocus([r],n)}},be.prototype.focusNextPage=function(e,t){var n=this,o=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);o=0===o?0:o-1;var i=this.view.element(o),r=this.getFocusedElements()[0];if(r!==i){var a=this.findPreviousIndex(o,!1,t);-1<a&&r!==this.view.element(a)?this.setFocus([a],e):this.setFocus([o],e)}else{var s=this.view.getScrollTop();this.view.setScrollTop(s+this.view.renderHeight-this.view.elementHeight(o)),this.view.getScrollTop()!==s&&setTimeout((function(){return n.focusNextPage(e,t)}),0)}},be.prototype.focusPreviousPage=function(e,t){var n,o=this,i=this.view.getScrollTop();n=0===i?this.view.indexAt(i):this.view.indexAfter(i-1);var r=this.view.element(n),a=this.getFocusedElements()[0];if(a!==r){var s=this.findNextIndex(n,!1,t);-1<s&&a!==this.view.element(s)?this.setFocus([s],e):this.setFocus([n],e)}else{var l=i;this.view.setScrollTop(i-this.view.renderHeight),this.view.getScrollTop()!==l&&setTimeout((function(){return o.focusPreviousPage(e,t)}),0)}},be.prototype.focusLast=function(e,t){if(0!==this.length){var n=this.findPreviousIndex(this.length-1,!1,t);-1<n&&this.setFocus([n],e)}},be.prototype.focusFirst=function(e,t){if(0!==this.length){var n=this.findNextIndex(0,!1,t);-1<n&&this.setFocus([n],e)}},be.prototype.findNextIndex=function(e,t,n){void 0===t&&(t=!1);for(var o=0;o<this.length;o++){if(e>=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1},be.prototype.findPreviousIndex=function(e,t,n){void 0===t&&(t=!1);for(var o=0;o<this.length;o++){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},be.prototype.getFocus=function(){return this.focus.get()},be.prototype.getFocusedElements=function(){var e=this;return this.getFocus().map((function(t){return e.view.element(t)}))},be.prototype.reveal=function(e,t){if(e<0||e>=this.length)throw new b(this.user,"Invalid index "+e);var n=this.view.getScrollTop(),o=this.view.elementTop(e),i=this.view.elementHeight(e);if(Object(l.h)(t)){var r=i-this.view.renderHeight;this.view.setScrollTop(r*Object(E.a)(t,0,1)+o)}else{var a=o+i,s=n+this.view.renderHeight;o<n&&s<=a||(o<n?this.view.setScrollTop(o):s<=a&&this.view.setScrollTop(a-this.view.renderHeight))}},be.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new b(this.user,"Invalid index "+e);var t=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if(n<t||n+o>t+this.view.renderHeight)return null;var i=o-this.view.renderHeight;return Math.abs((t-n)/i)},be.prototype.getHTMLElement=function(){return this.view.domNode},be.prototype.open=function(e,t){for(var n=this,o=0,i=e;o<i.length;o++){var r=i[o];if(r<0||r>=this.length)throw new b(this.user,"Invalid index "+r)}this._onDidOpen.fire({indexes:e,elements:e.map((function(e){return n.view.element(e)})),browserEvent:t})},be.prototype.pin=function(e,t){for(var n=this,o=0,i=e;o<i.length;o++){var r=i[o];if(r<0||r>=this.length)throw new b(this.user,"Invalid index "+r)}this._onDidPin.fire({indexes:e,elements:e.map((function(e){return n.view.element(e)})),browserEvent:t})},be.prototype.style=function(e){this.styleController.style(e)},be.prototype.toListEvent=function(e){var t=this,n=e.indexes,o=e.browserEvent;return{indexes:n,elements:n.map((function(e){return t.view.element(e)})),browserEvent:o}},be.prototype._onFocusChange=function(){var e=this.focus.get();d.Y(this.view.domNode,"element-focused",0<e.length),this.onDidChangeActiveDescendant()},be.prototype.onDidChangeActiveDescendant=function(){var e,t=this.focus.get();if(0<t.length){var n=void 0;null!==(e=this.accessibilityProvider)&&void 0!==e&&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")},be.prototype._onSelectionChange=function(){var e=this.selection.get();d.Y(this.view.domNode,"selection-none",0===e.length),d.Y(this.view.domNode,"selection-single",1===e.length),d.Y(this.view.domNode,"selection-multiple",1<e.length)},be.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},P([u.a],be.prototype,"onFocusChange",null),P([u.a],be.prototype,"onSelectionChange",null),P([u.a],be.prototype,"onContextMenu",null),be);function be(e,t,n,o,r){void 0===r&&(r=ce),this.user=e,this._options=r,this.eventBufferer=new g.c,this.disposables=new s.b,this._onDidOpen=new g.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new g.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new g.a,this.onDidDispose=this._onDidDispose.event,this.focus=new F,this.selection=new j("selected"),Object(S.g)(r,le,!1);var l=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(l.push(new fe(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),o=o.map((function(e){return new he(e.templateId,I(l,[e]))}));var c=L(L({},r),{dnd:r.dnd&&new me(this,r.dnd)});if(this.view=new w.b(t,n,o,c),"string"!=typeof r.ariaRole?this.view.domNode.setAttribute("role",i.TREE):this.view.domNode.setAttribute("role",r.ariaRole),r.styleController)this.styleController=r.styleController(this.view.domId);else{var u=d.w(this.view.domNode);this.styleController=new ae(u,this.view.domId)}if(this.spliceable=new O([new W(this.focus,this.view,r.identityProvider),new W(this.selection,this.view,r.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=g.b.map(Object(m.a)(this.view.domNode,"focus",!0),(function(){return null})),this.onDidBlur=g.b.map(Object(m.a)(this.view.domNode,"blur",!0),(function(){return null})),this.disposables.add(new X(this,this.view)),"boolean"!=typeof r.keyboardSupport||r.keyboardSupport){var h=new U(this,this.view,r);this.disposables.add(h)}if(r.keyboardNavigationLabelProvider){var p=r.keyboardNavigationDelegate||G;this.typeLabelController=new Z(this,this.view,r.keyboardNavigationLabelProvider,p),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(r)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),r.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(a.a)("aria list","{0}. Use the navigation keys to navigate.",r.ariaLabel))}},function(e,t,n){"use strict";var o=n(505),i=n(439),r=n(702),a=n(443),s=n(442),l=n(686),c=n(688),u=n(896);function d(e,t){for(var n=[],o=0,i=t;o<i.length;o++){var r=i[o];if(!(e.start>=r.range.end)){if(e.end<r.range.start)break;var a=u.a.intersect(e,r.range);u.a.isEmpty(a)||n.push({range:a,size:r.size})}}return n}function h(e,t){return{start:e.start+t,end:e.end+t}}var p=(f.prototype.splice=function(e,t,n){void 0===n&&(n=[]);var o=n.length-t,i=d({start:0,end:e},this.groups),r=d({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((function(e){return{range:h(e.range,o),size:e.size}})),a=n.map((function(t,n){return{range:{start:e+n,end:e+n+1},size:t.size}}));this.groups=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e){for(var t=[],n=null,o=0,i=e;o<i.length;o++){var r=i[o],a=r.range.start,s=r.range.end,l=r.size;n&&l===n.size?n.range.end=s:(n={range:{start:a,end:s},size:l},t.push(n))}return t}(e.reduce((function(e,t){return e.concat(t)}),[]))}(i,a,r),this._size=this.groups.reduce((function(e,t){return e+t.size*(t.range.end-t.range.start)}),0)},Object.defineProperty(f.prototype,"count",{get:function(){var e=this.groups.length;return e?this.groups[e-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),f.prototype.indexAt=function(e){if(e<0)return-1;for(var t=0,n=0,o=0,i=this.groups;o<i.length;o++){var r=i[o],a=r.range.end-r.range.start,s=n+a*r.size;if(e<s)return t+Math.floor((e-n)/r.size);t+=a,n=s}return t},f.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.count)},f.prototype.positionAt=function(e){if(e<0)return-1;for(var t=0,n=0,o=0,i=this.groups;o<i.length;o++){var r=i[o],a=r.range.end-r.range.start,s=n+a;if(e<s)return t+(e-n)*r.size;t+=a*r.size,n=s}return-1},f);function f(){this.groups=[],this._size=0}var g=(m.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var n=Object(a.a)(".monaco-list-row");t={domNode:n,templateId:e,templateData:this.getRenderer(e).renderTemplate(n)}}return t},m.prototype.release=function(e){e&&this.releaseRow(e)},m.prototype.releaseRow=function(e){var t=e.domNode,n=e.templateId;t&&(Object(a.P)(t,"scrolling"),function(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(e){}}(t)),this.getTemplateCache(n).push(e)},m.prototype.getTemplateCache=function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t},m.prototype.dispose=function(){var e=this;this.cache.forEach((function(t,n){for(var o=0,i=t;o<i.length;o++){var r=i[o];e.getRenderer(n).disposeTemplate(r.templateData),r.domNode=null,r.templateData=null}})),this.cache.clear()},m.prototype.getRenderer=function(e){var t=this.renderers.get(e);if(!t)throw new Error("No renderer found for "+e);return t},m);function m(e){this.renderers=e,this.cache=new Map}var v=n(881),y=n(459),b=n(888),_=n(453),w=n(478);n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return P}));var C=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},S=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},O={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},x=(E.prototype.update=function(){},E.prototype.getData=function(){return this.elements},E);function E(e){this.elements=e}var k=(N.prototype.update=function(){},N.prototype.getData=function(){return this.elements},N);function N(e){this.elements=e}var D=(L.prototype.update=function(e){var t;if(e.types&&(t=this.types).splice.apply(t,S([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 o=e.files.item(n);o&&(o.size||o.type)&&this.files.push(o)}}},L.prototype.getData=function(){return{types:this.types,files:this.files}},L);function L(){this.types=[],this.files=[]}var P=(Object.defineProperty(I.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),I.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)}},I.prototype._splice=function(e,t,n){var o,r=this;void 0===n&&(n=[]);for(var a=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:e,end:e+t},l=u.a.intersect(a,s),c=l.start;c<l.end;c++)this.removeItemFromDOM(c);var d,f={start:e+t,end:this.items.length},g=u.a.intersect(f,a),m=u.a.relativeComplement(f,a),v=n.map((function(e){return{id:String(r.itemId++),element:e,templateId:r.virtualDelegate.getTemplateId(e),size:r.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!r.virtualDelegate.hasDynamicHeight&&r.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:i.a.None}}));d=0===e&&t>=this.items.length?(this.rangeMap=new p,this.rangeMap.splice(0,0,v),this.items=v,[]):(this.rangeMap.splice(e,t,v),(o=this.items).splice.apply(o,S([e,t],v)));var y=n.length-t,b=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=h(g,y),w=u.a.intersect(b,_);for(c=w.start;c<w.end;c++)this.updateItemInDOM(this.items[c],c);for(var C=0,O=u.a.relativeComplement(_,b);C<O.length;C++)for(c=(P=O[C]).start;c<P.end;c++)this.removeItemFromDOM(c);for(var x=m.map((function(e){return h(e,y)})),E={start:e,end:e+n.length},k=S([E],x).map((function(e){return u.a.intersect(b,e)})),N=this.getNextToLastElement(k),D=0,L=k;D<L.length;D++){var P;for(c=(P=L[D]).start;c<P.end;c++)this.insertItemInDOM(c,N)}return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),d.map((function(e){return e.element}))},I.prototype.eventuallyUpdateScrollDimensions=function(){var e=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=a.W((function(){e.scrollableElement.setScrollDimensions({scrollHeight:e.scrollHeight}),e.updateScrollWidth(),e.scrollableElementUpdateDisposable=null})))},I.prototype.eventuallyUpdateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.scrollableElementWidthDelayer.trigger((function(){return e.updateScrollWidth()}))},I.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 o=n[t];void 0!==o.width&&(e=Math.max(e,o.width))}this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e+10})}},I.prototype.rerender=function(){if(this.supportDynamicHeights){for(var e=0,t=this.items;e<t.length;e++)t[e].lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}},Object.defineProperty(I.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"renderHeight",{get:function(){return this.scrollableElement.getScrollDimensions().height},enumerable:!0,configurable:!0}),I.prototype.element=function(e){return this.items[e].element},I.prototype.domElement=function(e){var t=this.items[e].row;return t&&t.domNode},I.prototype.elementHeight=function(e){return this.items[e].size},I.prototype.elementTop=function(e){return this.rangeMap.positionAt(e)},I.prototype.indexAt=function(e){return this.rangeMap.indexAt(e)},I.prototype.indexAfter=function(e){return this.rangeMap.indexAfter(e)},I.prototype.layout=function(e,t){var n={height:"number"==typeof e?e:a.A(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,n.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(n),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:a.B(this.domNode)}))},I.prototype.render=function(e,t,n,o){for(var i=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),r=this.getRenderRange(e,t),a=u.a.relativeComplement(r,i),s=u.a.relativeComplement(i,r),l=this.getNextToLastElement(a),c=0,d=a;c<d.length;c++)for(var h=(g=d[c]).start;h<g.end;h++)this.insertItemInDOM(h,l);for(var p=0,f=s;p<f.length;p++){var g;for(h=(g=f[p]).start;h<g.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(o,this.renderWidth)+"px"),this.lastRenderTop=e,this.lastRenderHeight=t},I.prototype.insertItemInDOM=function(e,t){var n=this,o=this.items[e];if(!o.row){o.row=this.cache.alloc(o.templateId);var i=this.ariaProvider.getRole?this.ariaProvider.getRole(o.element):"treeitem";o.row.domNode.setAttribute("role",i);var r=this.ariaProvider.isChecked?this.ariaProvider.isChecked(o.element):void 0;void 0!==r&&o.row.domNode.setAttribute("aria-checked",String(r))}o.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(o.row.domNode,t):this.rowsContainer.appendChild(o.row.domNode)),this.updateItemInDOM(o,e);var a=this.renderers.get(o.templateId);if(!a)throw new Error("No renderer found for template id "+o.templateId);a&&a.renderElement(o.element,e,o.row.templateData,o.size);var s=this.dnd.getDragURI(o.element);if(o.dragStartDisposable.dispose(),o.row.domNode.draggable=!!s,s){var c=Object(l.a)(o.row.domNode,"dragstart");o.dragStartDisposable=c((function(e){return n.onDragStart(o.element,s,e)}))}this.horizontalScrolling&&(this.measureItemWidth(o),this.eventuallyUpdateScrollWidth())},I.prototype.measureItemWidth=function(e){if(e.row&&e.row.domNode){e.row.domNode.style.width=w.h?"-moz-fit-content":"fit-content",e.width=a.B(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=""}},I.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)),a.Y(e.row.domNode,"drop-target",e.dropTarget)},I.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()},I.prototype.getScrollTop=function(){return this.scrollableElement.getScrollPosition().scrollTop},I.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(I.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(e){this.setScrollTop(e)},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"onMouseClick",{get:function(){var e=this;return s.b.map(Object(l.a)(this.domNode,"click"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"onMouseDblClick",{get:function(){var e=this;return s.b.map(Object(l.a)(this.domNode,"dblclick"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"onMouseMiddleClick",{get:function(){var e=this;return s.b.filter(s.b.map(Object(l.a)(this.domNode,"auxclick"),(function(t){return e.toMouseEvent(t)})),(function(e){return 1===e.browserEvent.button}))},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"onMouseDown",{get:function(){var e=this;return s.b.map(Object(l.a)(this.domNode,"mousedown"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"onContextMenu",{get:function(){var e=this;return s.b.map(Object(l.a)(this.domNode,"contextmenu"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"onTouchStart",{get:function(){var e=this;return s.b.map(Object(l.a)(this.domNode,"touchstart"),(function(t){return e.toTouchEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"onTap",{get:function(){var e=this;return s.b.map(Object(l.a)(this.rowsContainer,r.a.Tap),(function(t){return e.toGestureEvent(t)}))},enumerable:!0,configurable:!0}),I.prototype.toMouseEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},I.prototype.toTouchEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},I.prototype.toGestureEvent=function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},I.prototype.toDragEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},I.prototype.onScroll=function(e){try{this.render(e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height)}catch(e){throw e}},I.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},I.prototype.onDragStart=function(e,t,n){if(n.dataTransfer){var o=this.dnd.getDragElements(e);if(n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(b.a.RESOURCES,JSON.stringify([t])),n.dataTransfer.setDragImage){var i=void 0;this.dnd.getDragLabel&&(i=this.dnd.getDragLabel(o,n)),void 0===i&&(i=String(o.length));var r=a.a(".monaco-drag-image");r.textContent=i,document.body.appendChild(r),n.dataTransfer.setDragImage(r,-10,-10),setTimeout((function(){return document.body.removeChild(r)}),0)}this.currentDragData=new x(o),b.c.CurrentDragAndDropData=new k(o),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,n)}},I.prototype.onDragOver=function(e){var t=this;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),b.c.CurrentDragAndDropData&&"vscode-ui"===b.c.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(b.c.CurrentDragAndDropData)this.currentDragData=b.c.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new D}var n,o,r,s=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"==typeof s?s:s.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;if(e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof s&&0===s.effect?"copy":"move",n="boolean"!=typeof s&&s.feedback?s.feedback:void 0===e.index?[-1]:[e.index],n=-1===(n=Object(y.e)(n).filter((function(e){return-1<=e&&e<t.length})).sort((function(e,t){return e-t})))[0]?[-1]:n,o=this.currentDragFeedback,r=n,Array.isArray(o)&&Array.isArray(r)?Object(y.g)(o,r):o===r)return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),-1===n[0])a.f(this.domNode,"drop-target"),a.f(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(i.h)((function(){a.P(t.domNode,"drop-target"),a.P(t.rowsContainer,"drop-target")}));else{for(var l=0,c=n;l<c.length;l++){var u=c[l],d=this.items[u];d.dropTarget=!0,d.row&&d.row.domNode&&a.f(d.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(i.h)((function(){for(var e=0,o=n;e<o.length;e++){var i=o[e],r=t.items[i];r.dropTarget=!1,r.row&&r.row.domNode&&a.P(r.row.domNode,"drop-target")}}))}return!0},I.prototype.onDragLeave=function(){var e=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(_.g)((function(){return e.clearDragOverFeedback()}),100)},I.prototype.onDrop=function(e){if(this.canDrop){var t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,b.c.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))}},I.prototype.onDragEnd=function(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,b.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},I.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=i.a.None},I.prototype.setupDragAndDropScrollTopAnimation=function(e){var t=this;if(!this.dragOverAnimationDisposable){var n=a.F(this.domNode).top;this.dragOverAnimationDisposable=a.p(this.animateDragAndDropScrollTop.bind(this,n))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(_.g)((function(){t.dragOverAnimationDisposable&&(t.dragOverAnimationDisposable.dispose(),t.dragOverAnimationDisposable=void 0)}),1e3),this.dragOverMouseY=e.pageY},I.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))):n<t&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-n))))}},I.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},I.prototype.getItemIndexFromEventTarget=function(e){for(var t=e;t instanceof HTMLElement&&t!==this.rowsContainer;){var n=t.getAttribute("data-index");if(n){var o=Number(n);if(!isNaN(o))return o}t=t.parentElement}},I.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}},I.prototype._rerender=function(e,t){var n,o,i=this.getRenderRange(e,t);e===this.elementTop(i.start)?(n=i.start,o=0):1<i.end-i.start&&(n=i.start+1,o=this.elementTop(n)-e);for(var r=0;;){for(var a=this.getRenderRange(e,t),s=!1,l=a.start;l<a.end;l++){var c=this.probeDynamicHeight(l);0!==c&&this.rangeMap.splice(l,1,[this.items[l]]),r+=c,s=s||0!==c}if(!s){0!==r&&this.eventuallyUpdateScrollDimensions();for(var d=0,h=u.a.relativeComplement(i,a);d<h.length;d++)for(l=(g=h[d]).start;l<g.end;l++)this.items[l].row&&this.removeItemFromDOM(l);for(var p=0,f=u.a.relativeComplement(a,i);p<f.length;p++){var g;for(l=(g=f[p]).start;l<g.end;l++){var m=l+1,v=m<this.items.length?this.items[m].row:null,y=v?v.domNode:null;this.insertItemInDOM(l,y)}}for(l=a.start;l<a.end;l++)this.items[l].row&&this.updateItemInDOM(this.items[l],l);return"number"==typeof n&&(this.scrollTop=this.elementTop(n)-o),void this._onDidChangeContentHeight.fire(this.contentHeight)}}},I.prototype.probeDynamicHeight=function(e){var t=this.items[e];if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;var n=t.size,o=this.cache.alloc(t.templateId);o.domNode.style.height="",this.rowsContainer.appendChild(o.domNode);var i=this.renderers.get(t.templateId);return i&&(i.renderElement(t.element,e,o.templateData,void 0),i.disposeElement&&i.disposeElement(t.element,e,o.templateData,void 0)),t.size=o.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(o.domNode),this.cache.release(o),t.size-n},I.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},I.prototype.getElementDomId=function(e){return this.domId+"_"+e},I.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 o=this.renderers.get(n.row.templateId);o&&o.disposeTemplate(n.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(i.f)(this.disposables)},I.InstanceCount=0,C([v.a],I.prototype,"onMouseClick",null),C([v.a],I.prototype,"onMouseDblClick",null),C([v.a],I.prototype,"onMouseMiddleClick",null),C([v.a],I.prototype,"onMouseDown",null),C([v.a],I.prototype,"onContextMenu",null),C([v.a],I.prototype,"onTouchStart",null),C([v.a],I.prototype,"onTap",null),I);function I(e,t,n,u){var d=this;if(void 0===u&&(u=O),this.virtualDelegate=t,this.domId="list_id_"+ ++I.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new _.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=i.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=i.a.None,this.onDragLeaveTimeout=i.a.None,this.disposables=new i.b,this._onDidChangeContentHeight=new s.a,u.horizontalScrolling&&u.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new p;for(var h=0,f=n;h<f.length;h++){var m=f[h];this.renderers.set(m.templateId,m)}this.cache=this.disposables.add(new g(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",a.f(this.domNode,this.domId),this.domNode.tabIndex=0,a.Y(this.domNode,"mouse-support","boolean"!=typeof u.mouseSupport||u.mouseSupport),this.horizontalScrolling=Object(o.f)(u,(function(e){return e.horizontalScrolling}),O.horizontalScrolling),a.Y(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight=void 0===u.additionalScrollHeight?0:u.additionalScrollHeight,this.ariaProvider=u.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(r.b.addTarget(this.rowsContainer)),this.scrollableElement=this.disposables.add(new c.b(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(o.f)(u,(function(e){return e.verticalScrollMode}),O.verticalScrollMode),useShadows:Object(o.f)(u,(function(e){return e.useShadows}),O.useShadows)})),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(l.a)(this.rowsContainer,r.a.Change)(this.onTouchChange,this,this.disposables),Object(l.a)(this.scrollableElement.getDomNode(),"scroll")((function(e){return e.target.scrollTop=0}),null,this.disposables),s.b.map(Object(l.a)(this.domNode,"dragover"),(function(e){return d.toDragEvent(e)}))(this.onDragOver,this,this.disposables),s.b.map(Object(l.a)(this.domNode,"drop"),(function(e){return d.toDragEvent(e)}))(this.onDrop,this,this.disposables),Object(l.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(l.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(o.f)(u,(function(e){return e.setRowLineHeight}),O.setRowLineHeight),this.supportDynamicHeights=Object(o.f)(u,(function(e){return e.supportDynamicHeights}),O.supportDynamicHeights),this.dnd=Object(o.f)(u,(function(e){return e.dnd}),O.dnd),this.layout()}},function(e,t,n){"use strict";var o=n(446),i=n(444),r=n(794),a=n(1085),s=n(440),l=n(466),c=(u.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(new s.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new s.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},u.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),o=n[0].range,i=n[1].range;return new l.a(o.endLineNumber,o.endColumn,i.endLineNumber,i.endColumn-this._charAfterSelection.length)},u);function u(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}var d=n(555),h=n(823),p=n(825),f=n(575);n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return _}));var g,m=(g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=(y.indent=function(e,t,n){if(null===t||null===n)return[];for(var o=[],i=0,r=n.length;i<r;i++)o[i]=new a.a(n[i],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return o},y.outdent=function(e,t,n){for(var o=[],i=0,r=n.length;i<r;i++)o[i]=new a.a(n[i],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return o},y.shiftIndent=function(e,t,n){return n=n||1,a.a.shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},y.unshiftIndent=function(e,t,n){return n=n||1,a.a.unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},y._distributedPaste=function(e,t,n,o){for(var i=[],a=0,s=n.length;a<s;a++)i[a]=new r.a(n[a],o[a]);return new d.e(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},y._simplePaste=function(e,t,n,o,i){for(var a=[],l=0,c=n.length;l<c;l++){var u=n[l],h=u.getPosition();if(i&&!u.isEmpty()&&(i=!1),i&&o.indexOf("\n")!==o.length-1&&(i=!1),i){var p=new s.a(h.lineNumber,1,h.lineNumber,1);a[l]=new r.b(p,o,u,!0)}else a[l]=new r.a(u,o)}return new d.e(0,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},y._distributePasteToCursors=function(e,t,n,o,i){if(o)return null;if(1===t.length)return null;if(i&&i.length===t.length)return i;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},y.paste=function(e,t,n,o,i,r){var a=this._distributePasteToCursors(e,n,o,i,r);return a?(n=n.sort(s.a.compareRangesUsingStarts),this._distributedPaste(e,t,n,a)):this._simplePaste(e,t,n,o,i)},y._goodIndentForLine=function(e,t,n){var o=null,r="",a=f.a.getInheritIndentForLine(e.autoIndent,t,n,!1);if(a)o=a.action,r=a.indentation;else if(1<n){var l=void 0;for(l=n-1;1<=l;l--){var c=t.getLineContent(l);if(0<=i.D(c))break}if(l<1)return null;var u=t.getLineMaxColumn(l),d=f.a.getEnterAction(e.autoIndent,t,new s.a(l,u,l,u));d&&(r=d.indentation+d.appendText)}return o&&(o===p.a.Indent&&(r=y.shiftIndent(e,r)),o===p.a.Outdent&&(r=y.unshiftIndent(e,r)),r=e.normalizeIndentation(r)),r||null},y._replaceJumpToNextIndent=function(e,t,n,o){var i="",a=n.getStartPosition();if(e.insertSpaces)for(var s=d.a.visibleColumnFromColumn2(e,t,a),l=e.indentSize,c=l-s%l,u=0;u<c;u++)i+=" ";else i="\t";return new r.a(n,i,o)},y.tab=function(e,t,n){for(var o=[],l=0,c=n.length;l<c;l++){var u=n[l];if(u.isEmpty()){var d=t.getLineContent(u.startLineNumber);if(/^\s*$/.test(d)&&t.isCheapToTokenize(u.startLineNumber)){var h=this._goodIndentForLine(e,t,u.startLineNumber);h=h||"\t";var p=e.normalizeIndentation(h);if(!i.N(d,p)){o[l]=new r.a(new s.a(u.startLineNumber,1,u.startLineNumber,d.length+1),p,!0);continue}}o[l]=this._replaceJumpToNextIndent(e,t,u,!0)}else{if(u.startLineNumber===u.endLineNumber){var f=t.getLineMaxColumn(u.startLineNumber);if(1!==u.startColumn||u.endColumn!==f){o[l]=this._replaceJumpToNextIndent(e,t,u,!1);continue}}o[l]=new a.a(u,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent})}}return o},y.replacePreviousChar=function(e,t,n,o,i,a){for(var l=[],c=0,u=o.length;c<u;c++){var h=o[c];if(h.isEmpty()){var p=h.getPosition(),f=Math.max(1,p.column-a),g=new s.a(p.lineNumber,f,p.lineNumber,p.column);l[c]=new r.a(g,i)}else l[c]=null}return new d.e(1,l,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},y._typeCommand=function(e,t,n){return n?new r.e(e,t,!0):new r.a(e,t,!0)},y._enter=function(e,t,n,o){if(0===e.autoIndent)return y._typeCommand(o,"\n",n);if(!t.isCheapToTokenize(o.getStartPosition().lineNumber)||1===e.autoIndent){var a=t.getLineContent(o.startLineNumber),l=i.t(a).substring(0,o.startColumn-1);return y._typeCommand(o,"\n"+e.normalizeIndentation(l),n)}var c=f.a.getEnterAction(e.autoIndent,t,o);if(c){if(c.indentAction===p.a.None)return y._typeCommand(o,"\n"+e.normalizeIndentation(c.indentation+c.appendText),n);if(c.indentAction===p.a.Indent)return y._typeCommand(o,"\n"+e.normalizeIndentation(c.indentation+c.appendText),n);if(c.indentAction===p.a.IndentOutdent){var u=e.normalizeIndentation(c.indentation),h=e.normalizeIndentation(c.indentation+c.appendText),g="\n"+h+"\n"+u;return n?new r.e(o,g,!0):new r.d(o,g,-1,h.length-u.length,!0)}if(c.indentAction===p.a.Outdent){var m=y.unshiftIndent(e,c.indentation);return y._typeCommand(o,"\n"+e.normalizeIndentation(m+c.appendText),n)}}var v=t.getLineContent(o.startLineNumber),b=i.t(v).substring(0,o.startColumn-1);if(4<=e.autoIndent){var _=f.a.getIndentForEnter(e.autoIndent,t,o,{unshiftIndent:function(t){return y.unshiftIndent(e,t)},shiftIndent:function(t){return y.shiftIndent(e,t)},normalizeIndentation:function(t){return e.normalizeIndentation(t)}});if(_){var w=d.a.visibleColumnFromColumn2(e,t,o.getEndPosition()),C=o.endColumn,S="\n";b!==e.normalizeIndentation(_.beforeEnter)&&(S=e.normalizeIndentation(_.beforeEnter)+v.substring(b.length,o.startColumn-1)+"\n",o=new s.a(o.startLineNumber,1,o.endLineNumber,o.endColumn));var O=t.getLineContent(o.endLineNumber),x=i.q(O);if(o=0<=x?o.setEndPosition(o.endLineNumber,Math.max(o.endColumn,x+1)):o.setEndPosition(o.endLineNumber,t.getLineMaxColumn(o.endLineNumber)),n)return new r.e(o,S+e.normalizeIndentation(_.afterEnter),!0);var E=0;return C<=x+1&&(e.insertSpaces||(w=Math.ceil(w/e.indentSize)),E=Math.min(w+1-e.normalizeIndentation(_.afterEnter).length-1,0)),new r.d(o,S+e.normalizeIndentation(_.afterEnter),0,E,!0)}}return y._typeCommand(o,"\n"+e.normalizeIndentation(b),n)},y._isAutoIndentType=function(e,t,n){if(e.autoIndent<4)return!1;for(var o=0,i=n.length;o<i;o++)if(!t.isCheapToTokenize(n[o].getEndPosition().lineNumber))return!1;return!0},y._runAutoIndentType=function(e,t,n,o){var i=f.a.getIndentationAtPosition(t,n.startLineNumber,n.startColumn),r=f.a.getIndentActionForType(e.autoIndent,t,n,o,{shiftIndent:function(t){return y.shiftIndent(e,t)},unshiftIndent:function(t){return y.unshiftIndent(e,t)}});if(null===r)return null;if(r===e.normalizeIndentation(i))return null;var a=t.getLineFirstNonWhitespaceColumn(n.startLineNumber);return y._typeCommand(new s.a(n.startLineNumber,0,n.endLineNumber,n.endColumn),0===a?e.normalizeIndentation(r)+o:e.normalizeIndentation(r)+t.getLineContent(n.startLineNumber).substring(a-1,n.startColumn-1)+o,!1)},y._isAutoClosingOvertype=function(e,t,n,o,i){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairsClose2.has(i))return!1;for(var r=0,a=n.length;r<a;r++){var s=n[r];if(!s.isEmpty())return!1;var l=s.getPosition(),c=t.getLineContent(l.lineNumber);if(c.charAt(l.column-1)!==i)return!1;var u=Object(d.g)(i);if(92===(2<l.column?c.charCodeAt(l.column-2):0)&&u)return!1;if("auto"===e.autoClosingOvertype){for(var h=!1,p=0,f=o.length;p<f;p++){var g=o[p];if(l.lineNumber===g.startLineNumber&&l.column===g.startColumn){h=!0;break}}if(!h)return!1}}return!0},y._runAutoClosingOvertype=function(e,t,n,o,i){for(var a=[],l=0,c=o.length;l<c;l++){var u=o[l].getPosition(),h=new s.a(u.lineNumber,u.column,u.lineNumber,u.column+1);a[l]=new r.a(h,i)}return new d.e(1,a,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},y._autoClosingPairIsSymmetric=function(e){var t=e.open,n=e.close;return 0<=t.indexOf(n)||0<=n.indexOf(t)},y._isBeforeClosingBrace=function(e,t,n){var o=e.autoClosingPairsClose2.get(n);if(!o)return!1;for(var i=y._autoClosingPairIsSymmetric(t),r=0,a=o;r<a.length;r++){var s=a[r],l=y._autoClosingPairIsSymmetric(s);if(i||!l)return!0}return!1},y._findAutoClosingPairOpen=function(e,t,n,o){var i=e.autoClosingPairsOpen2.get(o);if(!i)return null;for(var r=null,a=0,l=i;a<l.length;a++){var c=l[a];if(null===r||c.open.length>r.open.length){for(var u=!0,d=0,h=n;d<h.length;d++){var p=h[d];if(t.getValueInRange(new s.a(p.lineNumber,p.column-c.open.length+1,p.lineNumber,p.column))+o!==c.open){u=!1;break}}u&&(r=c)}}return r},y._isAutoClosingOpenCharType=function(e,t,n,i,r){var a=Object(d.g)(i),s=a?e.autoClosingQuotes:e.autoClosingBrackets;if("never"===s)return null;var l=this._findAutoClosingPairOpen(e,t,n.map((function(e){return e.getPosition()})),i);if(!l)return null;for(var c=a?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket,u=0,p=n.length;u<p;u++){var g=n[u];if(!g.isEmpty())return null;var m=g.getPosition(),v=t.getLineContent(m.lineNumber);if(v.length>m.column-1){var b=v.charAt(m.column-1);if(!y._isBeforeClosingBrace(e,l,b)&&!c(b))return null}if(!t.isCheapToTokenize(m.lineNumber))return null;if(1===l.open.length&&a&&"always"!==s){var _=Object(h.a)(e.wordSeparators);if(r&&1<m.column&&0===_.get(v.charCodeAt(m.column-2)))return null;if(!r&&2<m.column&&0===_.get(v.charCodeAt(m.column-3)))return null}t.forceTokenization(m.lineNumber);var w=t.getLineTokens(m.lineNumber),C=!1;try{C=f.a.shouldAutoClosePair(l,w,r?m.column:m.column-1)}catch(e){Object(o.e)(e)}if(!C)return null}return l},y._runAutoClosingOpenCharType=function(e,t,n,o,i,r,a){for(var s=[],l=0,c=o.length;l<c;l++){var u=o[l];s[l]=new _(u,i,r,a.close)}return new d.e(1,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},y._shouldSurroundChar=function(e,t){return Object(d.g)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround},y._isSurroundSelectionType=function(e,t,n,o){if(!y._shouldSurroundChar(e,o)||!e.surroundingPairs.hasOwnProperty(o))return!1;for(var i=Object(d.g)(o),r=0,a=n.length;r<a;r++){var s=n[r];if(s.isEmpty())return!1;for(var l=!0,c=s.startLineNumber;c<=s.endLineNumber;c++){var u=t.getLineContent(c),h=c===s.startLineNumber?s.startColumn-1:0,p=c===s.endLineNumber?s.endColumn-1:u.length,f=u.substring(h,p);if(/[^ \t]/.test(f)){l=!1;break}}if(l)return!1;if(i&&s.startLineNumber===s.endLineNumber&&s.startColumn+1===s.endColumn){var g=t.getValueInRange(s);if(Object(d.g)(g))return!1}}return!0},y._runSurroundSelectionType=function(e,t,n,o,i){for(var r=[],a=0,s=o.length;a<s;a++){var l=o[a],u=t.surroundingPairs[i];r[a]=new c(l,i,u)}return new d.e(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},y._isTypeInterceptorElectricChar=function(e,t,n){return!(1!==n.length||!t.isCheapToTokenize(n[0].getEndPosition().lineNumber))},y._typeInterceptorElectricChar=function(e,t,n,a,l){if(!t.electricChars.hasOwnProperty(l)||!a.isEmpty())return null;var c=a.getPosition();n.forceTokenization(c.lineNumber);var u,h=n.getLineTokens(c.lineNumber);try{u=f.a.onElectricCharacter(l,h,c.column)}catch(e){return Object(o.e)(e),null}if(!u)return null;if(u.matchOpenBracket){var p=(h.getLineContent()+l).lastIndexOf(u.matchOpenBracket)+1,g=n.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:c.lineNumber,column:p});if(g){if(g.startLineNumber===c.lineNumber)return null;var m=n.getLineContent(g.startLineNumber),v=i.t(m),y=t.normalizeIndentation(v),b=n.getLineContent(c.lineNumber),_=n.getLineFirstNonWhitespaceColumn(c.lineNumber)||c.column,w=y+b.substring(_-1,c.column-1)+l,C=new s.a(c.lineNumber,1,c.lineNumber,c.column),S=new r.a(C,w);return new d.e(1,[S],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},y.compositionEndWithInterceptors=function(e,t,n,o,i,a){if(!o||l.a.selectionsArrEqual(o,i))return null;for(var c=null,u=0,h=i;u<h.length;u++){var p=h[u];if(!p.isEmpty())return null;var f=p.getPosition(),g=n.getValueInRange(new s.a(f.lineNumber,f.column-1,f.lineNumber,f.column));if(null===c)c=g;else if(c!==g)return null}if(!c)return null;if(this._isAutoClosingOvertype(t,n,i,a,c)){var m=i.map((function(e){return new r.a(new s.a(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)}));return new d.e(1,m,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var v=this._isAutoClosingOpenCharType(t,n,i,c,!1);return v?this._runAutoClosingOpenCharType(e,t,n,i,c,!1,v):null},y.typeWithInterceptors=function(e,t,n,o,i,a){if("\n"===a){for(var s=[],l=0,c=o.length;l<c;l++)s[l]=y._enter(t,n,!1,o[l]);return new d.e(1,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(t,n,o)){var u=[],h=!1;for(l=0,c=o.length;l<c;l++)if(u[l]=this._runAutoIndentType(t,n,o[l],a),!u[l]){h=!0;break}if(!h)return new d.e(1,u,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(t,n,o,i,a))return this._runAutoClosingOvertype(e,t,n,o,a);var p=this._isAutoClosingOpenCharType(t,n,o,a,!0);if(p)return this._runAutoClosingOpenCharType(e,t,n,o,a,!0,p);if(this._isSurroundSelectionType(t,n,o,a))return this._runSurroundSelectionType(e,t,n,o,a);if(this._isTypeInterceptorElectricChar(t,n,o)){var f=this._typeInterceptorElectricChar(e,t,n,o[0],a);if(f)return f}var g=[];for(l=0,c=o.length;l<c;l++)g[l]=new r.a(o[l],a);var m=1!==e;return" "===a&&(m=!0),new d.e(1,g,{shouldPushStackElementBefore:m,shouldPushStackElementAfter:!1})},y.typeWithoutInterceptors=function(e,t,n,o,i){for(var a=[],s=0,l=o.length;s<l;s++)a[s]=new r.a(o[s],i);return new d.e(1,a,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},y.lineInsertBefore=function(e,t,n){if(null===t||null===n)return[];for(var o=[],i=0,a=n.length;i<a;i++){var l=n[i].positionLineNumber;if(1===l)o[i]=new r.e(new s.a(1,1,1,1),"\n");else{l--;var c=t.getLineMaxColumn(l);o[i]=this._enter(e,t,!1,new s.a(l,c,l,c))}}return o},y.lineInsertAfter=function(e,t,n){if(null===t||null===n)return[];for(var o=[],i=0,r=n.length;i<r;i++){var a=n[i].positionLineNumber,l=t.getLineMaxColumn(a);o[i]=this._enter(e,t,!1,new s.a(a,l,a,l))}return o},y.lineBreakInsert=function(e,t,n){for(var o=[],i=0,r=n.length;i<r;i++)o[i]=this._enter(e,t,!0,n[i]);return o},y);function y(){}var b,_=(m(w,b=r.d),w.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new s.a(n.startLineNumber,n.endColumn-this._closeCharacter.length,n.endLineNumber,n.endColumn),this.enclosingRange=new s.a(n.startLineNumber,n.endColumn-this._openCharacter.length-this._closeCharacter.length,n.endLineNumber,n.endColumn),b.prototype.computeCursorState.call(this,e,t)},w);function w(e,t,n,o){var i=b.call(this,e,(n?t:"")+o,0,-o.length)||this;return i._openCharacter=t,i._closeCharacter=o,i.closeCharacterRange=null,i.enclosingRange=null,i}},function(e,t,n){"use strict";var o=n(445),i=n(465),r=n(960),a=n(772),s=n(961),l=n(443),c=(n(1356),n(505)),u=n(1092),d=l.a,h=(p.prototype.set=function(e,t){this.didEverRender&&this.keybinding===e&&p.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())},p.prototype.render=function(){if(l.t(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&&(l.q(this.domNode,d("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},p.prototype.renderPart=function(e,t,n){var o=u.b.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,o.ctrlKey,Boolean(null==n?void 0:n.ctrlKey),o.separator),t.shiftKey&&this.renderKey(e,o.shiftKey,Boolean(null==n?void 0:n.shiftKey),o.separator),t.altKey&&this.renderKey(e,o.altKey,Boolean(null==n?void 0:n.altKey),o.separator),t.metaKey&&this.renderKey(e,o.metaKey,Boolean(null==n?void 0:n.metaKey),o.separator);var i=t.keyLabel;i&&this.renderKey(e,i,Boolean(null==n?void 0:n.keyCode),"")},p.prototype.renderKey=function(e,t,n,o){l.q(e,d("span.monaco-keybinding-key"+(n?".highlight":""),void 0,t)),o&&l.q(e,d("span.monaco-keybinding-key-separator",void 0,o))},p.prototype.renderUnbound=function(e){l.q(e,d("span.monaco-keybinding-key",void 0,Object(o.a)("unbound","Unbound")))},p.areSame=function(e,t){return e===t||!e&&!t||!!e&&!!t&&Object(c.e)(e.firstPart,t.firstPart)&&Object(c.e)(e.chordPart,t.chordPart)},p);function p(e,t,n){this.os=t,this.options=n,this.domNode=l.q(e,d(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}var f=n(452),g=n(459);n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return D}));var m,v=(m=function(e,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=0,b=(_.prototype.getId=function(){return this.id},_.prototype.getLabel=function(){},_.prototype.getLabelOptions=function(){},_.prototype.getAriaLabel=function(){return Object(g.d)([this.getLabel(),this.getDescription(),this.getDetail()]).join(", ")},_.prototype.getDetail=function(){},_.prototype.getIcon=function(){},_.prototype.getDescription=function(){},_.prototype.getTooltip=function(){},_.prototype.getDescriptionTooltip=function(){},_.prototype.getKeybinding=function(){},_.prototype.isHidden=function(){return!!this.hidden},_.prototype.setHighlights=function(e,t,n){this.labelHighlights=e,this.descriptionHighlights=t,this.detailHighlights=n},_.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},_.prototype.run=function(e,t){return!1},_);function _(e){void 0===e&&(e=[]),this.id=(y++).toString(),this.labelHighlights=e,this.descriptionHighlights=[]}var w,C=(v(S,w=b),S.prototype.getGroupLabel=function(){return this.groupLabel},S.prototype.setGroupLabel=function(e){this.groupLabel=e},S.prototype.showBorder=function(){return!!this.withBorder},S.prototype.setShowBorder=function(e){this.withBorder=e},S.prototype.getLabel=function(){return this.entry?this.entry.getLabel():w.prototype.getLabel.call(this)},S.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():w.prototype.getLabelOptions.call(this)},S.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():w.prototype.getAriaLabel.call(this)},S.prototype.getDetail=function(){return this.entry?this.entry.getDetail():w.prototype.getDetail.call(this)},S.prototype.getIcon=function(){return this.entry?this.entry.getIcon():w.prototype.getIcon.call(this)},S.prototype.getDescription=function(){return this.entry?this.entry.getDescription():w.prototype.getDescription.call(this)},S.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():w.prototype.getHighlights.call(this)},S.prototype.isHidden=function(){return this.entry?this.entry.isHidden():w.prototype.isHidden.call(this)},S.prototype.setHighlights=function(e,t,n){this.entry?this.entry.setHighlights(e,t,n):w.prototype.setHighlights.call(this,e,t,n)},S.prototype.run=function(e,t){return this.entry?this.entry.run(e,t):w.prototype.run.call(this,e,t)},S);function S(e,t,n){var o=w.call(this)||this;return o.entry=e,o.groupLabel=t,o.withBorder=n,o}var O=(x.prototype.hasActions=function(e,t){return!1},x.prototype.getActions=function(e,t){return null},x);function x(){}var E="quickOpenEntryGroup",k=(N.prototype.getHeight=function(e){return e.getDetail()?44:22},N.prototype.getTemplateId=function(e){return e instanceof C?E:"quickOpenEntry"},N.prototype.renderTemplate=function(e,t,n){var o=document.createElement("div");l.f(o,"sub-content"),t.appendChild(o);var i=l.a(".quick-open-row"),c=l.a(".quick-open-row"),u=l.a(".quick-open-entry",void 0,i,c);o.appendChild(u);var d=document.createElement("span");i.appendChild(d);var p=new r.a(i,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0}),g=document.createElement("span");i.appendChild(g),l.f(g,"quick-open-entry-keybinding");var m=new h(g,f.a),v=document.createElement("div");c.appendChild(v),l.f(v,"quick-open-entry-meta");var y,b=new s.a(v,!0);e===E&&(y=document.createElement("div"),l.f(y,"results-group"),t.appendChild(y)),l.f(t,"actions");var _=document.createElement("div");return l.f(_,"primary-action-bar"),t.appendChild(_),{container:t,entry:u,icon:d,label:p,detail:b,keybinding:m,group:y,actionBar:new a.a(_,{actionRunner:this.actionRunner})}},N.prototype.renderElement=function(e,t,n,o){this.actionProvider.hasActions(null,e)?l.f(n.container,"has-actions"):l.P(n.container,"has-actions"),n.actionBar.context=e;var i=this.actionProvider.getActions(null,e);if(n.actionBar.isEmpty()&&i&&0<i.length?n.actionBar.push(i,{icon:!0,label:!1}):n.actionBar.isEmpty()||i&&0!==i.length||n.actionBar.clear(),e instanceof C&&e.getGroupLabel()?l.f(n.container,"has-group-label"):l.P(n.container,"has-group-label"),e instanceof C){var r=e,a=n;r.showBorder()?(l.f(a.container,"results-group-separator"),o.pickerGroupBorder&&(a.container.style.borderTopColor=o.pickerGroupBorder.toString())):(l.P(a.container,"results-group-separator"),a.container.style.borderTopColor="");var s=r.getGroupLabel()||"";a.group&&(a.group.textContent=s,o.pickerGroupForeground&&(a.group.style.color=o.pickerGroupForeground.toString()))}if(e instanceof b){var c=e.getHighlights(),u=c[0],d=c[1],h=c[2],p=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=p;var f=e.getLabelOptions()||Object.create(null);f.matches=u||[],f.title=e.getTooltip(),f.descriptionTitle=e.getDescriptionTooltip()||e.getDescription(),f.descriptionMatches=d||[],n.label.setLabel(e.getLabel()||"",e.getDescription(),f),n.detail.set(e.getDetail(),h),n.keybinding.set(e.getKeybinding())}},N.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},N);function N(e,t){void 0===e&&(e=new O),this.actionProvider=e,this.actionRunner=t}var D=(Object.defineProperty(L.prototype,"entries",{get:function(){return this._entries},set:function(e){this._entries=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),L.prototype.getId=function(e){return e.getId()},L.prototype.getLabel=function(e){return i.o(e.getLabel())},L.prototype.getAriaLabel=function(e){return e.getAriaLabel()?o.a("quickOpenAriaLabelEntry","{0}, picker",e.getAriaLabel()):o.a("quickOpenAriaLabel","picker")},L.prototype.isVisible=function(e){return!e.isHidden()},L.prototype.run=function(e,t,n){return e.run(t,n)},L);function L(e,t){void 0===e&&(e=[]),void 0===t&&(t=new O),this._entries=e,(this._dataSource=this)._renderer=new k(t),((this._filter=this)._runner=this)._accessibilityProvider=this}},function(e,t,n){"use strict";n(1333);var o=n(445),i=n(478),r=n(443),a=n(943),s=n(635),l=n(772),c=n(442),u=n(597),d=n(490),h=n(505),p=n(700),f=(g.prototype.add=function(e){this._history.delete(e),this._history.add(e),this._onChange()},g.prototype.next=function(){return this._navigator.next()},g.prototype.previous=function(){return this._navigator.previous()},g.prototype.current=function(){return this._navigator.current()},g.prototype.parent=function(){return null},g.prototype.first=function(){return this._navigator.first()},g.prototype.last=function(){return this._navigator.last()},g.prototype.has=function(e){return this._history.has(e)},g.prototype._onChange=function(){this._reduceToLimit();var e=this._elements;this._navigator=new p.b(e,0,e.length,e.length)},g.prototype._reduceToLimit=function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))},g.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t<n.length;t++){var o=n[t];this._history.add(o)}},Object.defineProperty(g.prototype,"_elements",{get:function(){var e=[];return this._history.forEach((function(t){return e.push(t)})),e},enumerable:!0,configurable:!0}),g);function g(e,t){void 0===e&&(e=[]),void 0===t&&(t=10),this._initialize(e),this._limit=t,this._onChange()}var m=n(688),v=n(686);n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return E}));var y,b,_=(y=function(e,t){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=r.a,C={inputBackground:d.a.fromHex("#3C3C3C"),inputForeground:d.a.fromHex("#CCCCCC"),inputValidationInfoBorder:d.a.fromHex("#55AAFF"),inputValidationInfoBackground:d.a.fromHex("#063B49"),inputValidationWarningBorder:d.a.fromHex("#B89500"),inputValidationWarningBackground:d.a.fromHex("#352A05"),inputValidationErrorBorder:d.a.fromHex("#BE1100"),inputValidationErrorBackground:d.a.fromHex("#5A1D1D")},S=(_(O,b=u.a),O.prototype.onBlur=function(){this._hideMessage()},O.prototype.onFocus=function(){this._showMessage()},O.prototype.setPlaceHolder=function(e){this.placeholder=e,this.input.setAttribute("placeholder",e),this.input.title=e},O.prototype.setAriaLabel=function(e){(this.ariaLabel=e)?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")},Object.defineProperty(O.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(O.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(O.prototype,"height",{get:function(){return"number"==typeof this.cachedHeight?this.cachedHeight:r.G(this.element)},enumerable:!0,configurable:!0}),O.prototype.focus=function(){this.input.focus()},O.prototype.blur=function(){this.input.blur()},O.prototype.hasFocus=function(){return document.activeElement===this.input},O.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},O.prototype.enable=function(){this.input.removeAttribute("disabled")},O.prototype.disable=function(){this.blur(),this.input.disabled=!0,this._hideMessage()},Object.defineProperty(O.prototype,"width",{get:function(){return r.H(this.input)},set:function(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){var t=0;this.mirror&&(t=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0)),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(O.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}),O.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})}},O.prototype.showMessage=function(e,t){this.message=e,r.P(this.element,"idle"),r.P(this.element,"info"),r.P(this.element,"warning"),r.P(this.element,"error"),r.f(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?o.a("alertErrorMessage","Error: {0}",e.content):2===e.type?o.a("alertWarningMessage","Warning: {0}",e.content):o.a("alertInfoMessage","Info: {0}",e.content),s.a(n),(this.hasFocus()||t)&&this._showMessage()},O.prototype.hideMessage=function(){this.message=null,r.P(this.element,"info"),r.P(this.element,"warning"),r.P(this.element,"error"),r.f(this.element,"idle"),this._hideMessage(),this.applyStyles()},O.prototype.validate=function(){var e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e},O.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}}},O.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}},O.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,n=function(){return t.style.width=r.H(e.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(o){if(!e.message)return null;t=r.q(o,w(".monaco-inputbox-container")),n();var i=(e.message.formatContent?Object(a.b):Object(a.c))(e.message.content,{inline:!0,className:"monaco-inputbox-message"});r.f(i,e.classForType(e.message.type));var s=e.stylesForType(e.message.type);return i.style.backgroundColor=s.background?s.background.toString():"",i.style.color=s.foreground?s.foreground.toString():"",i.style.border=s.border?"1px solid "+s.border:"",r.q(t,i),null},onHide:function(){e.state="closed"},layout:n}),this.state="open"}},O.prototype._hideMessage=function(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")},O.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),r.Y(this.input,"empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()},O.prototype.updateMirror=function(){if(this.mirror){var e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";e+t?this.mirror.textContent=e+t:this.mirror.innerHTML=" ",this.layout()}},O.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()},O.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},O.prototype.layout=function(){if(this.mirror){var e=this.cachedContentHeight;this.cachedContentHeight=r.G(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))}},O.prototype.insertAtCursor=function(e){var t=this.inputElement,n=t.selectionStart,o=t.selectionEnd,i=t.value;null!==n&&null!==o&&(this.value=i.substr(0,n)+e+i.substr(o),t.setSelectionRange(n+1,n+1),this.layout())},O.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),b.prototype.dispose.call(this)},O);function O(e,t,n){var o=b.call(this)||this;o.state="idle",o.maxHeight=Number.POSITIVE_INFINITY,o._onDidChange=o._register(new c.a),o.onDidChange=o._onDidChange.event,o._onDidHeightChange=o._register(new c.a),o.onDidHeightChange=o._onDidHeightChange.event,o.contextViewProvider=t,o.options=n||Object.create(null),Object(h.g)(o.options,C,!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=r.q(e,w(".monaco-inputbox.idle"));var a=o.options.flexibleHeight?"textarea":"input",s=r.q(o.element,w(".wrapper"));if(o.input=r.q(s,w(a+".input.empty")),o.input.setAttribute("autocorrect","off"),o.input.setAttribute("autocapitalize","off"),o.input.setAttribute("spellcheck","false"),o.onfocus(o.input,(function(){return r.f(o.element,"synthetic-focus")})),o.onblur(o.input,(function(){return r.P(o.element,"synthetic-focus")})),o.options.flexibleHeight){o.maxHeight="number"==typeof o.options.flexibleMaxHeight?o.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,o.mirror=r.q(s,w("div.mirror")),o.mirror.innerHTML=" ",o.scrollableElement=new m.b(o.element,{vertical:1}),o.options.flexibleWidth&&(o.input.setAttribute("wrap","off"),o.mirror.style.whiteSpace="pre",o.mirror.style.wordWrap="initial"),r.q(e,o.scrollableElement.getDomNode()),o._register(o.scrollableElement),o._register(o.scrollableElement.onScroll((function(e){return o.input.scrollTop=e.scrollTop})));var u=c.b.filter(Object(v.a)(document,"selectionchange"),(function(){var e=document.getSelection();return(null==e?void 0:e.anchorNode)===s}));o._register(u(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&&i.i&&o.onclick(o.input,(function(e){r.c.stop(e,!0),o.input.focus()})),o.ignoreGesture(o.input),setTimeout((function(){return o.updateMirror()}),0),o.options.actions&&(o.actionbar=o._register(new l.a(o.element)),o.actionbar.push(o.options.actions,{icon:!0,label:!1})),o.applyStyles(),o}var x,E=(_(k,x=S),k.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},k.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();(e=e&&(e===this.value?this.getNextValue():e))&&(this.value=e,s.c(this.value))},k.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();(e=e&&(e===this.value?this.getPreviousValue():e))&&(this.value=e,s.c(this.value))},k.prototype.getCurrentValue=function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e},k.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},k.prototype.getNextValue=function(){return this.history.next()||this.history.last()},k);function k(e,t,n){var o=x.call(this,e,t,n)||this;return o.history=new f(n.history,100),o}},function(e,t,n){"use strict";var o=(i.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},i.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},i);function i(e,t,n,o){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=o}var r=n(952);n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return g}));var a=(s.prototype.getElements=function(){for(var e=this.source,t=new Int32Array(e.length),n=0,o=e.length;n<o;n++)t[n]=e.charCodeAt(n);return t},s);function s(e){this.source=e}function l(e,t,n){return new g(new a(e),new a(t)).ComputeDiff(n).changes}var c=(u.Assert=function(e,t){if(!e)throw new Error(t)},u);function u(){}var d=(h.Copy=function(e,t,n,o,i){for(var r=0;r<i;r++)n[o+r]=e[t+r]},h.Copy2=function(e,t,n,o,i){for(var r=0;r<i;r++)n[o+r]=e[t+r]},h);function h(){}var p=(f.prototype.MarkNextChange=function(){(0<this.m_originalCount||0<this.m_modifiedCount)&&this.m_changes.push(new o(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},f.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++},f.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++},f.prototype.getChanges=function(){return(0<this.m_originalCount||0<this.m_modifiedCount)&&this.MarkNextChange(),this.m_changes},f.prototype.getReverseChanges=function(){return(0<this.m_originalCount||0<this.m_modifiedCount)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},f);function f(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}var g=(m._isStringArray=function(e){return 0<e.length&&"string"==typeof e[0]},m._getElements=function(e){var t=e.getElements();if(m._isStringArray(t)){for(var n=new Int32Array(t.length),o=0,i=t.length;o<i;o++)n[o]=Object(r.b)(t[o],0);return[t,n,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]},m.prototype.ElementsAreEqual=function(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])},m.prototype.OriginalElementsAreEqual=function(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])},m.prototype.ModifiedElementsAreEqual=function(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])},m.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)},m.prototype._ComputeDiff=function(e,t,n,o,i){var r=[!1],a=this.ComputeDiffRecursive(e,t,n,o,r);return i&&(a=this.PrettifyChanges(a)),{quitEarly:r[0],changes:a}},m.prototype.ComputeDiffRecursive=function(e,t,n,i,r){for(r[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;e<=t&&n<=i&&this.ElementsAreEqual(t,i);)t--,i--;if(t<e||i<n)return n<=i?(c.Assert(e===t+1,"originalStart should only be one more than originalEnd"),[new o(e,0,n,i-n+1)]):e<=t?(c.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),[new o(e,t-e+1,n,0)]):(c.Assert(e===t+1,"originalStart should only be one more than originalEnd"),c.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),[]);var a=[0],s=[0],l=this.ComputeRecursionPoint(e,t,n,i,a,s,r),u=a[0],d=s[0];if(null!==l)return l;if(r[0])return[new o(e,t-e+1,n,i-n+1)];var h,p=this.ComputeDiffRecursive(e,u,n,d,r);return h=r[0]?[new o(u+1,t-(u+1)+1,d+1,i-(d+1)+1)]:this.ComputeDiffRecursive(u+1,t,d+1,i,r),this.ConcatenateChanges(p,h)},m.prototype.WALKTRACE=function(e,t,n,i,r,a,s,l,c,u,d,h,f,g,m,v,y,b){for(var _,w=null,C=new p,S=t,O=n,x=f[0]-v[0]-i,E=-1073741824,k=this.m_forwardHistory.length-1;x=(P=x+e)===S||P<O&&c[P-1]<c[P+1]?(g=(d=c[P+1])-x-i,d<E&&C.MarkNextChange(),E=d,C.AddModifiedElement(d+1,g),P+1-e):(g=(d=c[P-1]+1)-x-i,d<E&&C.MarkNextChange(),E=d-1,C.AddOriginalElement(d,g+1),P-1-e),0<=k&&(e=(c=this.m_forwardHistory[k])[0],S=1,O=c.length-1),-1<=--k;);if(_=C.getReverseChanges(),b[0]){var N=f[0]+1,D=v[0]+1;if(null!==_&&0<_.length){var L=_[_.length-1];N=Math.max(N,L.getOriginalEnd()),D=Math.max(D,L.getModifiedEnd())}w=[new o(N,h-N+1,D,m-D+1)]}else{C=new p,S=a,O=s,x=f[0]-v[0]-l,E=1073741824,k=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var P;x=(P=x+r)===S||P<O&&u[P-1]>=u[P+1]?(g=(d=u[P+1]-1)-x-l,E<d&&C.MarkNextChange(),E=d+1,C.AddOriginalElement(d+1,g+1),P+1-r):(g=(d=u[P-1])-x-l,E<d&&C.MarkNextChange(),E=d,C.AddModifiedElement(d+1,g+1),P-1-r),0<=k&&(r=(u=this.m_reverseHistory[k])[0],S=1,O=u.length-1)}while(-1<=--k);w=C.getChanges()}return this.ConcatenateChanges(_,w)},m.prototype.ComputeRecursionPoint=function(e,t,n,i,r,a,s){var l=0,c=0,u=0,h=0,p=0,f=0;e--,n--,a[r[0]=0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var g=t-e+(i-n),m=1+g,v=new Int32Array(m),y=new Int32Array(m),b=i-n,_=t-e,w=e-n,C=t-i,S=(_-b)%2==0;v[b]=e,y[_]=t,s[0]=!1;for(var O=1;O<=g/2+1;O++){var x=0,E=0;u=this.ClipDiagonalBound(b-O,O,b,m),h=this.ClipDiagonalBound(b+O,O,b,m);for(var k=u;k<=h;k+=2){c=(l=k===u||k<h&&v[k-1]<v[k+1]?v[k+1]:v[k-1]+1)-(k-b)-w;for(var N=l;l<t&&c<i&&this.ElementsAreEqual(l+1,c+1);)l++,c++;if(x+E<(v[k]=l)+c&&(x=l,E=c),!S&&Math.abs(k-_)<=O-1&&l>=y[k])return r[0]=l,a[0]=c,N<=y[k]&&O<=1448?this.WALKTRACE(b,u,h,w,_,p,f,C,v,y,l,t,r,c,i,a,S,s):null}var D=(x-e+(E-n)-O)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(x,D))return s[0]=!0,r[0]=x,a[0]=E,0<D&&O<=1448?this.WALKTRACE(b,u,h,w,_,p,f,C,v,y,l,t,r,c,i,a,S,s):[new o(++e,t-e+1,++n,i-n+1)];for(p=this.ClipDiagonalBound(_-O,O,_,m),f=this.ClipDiagonalBound(_+O,O,_,m),k=p;k<=f;k+=2){for(c=(l=k===p||k<f&&y[k-1]>=y[k+1]?y[k+1]-1:y[k-1])-(k-_)-C,N=l;e<l&&n<c&&this.ElementsAreEqual(l,c);)l--,c--;if(y[k]=l,S&&Math.abs(k-b)<=O&&l<=v[k])return r[0]=l,a[0]=c,N>=v[k]&&O<=1448?this.WALKTRACE(b,u,h,w,_,p,f,C,v,y,l,t,r,c,i,a,S,s):null}if(O<=1447){var L=new Int32Array(h-u+2);L[0]=b-u+1,d.Copy2(v,u,L,1,h-u+1),this.m_forwardHistory.push(L),(L=new Int32Array(f-p+2))[0]=_-p+1,d.Copy2(y,p,L,1,f-p+1),this.m_reverseHistory.push(L)}}return this.WALKTRACE(b,u,h,w,_,p,f,C,v,y,l,t,r,c,i,a,S,s)},m.prototype.PrettifyChanges=function(e){for(var t=0;t<e.length;t++){for(var n=e[t],o=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,i=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=0<n.originalLength,a=0<n.modifiedLength;n.originalStart+n.originalLength<o&&n.modifiedStart+n.modifiedLength<i&&(!r||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!a||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));)n.originalStart++,n.modifiedStart++;var s=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],s)&&(e[t]=s[0],e.splice(t+1,1),t--)}for(t=e.length-1;0<=t;t--){if(n=e[t],(i=o=0)<t){var l=e[t-1];0<l.originalLength&&(o=l.originalStart+l.originalLength),0<l.modifiedLength&&(i=l.modifiedStart+l.modifiedLength)}r=0<n.originalLength,a=0<n.modifiedLength;for(var c=0,u=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,p=n.modifiedStart-d;if(h<o||p<i)break;if(r&&!this.OriginalElementsAreEqual(h,h+n.originalLength))break;if(a&&!this.ModifiedElementsAreEqual(p,p+n.modifiedLength))break;var f=this._boundaryScore(h,n.originalLength,p,n.modifiedLength);u<f&&(u=f,c=d)}n.originalStart-=c,n.modifiedStart-=c}return e},m.prototype._OriginalIsBoundary=function(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])},m.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(0<t){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},m.prototype._ModifiedIsBoundary=function(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])},m.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(0<t){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},m.prototype._boundaryScore=function(e,t,n,o){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,o)?1:0)},m.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return 0<t.length?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var o=new Array(e.length+t.length-1);return d.Copy(e,0,o,0,e.length-1),o[e.length-1]=n[0],d.Copy(t,1,o,e.length,t.length-1),o}return o=new Array(e.length+t.length),d.Copy(e,0,o,0,e.length),d.Copy(t,0,o,e.length,t.length),o},m.prototype.ChangesOverlap=function(e,t,n){if(c.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),c.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,r=e.originalLength,a=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new o(i,r,a,s),!0}return n[0]=null,!1},m.prototype.ClipDiagonalBound=function(e,t,n,o){if(0<=e&&e<o)return e;var i=t%2==0;return e<0?i==(n%2==0)?0:1:i==((o-n-1)%2==0)?o-1:o-2},m);function m(e,t,n){void 0===n&&(n=null),this.ContinueProcessingPredicate=n;var o=m._getElements(e),i=o[0],r=o[1],a=o[2],s=m._getElements(t),l=s[0],c=s[1],u=s[2];this._hasStrings=a&&u,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=l,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}},,,function(e,t,n){},,function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,function(e,t,n){"use strict";var o=n(30),i=(n(131),n(39)),r=n(8),a=n(7),s=n(10),l=n(9),c=n(11),u=n(0),d=n.n(u),h=function(e){function t(e){var n;return Object(r.a)(this,t),(n=Object(s.a)(this,Object(l.a)(t).call(this,e))).cannelfun=function(){!0===n.props.Cohetepaperbool?n.props.setCohetepaperbool(!1):n.props.history.replace(n.props.url)},n.state={},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"render",value:function(){var e,t=this;return d.a.createElement("div",null,d.a.createElement("style",null,"\n .newFooter{\n display:none;\n }\n "),d.a.createElement("div",{className:"clearfix bor-bottom-greyE edu-back-white orderingbox newshixunbottombtn"},d.a.createElement("div",{className:" edu-txt-center padding13-30"},d.a.createElement("button",{type:"button",className:"ant-btn mr20 newshixunmode backgroundFFF",onClick:function(){return t.cannelfun()}},d.a.createElement("span",null,"\u53d6 \u6d88")),d.a.createElement(i.a,(e={type:"button",className:"ant-btn newshixunmode mr40 ant-btn-primary"},Object(o.a)(e,"type","primary"),Object(o.a)(e,"htmlType","submit"),Object(o.a)(e,"onClick",(function(){return t.props.onSubmits()})),Object(o.a)(e,"loading",this.props.loadings),e),d.a.createElement("span",null,void 0===this.props.bottomvalue?"\u4fdd\u5b58":this.props.bottomvalue)))))}}]),t}(u.Component);t.a=h},,,,function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"ToggleTabFocusModeAction",(function(){return c}));var o,i,r=n(445),a=n(635),s=n(449),l=n(945),c=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(u,i=s.b),u.prototype.run=function(e,t){var n=!l.b.getTabFocusMode();l.b.setTabFocusMode(n),n?Object(a.a)(r.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(a.a)(r.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))},u.ID="editor.action.toggleTabFocusMode",u);function u(){return i.call(this,{id:u.ID,label:r.a({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}Object(s.f)(c)},function(e,t,n){"use strict";n.r(t),n.d(t,"ColorDetector",(function(){return y}));var o,i,r=n(453),a=n(490),s=n(446),l=n(952),c=n(439),u=n(449),d=n(504),h=n(440),p=n(495),f=n(454),g=n(1080),m=n(573),v=function(e,t){return function(n,o){t(n,o,e)}},y=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(b,i=c.a),b.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 o=n.colorDecorators;if(o&&void 0!==o.enable&&!o.enable)return o.enable}return this._editor.getOption(12)},b.get=function(e){return e.getContribution(this.ID)},b.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),i.prototype.dispose.call(this)},b.prototype.onModelChanged=function(){var e=this;if(this.stop(),this._isEnabled){var t=this._editor.getModel();t&&f.c.has(t)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((function(t){e._timeoutTimer||(e._timeoutTimer=new r.e,e._timeoutTimer.cancelAndSet((function(){e._timeoutTimer=null,e.beginCompute()}),b.RECOMPUTE_TIME))}))),this.beginCompute())}},b.prototype.beginCompute=function(){var e=this;this._computePromise=Object(r.f)((function(t){var n=e._editor.getModel();return n?Object(g.b)(n,t):Promise.resolve([])})),this._computePromise.then((function(t){e.updateDecorations(t),e.updateColorDecorators(t),e._computePromise=null}),s.e)},b.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},b.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:p.a.EMPTY}}));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,n),this._colorDatas=new Map,this._decorationsIds.forEach((function(n,o){return t._colorDatas.set(n,e[o])}))},b.prototype.updateColorDecorators=function(e){for(var t=this,n=[],o={},i=0;i<e.length&&n.length<500;i++){var r=e[i].colorInfo.color,s=r.red,c=r.green,u=r.blue,d=r.alpha,h=new a.c(Math.round(255*s),Math.round(255*c),Math.round(255*u),d),p=Object(l.a)(h).toString(16),f="rgba("+h.r+", "+h.g+", "+h.b+", "+h.a+")",g="colorBox-"+p;this._decorationsTypes.has(g)||o[g]||this._codeEditorService.registerDecorationType(g,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:f},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),o[g]=!0,n.push({range:{startLineNumber:e[i].colorInfo.range.startLineNumber,startColumn:e[i].colorInfo.range.startColumn,endLineNumber:e[i].colorInfo.range.endLineNumber,endColumn:e[i].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(g,!0)})}this._decorationsTypes.forEach((function(e){o[e]||t._codeEditorService.removeDecorationType(e)})),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,n)},b.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)}))},b.prototype.getColorData=function(e){var t=this,n=this._editor.getModel();if(!n)return null;var o=n.getDecorationsInRange(h.a.fromPositions(e,e)).filter((function(e){return t._colorDatas.has(e.id)}));return 0===o.length?null:this._colorDatas.get(o[0].id)},b.ID="editor.contrib.colorDetector",b.RECOMPUTE_TIME=1e3,b=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([v(1,d.a),v(2,m.a)],b));function b(e,t,n){var o=i.call(this)||this;return o._editor=e,o._codeEditorService=t,o._configurationService=n,o._localToDispose=o._register(new c.b),o._decorationsIds=[],o._colorDatas=new Map,o._colorDecoratorIds=[],o._decorationsTypes=new Set,o._register(e.onDidChangeModel((function(e){o._isEnabled=o.isEnabled(),o.onModelChanged()}))),o._register(e.onDidChangeModelLanguage((function(e){return o.onModelChanged()}))),o._register(f.c.onDidChange((function(e){return o.onModelChanged()}))),o._register(e.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}Object(u.h)(y.ID,y)},function(e,t,n){"use strict";n.r(t),n.d(t,"GotoDefinitionAtPositionEditorContribution",(function(){return C})),n(1366);var o=n(445),i=n(453),r=n(446),a=n(795),s=n(778),l=n(440),c=n(454),u=n(449),d=n(1093),h=n(439),p=n(787),f=n(451),g=n(461),m=n(761),v=n(1053),y=n(1094),b=n(450),_=n(465),w=function(e,t){return function(n,o){t(n,o,e)}},C=(S.get=function(e){return e.getContribution(S.ID)},S.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())})))}))},S.prototype.startFindDefinitionFromMouse=function(e,t){if(!(9===e.target.type&&0<this.linkDecorations.length)){if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();var n=e.target.position;this.startFindDefinition(n)}},S.prototype.startFindDefinition=function(e){var t,n=this;this.toUnhookForKeyboard.clear();var s=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!s)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===s.startColumn&&this.currentWordAtPosition.endColumn===s.endColumn&&this.currentWordAtPosition.word===s.word)return Promise.resolve(0);this.currentWordAtPosition=s;var c=new m.a(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(i.f)((function(t){return n.findDefinition(e,t)})),this.previousPromise.then((function(t){if(t&&t.length&&c.validate(n.editor))if(1<t.length)n.addDecoration(new l.a(e.lineNumber,s.startColumn,e.lineNumber,s.endColumn),(new a.a).appendText(o.a("multipleResults","Click to show {0} definitions.",t.length)));else{var i=t[0];if(!i.uri)return;n.textModelResolverService.createModelReference(i.uri).then((function(t){if(t.object&&t.object.textEditorModel){var o=t.object.textEditorModel,r=i.range.startLineNumber;if(r<1||r>o.getLineCount())t.dispose();else{var c,u=n.getPreviewValue(o,r,i);c=i.originSelectionRange?l.a.lift(i.originSelectionRange):new l.a(e.lineNumber,s.startColumn,e.lineNumber,s.endColumn);var d=n.modeService.getModeIdByFilepathOrFirstLine(o.uri);n.addDecoration(c,(new a.a).appendCodeblock(d||"",u)),t.dispose()}}else t.dispose()}))}else n.removeLinkDecorations()})).then(void 0,r.e)},S.prototype.getPreviewValue=function(e,t,n){var o=n.targetSelectionRange?n.range:this.getPreviewRangeBasedOnBrackets(e,t);return o.endLineNumber-o.startLineNumber>=S.MAX_SOURCE_PREVIEW_LINES&&(o=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,o)},S.prototype.stripIndentationFromPreviewRange=function(e,t,n){for(var o=e.getLineFirstNonWhitespaceColumn(t),i=t+1;i<n.endLineNumber;i++){var r=e.getLineFirstNonWhitespaceColumn(i);o=Math.min(o,r)}return e.getValueInRange(n).replace(new RegExp("^\\s{"+(o-1)+"}","gm"),"").trim()},S.prototype.getPreviewRangeBasedOnIndentation=function(e,t){for(var n=e.getLineFirstNonWhitespaceColumn(t),o=Math.min(e.getLineCount(),t+S.MAX_SOURCE_PREVIEW_LINES),i=t+1;i<o&&n!==e.getLineFirstNonWhitespaceColumn(i);i++);return new l.a(t,1,i+1,1)},S.prototype.getPreviewRangeBasedOnBrackets=function(e,t){for(var n=Math.min(e.getLineCount(),t+S.MAX_SOURCE_PREVIEW_LINES),o=[],i=!0,r=e.findNextBracket(new b.a(t,1));null!==r;){if(0===o.length)o.push(r);else{var a=o[o.length-1];if(a.open[0]===r.open[0]&&a.isOpen&&!r.isOpen?o.pop():o.push(r),0===o.length){if(!i)return new l.a(t,1,r.range.endLineNumber+1,1);i=!1}}var s=e.getLineMaxColumn(t),c=r.range.endLineNumber,u=r.range.endColumn;if(s===r.range.endColumn&&(c++,u=1),n<c)return new l.a(t,1,n+1,1);r=e.findNextBracket(new b.a(c,u))}return new l.a(t,1,n+1,1)},S.prototype.addDecoration=function(e,t){var n={range:e,options:{inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[n])},S.prototype.removeLinkDecorations=function(){0<this.linkDecorations.length&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},S.prototype.isEnabled=function(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&c.f.has(this.editor.getModel())},S.prototype.findDefinition=function(e,t){var n=this.editor.getModel();return n?Object(d.b)(n,e,t):Promise.resolve(null)},S.prototype.gotoDefinition=function(e,t){var n=this;this.editor.setPosition(e);var o=new v.DefinitionAction({openToSide:t,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext((function(e){return o.run(e,n.editor)}))},S.prototype.dispose=function(){this.toUnhook.dispose()},S.ID="editor.contrib.gotodefinitionatposition",S.MAX_SOURCE_PREVIEW_LINES=8,S=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([w(1,p.a),w(2,s.a)],S));function S(e,t,n){var o=this;this.textModelResolverService=t,this.modeService=n,this.toUnhook=new h.b,this.toUnhookForKeyboard=new h.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;var i=new y.a(e);this.toUnhook.add(i),this.toUnhook.add(i.onMouseMoveOrRelevantKeyDown((function(e){var t=e[0],n=e[1];o.startFindDefinitionFromMouse(t,Object(_.n)(n))}))),this.toUnhook.add(i.onExecute((function(e){o.isEnabled(e)&&o.gotoDefinition(e.target.position,e.hasSideBySideModifier).then((function(){o.removeLinkDecorations()}),(function(e){o.removeLinkDecorations(),Object(r.e)(e)}))}))),this.toUnhook.add(i.onCancel((function(){o.removeLinkDecorations(),o.currentWordAtPosition=null})))}Object(u.h)(C.ID,C),Object(f.e)((function(e,t){var n=e.getColor(g.n);n&&t.addRule(".monaco-editor .goto-definition-link { color: "+n+" !important; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"MoveWordCommand",(function(){return y})),n.d(t,"WordLeftCommand",(function(){return w})),n.d(t,"WordRightCommand",(function(){return O})),n.d(t,"CursorWordStartLeft",(function(){return k})),n.d(t,"CursorWordEndLeft",(function(){return L})),n.d(t,"CursorWordLeft",(function(){return T})),n.d(t,"CursorWordStartLeftSelect",(function(){return R})),n.d(t,"CursorWordEndLeftSelect",(function(){return V})),n.d(t,"CursorWordLeftSelect",(function(){return H})),n.d(t,"CursorWordAccessibilityLeft",(function(){return U})),n.d(t,"CursorWordAccessibilityLeftSelect",(function(){return Y})),n.d(t,"CursorWordStartRight",(function(){return X})),n.d(t,"CursorWordEndRight",(function(){return ee})),n.d(t,"CursorWordRight",(function(){return oe})),n.d(t,"CursorWordStartRightSelect",(function(){return ae})),n.d(t,"CursorWordEndRightSelect",(function(){return ce})),n.d(t,"CursorWordRightSelect",(function(){return he})),n.d(t,"CursorWordAccessibilityRight",(function(){return ge})),n.d(t,"CursorWordAccessibilityRightSelect",(function(){return ye})),n.d(t,"DeleteWordCommand",(function(){return we})),n.d(t,"DeleteWordLeftCommand",(function(){return Oe})),n.d(t,"DeleteWordRightCommand",(function(){return ke})),n.d(t,"DeleteWordStartLeft",(function(){return Le})),n.d(t,"DeleteWordEndLeft",(function(){return Te})),n.d(t,"DeleteWordLeft",(function(){return Re})),n.d(t,"DeleteWordStartRight",(function(){return Ve})),n.d(t,"DeleteWordEndRight",(function(){return He})),n.d(t,"DeleteWordRight",(function(){return Ue}));var o,i,r=n(449),a=n(794),s=n(555),l=n(954),c=n(823),u=n(450),d=n(440),h=n(466),p=n(469),f=n(759),g=n(456),m=n(530),v=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=(v(b,i=r.c),b.prototype.runEditorCommand=function(e,t,n){var o=this;if(t.hasModel()){var i=Object(c.a)(t.getOption(96)),r=t.getModel(),a=t.getSelections().map((function(e){var t=new u.a(e.positionLineNumber,e.positionColumn),n=o._move(i,r,t,o._wordNavigationType);return o._moveTo(e,n,o._inSelectionMode)}));if(t._getCursors().setStates("moveWordCommand",0,a.map((function(e){return s.d.fromModelSelection(e)}))),1===a.length){var l=new u.a(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}},b.prototype._moveTo=function(e,t,n){return n?new h.a(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new h.a(t.lineNumber,t.column,t.lineNumber,t.column)},b);function b(e){var t=i.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t._wordNavigationType=e.wordNavigationType,t}var _,w=(v(C,_=y),C.prototype._move=function(e,t,n,o){return l.a.moveWordLeft(e,t,n,o)},C);function C(){return null!==_&&_.apply(this,arguments)||this}var S,O=(v(x,S=y),x.prototype._move=function(e,t,n,o){return l.a.moveWordRight(e,t,n,o)},x);function x(){return null!==S&&S.apply(this,arguments)||this}var E,k=(v(N,E=w),N);function N(){return E.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:2063,mac:{primary:527},weight:100}})||this}var D,L=(v(P,D=w),P);function P(){return D.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}var I,T=(v(M,I=w),M);function M(){return I.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}var j,R=(v(A,j=w),A);function A(){return j.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:3087,mac:{primary:1551},weight:100}})||this}var F,V=(v(W,F=w),W);function W(){return F.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}var B,H=(v(z,B=w),z);function z(){return B.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}var K,U=(v(q,K=w),q.prototype._move=function(e,t,n,o){return K.prototype._move.call(this,Object(c.a)(m.e.wordSeparators.defaultValue),t,n,o)},q);function q(){return K.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:2063},weight:101}})||this}var G,Y=(v(Z,G=w),Z.prototype._move=function(e,t,n,o){return G.prototype._move.call(this,Object(c.a)(m.e.wordSeparators.defaultValue),t,n,o)},Z);function Z(){return G.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:3087},weight:101}})||this}var $,X=(v(J,$=O),J);function J(){return $.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}var Q,ee=(v(te,Q=O),te);function te(){return Q.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:2065,mac:{primary:529},weight:100}})||this}var ne,oe=(v(ie,ne=O),ie);function ie(){return ne.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}var re,ae=(v(se,re=O),se);function se(){return re.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}var le,ce=(v(ue,le=O),ue);function ue(){return le.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:3089,mac:{primary:1553},weight:100}})||this}var de,he=(v(pe,de=O),pe);function pe(){return de.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}var fe,ge=(v(me,fe=O),me.prototype._move=function(e,t,n,o){return fe.prototype._move.call(this,Object(c.a)(m.e.wordSeparators.defaultValue),t,n,o)},me);function me(){return fe.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:2065},weight:101}})||this}var ve,ye=(v(be,ve=O),be.prototype._move=function(e,t,n,o){return ve.prototype._move.call(this,Object(c.a)(m.e.wordSeparators.defaultValue),t,n,o)},be);function be(){return ve.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:3089},weight:101}})||this}var _e,we=(v(Ce,_e=r.c),Ce.prototype.runEditorCommand=function(e,t,n){var o=this;if(t.hasModel()){var i=Object(c.a)(t.getOption(96)),r=t.getModel(),s=t.getSelections().map((function(e){var t=o._delete(i,r,e,o._whitespaceHeuristics,o._wordNavigationType);return new a.a(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}},Ce);function Ce(e){var t=_e.call(this,e)||this;return t._whitespaceHeuristics=e.whitespaceHeuristics,t._wordNavigationType=e.wordNavigationType,t}var Se,Oe=(v(xe,Se=we),xe.prototype._delete=function(e,t,n,o,i){return l.a.deleteWordLeft(e,t,n,o,i)||new d.a(1,1,1,1)},xe);function xe(){return null!==Se&&Se.apply(this,arguments)||this}var Ee,ke=(v(Ne,Ee=we),Ne.prototype._delete=function(e,t,n,o,i){var r=l.a.deleteWordRight(e,t,n,o,i);if(r)return r;var a=t.getLineCount(),s=t.getLineMaxColumn(a);return new d.a(a,s,a,s)},Ne);function Ne(){return null!==Ee&&Ee.apply(this,arguments)||this}var De,Le=(v(Pe,De=Oe),Pe);function Pe(){return De.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:p.a.writable})||this}var Ie,Te=(v(Me,Ie=Oe),Me);function Me(){return Ie.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:p.a.writable})||this}var je,Re=(v(Ae,je=Oe),Ae);function Ae(){return je.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:2049,mac:{primary:513},weight:100}})||this}var Fe,Ve=(v(We,Fe=ke),We);function We(){return Fe.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:p.a.writable})||this}var Be,He=(v(ze,Be=ke),ze);function ze(){return Be.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:p.a.writable})||this}var Ke,Ue=(v(qe,Ke=ke),qe);function qe(){return Ke.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:2068,mac:{primary:532},weight:100}})||this}Object(r.g)(new k),Object(r.g)(new L),Object(r.g)(new T),Object(r.g)(new R),Object(r.g)(new V),Object(r.g)(new H),Object(r.g)(new X),Object(r.g)(new ee),Object(r.g)(new oe),Object(r.g)(new ae),Object(r.g)(new ce),Object(r.g)(new he),Object(r.g)(new U),Object(r.g)(new Y),Object(r.g)(new ge),Object(r.g)(new ye),Object(r.g)(new Le),Object(r.g)(new Te),Object(r.g)(new Re),Object(r.g)(new Ve),Object(r.g)(new He),Object(r.g)(new Ue)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var o=n(445),i=n(453),r=n(439),a=n(444),s=n(449),l=n(469),c=n(794),u=n(450),d=n(440),h=n(466),p=n(947),f=n(599),g=n(495),m=n(461),v=n(451),y=(b.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},b.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},b.prototype.getCount=function(){return this._decorations.length},b.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},b.prototype.getStartPosition=function(){return this._startPosition},b.prototype.setStartPosition=function(e){this._startPosition=e,this.setCurrentFindMatch(null)},b.prototype._getDecorationIndex=function(e){var t=this._decorations.indexOf(e);return 0<=t?t+1:1},b.prototype.getCurrentMatchesPosition=function(e){for(var t=0,n=this._editor.getModel().getDecorationsInRange(e);t<n.length;t++){var o=n[t],i=o.options;if(i===b._FIND_MATCH_DECORATION||i===b._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(o.id)}return 1},b.prototype.setCurrentFindMatch=function(e){var t=this,n=null,o=0;if(e)for(var i=0,r=this._decorations.length;i<r;i++){var a=this._editor.getModel().getDecorationRange(this._decorations[i]);if(e.equalsRange(a)){n=this._decorations[i],o=i+1;break}}return null===this._highlightedDecorationId&&null===n||this._editor.changeDecorations((function(e){if(null!==t._highlightedDecorationId&&(e.changeDecorationOptions(t._highlightedDecorationId,b._FIND_MATCH_DECORATION),t._highlightedDecorationId=null),null!==n&&(t._highlightedDecorationId=n,e.changeDecorationOptions(t._highlightedDecorationId,b._CURRENT_FIND_MATCH_DECORATION)),null!==t._rangeHighlightDecorationId&&(e.removeDecoration(t._rangeHighlightDecorationId),t._rangeHighlightDecorationId=null),null!==n){var o=t._editor.getModel().getDecorationRange(n);if(o.startLineNumber!==o.endLineNumber&&1===o.endColumn){var i=o.endLineNumber-1,r=t._editor.getModel().getLineMaxColumn(i);o=new d.a(o.startLineNumber,o.startColumn,i,r)}t._rangeHighlightDecorationId=e.addDecoration(o,b._RANGE_HIGHLIGHT_DECORATION)}})),o},b.prototype.set=function(e,t){var n=this;this._editor.changeDecorations((function(o){var i=b._FIND_MATCH_DECORATION,r=[];if(1e3<e.length){i=b._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var a=n._editor.getModel().getLineCount(),s=n._editor.getLayoutInfo().height/a,l=Math.max(2,Math.ceil(3/s)),c=e[0].range.startLineNumber,u=e[0].range.endLineNumber,h=1,p=e.length;h<p;h++){var f=e[h].range;u+l>=f.startLineNumber?f.endLineNumber>u&&(u=f.endLineNumber):(r.push({range:new d.a(c,1,u,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),c=f.startLineNumber,u=f.endLineNumber)}r.push({range:new d.a(c,1,u,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var g=new Array(e.length);for(h=0,p=e.length;h<p;h++)g[h]={range:e[h].range,options:i};n._decorations=o.deltaDecorations(n._decorations,g),n._overviewRulerApproximateDecorations=o.deltaDecorations(n._overviewRulerApproximateDecorations,r),n._rangeHighlightDecorationId&&(o.removeDecoration(n._rangeHighlightDecorationId),n._rangeHighlightDecorationId=null),n._findScopeDecorationId&&(o.removeDecoration(n._findScopeDecorationId),n._findScopeDecorationId=null),t&&(n._findScopeDecorationId=o.addDecoration(t,b._FIND_SCOPE_DECORATION))}))},b.prototype.matchBeforePosition=function(e){if(0===this._decorations.length)return null;for(var t=this._decorations.length-1;0<=t;t--){var n=this._decorations[t],o=this._editor.getModel().getDecorationRange(n);if(o&&!(o.endLineNumber>e.lineNumber)){if(o.endLineNumber<e.lineNumber)return o;if(!(o.endColumn>e.column))return o}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},b.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;t<n;t++){var o=this._decorations[t],i=this._editor.getModel().getDecorationRange(o);if(i&&!(i.startLineNumber<e.lineNumber)){if(i.startLineNumber>e.lineNumber)return i;if(!(i.startColumn<e.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[0])},b.prototype._allDecorations=function(){var e=[];return e=(e=e.concat(this._decorations)).concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&e.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e},b._CURRENT_FIND_MATCH_DECORATION=g.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(v.f)(m.Lb),position:f.d.Center},minimap:{color:Object(v.f)(m.Hb),position:f.c.Inline}}),b._FIND_MATCH_DECORATION=g.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(v.f)(m.Lb),position:f.d.Center},minimap:{color:Object(v.f)(m.Hb),position:f.c.Inline}}),b._FIND_MATCH_NO_OVERVIEW_DECORATION=g.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),b._FIND_MATCH_ONLY_OVERVIEW_DECORATION=g.a.register({stickiness:1,overviewRuler:{color:Object(v.f)(m.Lb),position:f.d.Center}}),b._RANGE_HIGHLIGHT_DECORATION=g.a.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),b._FIND_SCOPE_DECORATION=g.a.register({className:"findScope",isWholeLine:!0}),b);function b(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}var _=(w.prototype.getEditOperations=function(e,t){if(0<this._ranges.length){for(var n=[],o=0;o<this._ranges.length;o++)n.push({range:this._ranges[o],text:this._replaceStrings[o]});n.sort((function(e,t){return d.a.compareRangesUsingStarts(e.range,t.range)}));var i=[],r=n[0];for(o=1;o<n.length;o++)r.range.endLineNumber===n[o].range.startLineNumber&&r.range.endColumn===n[o].range.startColumn?(r.range=r.range.plusRange(n[o].range),r.text=r.text+n[o].text):(i.push(r),r=n[o]);i.push(r);for(var a=0,s=i;a<s.length;a++){var l=s[a];t.addEditOperation(l.range,l.text)}}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)},w.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)},w);function w(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}function C(e,t){if(e&&""!==e[0]){var n=S(e,t,"-"),o=S(e,t,"_");return n&&!o?O(e,t,"-"):!n&&o?O(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():a.j(e[0][0])?t[0].toUpperCase()+t.substr(1):t}return t}function S(e,t,n){return-1!==e[0].indexOf(n)&&-1!==t.indexOf(n)&&e[0].split(n).length===t.split(n).length}function O(e,t,n){var o=t.split(n),i=e[0].split(n),r="";return o.forEach((function(e,t){r+=C([i[t]],e)+n})),r.slice(0,-1)}var x=function(e){this.staticValue=e,this.kind=0},E=function(e){this.pieces=e,this.kind=1},k=(N.fromStaticValue=function(e){return new N([D.staticValue(e)])},Object.defineProperty(N.prototype,"hasReplacementPatterns",{get:function(){return 1===this._state.kind},enumerable:!0,configurable:!0}),N.prototype.buildReplaceString=function(e,t){if(0===this._state.kind)return t?C(e,this._state.staticValue):this._state.staticValue;for(var n="",o=0,i=this._state.pieces.length;o<i;o++){var r=this._state.pieces[o];null===r.staticValue?n+=N._substitute(r.matchIndex,e):n+=r.staticValue}return n},N._substitute=function(e,t){if(null===t)return"";if(0===e)return t[0];for(var n="";0<e;){if(e<t.length)return(t[e]||"")+n;n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n},N);function N(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new x(e[0].staticValue):this._state=new E(e):this._state=new x("")}var D=(L.staticValue=function(e){return new L(e,-1)},L.matchIndex=function(e){return new L(null,e)},L);function L(e,t){this.staticValue=e,this.matchIndex=t}var P=(I.prototype.emitUnchanged=function(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e},I.prototype.emitStatic=function(e,t){this._emitStatic(e),this._lastCharIndex=t},I.prototype._emitStatic=function(e){0!==e.length&&(this._currentStaticPiece+=e)},I.prototype.emitMatchIndex=function(e,t){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=D.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=D.matchIndex(e),this._lastCharIndex=t},I.prototype.finalize=function(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=D.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new k(this._result)},I);function I(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}var T=n(456),M=new T.d("findWidgetVisible",!1),j=new T.d("findInputFocussed",!1),R=new T.d("replaceInputFocussed",!1),A={primary:545,mac:{primary:2593}},F={primary:565,mac:{primary:2613}},V={primary:560,mac:{primary:2608}},W={primary:554,mac:{primary:2602}},B="editor.action.nextMatchFindAction",H="editor.action.previousMatchFindAction",z="closeFindWidget",K="toggleFindCaseSensitive",U="toggleFindWholeWord",q="toggleFindRegex",G="toggleFindInSelection",Y="editor.action.replaceOne",Z="editor.action.replaceAll",$=19999,X=(J.prototype.dispose=function(){this._isDisposed=!0,Object(r.f)(this._startSearchingTimer),this._toDispose.dispose()},J.prototype._onStateChanged=function(e){var t=this;this._isDisposed||this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((function(){e.searchScope?t.research(e.moveCursor,t._state.searchScope):t.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))},J._getSearchRange=function(e,t){return t||e.getFullModelRange()},J.prototype.research=function(e,t){var n=null;null!==(n=void 0!==t?t:this._decorations.getFindScope())&&n.startLineNumber!==n.endLineNumber&&(n=1===n.endColumn?new d.a(n.startLineNumber,1,n.endLineNumber-1,this._editor.getModel().getLineMaxColumn(n.endLineNumber-1)):new d.a(n.startLineNumber,1,n.endLineNumber,this._editor.getModel().getLineMaxColumn(n.endLineNumber)));var o=this._findMatches(n,!1,$);this._decorations.set(o,n),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),e&&this._moveToNextMatch(this._decorations.getStartPosition())},J.prototype._hasMatches=function(){return 0<this._state.matchesCount},J.prototype._cannotFind=function(){if(this._hasMatches())return!1;var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0},J.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)},J.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(0<=this._state.searchString.indexOf("^")||0<=this._state.searchString.indexOf("$")),n=e.lineNumber,o=e.column,i=this._editor.getModel();return t||1===o?(1===n?n=i.getLineCount():n--,o=i.getLineMaxColumn(n)):o--,new u.a(n,o)},J.prototype._moveToPrevMatch=function(e,t){if(void 0===t&&(t=!1),this._decorations.getCount()<$){var n=this._decorations.matchBeforePosition(e);return n&&n.isEmpty()&&n.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),n=this._decorations.matchBeforePosition(e)),void(n&&this._setCurrentFindMatch(n))}if(!this._cannotFind()){var o=this._decorations.getFindScope(),i=J._getSearchRange(this._editor.getModel(),o);i.getEndPosition().isBefore(e)&&(e=i.getEndPosition()),e.isBefore(i.getStartPosition())&&(e=i.getEndPosition());var r=e.lineNumber,a=e.column,s=this._editor.getModel(),l=new u.a(r,a),c=s.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1);if(c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),c=s.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1)),c)return t||i.containsRange(c.range)?void this._setCurrentFindMatch(c.range):this._moveToPrevMatch(c.range.getStartPosition(),!0)}},J.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},J.prototype._nextSearchPosition=function(e){var t=this._state.isRegex&&(0<=this._state.searchString.indexOf("^")||0<=this._state.searchString.indexOf("$")),n=e.lineNumber,o=e.column,i=this._editor.getModel();return t||o===i.getLineMaxColumn(n)?(n===i.getLineCount()?n=1:n++,o=1):o++,new u.a(n,o)},J.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<$){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)},J.prototype._getNextMatch=function(e,t,n,o){if(void 0===o&&(o=!1),this._cannotFind())return null;var i=this._decorations.getFindScope(),r=J._getSearchRange(this._editor.getModel(),i);r.getEndPosition().isBefore(e)&&(e=r.getStartPosition()),e.isBefore(r.getStartPosition())&&(e=r.getStartPosition());var a=e.lineNumber,s=e.column,l=this._editor.getModel(),c=new u.a(a,s),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,t);return n&&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(96):null,t)),d?o||r.containsRange(d.range)?d:this._getNextMatch(d.range.getEndPosition(),t,n,!0):null},J.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},J.prototype._getReplacePattern=function(){return this._state.isRegex?function(e){if(!e||0===e.length)return new k(null);for(var t=new P(e),n=0,o=e.length;n<o;n++){var i=e.charCodeAt(n);if(92!==i){if(36===i){if(o<=++n)break;if(36===(s=e.charCodeAt(n))){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue}if(48===s||38===s){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1);continue}if(49<=s&&s<=57){var r=s-48;if(n+1<o){var a=e.charCodeAt(n+1);if(48<=a&&a<=57){n++,r=10*r+(a-48),t.emitUnchanged(n-2),t.emitMatchIndex(r,n+1);continue}}t.emitUnchanged(n-1),t.emitMatchIndex(r,n+1);continue}}}else{if(o<=++n)break;var s;switch(s=e.charCodeAt(n)){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)}}}return t.finalize()}(this._state.replaceString):k.fromStaticValue(this._state.replaceString)},J.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 o=e.buildReplaceString(n.matches,this._state.preserveCase),i=new c.a(t,o);this._executeEditorCommand("replace",i),this._decorations.setStartPosition(new u.a(t.startLineNumber,t.startColumn+o.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}},J.prototype._findMatches=function(e,t,n){var o=J._getSearchRange(this._editor.getModel(),e);return this._editor.getModel().findMatches(this._state.searchString,o,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,t,n)},J.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=$?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},J.prototype._largeReplaceAll=function(){var e=new p.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="mu";t.ignoreCase&&(n+="i"),t.global&&(n+="g"),t=new RegExp(t.source,n)}var o,i=this._editor.getModel(),r=i.getValue(1),a=i.getFullModelRange(),s=this._getReplacePattern(),l=this._state.preserveCase;o=s.hasReplacementPatterns||l?r.replace(t,(function(){return s.buildReplaceString(arguments,l)})):r.replace(t,s.buildReplaceString(null,l));var u=new c.b(a,o,this._editor.getSelection());this._executeEditorCommand("replaceAll",u)}},J.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),o=[],i=0,r=n.length;i<r;i++)o[i]=t.buildReplaceString(n[i].matches,this._state.preserveCase);var a=new _(this._editor.getSelection(),n.map((function(e){return e.range})),o);this._executeEditorCommand("replaceAll",a)},J.prototype.selectAllMatches=function(){if(this._hasMatches()){for(var e=this._decorations.getFindScope(),t=this._findMatches(e,!1,1073741824).map((function(e){return new h.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)})),n=this._editor.getSelection(),o=0,i=t.length;o<i;o++)if(t[o].equalsRange(n)){t=[n].concat(t.slice(0,o)).concat(t.slice(o+1));break}this._editor.setSelections(t)}},J.prototype._executeEditorCommand=function(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},J);function J(e,t){var n=this;this._toDispose=new r.b,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new i.e,this._decorations=new y(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new i.d((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)}var Q,ee,te=n(443),ne=(n(1330),n(597)),oe=n(490),ie=n(442),re=n(505),ae=(Q=function(e,t){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),se={inputActiveOptionBorder:oe.a.fromHex("#007ACC00"),inputActiveOptionBackground:oe.a.fromHex("#0E639C50")},le=(ae(ce,ee=ne.a),Object.defineProperty(ce.prototype,"enabled",{get:function(){return"true"!==this.domNode.getAttribute("aria-disabled")},enumerable:!0,configurable:!0}),ce.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(ce.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}),ce.prototype.width=function(){return 22},ce.prototype.style=function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()},ce.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")},ce.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},ce.prototype.disable=function(){te.S(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},ce);function ce(e){var t=ee.call(this)||this;return t._onChange=t._register(new ie.a),t.onChange=t._onChange.event,t._onKeyDown=t._register(new ie.a),t.onKeyDown=t._onKeyDown.event,t._opts=re.c(e),re.g(t._opts,se,!1),t._checked=t._opts.isChecked,t.domNode=document.createElement("div"),t.domNode.title=t._opts.title,t.domNode.className="monaco-custom-checkbox codicon "+(t._opts.actionClassName||"")+" "+(t._checked?"checked":"unchecked"),t.domNode.tabIndex=0,t.domNode.setAttribute("role","checkbox"),t.domNode.setAttribute("aria-checked",String(t._checked)),t.domNode.setAttribute("aria-label",t._opts.title),t.applyStyles(),t.onclick(t.domNode,(function(e){t.checked=!t._checked,t._onChange.fire(!1),e.preventDefault()})),t.ignoreGesture(t.domNode),t.onkeydown(t.domNode,(function(e){if(10===e.keyCode||3===e.keyCode)return t.checked=!t._checked,t._onChange.fire(!0),void e.preventDefault();t._onKeyDown.fire(e)})),t}var ue,de,he=(ue=function(e,t){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pe=o.a("caseDescription","Match Case"),fe=o.a("wordsDescription","Match Whole Word"),ge=o.a("regexDescription","Use Regular Expression"),me=(he(ve,de=le),ve);function ve(e){return de.call(this,{actionClassName:"codicon-case-sensitive",title:pe+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var ye,be=(he(_e,ye=le),_e);function _e(e){return ye.call(this,{actionClassName:"codicon-whole-word",title:fe+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var we,Ce=(he(Se,we=le),Se);function Se(e){return we.call(this,{actionClassName:"codicon-regex",title:ge+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var Oe,xe,Ee,ke=((Oe=function(e,t){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ne,xe=ne.a),Ne.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},Ne.prototype.dispose=function(){this._editor.removeOverlayWidget(this),xe.prototype.dispose.call(this)},Ne.prototype.getId=function(){return Ne.ID},Ne.prototype.getDomNode=function(){return this._domNode},Ne.prototype.getPosition=function(){return{preference:0}},Ne.prototype.highlightFindOptions=function(){this._revealTemporarily()},Ne.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},Ne.prototype._onMouseOut=function(){this._hideSoon.schedule()},Ne.prototype._onMouseOver=function(){this._hideSoon.cancel()},Ne.prototype._show=function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")},Ne.prototype._hide=function(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")},Ne.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(m.Y),inputActiveOptionBackground:e.getColor(m.X)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)},Ne.ID="editor.contrib.findOptionsWidget",Ne);function Ne(e,t,n,o){var r=xe.call(this)||this;r._hideSoon=r._register(new i.d((function(){return r._hide()}),2e3)),r._isVisible=!1,r._editor=e,r._state=t,r._keybindingService=n,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 a=o.getTheme().getColor(m.Y),s=o.getTheme().getColor(m.X);return r.caseSensitive=r._register(new me({appendTitle:r._keybindingLabelFor(K),isChecked:r._state.matchCase,inputActiveOptionBorder:a,inputActiveOptionBackground:s})),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 be({appendTitle:r._keybindingLabelFor(U),isChecked:r._state.wholeWord,inputActiveOptionBorder:a,inputActiveOptionBackground:s})),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 Ce({appendTitle:r._keybindingLabelFor(q),isChecked:r._state.isRegex,inputActiveOptionBorder:a,inputActiveOptionBackground:s})),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(te.k(r._domNode,(function(e){return r._onMouseOut()}))),r._register(te.j(r._domNode,"mouseover",(function(e){return r._onMouseOver()}))),r._applyTheme(o.getTheme()),r._register(o.onThemeChange(r._applyTheme.bind(r))),r}function De(e,t){return 1===e||2!==e&&t}Object(v.e)((function(e,t){var n=e.getColor(m.Q);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: "+n+"; }");var o=e.getColor(m.S);o&&t.addRule(".monaco-editor .findOptionsWidget { color: "+o+"; }");var i=e.getColor(m.hc);i&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+i+"; }");var r=e.getColor(m.e);r&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+r+"; }")}));var Le,Pe=((Ee=function(e,t){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ee(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ie,Le=r.a),Object.defineProperty(Ie.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"isRegex",{get:function(){return De(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"wholeWord",{get:function(){return De(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"matchCase",{get:function(){return De(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"preserveCase",{get:function(){return De(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),Ie.prototype.changeMatchInfo=function(e,t,n){var o={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},i=!1;0===t&&(e=0),t<e&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,i=o.matchesPosition=!0),this._matchesCount!==t&&(this._matchesCount=t,i=o.matchesCount=!0),void 0!==n&&(d.a.equalsRange(this._currentMatch,n)||(this._currentMatch=n,i=o.currentMatch=!0)),i&&this._onFindReplaceStateChange.fire(o)},Ie.prototype.change=function(e,t,n){void 0===n&&(n=!0);var o={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},i=!1,r=this.isRegex,a=this.wholeWord,s=this.matchCase,l=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,i=o.searchString=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,i=o.replaceString=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,i=o.isRevealed=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,i=o.isReplaceRevealed=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0!==e.searchScope&&(d.a.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,i=o.searchScope=!0)),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(i=!0,o.isRegex=!0),a!==this.wholeWord&&(i=!0,o.wholeWord=!0),s!==this.matchCase&&(i=!0,o.matchCase=!0),l!==this.preserveCase&&(i=!0,o.preserveCase=!0),i&&this._onFindReplaceStateChange.fire(o)},Ie);function Ie(){var e=Le.call(this)||this;return e._onFindReplaceStateChange=e._register(new ie.a),e.onFindReplaceStateChange=e._onFindReplaceStateChange.event,e._searchString="",e._replaceString="",e._isRevealed=!1,e._isReplaceRevealed=!1,e._isRegex=!1,e._isRegexOverride=0,e._wholeWord=!1,e._wholeWordOverride=0,e._matchCase=!1,e._matchCaseOverride=0,e._preserveCase=!1,e._preserveCaseOverride=0,e._searchScope=null,e._matchesPosition=0,e._matchesCount=0,e._currentMatch=null,e}n(1331);var Te,Me,je=n(635),Re=n(891),Ae=n(446),Fe=n(452),Ve=(n(1086),n(976)),We=(Te=function(e,t){return(Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Be=o.a("defaultLabel","input"),He=(We(ze,Me=ne.a),ze.prototype.enable=function(){te.P(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},ze.prototype.disable=function(){te.f(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},ze.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e},ze.prototype.setEnabled=function(e){e?this.enable():this.disable()},ze.prototype.getValue=function(){return this.inputBox.value},ze.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},ze.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()},ze.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)}},ze.prototype.select=function(){this.inputBox.select()},ze.prototype.focus=function(){this.inputBox.focus()},ze.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},ze.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e},ze.prototype.getWholeWords=function(){return this.wholeWords.checked},ze.prototype.setWholeWords=function(e){this.wholeWords.checked=e},ze.prototype.getRegex=function(){return this.regex.checked},ze.prototype.setRegex=function(e){this.regex.checked=e,this.validate()},ze.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},ze.prototype.highlightFindOptions=function(){te.P(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,te.f(this.domNode,"highlight-"+this._lastHighlightFindOptions)},ze.prototype.validate=function(){this.inputBox.validate()},ze.prototype.clearMessage=function(){this.inputBox.hideMessage()},ze);function ze(e,t,n,o){var i=Me.call(this)||this;i._showOptionButtons=n,i.fixFocusOnOptionClickEnabled=!0,i._onDidOptionChange=i._register(new ie.a),i.onDidOptionChange=i._onDidOptionChange.event,i._onKeyDown=i._register(new ie.a),i.onKeyDown=i._onKeyDown.event,i._onMouseDown=i._register(new ie.a),i.onMouseDown=i._onMouseDown.event,i._onInput=i._register(new ie.a),i._onKeyUp=i._register(new ie.a),i._onCaseSensitiveKeyDown=i._register(new ie.a),i.onCaseSensitiveKeyDown=i._onCaseSensitiveKeyDown.event,i._onRegexKeyDown=i._register(new ie.a),i.onRegexKeyDown=i._onRegexKeyDown.event,i._lastHighlightFindOptions=0,i.contextViewProvider=t,i.placeholder=o.placeholder||"",i.validation=o.validation,i.label=o.label||Be,i.inputActiveOptionBorder=o.inputActiveOptionBorder,i.inputActiveOptionBackground=o.inputActiveOptionBackground,i.inputBackground=o.inputBackground,i.inputForeground=o.inputForeground,i.inputBorder=o.inputBorder,i.inputValidationInfoBorder=o.inputValidationInfoBorder,i.inputValidationInfoBackground=o.inputValidationInfoBackground,i.inputValidationInfoForeground=o.inputValidationInfoForeground,i.inputValidationWarningBorder=o.inputValidationWarningBorder,i.inputValidationWarningBackground=o.inputValidationWarningBackground,i.inputValidationWarningForeground=o.inputValidationWarningForeground,i.inputValidationErrorBorder=o.inputValidationErrorBorder,i.inputValidationErrorBackground=o.inputValidationErrorBackground,i.inputValidationErrorForeground=o.inputValidationErrorForeground;var r=o.appendCaseSensitiveLabel||"",a=o.appendWholeWordsLabel||"",s=o.appendRegexLabel||"",l=o.history||[],c=!!o.flexibleHeight,u=!!o.flexibleWidth,d=o.flexibleMaxHeight;i.domNode=document.createElement("div"),te.f(i.domNode,"monaco-findInput"),i.inputBox=i._register(new Ve.a(i.domNode,i.contextViewProvider,{placeholder:i.placeholder||"",ariaLabel:i.label||"",validationOptions:{validation:i.validation},inputBackground:i.inputBackground,inputForeground:i.inputForeground,inputBorder:i.inputBorder,inputValidationInfoBackground:i.inputValidationInfoBackground,inputValidationInfoForeground:i.inputValidationInfoForeground,inputValidationInfoBorder:i.inputValidationInfoBorder,inputValidationWarningBackground:i.inputValidationWarningBackground,inputValidationWarningForeground:i.inputValidationWarningForeground,inputValidationWarningBorder:i.inputValidationWarningBorder,inputValidationErrorBackground:i.inputValidationErrorBackground,inputValidationErrorForeground:i.inputValidationErrorForeground,inputValidationErrorBorder:i.inputValidationErrorBorder,history:l,flexibleHeight:c,flexibleWidth:u,flexibleMaxHeight:d})),i.regex=i._register(new Ce({appendTitle:s,isChecked:!1,inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionBackground:i.inputActiveOptionBackground})),i._register(i.regex.onChange((function(e){i._onDidOptionChange.fire(e),!e&&i.fixFocusOnOptionClickEnabled&&i.inputBox.focus(),i.validate()}))),i._register(i.regex.onKeyDown((function(e){i._onRegexKeyDown.fire(e)}))),i.wholeWords=i._register(new be({appendTitle:a,isChecked:!1,inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionBackground:i.inputActiveOptionBackground})),i._register(i.wholeWords.onChange((function(e){i._onDidOptionChange.fire(e),!e&&i.fixFocusOnOptionClickEnabled&&i.inputBox.focus(),i.validate()}))),i.caseSensitive=i._register(new me({appendTitle:r,isChecked:!1,inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionBackground:i.inputActiveOptionBackground})),i._register(i.caseSensitive.onChange((function(e){i._onDidOptionChange.fire(e),!e&&i.fixFocusOnOptionClickEnabled&&i.inputBox.focus(),i.validate()}))),i._register(i.caseSensitive.onKeyDown((function(e){i._onCaseSensitiveKeyDown.fire(e)}))),i._showOptionButtons&&(i.inputBox.paddingRight=i.caseSensitive.width()+i.wholeWords.width()+i.regex.width());var h=[i.caseSensitive.domNode,i.wholeWords.domNode,i.regex.domNode];i.onkeydown(i.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=h.indexOf(document.activeElement);if(0<=t){var n=-1;e.equals(17)?n=(t+1)%h.length:e.equals(15)&&(n=0===t?h.length-1:t-1),e.equals(9)?h[t].blur():0<=n&&h[n].focus(),te.c.stop(e,!0)}}}));var p=document.createElement("div");return p.className="controls",p.style.display=i._showOptionButtons?"block":"none",p.appendChild(i.caseSensitive.domNode),p.appendChild(i.wholeWords.domNode),p.appendChild(i.regex.domNode),i.domNode.appendChild(p),e&&e.appendChild(i.domNode),i.onkeydown(i.inputBox.inputElement,(function(e){return i._onKeyDown.fire(e)})),i.onkeyup(i.inputBox.inputElement,(function(e){return i._onKeyUp.fire(e)})),i.oninput(i.inputBox.inputElement,(function(e){return i._onInput.fire()})),i.onmousedown(i.inputBox.inputElement,(function(e){return i._onMouseDown.fire(e)})),i}var Ke,Ue,qe=n(788),Ge=(Ke=function(e,t){return(Ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ke(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ye=o.a("defaultLabel","input"),Ze=o.a("label.preserveCaseCheckbox","Preserve Case"),$e=(Ge(Xe,Ue=le),Xe);function Xe(e){return Ue.call(this,{actionClassName:"codicon-preserve-case",title:Ze+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var Je,Qe=(Ge(et,Je=ne.a),et.prototype.enable=function(){te.P(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},et.prototype.disable=function(){te.f(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},et.prototype.setEnabled=function(e){e?this.enable():this.disable()},et.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()},et.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)}},et.prototype.select=function(){this.inputBox.select()},et.prototype.focus=function(){this.inputBox.focus()},et.prototype.getPreserveCase=function(){return this.preserveCase.checked},et.prototype.setPreserveCase=function(e){this.preserveCase.checked=e},et.prototype.focusOnPreserve=function(){this.preserveCase.focus()},et.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(et.prototype,"width",{set:function(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"},enumerable:!0,configurable:!0}),et.prototype.dispose=function(){Je.prototype.dispose.call(this)},et);function et(e,t,n,o){var i=Je.call(this)||this;i._showOptionButtons=n,i.fixFocusOnOptionClickEnabled=!0,i.cachedOptionsWidth=0,i._onDidOptionChange=i._register(new ie.a),i.onDidOptionChange=i._onDidOptionChange.event,i._onKeyDown=i._register(new ie.a),i.onKeyDown=i._onKeyDown.event,i._onMouseDown=i._register(new ie.a),i._onInput=i._register(new ie.a),i._onKeyUp=i._register(new ie.a),i._onPreserveCaseKeyDown=i._register(new ie.a),i.onPreserveCaseKeyDown=i._onPreserveCaseKeyDown.event,i.contextViewProvider=t,i.placeholder=o.placeholder||"",i.validation=o.validation,i.label=o.label||Ye,i.inputActiveOptionBorder=o.inputActiveOptionBorder,i.inputActiveOptionBackground=o.inputActiveOptionBackground,i.inputBackground=o.inputBackground,i.inputForeground=o.inputForeground,i.inputBorder=o.inputBorder,i.inputValidationInfoBorder=o.inputValidationInfoBorder,i.inputValidationInfoBackground=o.inputValidationInfoBackground,i.inputValidationInfoForeground=o.inputValidationInfoForeground,i.inputValidationWarningBorder=o.inputValidationWarningBorder,i.inputValidationWarningBackground=o.inputValidationWarningBackground,i.inputValidationWarningForeground=o.inputValidationWarningForeground,i.inputValidationErrorBorder=o.inputValidationErrorBorder,i.inputValidationErrorBackground=o.inputValidationErrorBackground,i.inputValidationErrorForeground=o.inputValidationErrorForeground;var r=o.history||[],a=!!o.flexibleHeight,s=!!o.flexibleWidth,l=o.flexibleMaxHeight;i.domNode=document.createElement("div"),te.f(i.domNode,"monaco-findInput"),i.inputBox=i._register(new Ve.a(i.domNode,i.contextViewProvider,{ariaLabel:i.label||"",placeholder:i.placeholder||"",validationOptions:{validation:i.validation},inputBackground:i.inputBackground,inputForeground:i.inputForeground,inputBorder:i.inputBorder,inputValidationInfoBackground:i.inputValidationInfoBackground,inputValidationInfoForeground:i.inputValidationInfoForeground,inputValidationInfoBorder:i.inputValidationInfoBorder,inputValidationWarningBackground:i.inputValidationWarningBackground,inputValidationWarningForeground:i.inputValidationWarningForeground,inputValidationWarningBorder:i.inputValidationWarningBorder,inputValidationErrorBackground:i.inputValidationErrorBackground,inputValidationErrorForeground:i.inputValidationErrorForeground,inputValidationErrorBorder:i.inputValidationErrorBorder,history:r,flexibleHeight:a,flexibleWidth:s,flexibleMaxHeight:l})),i.preserveCase=i._register(new $e({appendTitle:"",isChecked:!1,inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionBackground:i.inputActiveOptionBackground})),i._register(i.preserveCase.onChange((function(e){i._onDidOptionChange.fire(e),!e&&i.fixFocusOnOptionClickEnabled&&i.inputBox.focus(),i.validate()}))),i._register(i.preserveCase.onKeyDown((function(e){i._onPreserveCaseKeyDown.fire(e)}))),i._showOptionButtons?i.cachedOptionsWidth=i.preserveCase.width():i.cachedOptionsWidth=0;var c=[i.preserveCase.domNode];i.onkeydown(i.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=c.indexOf(document.activeElement);if(0<=t){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():0<=n&&c[n].focus(),te.c.stop(e,!0)}}}));var u=document.createElement("div");return u.className="controls",u.style.display=i._showOptionButtons?"block":"none",u.appendChild(i.preserveCase.domNode),i.domNode.appendChild(u),e&&e.appendChild(i.domNode),i.onkeydown(i.inputBox.inputElement,(function(e){return i._onKeyDown.fire(e)})),i.onkeyup(i.inputBox.inputElement,(function(e){return i._onKeyUp.fire(e)})),i.oninput(i.inputBox.inputElement,(function(e){return i._onInput.fire()})),i.onmousedown(i.inputBox.inputElement,(function(e){return i._onMouseDown.fire(e)})),i}var tt,nt=(tt=function(e,t){return(tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}tt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ot=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},it=function(e,t){return function(n,o){t(n,o,e)}},rt="historyNavigationWidget",at="historyNavigationEnabled";function st(e,t){return e.getContext(document.activeElement).getValue(t)}function lt(e,t){var n,o,i,r=(n=t,e.createScoped(n.target));return o=r,i=t,rt,new T.d("historyNavigationWidget",i).bindTo(o),{scopedContextKeyService:r,historyNavigationEnablement:new T.d(at,!0).bindTo(r)}}var ct,ut=(nt(dt,ct=He),dt=ot([it(3,T.c)],dt));function dt(e,t,n,o,i){void 0===i&&(i=!1);var r=ct.call(this,e,t,i,n)||this;return r._register(lt(o,{target:r.inputBox.element,historyNavigator:r.inputBox}).scopedContextKeyService),r}var ht,pt=(nt(ft,ht=Qe),ft=ot([it(3,T.c)],ft));function ft(e,t,n,o,i){void 0===i&&(i=!1);var r=ht.call(this,e,t,i,n)||this;return r._register(lt(o,{target:r.inputBox.element,historyNavigator:r.inputBox}).scopedContextKeyService),r}qe.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:T.a.and(T.a.has(rt),T.a.equals(at,!0)),primary:16,secondary:[528],handler:function(e){var t=st(e.get(T.c),rt);t&&t.historyNavigator.showPreviousValue()}}),qe.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:T.a.and(T.a.has(rt),T.a.equals(at,!0)),primary:18,secondary:[530],handler:function(e){var t=st(e.get(T.c),rt);t&&t.historyNavigator.showNextValue()}});var gt,mt=(gt=function(e,t){return(gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}gt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),vt=o.a("label.find","Find"),yt=o.a("placeholder.find","Find"),bt=o.a("label.previousMatchButton","Previous match"),_t=o.a("label.nextMatchButton","Next match"),wt=o.a("label.toggleSelectionFind","Find in selection"),Ct=o.a("label.closeButton","Close"),St=o.a("label.replace","Replace"),Ot=o.a("placeholder.replace","Replace"),xt=o.a("label.replaceButton","Replace"),Et=o.a("label.replaceAllButton","Replace All"),kt=o.a("label.toggleReplaceButton","Toggle Replace mode"),Nt=o.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",$),Dt=o.a("label.matchesLocation","{0} of {1}"),Lt=o.a("label.noResults","No Results"),Pt=69,It="ctrlEnterReplaceAll.windows.donotask",Tt=Fe.e?256:2048,Mt=function(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"};function jt(e,t,n){var o=!!t.match(/\n/);n&&o&&0<n.selectionStart&&e.stopPropagation()}function Rt(e,t,n){var o=!!t.match(/\n/);n&&o&&n.selectionEnd<n.value.length&&e.stopPropagation()}var At,Ft=(mt(Vt,At=ne.a),Vt.prototype.getId=function(){return Vt.ID},Vt.prototype.getDomNode=function(){return this._domNode},Vt.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},Vt.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(68)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=te.H(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=0<this._state.searchString.length&&0===this._state.matchesCount;te.Y(this._domNode,"no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory()},Vt.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},Vt.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},Vt.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=Pt+"px",this._state.matchesCount>=$?this._matchesCount.title=Nt:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),0<this._state.matchesCount){var t=String(this._state.matchesCount);this._state.matchesCount>=$&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=a.r(Dt,n,t)}else e=Lt;this._matchesCount.appendChild(document.createTextNode(e)),Object(je.a)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString),!0),Pt=Math.max(Pt,this._matchesCount.clientWidth)},Vt.prototype._getAriaLabel=function(e,t,n){return e===Lt?""===n?o.a("ariaSearchNoResultEmpty","{0} found",e):o.a("ariaSearchNoResult","{0} found for {1}",e,n):t?o.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",e,n,t.startLineNumber+":"+t.startColumn):o.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",e,n)},Vt.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()},Vt.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=0<this._state.searchString.length,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),te.Y(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(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&n)},Vt.prototype._reveal=function(){var e=this;if(!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection();switch(this._codeEditor.getOption(28).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}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout((function(){te.f(e._domNode,"visible"),e._domNode.setAttribute("aria-hidden","false")}),0),setTimeout((function(){e._findInput.validate()}),200),this._codeEditor.layoutOverlayWidget(this);var o=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&t){var i=this._codeEditor.getDomNode();if(i){var r=te.C(i),a=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition()),s=r.left+(a?a.left:0),l=a?a.top:0;if(this._viewZone&&l<this._viewZone.heightInPx){t.endLineNumber>t.startLineNumber&&(o=!1);var c=te.F(this._domNode).left;c<s&&(o=!1);var u=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition());c<r.left+(u?u.left:0)&&(o=!1)}}}this._showViewZone(o)}},Vt.prototype._hide=function(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),te.P(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},Vt.prototype._layoutViewZone=function(){var e=this;if(this._codeEditor.getOption(28).addExtraSpaceOnTop){if(this._isVisible){var t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((function(n){t.heightInPx=e._getHeight(),e._viewZoneId=n.addZone(t),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+t.heightInPx)}))}}else this._removeViewZone()},Vt.prototype._showViewZone=function(e){var t=this;if(void 0===e&&(e=!0),this._isVisible&&this._codeEditor.getOption(28).addExtraSpaceOnTop){void 0===this._viewZone&&(this._viewZone=new Mt(0));var n=this._viewZone;this._codeEditor.changeViewZones((function(o){if(void 0!==t._viewZoneId){var i=t._getHeight();if(i===n.heightInPx)return;var r=i-n.heightInPx;return n.heightInPx=i,o.layoutZone(t._viewZoneId),void(e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+r))}r=t._getHeight(),n.heightInPx=r,t._viewZoneId=o.addZone(n),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+r)}))}},Vt.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))}))},Vt.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(m.Y),inputActiveOptionBackground:e.getColor(m.X),inputBackground:e.getColor(m.Z),inputForeground:e.getColor(m.bb),inputBorder:e.getColor(m.ab),inputValidationInfoBackground:e.getColor(m.fb),inputValidationInfoForeground:e.getColor(m.hb),inputValidationInfoBorder:e.getColor(m.gb),inputValidationWarningBackground:e.getColor(m.ib),inputValidationWarningForeground:e.getColor(m.kb),inputValidationWarningBorder:e.getColor(m.jb),inputValidationErrorBackground:e.getColor(m.cb),inputValidationErrorForeground:e.getColor(m.eb),inputValidationErrorBorder:e.getColor(m.db)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)},Vt.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible&&te.M(this._domNode)){var e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)te.f(this._domNode,"hiddenEditor");else{te.I(this._domNode,"hiddenEditor")&&te.P(this._domNode,"hiddenEditor");var t=e.width,n=e.minimapWidth,o=!1,i=!1,r=!1;if(this._resized&&419<te.H(this._domNode))return this._domNode.style.maxWidth=t-28-n-15+"px",void(this._replaceInput.width=te.H(this._findInput.domNode));if(t<=447+n&&(i=!0),t<=447+n-Pt&&(r=!0),t+50<=447+n-Pt&&(o=!0),te.Y(this._domNode,"collapsed-find-widget",o),te.Y(this._domNode,"narrow-find-widget",r),te.Y(this._domNode,"reduced-find-widget",i),r||o||(this._domNode.style.maxWidth=t-28-n-15+"px"),this._resized){this._findInput.inputBox.layout();var a=this._findInput.inputBox.element.clientWidth;0<a&&(this._replaceInput.width=a)}else this._isReplaceVisible&&(this._replaceInput.width=te.H(this._findInput.domNode))}}},Vt.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},Vt.prototype._tryUpdateHeight=function(){var e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)},Vt.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},Vt.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},Vt.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},Vt.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&&(d.a.equalsRange(e,t)||this._state.change({searchScope:e},!0))}},Vt.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},Vt.prototype._onFindInputKeyDown=function(e){return e.equals(3|Tt)?(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)?jt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?Rt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0},Vt.prototype._onReplaceInputKeyDown=function(e){return e.equals(3|Tt)?(Fe.h&&Fe.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(o.a("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(It,!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)?jt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?Rt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0},Vt.prototype.getHorizontalSashTop=function(e){return 0},Vt.prototype.getHorizontalSashLeft=function(e){return 0},Vt.prototype.getHorizontalSashWidth=function(e){return 500},Vt.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},Vt.prototype._buildDomNode=function(){var e=this;this._findInput=this._register(new ut(null,this._contextViewProvider,{width:221,label:vt,placeholder:yt,appendCaseSensitiveLabel:this._keybindingLabelFor(K),appendWholeWordsLabel:this._keybindingLabelFor(U),appendRegexLabel:this._keybindingLabelFor(q),validation:function(t){if(0===t.length||!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(t){return{content:t.message}}},flexibleHeight:!0,flexibleWidth:!0,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()}))),Fe.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 Bt({label:bt+this._keybindingLabelFor(H),className:"codicon codicon-arrow-up",onTrigger:function(){e._codeEditor.getAction(H).run().then(void 0,Ae.e)}})),this._nextBtn=this._register(new Bt({label:_t+this._keybindingLabelFor(B),className:"codicon codicon-arrow-down",onTrigger:function(){e._codeEditor.getAction(B).run().then(void 0,Ae.e)}}));var t=document.createElement("div");t.className="find-part",t.appendChild(this._findInput.domNode);var n=document.createElement("div");n.className="find-actions",t.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new le({actionClassName:"codicon codicon-selection",title:wt+this._keybindingLabelFor(G),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)}))),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Bt({label:Ct+this._keybindingLabelFor(z),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())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new pt(null,void 0,{label:St,placeholder:Ot,history:[],flexibleHeight:!0,flexibleWidth:!0,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 Bt({label:xt+this._keybindingLabelFor(Y),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 Bt({label:Et+this._keybindingLabelFor(Z),className:"codicon codicon-replace-all",onTrigger:function(){e._controller.replaceAll()}}));var o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);var i=document.createElement("div");i.className="replace-actions",o.appendChild(i),i.appendChild(this._replaceBtn.domNode),i.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Bt({label:kt,className:"codicon toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInput.width=te.H(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="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(o),this._resizeSash=new Re.a(this._domNode,this,{orientation:0}),this._resized=!1;var r=419;this._register(this._resizeSash.onDidStart((function(){r=te.H(e._domNode)}))),this._register(this._resizeSash.onDidChange((function(t){e._resized=!0;var n=r+t.startX-t.currentX;n<419||(parseFloat(te.z(e._domNode).maxWidth)||0)<n||(e._domNode.style.width=n+"px",e._isReplaceVisible&&(e._replaceInput.width=te.H(e._findInput.domNode)),e._findInput.inputBox.layout(),e._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((function(){var t=te.H(e._domNode);if(!(t<419)){var n=419;if(!e._resized||419===t){var o=e._codeEditor.getLayoutInfo();n=o.width-28-o.minimapWidth-15,e._resized=!0}e._domNode.style.width=n+"px",e._isReplaceVisible&&(e._replaceInput.width=te.H(e._findInput.domNode)),e._findInput.inputBox.layout()}})))},Vt.prototype.updateAccessibilitySupport=function(){var e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)},Vt.ID="editor.contrib.findWidget",Vt);function Vt(e,t,n,o,a,s,l,c,u){var d=At.call(this)||this;return d._cachedHeight=null,d._codeEditor=e,d._controller=t,d._state=n,d._contextViewProvider=o,d._keybindingService=a,d._contextKeyService=s,d._storageService=c,d._notificationService=u,d._ctrlEnterReplaceAllWarningPrompted=!!c.getBoolean(It,0),d._isVisible=!1,d._isReplaceVisible=!1,d._ignoreChangeEvent=!1,d._updateHistoryDelayer=new i.a(500),d._register(Object(r.h)((function(){return d._updateHistoryDelayer.cancel()}))),d._register(d._state.onFindReplaceStateChange((function(e){return d._onStateChanged(e)}))),d._buildDomNode(),d._updateButtons(),d._tryUpdateWidgetWidth(),d._findInput.inputBox.layout(),d._register(d._codeEditor.onDidChangeConfiguration((function(e){if(e.hasChanged(68)&&(d._codeEditor.getOption(68)&&d._state.change({isReplaceRevealed:!1},!1),d._updateButtons()),e.hasChanged(107)&&d._tryUpdateWidgetWidth(),e.hasChanged(2)&&d.updateAccessibilitySupport(),e.hasChanged(28)){var t=d._codeEditor.getOption(28).addExtraSpaceOnTop;t&&!d._viewZone&&(d._viewZone=new Mt(0),d._showViewZone()),!t&&d._viewZone&&d._removeViewZone()}}))),d.updateAccessibilitySupport(),d._register(d._codeEditor.onDidChangeCursorSelection((function(){d._isVisible&&d._updateToggleSelectionFindButton()}))),d._register(d._codeEditor.onDidFocusEditorWidget((function(){if(d._isVisible){var e=d._controller.getGlobalBufferTerm();e&&e!==d._state.searchString&&(d._state.change({searchString:e},!0),d._findInput.select())}}))),d._findInputFocused=j.bindTo(s),d._findFocusTracker=d._register(te.Z(d._findInput.inputBox.inputElement)),d._register(d._findFocusTracker.onDidFocus((function(){d._findInputFocused.set(!0),d._updateSearchScope()}))),d._register(d._findFocusTracker.onDidBlur((function(){d._findInputFocused.set(!1)}))),d._replaceInputFocused=R.bindTo(s),d._replaceFocusTracker=d._register(te.Z(d._replaceInput.inputBox.inputElement)),d._register(d._replaceFocusTracker.onDidFocus((function(){d._replaceInputFocused.set(!0),d._updateSearchScope()}))),d._register(d._replaceFocusTracker.onDidBlur((function(){d._replaceInputFocused.set(!1)}))),d._codeEditor.addOverlayWidget(d),d._codeEditor.getOption(28).addExtraSpaceOnTop&&(d._viewZone=new Mt(0)),d._applyTheme(l.getTheme()),d._register(l.onThemeChange(d._applyTheme.bind(d))),d._register(d._codeEditor.onDidChangeModel((function(){d._isVisible&&(d._viewZoneId=void 0)}))),d._register(d._codeEditor.onDidScrollChange((function(e){e.scrollTopChanged?d._layoutViewZone():setTimeout((function(){d._layoutViewZone()}),0)}))),d}var Wt,Bt=(mt(Ht,Wt=ne.a),Object.defineProperty(Ht.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),Ht.prototype.isEnabled=function(){return 0<=this._domNode.tabIndex},Ht.prototype.focus=function(){this._domNode.focus()},Ht.prototype.setEnabled=function(e){te.Y(this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1},Ht.prototype.setExpanded=function(e){this._domNode.setAttribute("aria-expanded",String(!!e))},Ht.prototype.toggleClass=function(e,t){te.Y(this._domNode,e,t)},Ht);function Ht(e){var t=Wt.call(this)||this;return t._opts=e,t._domNode=document.createElement("div"),t._domNode.title=t._opts.label,t._domNode.tabIndex=0,t._domNode.className="button "+t._opts.className,t._domNode.setAttribute("role","button"),t._domNode.setAttribute("aria-label",t._opts.label),t.onclick(t._domNode,(function(e){t._opts.onTrigger(),e.preventDefault()})),t.onkeydown(t._domNode,(function(e){if(e.equals(10)||e.equals(3))return t._opts.onTrigger(),void e.preventDefault();t._opts.onKeyDown&&t._opts.onKeyDown(e)})),t}Object(v.e)((function(e,t){function n(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")}n(".findMatch",e.getColor(m.t)),n(".currentFindMatch",e.getColor(m.r)),n(".findScope",e.getColor(m.v)),n(".find-widget",e.getColor(m.Q));var o=e.getColor(m.hc);o&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+o+"; }");var i=e.getColor(m.u);i&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+i+"; box-sizing: border-box; }");var r=e.getColor(m.s);r&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+r+"; padding: 1px; box-sizing: border-box; }");var a=e.getColor(m.w);a&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+a+"; }");var s=e.getColor(m.e);s&&t.addRule(".monaco-editor .find-widget { border: 1px solid "+s+"; }");var l=e.getColor(m.S);l&&t.addRule(".monaco-editor .find-widget { color: "+l+"; }");var c=e.getColor(m.U);c&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+c+"; }");var u=e.getColor(m.T);if(u)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+u+"; width: 3px !important; margin-left: -4px;}");else{var d=e.getColor(m.R);d&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+d+"; width: 3px !important; margin-left: -4px;}")}var h=e.getColor(m.V);h&&t.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+h+"; }")}));var zt=n(955),Kt=n(757),Ut=n(448),qt=n(531),Gt=n(775),Yt=n(532);n.d(t,"getSelectionSearchString",(function(){return Qt})),n.d(t,"CommonFindController",(function(){return tn})),n.d(t,"FindController",(function(){return rn})),n.d(t,"StartFindAction",(function(){return ln})),n.d(t,"StartFindWithSelectionAction",(function(){return dn})),n.d(t,"MatchFindAction",(function(){return fn})),n.d(t,"NextMatchFindAction",(function(){return vn})),n.d(t,"NextMatchFindAction2",(function(){return _n})),n.d(t,"PreviousMatchFindAction",(function(){return Sn})),n.d(t,"PreviousMatchFindAction2",(function(){return En})),n.d(t,"SelectionMatchFindAction",(function(){return Dn})),n.d(t,"NextSelectionMatchFindAction",(function(){return In})),n.d(t,"PreviousSelectionMatchFindAction",(function(){return jn})),n.d(t,"StartFindReplaceAction",(function(){return Fn}));var Zt,$t=(Zt=function(e,t){return(Zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Zt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xt=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},Jt=function(e,t){return function(n,o){t(n,o,e)}};function Qt(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)<524288)return e.getModel().getValueInRange(t);return null}var en,tn=($t(nn,en=r.a),nn.get=function(e){return e.getContribution(nn.ID)},nn.prototype.dispose=function(){this.disposeModel(),en.prototype.dispose.call(this)},nn.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},nn.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)},nn.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)},nn.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)},nn.prototype.isFindInputFocused=function(){return!!j.getValue(this._contextKeyService)},nn.prototype.getState=function(){return this._state},nn.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},nn.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},nn.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},nn.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},nn.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)}},nn.prototype.setSearchString=function(e){this._state.isRegex&&(e=a.p(e)),this._state.change({searchString:e},!1)},nn.prototype.highlightFindOptions=function(){},nn.prototype._start=function(e){if(this.disposeModel(),this._editor.hasModel()){var t,n={isRevealed:!0};if(e.seedSearchStringFromSelection&&(t=Qt(this._editor))&&(this._state.isRegex?n.searchString=a.p(t):n.searchString=t),!n.searchString&&e.seedSearchStringFromGlobalClipboard&&(t=this.getGlobalBufferTerm())&&(n.searchString=t),e.forceRevealReplace?n.isReplaceRevealed=!0:this._findWidgetVisible.get()||(n.isReplaceRevealed=!1),e.updateSearchScope){var o=this._editor.getSelection();o.isEmpty()||(n.searchScope=o)}this._state.change(n,!1),this._model||(this._model=new X(this._editor,this._state))}},nn.prototype.start=function(e){this._start(e)},nn.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},nn.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},nn.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},nn.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},nn.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},nn.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},nn.prototype.setGlobalBufferTerm=function(e){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)},nn.ID="editor.contrib.findController",nn=Xt([Jt(1,T.c),Jt(2,Gt.a),Jt(3,zt.a)],nn));function nn(e,t,n,o){var r=en.call(this)||this;return r._editor=e,r._findWidgetVisible=M.bindTo(t),r._contextKeyService=t,r._storageService=n,r._clipboardService=o,r._updateHistoryDelayer=new i.a(500),r._state=r._register(new Pe),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}var on,rn=($t(an,on=tn),an.prototype._start=function(e){this._widget||this._createFindWidget();var t=this._editor.getSelection(),n=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":n=!!t&&t.startLineNumber!==t.endLineNumber}e.updateSearchScope=n,on.prototype._start.call(this,e),2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput()},an.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},an.prototype._createFindWidget=function(){this._widget=this._register(new Ft(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new ke(this._editor,this._state,this._keybindingService,this._themeService))},an=Xt([Jt(1,Kt.b),Jt(2,T.c),Jt(3,qt.a),Jt(4,v.c),Jt(5,Yt.a),Jt(6,Gt.a),Jt(7,Object(Ut.d)(zt.a))],an));function an(e,t,n,o,i,r,a,s){var l=on.call(this,e,n,a,s)||this;return l._contextViewService=t,l._keybindingService=o,l._themeService=i,l._notificationService=r,l._widget=null,l._findOptionsWidget=null,l}var sn,ln=($t(cn,sn=s.b),cn.prototype.run=function(e,t){var n=tn.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},cn);function cn(){return sn.call(this,{id:"actions.find",label:o.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:17,group:"3_find",title:o.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}var un,dn=($t(hn,un=s.b),hn.prototype.run=function(e,t){var n=tn.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),n.setGlobalBufferTerm(n.getState().searchString))},hn);function hn(){return un.call(this,{id:"actions.findWithSelection",label:o.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this}var pn,fn=($t(gn,pn=s.b),gn.prototype.run=function(e,t){var n=tn.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))},gn);function gn(){return null!==pn&&pn.apply(this,arguments)||this}var mn,vn=($t(yn,mn=fn),yn.prototype._run=function(e){return e.moveToNextMatch()},yn);function yn(){return mn.call(this,{id:B,label:o.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this}var bn,_n=($t(wn,bn=fn),wn.prototype._run=function(e){return e.moveToNextMatch()},wn);function wn(){return bn.call(this,{id:B,label:o.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:T.a.and(l.a.focus,j),primary:3,weight:100}})||this}var Cn,Sn=($t(On,Cn=fn),On.prototype._run=function(e){return e.moveToPrevMatch()},On);function On(){return Cn.call(this,{id:H,label:o.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}var xn,En=($t(kn,xn=fn),kn.prototype._run=function(e){return e.moveToPrevMatch()},kn);function kn(){return xn.call(this,{id:H,label:o.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:T.a.and(l.a.focus,j),primary:1027,weight:100}})||this}var Nn,Dn=($t(Ln,Nn=s.b),Ln.prototype.run=function(e,t){var n=tn.get(t);if(n){var o=Qt(t);o&&n.setSearchString(o),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))}},Ln);function Ln(){return null!==Nn&&Nn.apply(this,arguments)||this}var Pn,In=($t(Tn,Pn=Dn),Tn.prototype._run=function(e){return e.moveToNextMatch()},Tn);function Tn(){return Pn.call(this,{id:"editor.action.nextSelectionMatchFindAction",label:o.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:2109,weight:100}})||this}var Mn,jn=($t(Rn,Mn=Dn),Rn.prototype._run=function(e){return e.moveToPrevMatch()},Rn);function Rn(){return Mn.call(this,{id:"editor.action.previousSelectionMatchFindAction",label:o.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:3133,weight:100}})||this}var An,Fn=($t(Vn,An=s.b),Vn.prototype.run=function(e,t){if(t.hasModel()&&!t.getOption(68)){var n=tn.get(t),o=t.getSelection(),i=n.isFindInputFocused(),r=!o.isEmpty()&&o.startLineNumber===o.endLineNumber&&t.getOption(28).seedSearchStringFromSelection&&!i,a=i||r?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r,seedSearchStringFromGlobalClipboard:t.getOption(28).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1})}},Vn);function Vn(){return An.call(this,{id:"editor.action.startFindReplaceAction",label:o.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:17,group:"3_find",title:o.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}Object(s.h)(tn.ID,rn),Object(s.f)(ln),Object(s.f)(dn),Object(s.f)(vn),Object(s.f)(_n),Object(s.f)(Sn),Object(s.f)(En),Object(s.f)(In),Object(s.f)(jn),Object(s.f)(Fn);var Wn=s.c.bindToContribution(tn.get);Object(s.g)(new Wn({id:z,precondition:M,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:9,secondary:[1033]}})),Object(s.g)(new Wn({id:K,precondition:void 0,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:A.primary,mac:A.mac,win:A.win,linux:A.linux}})),Object(s.g)(new Wn({id:U,precondition:void 0,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),Object(s.g)(new Wn({id:q,precondition:void 0,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:V.primary,mac:V.mac,win:V.win,linux:V.linux}})),Object(s.g)(new Wn({id:G,precondition:void 0,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:W.primary,mac:W.mac,win:W.win,linux:W.linux}})),Object(s.g)(new Wn({id:Y,precondition:M,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:3094}})),Object(s.g)(new Wn({id:Y,precondition:M,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:T.a.and(l.a.focus,R),primary:3}})),Object(s.g)(new Wn({id:Z,precondition:M,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:2563}})),Object(s.g)(new Wn({id:Z,precondition:M,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:T.a.and(l.a.focus,R),primary:void 0,mac:{primary:2051}}})),Object(s.g)(new Wn({id:"editor.action.selectAllMatches",precondition:M,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:515}}))},function(e,t,n){"use strict";n.r(t);var o,i=n(445),r=n(442),a=n(439),s=n(456),l=n(773),c=n(440),u=n(449),d=n(451),h=n(469),p=(n(1335),n(443)),f=n(461),g=n(490),m=n(688),v=n(956),y=n(459),b=n(916),_=n(554),w=n(889);(o||(o={})).className=function(e){switch(e){case w.a.Ignore:return"severity-ignore codicon-info";case w.a.Info:return"codicon-info";case w.a.Warning:return"codicon-warning";case w.a.Error:return"codicon-error"}return""},Object(d.e)((function(e,t){var n=e.getColor(f.Pb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-error,\n\t\t\t.markers-panel .marker-icon.codicon-error,\n\t\t\t.extensions-viewlet > .extensions .codicon-error,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-error {\n\t\t\t\tcolor: "+n+";\n\t\t\t}\n\t\t");var o=e.getColor(f.Rb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-warning,\n\t\t\t.markers-panel .marker-icon.codicon-warning,\n\t\t\t.extensions-viewlet > .extensions .codicon-warning,\n\t\t\t.extension-editor .codicon-warning,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-warning {\n\t\t\t\tcolor: "+o+";\n\t\t\t}\n\t\t");var i=e.getColor(f.Qb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-info,\n\t\t\t.markers-panel .marker-icon.codicon-info,\n\t\t\t.extensions-viewlet > .extensions .codicon-info,\n\t\t\t.extension-editor .codicon-info,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-info {\n\t\t\t\tcolor: "+i+";\n\t\t\t}\n\t\t")}));var C,S=(C=function(e,t){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),O=(x.prototype.dispose=function(){Object(a.f)(this._disposables)},x.prototype.update=function(e){var t=this,n=e.source,o=e.message,i=e.relatedInformation,r=e.code,a=((null==n?void 0:n.length)||0)+"()".length;r&&(a+="string"==typeof r?r.length:r.value.length);var s=o.split(/\r\n|\r|\n/g);this._lines=s.length;for(var l=this._longestLineLength=0,c=s;l<c.length;l++){var u=c[l];this._longestLineLength=Math.max(u.length+a,this._longestLineLength)}p.t(this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var d=this._messageBlock,h=0,f=s;h<f.length;h++)u=f[h],""===((d=document.createElement("div")).innerText=u)&&(d.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(d);if(n||r){var g,m=document.createElement("span");if(p.f(m,"details"),d.appendChild(m),n){var b=document.createElement("span");b.innerText=n,p.f(b,"source"),m.appendChild(b)}r&&("string"==typeof r?((g=document.createElement("span")).innerText="("+r+")",p.f(g,"code"),m.appendChild(g)):(this._codeLink=p.a("a.code-link"),this._codeLink.setAttribute("href",""+r.link.toString()),this._codeLink.onclick=function(e){t._openerService.open(r.link),e.preventDefault(),e.stopPropagation()},(g=p.q(this._codeLink,p.a("span"))).innerText=r.value,m.appendChild(this._codeLink)))}if(p.t(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(y.q)(i)){var _=this._relatedBlock.appendChild(document.createElement("div"));_.style.paddingTop=Math.floor(.66*this._editor.getOption(49))+"px",this._lines+=1;for(var w=0,C=i;w<C.length;w++){var S=C[w],O=document.createElement("div"),x=document.createElement("a");p.f(x,"filename"),x.innerHTML=Object(v.a)(S.resource)+"("+S.startLineNumber+", "+S.startColumn+"): ",x.title=Object(v.b)(S.resource,void 0),this._relatedDiagnostics.set(x,S);var E=document.createElement("span");E.innerText=S.message,O.appendChild(x),O.appendChild(E),this._lines+=1,_.appendChild(O)}}var k=this._editor.getOption(34),N=Math.ceil(k.typicalFullwidthCharacterWidth*this._longestLineLength*.75),D=k.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:N,scrollHeight:D})},x.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})},x.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},x);function x(e,t,n,o){var i=this;this._openerService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new a.b,this._editor=t;var r=document.createElement("div");r.className="descriptioncontainer",r.setAttribute("aria-live","assertive"),r.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),p.f(this._messageBlock,"message"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(p.o(this._relatedBlock,"click",(function(e){e.preventDefault();var t=i._relatedDiagnostics.get(e.target);t&&n(t)}))),this._scrollable=new m.b(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((function(e){r.style.left="-"+e.scrollLeft+"px",r.style.top="-"+e.scrollTop+"px"}))),this._disposables.add(this._scrollable)}var E,k=(S(N,E=b.c),N.prototype._applyTheme=function(e){this._backgroundColor=e.getColor(j);var t=I;this._severity===l.c.Warning?t=T:this._severity===l.c.Info&&(t=M);var n=e.getColor(t);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:e.getColor(b.q),secondaryHeadingColor:e.getColor(b.r)})},N.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),E.prototype._applyStyles.call(this)},N.prototype.dispose=function(){this._callOnDispose.dispose(),E.prototype.dispose.call(this)},N.prototype._fillHead=function(e){E.prototype._fillHead.call(this,e),this._actionbarWidget.push(this.actions,{label:!1,icon:!0,index:0})},N.prototype._fillTitleIcon=function(e){this._icon=p.q(e,p.a(""))},N.prototype._getActionBarOptions=function(){return{orientation:0}},N.prototype._fillBody=function(e){var t=this;this._parentContainer=e,p.f(e,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new O(this._container,this.editor,(function(e){return t._onDidSelectRelatedInformation.fire(e)}),this._openerService),this._disposables.add(this._message)},N.prototype.show=function(e,t){throw new Error("call showAtMarker")},N.prototype.showAtMarker=function(e,t,n){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getTheme());var r=c.a.lift(e),a=this.editor.getPosition(),s=a&&r.containsPosition(a)?a:r.getStartPosition();E.prototype.show.call(this,s,this.computeRequiredHeight());var u=this.editor.getModel();if(u){var d=1<n?i.a("problems","{0} of {1} problems",t,n):i.a("change","{0} of {1} problem",t,n);this.setTitle(Object(_.b)(u.uri),d)}this._icon.className="codicon "+o.className(l.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(s,0),this.editor.focus()},N.prototype.updateMarker=function(e){this._container.classList.remove("stale"),this._message.update(e)},N.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},N.prototype._doLayoutBody=function(e,t){E.prototype._doLayoutBody.call(this,e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=e+"px"},N.prototype._onWidth=function(e){this._message.layout(this._heightInPixel,e)},N.prototype._relayout=function(){E.prototype._relayout.call(this,this.computeRequiredHeight())},N.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},N);function N(e,t,n,o){var i=E.call(this,e,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return i.actions=t,i._themeService=n,i._openerService=o,i._callOnDispose=new a.b,i._onDidSelectRelatedInformation=new r.a,i.onDidSelectRelatedInformation=i._onDidSelectRelatedInformation.event,i._severity=l.c.Warning,i._backgroundColor=g.a.white,i._applyTheme(n.getTheme()),i._callOnDispose.add(n.onThemeChange(i._applyTheme.bind(i))),i.create(),i}var D=Object(f.Kb)(f.q,f.p),L=Object(f.Kb)(f.P,f.O),P=Object(f.Kb)(f.H,f.G),I=Object(f.Tb)("editorMarkerNavigationError.background",{dark:D,light:D,hc:D},i.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),T=Object(f.Tb)("editorMarkerNavigationWarning.background",{dark:L,light:L,hc:L},i.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),M=Object(f.Tb)("editorMarkerNavigationInfo.background",{dark:P,light:P,hc:P},i.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),j=Object(f.Tb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:g.a.white,hc:"#0C141F"},i.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(d.e)((function(e,t){var n=e.getColor(f.ec);n&&(t.addRule(".monaco-editor .marker-widget a { color: "+n+"; }"),t.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+n+"; }"))}));var R=n(444),A=n(504),F=n(446),V=n(755),W=n(703),B=n(531),H=n(636);n.d(t,"MarkerController",(function(){return $})),n.d(t,"NextMarkerAction",(function(){return ne}));var z,K=(z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),U=function(e,t){return function(n,o){t(n,o,e)}},q=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},G=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},Y=(Object.defineProperty(Z.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event},enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event},enumerable:!0,configurable:!0}),Z.prototype.setMarkers=function(e){var t=0<=this._nextIdx?this._markers[this._nextIdx]:void 0;this._markers=e||[],this._markers.sort(Q.compareMarker),this._nextIdx=t?Math.max(-1,Object(y.c)(this._markers,t,Q.compareMarker)):-1,this._onMarkerSetChanged.fire(this)},Z.prototype.withoutWatchingEditorPosition=function(e){this._ignoreSelectionChange=!0;try{e()}finally{this._ignoreSelectionChange=!1}},Z.prototype._initIdx=function(e){for(var t=!1,n=this._editor.getPosition(),o=0;o<this._markers.length;o++){var i=c.a.lift(this._markers[o]);if(i.isEmpty()&&this._editor.getModel()){var r=this._editor.getModel().getWordAtPosition(i.getStartPosition());r&&(i=new c.a(i.startLineNumber,r.startColumn,i.startLineNumber,r.endColumn))}if(n&&(i.containsPosition(n)||n.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=o,t=!0;break}}t||(this._nextIdx=e?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)},Object.defineProperty(Z.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}),Z.prototype.move=function(e,t){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!t;var n=this._nextIdx,o=!1;if(-1===this._nextIdx?this._initIdx(e):e?t||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:o=!0:e||(t||0<this._nextIdx?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:o=!0),n!==this._nextIdx){var i=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(i)}return o},Z.prototype.canNavigate=function(){return 0<this._markers.length},Z.prototype.findMarkerAtPosition=function(e){return Object(y.h)(this._markers,(function(t){return c.a.containsPosition(t,e)}))},Object.defineProperty(Z.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),Z.prototype.indexOf=function(e){return 1+this._markers.indexOf(e)},Z.prototype.dispose=function(){this._toUnbind.dispose()},Z);function Z(e,t){var n=this;this._toUnbind=new a.b,this._editor=e,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new r.a,this._onMarkerSetChanged=new r.a,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()&&c.a.containsPosition(n.currentMarker,n._editor.getPosition())||(n._nextIdx=-1)})))}var $=(X.get=function(e){return e.getContribution(X.ID)},X.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},X.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},X.prototype.getOrCreateModel=function(){var e=this;if(this._model)return this._model;var t=this._getMarkers();this._model=new Y(this._editor,t),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var n=this._keybindingService.lookupKeybinding(re.ID),o=this._keybindingService.lookupKeybinding(ne.ID),i=[new W.a(ne.ID,ne.LABEL+(o?" ("+o.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),(function(){return q(e,void 0,void 0,(function(){return G(this,(function(e){return this._model&&this._model.move(!0,!0),[2]}))}))})),new W.a(re.ID,re.LABEL+(n?" ("+n.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),(function(){return q(e,void 0,void 0,(function(){return G(this,(function(e){return this._model&&this._model.move(!1,!0),[2]}))}))}))];this._widget=new k(this._editor,i,this._themeService,this._openerService),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,a=i;r<a.length;r++){var s=a[r];this._disposeOnClose.add(s)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation((function(t){e._editorService.openCodeEditor({resource:t.resource,options:{pinned:!0,revealIfOpened:!0,selection:c.a.lift(t).collapseToStart()}},e._editor).then(void 0,F.e),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},X.prototype.closeMarkersNavigation=function(e){void 0===e&&(e=!0),this._cleanUp(),e&&this._editor.focus()},X.prototype.show=function(e){this.getOrCreateModel().currentMarker=e},X.prototype._onMarkerChanged=function(e){var t=this._editor.getModel();t&&this._model&&e.some((function(e){return Object(_.e)(t.uri,e)}))&&this._model.setMarkers(this._getMarkers())},X.prototype._getMarkers=function(){var e=this._editor.getModel();return e?this._markerService.read({resource:e.uri,severities:l.c.Error|l.c.Warning|l.c.Info}):[]},X.ID="editor.contrib.markerController",X=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([U(1,l.b),U(2,s.c),U(3,d.c),U(4,A.a),U(5,B.a),U(6,H.a)],X));function X(e,t,n,o,i,r,s){this._markerService=t,this._contextKeyService=n,this._themeService=o,this._editorService=i,this._keybindingService=r,this._openerService=s,this._model=null,this._widget=null,this._disposeOnClose=new a.b,this._editor=e,this._widgetVisible=pe.bindTo(this._contextKeyService)}var J,Q=(K(ee,J=u.b),ee.prototype.run=function(e,t){var n=this,o=e.get(l.b),i=e.get(A.a),r=$.get(t);if(!r)return Promise.resolve(void 0);var a=r.getOrCreateModel();if(!a.move(this._isNext,!this._multiFile)||!this._multiFile)return Promise.resolve(void 0);var s=o.read({severities:l.c.Error|l.c.Warning|l.c.Info}).sort(ee.compareMarker);if(0===s.length)return Promise.resolve(void 0);var c=t.getModel();if(!c)return Promise.resolve(void 0);var u=a.currentMarker||{resource:c.uri,severity:l.c.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},d=Object(y.c)(s,u,ee.compareMarker);d<0?(d=~d,d%=s.length):d=this._isNext?(d+1)%s.length:(d+s.length-1)%s.length;var h=s[d];return Object(_.e)(h.resource,c.uri)?(a.move(this._isNext,!0),Promise.resolve(void 0)):(r.closeMarkersNavigation(),i.openCodeEditor({resource:h.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:h}},t).then((function(e){if(e)return e.getAction(n.id).run()})))},ee.compareMarker=function(e,t){var n=Object(R.e)(e.resource.toString(),t.resource.toString());return 0===n&&(n=l.c.compare(e.severity,t.severity)),0===n&&(n=c.a.compareRangesUsingStarts(e,t)),n},ee);function ee(e,t,n){var o=J.call(this,n)||this;return o._isNext=e,o._multiFile=t,o}var te,ne=(K(oe,te=Q),oe.ID="editor.action.marker.next",oe.LABEL=i.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),oe);function oe(){return te.call(this,!0,!1,{id:oe.ID,label:oe.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:578,weight:100}})||this}var ie,re=(K(ae,ie=Q),ae.ID="editor.action.marker.prev",ae.LABEL=i.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),ae);function ae(){return ie.call(this,!1,!1,{id:ae.ID,label:ae.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:1602,weight:100}})||this}var se,le=(K(ce,se=Q),ce);function ce(){return se.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:i.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:66,weight:100}})||this}var ue,de=(K(he,ue=Q),he);function he(){return ue.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:i.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:1090,weight:100}})||this}Object(u.h)($.ID,$),Object(u.f)(ne),Object(u.f)(re),Object(u.f)(le),Object(u.f)(de);var pe=new s.d("markersNavigationVisible",!1),fe=u.c.bindToContribution($.get);Object(u.g)(new fe({id:"closeMarkersNavigation",precondition:pe,handler:function(e){return e.closeMarkersNavigation()},kbOpts:{weight:150,kbExpr:h.a.focus,primary:9,secondary:[1033]}})),V.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.nextInFiles",title:i.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem")},order:1}),V.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.prevInFiles",title:i.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem")},order:2})},function(e,t,n){"use strict";n.r(t);var o,i,r=n(635),a=n(453),s=n(548),l=n(452),c=n(892),u=n(449),d=n(504),h=n(450),p=n(440),f=n(469),g=n(454),m=n(887),v=n(916),y=n(1117),b=n(897),_=n(445),w=n(755),C=n(456),S=n(532),O=n(774),x=n(1093),E=n(489),k=n(761),N=n(448),D=n(792),L=n(788),P=n(439),I=n(442),T=n(531),M=n(554),j=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),R=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},A=function(e,t){return function(n,o){t(n,o,e)}},F=new C.d("hasSymbols",!1),V=Object(N.c)("ISymbolNavigationService"),W=(B.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(P.f)(this._currentState),Object(P.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},B.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 o=new z(this._editorService),i=o.onDidChange((function(e){if(!t._ignoreEditorChange){var o=t._editorService.getActiveCodeEditor();if(o){var i=o.getModel(),r=o.getPosition();if(i&&r){for(var a=!1,s=!1,l=0,c=n.references;l<c.length;l++){var u=c[l];if(Object(M.e)(u.uri,i.uri))a=!0,s=s||p.a.containsPosition(u.range,r);else if(a)break}a&&s||t.reset()}}}}));this._currentState=Object(P.e)(o,i)}},B.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:p.a.collapseToStart(n.range),revealInCenterIfOutsideViewport:!0}},e).finally((function(){t._ignoreEditorChange=!1}))},B.prototype._showMessage=function(){Object(P.f)(this._currentMessage);var e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?Object(_.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):Object(_.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)},B=R([A(0,C.c),A(1,d.a),A(2,S.a),A(3,T.a)],B));function B(e,t,n,o){this._editorService=t,this._notificationService=n,this._keybindingService=o,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=F.bindTo(e)}function H(){return i.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:F,kbOpts:{weight:100,primary:70}})||this}Object(D.b)(V,W,!0),Object(u.g)((j(H,i=u.c),H.prototype.runEditorCommand=function(e,t){return e.get(V).revealNext(t)},new H)),L.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:F,primary:9,handler:function(e){e.get(V).reset()}});var z=(K.prototype.dispose=function(){this._disposables.dispose(),this._onDidChange.dispose(),this._listener.forEach(P.f)},K.prototype._onDidAddEditor=function(e){var t=this;this._listener.set(e,Object(P.e)(e.onDidChangeCursorPosition((function(n){return t._onDidChange.fire({editor:e})})),e.onDidChangeModelContent((function(n){return t._onDidChange.fire({editor:e})}))))},K.prototype._onDidRemoveEditor=function(e){Object(P.f)(this._listener.get(e)),this._listener.delete(e)},K=R([A(0,d.a)],K));function K(e){this._listener=new Map,this._disposables=new P.b,this._onDidChange=new I.a,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)}var U=n(478),q=n(479),G=n(465),Y=n(957);n.d(t,"DefinitionAction",(function(){return de}));var Z,$,X,J,Q,ee,te,ne,oe,ie=(Z=function(e,t){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),re=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},ae=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}};w.c.appendMenuItem(7,{submenu:8,title:_.a("peek.submenu","Peek"),group:"navigation",order:100});var se,le=(ie(ce,se=u.b),ce.prototype.run=function(e,t){var n=this;if(!t.hasModel())return Promise.resolve(void 0);var o=e.get(S.a),i=e.get(d.a),s=e.get(O.a),l=e.get(V),c=t.getModel(),u=t.getPosition(),h=new k.b(t,5),p=Object(a.j)(this._getLocationModel(c,u,h.token),h.token).then((function(e){return re(n,void 0,void 0,(function(){var n,o,a,s;return ae(this,(function(d){if(!e||h.token.isCancellationRequested)return[2];if(Object(r.a)(e.ariaMessage),e.referenceAt(c.uri,u)&&(o=this._getAlternativeCommand(t))!==this.id&&(n=t.getAction(o)),0===(a=e.references.length))this._configuration.muteMessage||(s=c.getWordAtPosition(u),m.a.get(t).showMessage(this._getNoResultFoundMessage(s),u));else{if(1!==a||!n)return[2,this._onResult(i,l,t,e)];n.run()}return[2]}))}))}),(function(e){o.error(e)})).finally((function(){h.dispose()}));return s.showWhile(p,250),p},ce.prototype._onResult=function(e,t,n,o){return re(this,void 0,void 0,(function(){var i,r,a,s;return ae(this,(function(l){switch(l.label){case 0:return i=this._getGoToPreference(n),n instanceof Y.a||!(this._configuration.openInPeek||"peek"===i&&1<o.references.length)?[3,1]:(this._openInPeek(n,o),[3,3]);case 1:return r=o.firstReference(),a=1<o.references.length&&"gotoAndPeek"===i,[4,this._openReference(n,e,r,this._configuration.openToSide,!a)];case 2:s=l.sent(),a&&s?this._openInPeek(s,o):o.dispose(),"goto"===i&&t.put(r),l.label=3;case 3:return[2]}}))}))},ce.prototype._openReference=function(e,t,n,o,i){return re(this,void 0,void 0,(function(){var r,a,s,l;return ae(this,(function(c){switch(c.label){case 0:return r=void 0,Object(g.G)(n)&&(r=n.targetSelectionRange),r=r||n.range,[4,t.openCodeEditor({resource:n.uri,options:{selection:p.a.collapseToStart(r),revealInCenterIfOutsideViewport:!0}},e,o)];case 1:return(a=c.sent())?(i&&(s=a.getModel(),l=a.deltaDecorations([],[{range:r,options:{className:"symbolHighlight"}}]),setTimeout((function(){a.getModel()===s&&a.deltaDecorations(l,[])}),350)),[2,a]):[2,void 0]}}))}))},ce.prototype._openInPeek=function(e,t){var n=y.a.get(e);n&&e.hasModel()?n.toggleWidget(e.getSelection(),Object(a.f)((function(e){return Promise.resolve(t)})),this._configuration.openInPeek):t.dispose()},ce);function ce(e,t){var n=se.call(this,t)||this;return n._configuration=e,n}var ue,de=(ie(he,ue=le),he.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var o;return ae(this,(function(i){switch(i.label){case 0:return o=b.c.bind,[4,Object(x.b)(e,t,n)];case 1:return[2,new(o.apply(b.c,[void 0,i.sent(),_.a("def.title","Definitions")]))]}}))}))},he.prototype._getNoResultFoundMessage=function(e){return e&&e.word?_.a("noResultWord","No definition found for '{0}'",e.word):_.a("generic.noResults","No definition found")},he.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeDefinitionCommand},he.prototype._getGoToPreference=function(e){return e.getOption(41).multipleDefinitions},he);function he(){return null!==ue&&ue.apply(this,arguments)||this}var pe,fe,ge,me=l.g&&!U.l?2118:70;function ve(){var e=pe.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:ve.id,label:_.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:C.a.and(f.a.hasDefinitionProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:me,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:_.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return E.a.registerCommandAlias("editor.action.goToDeclaration",ve.id),e}function ye(){var e=fe.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:ye.id,label:_.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:C.a.and(f.a.hasDefinitionProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:Object(s.a)(2089,me),weight:100}})||this;return E.a.registerCommandAlias("editor.action.openDeclarationToTheSide",ye.id),e}function be(){var e=ge.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:be.id,label:_.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:C.a.and(f.a.hasDefinitionProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return E.a.registerCommandAlias("editor.action.previewDeclaration",be.id),e}Object(u.f)((ie(ve,pe=de),($=ve).id="editor.action.revealDefinition",$)),Object(u.f)((ie(ye,fe=de),(X=ye).id="editor.action.revealDefinitionAside",X)),Object(u.f)((ie(be,ge=de),(J=be).id="editor.action.peekDefinition",J));var _e,we,Ce,Se=(ie(Oe,_e=le),Oe.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var o;return ae(this,(function(i){switch(i.label){case 0:return o=b.c.bind,[4,Object(x.a)(e,t,n)];case 1:return[2,new(o.apply(b.c,[void 0,i.sent(),_.a("decl.title","Declarations")]))]}}))}))},Oe.prototype._getNoResultFoundMessage=function(e){return e&&e.word?_.a("decl.noResultWord","No declaration found for '{0}'",e.word):_.a("decl.generic.noResults","No declaration found")},Oe.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeDeclarationCommand},Oe.prototype._getGoToPreference=function(e){return e.getOption(41).multipleDeclarations},Oe);function Oe(){return null!==_e&&_e.apply(this,arguments)||this}function xe(){return we.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:xe.id,label:_.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:C.a.and(f.a.hasDeclarationProvider,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:_.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}function Ee(){return Ce.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:_.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:C.a.and(f.a.hasDeclarationProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}Object(u.f)((ie(xe,we=Se),xe.prototype._getNoResultFoundMessage=function(e){return e&&e.word?_.a("decl.noResultWord","No declaration found for '{0}'",e.word):_.a("decl.generic.noResults","No declaration found")},(Q=xe).id="editor.action.revealDeclaration",Q)),Object(u.f)((ie(Ee,Ce=Se),Ee));var ke,Ne,De,Le=(ie(Pe,ke=le),Pe.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var o;return ae(this,(function(i){switch(i.label){case 0:return o=b.c.bind,[4,Object(x.e)(e,t,n)];case 1:return[2,new(o.apply(b.c,[void 0,i.sent(),_.a("typedef.title","Type Definitions")]))]}}))}))},Pe.prototype._getNoResultFoundMessage=function(e){return e&&e.word?_.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):_.a("goToTypeDefinition.generic.noResults","No type definition found")},Pe.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeTypeDefinitionCommand},Pe.prototype._getGoToPreference=function(e){return e.getOption(41).multipleTypeDefinitions},Pe);function Pe(){return null!==ke&&ke.apply(this,arguments)||this}function Ie(){return Ne.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Ie.ID,label:_.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:C.a.and(f.a.hasTypeDefinitionProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:_.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}function Te(){return De.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Te.ID,label:_.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:C.a.and(f.a.hasTypeDefinitionProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}Object(u.f)((ie(Ie,Ne=Le),(ee=Ie).ID="editor.action.goToTypeDefinition",ee)),Object(u.f)((ie(Te,De=Le),(te=Te).ID="editor.action.peekTypeDefinition",te));var Me,je,Re,Ae=(ie(Fe,Me=le),Fe.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var o;return ae(this,(function(i){switch(i.label){case 0:return o=b.c.bind,[4,Object(x.c)(e,t,n)];case 1:return[2,new(o.apply(b.c,[void 0,i.sent(),_.a("impl.title","Implementations")]))]}}))}))},Fe.prototype._getNoResultFoundMessage=function(e){return e&&e.word?_.a("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):_.a("goToImplementation.generic.noResults","No implementation found")},Fe.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeImplementationCommand},Fe.prototype._getGoToPreference=function(e){return e.getOption(41).multipleImplementations},Fe);function Fe(){return null!==Me&&Me.apply(this,arguments)||this}function Ve(){return je.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Ve.ID,label:_.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:C.a.and(f.a.hasImplementationProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:2118,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:_.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}function We(){return Re.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:We.ID,label:_.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:C.a.and(f.a.hasImplementationProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}Object(u.f)((ie(Ve,je=Ae),(ne=Ve).ID="editor.action.goToImplementation",ne)),Object(u.f)((ie(We,Re=Ae),(oe=We).ID="editor.action.peekImplementation",oe));var Be,He,ze,Ke=(ie(Ue,Be=le),Ue.prototype._getNoResultFoundMessage=function(e){return e?_.a("references.no","No references found for '{0}'",e.word):_.a("references.noGeneric","No references found")},Ue.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeReferenceCommand},Ue.prototype._getGoToPreference=function(e){return e.getOption(41).multipleReferences},Ue);function Ue(){return null!==Be&&Be.apply(this,arguments)||this}function qe(){return He.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:_.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:C.a.and(f.a.hasReferenceProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:_.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}function Ge(){return ze.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:_.a("references.action.label","Peek References"),alias:"Peek References",precondition:C.a.and(f.a.hasReferenceProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}Object(u.f)((ie(qe,He=Ke),qe.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var o;return ae(this,(function(i){switch(i.label){case 0:return o=b.c.bind,[4,Object(x.d)(e,t,!0,n)];case 1:return[2,new(o.apply(b.c,[void 0,i.sent(),_.a("ref.title","References")]))]}}))}))},qe)),Object(u.f)((ie(Ge,ze=Ke),Ge.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var o;return ae(this,(function(i){switch(i.label){case 0:return o=b.c.bind,[4,Object(x.d)(e,t,!1,n)];case 1:return[2,new(o.apply(b.c,[void 0,i.sent(),_.a("ref.title","References")]))]}}))}))},Ge));var Ye,Ze=(ie($e,Ye=le),$e.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){return ae(this,(function(e){return[2,new b.c(this._references,_.a("generic.title","Locations"))]}))}))},$e.prototype._getNoResultFoundMessage=function(e){return e&&_.a("generic.noResult","No results for '{0}'",e.word)||""},$e.prototype._getGoToPreference=function(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(41).multipleReferences},$e.prototype._getAlternativeCommand=function(){return""},$e);function $e(e,t,n){var o=Ye.call(this,e,{id:"editor.action.goToLocation",label:_.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:C.a.and(v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated())})||this;return o._references=t,o._gotoMultipleBehaviour=n,o}E.a.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:q.a},{name:"position",description:"The position at which to start",constraint:h.a.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,o,i,r){return re(void 0,void 0,void 0,(function(){var a,s;return ae(this,(function(l){switch(l.label){case 0:return Object(G.a)(q.a.isUri(t)),Object(G.a)(h.a.isIPosition(n)),Object(G.a)(Array.isArray(o)),Object(G.a)(void 0===i||"string"==typeof i),Object(G.a)(void 0===r||"boolean"==typeof r),[4,(a=e.get(d.a)).openCodeEditor({resource:t},a.getFocusedCodeEditor())];case 1:return s=l.sent(),Object(c.a)(s)?(s.setPosition(n),s.revealPositionInCenterIfOutsideViewport(n,0),[2,s.invokeWithinContext((function(e){var t=new Ze({muteMessage:!0,openInPeek:Boolean(r),openToSide:!1},o,i);e.get(N.a).invokeFunction(t.run.bind(t),s)}))]):[2]}}))}))}}),E.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:q.a},{name:"position",description:"The position at which to start",constraint:h.a.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,o,i){return re(void 0,void 0,void 0,(function(){return ae(this,(function(r){return e.get(E.b).executeCommand("editor.action.goToLocations",t,n,o,i,!0),[2]}))}))}}),E.a.registerCommand({id:"editor.action.findReferences",handler:function(e,t,n){Object(G.a)(q.a.isUri(t)),Object(G.a)(h.a.isIPosition(n));var o=e.get(d.a);return o.openCodeEditor({resource:t},o.getFocusedCodeEditor()).then((function(e){if(Object(c.a)(e)&&e.hasModel()){var t=y.a.get(e);if(t){var o=Object(a.f)((function(t){return Object(x.d)(e.getModel(),h.a.lift(n),!1,t).then((function(e){return new b.c(e,_.a("ref.title","References"))}))})),i=new p.a(n.lineNumber,n.column,n.lineNumber,n.column);return Promise.resolve(t.toggleWidget(i,o,!1))}}}))}}),E.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(452),i=o.b.performance&&"function"==typeof o.b.performance.now,r=(a.create=function(e){return void 0===e&&(e=!0),new a(e)},a.prototype.stop=function(){this._stopTime=this._now()},a.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},a.prototype._now=function(){return this._highResolution?o.b.performance.now():(new Date).getTime()},a);function a(e){this._highResolution=i&&e,this._startTime=this._now(),this._stopTime=-1}},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=!1,i=null;function r(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 o=!0,null}catch(e){return o=!0,null}return e.parent}function a(e,t){for(var n,o=e.document.getElementsByTagName("iframe"),i=0,r=o.length;i<r;i++)if((n=o[i]).contentWindow===t)return n;return null}var s=(l.getSameOriginWindowChain=function(){if(!i){i=[];for(var e,t=window;(e=r(t))?i.push({window:t,iframeElement:a(e,t)}):i.push({window:t,iframeElement:null}),t=e;);}return i.slice(0)},l.hasDifferentOriginAncestor=function(){return i||this.getSameOriginWindowChain(),o},l.getPositionOfChildWindowRelativeToAncestorWindow=function(e,t){if(!t||e===t)return{top:0,left:0};for(var n=0,o=0,i=0,r=this.getSameOriginWindowChain();i<r.length;i++){var a=r[i];if(a.window===t)break;if(!a.iframeElement)break;var s=a.iframeElement.getBoundingClientRect();n+=s.top,o+=s.left}return{top:n,left:o}},l);function l(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(571),i=n(442),r={JSONContribution:"base.contributions.json"};function a(){this._onDidChangeSchema=new i.a,this.schemasById={}}var s=new(a.prototype.registerSchema=function(e,t){var n;this.schemasById[0<(n=e).length&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n]=t,this._onDidChangeSchema.fire(e)},a.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},a);o.a.add(r.JSONContribution,s)},function(e,t,n){"use strict";function o(e){return e<0?0:255<e?255:0|e}function i(e){return e<0?0:4294967295<e?4294967295:0|e}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var o=n(459),i=n(444),r=n(1076),a=n(791),s=n(553),l=n(453),c="**",u="[/\\\\]",d="[^/\\\\]",h=/\//g;function p(e){switch(e){case 0:return"";case 1:return d+"*?";default:return"(?:"+u+"|"+d+"+"+u+"|"+u+d+"+)*?"}}function f(e,t){if(!e)return[];for(var n=[],o=!1,i=!1,r="",a=0,s=e;a<s.length;a++){var l=s[a];switch(l){case t:if(o||i)break;n.push(r),r="";continue;case"{":o=!0;break;case"}":o=!1;break;case"[":i=!0;break;case"]":i=!1}r+=l}return r&&n.push(r),n}var g=/^\*\*\/\*\.[\w\.-]+$/,m=/^\*\*\/([\w\.-]+)\/?$/,v=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,y=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,b=/^\*\*((\/[\w\.-]+)+)\/?$/,_=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,w=new s.a(1e4),C=function(){return!1},S=function(){return null};function O(e,t){if(!e)return S;var n,r,a,s,l,h,C,N=(n=(n="string"!=typeof e?e.pattern:e).trim())+"_"+!!t.trimForExclusions,L=w.get(N);if(L)return x(L,e);if(g.test(n)){var P=n.substr(4);L=function(e){return"string"==typeof e&&i.m(e,P)?n:null}}else L=(r=m.exec(E(n,t)))?(a=r[1],s=n,l="/"+a,h="\\"+a,I.basenames=C=[a],I.patterns=[s],I.allBasenames=C,I):(t.trimForExclusions?y:v).test(n)?function(e,t){var n=D(e.slice(1,-1).split(",").map((function(e){return O(e,t)})).filter((function(e){return e!==S})),e),i=n.length;if(!i)return S;if(1===i)return n[0];function r(t,o){for(var i=0,r=n.length;i<r;i++)if(n[i](t,o))return e;return null}var a=o.j(n,(function(e){return!!e.allBasenames}));a&&(r.allBasenames=a.allBasenames);var s=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return s.length&&(r.allPaths=s),r}(n,t):(r=b.exec(E(n,t)))?k(r[1].substr(1),n,!0):(r=_.exec(E(n,t)))?k(r[1],n,!1):function(t){try{var n=new RegExp("^"+function e(t){if(!t)return"";var n="",o=f(t,"/");if(o.every((function(e){return e===c})))n=".*";else{var r=!1;o.forEach((function(t,a){if(t!==c){for(var s=!1,l="",h=!1,g="",m=0,v=t;m<v.length;m++){var y=v[m];if("}"!==y&&s)l+=y;else if(!h||"]"===y&&g)switch(y){case"{":s=!0;continue;case"[":h=!0;continue;case"}":var b="(?:"+f(l,",").map((function(t){return e(t)})).join("|")+")";n+=b,s=!1,l="";break;case"]":n+="["+g+"]",h=!1,g="";break;case"?":n+=d;continue;case"*":n+=p(1);continue;default:n+=i.p(y)}else g+="-"===y?y:"^"!==y&&"!"!==y||g?"/"===y?"":i.p(y):"^"}a<o.length-1&&(o[a+1]!==c||a+2<o.length)&&(n+=u),r=!1}else r||(n+=p(2),r=!0)}))}return n}(t)+"$");return function(e,o){return n.lastIndex=0,"string"==typeof e&&n.test(e)?t:null}}catch(e){return S}}(n);function I(e,t){return"string"!=typeof e?null:t?t===a?s:null:e===a||i.m(e,l)||i.m(e,h)?s:null}return w.set(N,L),x(L,e)}function x(e,t){return"string"==typeof t?e:function(n,o){return r.a(n,t.base)?e(a.relative(t.base,n),o):null}}function E(e,t){return t.trimForExclusions&&i.m(e,"/**")?e.substr(0,e.length-2):e}function k(e,t,n){var o=a.sep!==a.posix.sep?e.replace(h,a.sep):e,r=a.sep+o,s=n?function(e,n){return"string"!=typeof e||e!==o&&!i.m(e,r)?null:t}:function(e,n){return"string"==typeof e&&e===o?t:null};return s.allPaths=[(n?"*/":"./")+e],s}function N(e,t,n){return!(!e||"string"!=typeof t)&&function(e,t){if(void 0===t&&(t={}),!e)return C;if("string"==typeof e||function(e){var t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}(e)){var n=O(e,t);if(n===S)return C;var i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){var n=D(Object.getOwnPropertyNames(e).map((function(n){return function(e,t,n){if(!1===t)return S;var o=O(e,n);if(o===S)return S;if("boolean"==typeof t)return o;if(t){var i=t.when;if("string"==typeof i){var r=function(t,n,r,a){if(!a||!o(t,n))return null;var s=a(i.replace("$(basename)",r));return Object(l.i)(s)?s.then((function(t){return t?e:null})):s?e:null};return r.requiresSiblings=!0,r}}return o}(n,e[n],t)})).filter((function(e){return e!==S}))),i=n.length;if(!i)return S;if(!n.some((function(e){return!!e.requiresSiblings}))){if(1===i)return n[0];var r=function(e,t){for(var o=0,i=n.length;o<i;o++){var r=n[o](e,t);if(r)return r}return null},s=o.j(n,(function(e){return!!e.allBasenames}));s&&(r.allBasenames=s.allBasenames);var c=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return c.length&&(r.allPaths=c),r}function u(e,t,o){for(var i=void 0,r=0,s=n.length;r<s;r++){var l=n[r];l.requiresSiblings&&o&&(t=t||a.basename(e),i=i||t.substr(0,t.length-a.extname(e).length));var c=l(e,t,i,o);if(c)return c}return null}var d=o.j(n,(function(e){return!!e.allBasenames}));d&&(u.allBasenames=d.allBasenames);var h=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return h.length&&(u.allPaths=h),u}(e,t)}(e)(t,void 0,n)}function D(e,t){var n=e.filter((function(e){return!!e.basenames}));if(n.length<2)return e;var o,i=n.reduce((function(e,t){var n=t.basenames;return n?e.concat(n):e}),[]);if(t){o=[];for(var r=0,a=i.length;r<a;r++)o.push(t)}else o=n.reduce((function(e,t){var n=t.patterns;return n?e.concat(n):e}),[]);function s(e,t){if("string"!=typeof e)return null;if(!t){var n=void 0;for(n=e.length;0<n;n--){var r=e.charCodeAt(n-1);if(47===r||92===r)break}t=e.substr(n)}var a=i.indexOf(t);return-1!==a?o[a]:null}s.basenames=i,s.patterns=o,s.allBasenames=i;var l=e.filter((function(e){return!e.basenames}));return l.push(s),l}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var o=n(444),i=n(791);function r(e){return e.replace(/[\\/]/g,i.posix.sep)}function a(e,t,n,r){if(void 0===r&&(r=i.sep),e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!Object(o.O)(e,t))return!1;if(t.length===e.length)return!0;var a=t.length;return t.charAt(t.length-1)===r&&a--,e.charAt(a)===r}return t.charAt(t.length-1)!==r&&(t+=r),0===e.indexOf(t)}function s(e){return 65<=e&&e<=90||97<=e&&e<=122}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return b}));var o,i=n(478),r=n(443),a=n(453),s=n(442),l=n(439),c=n(452),u=n(444),d=n(1078),h=n(466),p=n(820),f=function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},g={forceCopyWithSyntaxHighlighting:!(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)})},m=(v.prototype.set=function(e,t){this._lastState={lastCopiedValue:e,data:t}},v.prototype.get=function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:this._lastState=null},v.INSTANCE=new v,v);function v(){this._lastState=null}var y,b=(f(_,y=l.a),_.prototype._installSelectionChangeListener=function(){var e=this,t=0;return r.j(document,"selectionchange",(function(n){if(e._hasFocus&&!e._isDoingComposition&&i.d&&c.h){var o=Date.now(),r=o-t;if(t=o,!(r<5)){var a=o-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(a<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var s=e._textArea.getValue();if(e._textAreaState.value===s){var l=e._textArea.getSelectionStart(),u=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==l||e._textAreaState.selectionEnd!==u){var d=e._textAreaState.deduceEditorPosition(l),p=e._host.deduceModelPosition(d[0],d[1],d[2]),f=e._textAreaState.deduceEditorPosition(u),g=e._host.deduceModelPosition(f[0],f[1],f[2]),m=new h.a(p.lineNumber,p.column,g.lineNumber,g.column);e._onSelectionChangeRequest.fire(m)}}}}}}))},_.prototype.dispose=function(){y.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},_.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},_.prototype.isFocused=function(){return this._hasFocus},_.prototype.refreshFocusState=function(){var e=r.E(this.textArea.domNode);e?this._setHasFocus(e.activeElement===this.textArea.domNode):r.M(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},_.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&&(i.e?this._setAndWriteTextAreaState("focusgain",d.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},_.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},_.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},_.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getDataToCopy(w.canUseTextData(e)&&p.a.clipboard.richText),n={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};m.INSTANCE.set(i.h?t.text.replace(/\r\n/g,"\n"):t.text,n),w.canUseTextData(e)?w.setTextData(e,t.text,t.html,n):this._setAndWriteTextAreaState("copy or cut",d.b.selectedText(t.text))},_.prototype._firePaste=function(e,t){t=t||m.INSTANCE.get(e),this._onPaste.fire({text:e,metadata:t})},_);function _(e,t){var n=y.call(this)||this;function o(e){var t=n._textAreaState,o=d.b.readFromTextArea(n._textArea);return[o,d.b.deduceInput(t,o,e)]}function l(e){var t=n._textAreaState,o=d.b.selectedText(e);return[o,{text:o.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]}function h(e){return!(!i.f||"ja"!==e)||!(!i.i||0!==e.indexOf("zh-Han"))}return n.textArea=t,n._onFocus=n._register(new s.a),n.onFocus=n._onFocus.event,n._onBlur=n._register(new s.a),n.onBlur=n._onBlur.event,n._onKeyDown=n._register(new s.a),n.onKeyDown=n._onKeyDown.event,n._onKeyUp=n._register(new s.a),n.onKeyUp=n._onKeyUp.event,n._onCut=n._register(new s.a),n.onCut=n._onCut.event,n._onPaste=n._register(new s.a),n.onPaste=n._onPaste.event,n._onType=n._register(new s.a),n.onType=n._onType.event,n._onCompositionStart=n._register(new s.a),n.onCompositionStart=n._onCompositionStart.event,n._onCompositionUpdate=n._register(new s.a),n.onCompositionUpdate=n._onCompositionUpdate.event,n._onCompositionEnd=n._register(new s.a),n.onCompositionEnd=n._onCompositionEnd.event,n._onSelectionChangeRequest=n._register(new s.a),n.onSelectionChangeRequest=n._onSelectionChangeRequest.event,n._host=e,n._textArea=n._register(new O(t)),n._asyncTriggerCut=n._register(new a.d((function(){return n._onCut.fire()}),0)),n._textAreaState=d.b.EMPTY,n._selectionChangeListener=null,n.writeScreenReaderContent("ctor"),n._hasFocus=!1,n._isDoingComposition=!1,n._nextCommand=0,n._register(r.o(t.domNode,"keydown",(function(e){!n._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),n._onKeyDown.fire(e)}))),n._register(r.o(t.domNode,"keyup",(function(e){n._onKeyUp.fire(e)}))),n._register(r.j(t.domNode,"compositionstart",(function(e){n._isDoingComposition||(n._isDoingComposition=!0,i.f||n._setAndWriteTextAreaState("compositionstart",d.b.EMPTY),n._onCompositionStart.fire())}))),n._register(r.j(t.domNode,"compositionupdate",(function(e){if(h(e.locale)){var t=o(!1),i=t[0],r=t[1];return n._textAreaState=i,n._onType.fire(r),void n._onCompositionUpdate.fire(e)}var a=l(e.data),s=a[0],c=a[1];n._textAreaState=s,n._onType.fire(c),n._onCompositionUpdate.fire(e)}))),n._register(r.j(t.domNode,"compositionend",(function(e){if(n._isDoingComposition){if(h(e.locale)){var t=o(!1),r=t[0],a=t[1];n._textAreaState=r,n._onType.fire(a)}else{var s=l(e.data);r=s[0],a=s[1],n._textAreaState=r,n._onType.fire(a)}(i.f||i.d)&&(n._textAreaState=d.b.readFromTextArea(n._textArea)),n._isDoingComposition&&(n._isDoingComposition=!1,n._onCompositionEnd.fire())}}))),n._register(r.j(t.domNode,"input",(function(){if(n._textArea.setIgnoreSelectionChangeTime("received input event"),!n._isDoingComposition){var e=o(c.e),t=e[0],i=e[1];0===i.replaceCharCnt&&1===i.text.length&&u.z(i.text.charCodeAt(0))||(n._textAreaState=t,0===n._nextCommand?""!==i.text&&n._onType.fire(i):(""===i.text&&0===i.replaceCharCnt||n._firePaste(i.text,null),n._nextCommand=0))}}))),n._register(r.j(t.domNode,"cut",(function(e){n._textArea.setIgnoreSelectionChangeTime("received cut event"),n._ensureClipboardGetsEditorSelection(e),n._asyncTriggerCut.schedule()}))),n._register(r.j(t.domNode,"copy",(function(e){n._ensureClipboardGetsEditorSelection(e)}))),n._register(r.j(t.domNode,"paste",(function(e){if(n._textArea.setIgnoreSelectionChangeTime("received paste event"),w.canUseTextData(e)){var t=w.getTextData(e),o=t[0],i=t[1];""!==o&&n._firePaste(o,i)}else n._textArea.getSelectionStart()!==n._textArea.getSelectionEnd()&&n._setAndWriteTextAreaState("paste",d.b.EMPTY),n._nextCommand=1}))),n._register(r.j(t.domNode,"focus",(function(){n._setHasFocus(!0)}))),n._register(r.j(t.domNode,"blur",(function(){n._setHasFocus(!1)}))),n}var w=(C.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},C.getTextData=function(e){if(e.clipboardData){e.preventDefault();var t=e.clipboardData.getData("text/plain"),n=null,o=e.clipboardData.getData("vscode-editor-data");if("string"==typeof o)try{1!==(n=JSON.parse(o)).version&&(n=null)}catch(e){}return[t,n]}if(window.clipboardData)return e.preventDefault(),[t=window.clipboardData.getData("Text"),null];throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},C.setTextData=function(e,t,n,o){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(o)),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},C);function C(){}var S,O=(f(x,S=l.a),x.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},x.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},x.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},x.prototype.getValue=function(){return this._actual.domNode.value},x.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},x.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},x.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},x.prototype.setSelectionRange=function(e,t,n){var o=this._actual.domNode,a=r.E(o),s=(a?a.activeElement:document.activeElement)===o,l=o.selectionStart,c=o.selectionEnd;if(s&&l===t&&c===n)i.h&&window.parent!==window&&o.focus();else{if(s)return this.setIgnoreSelectionChangeTime("setSelectionRange"),o.setSelectionRange(t,n),void(i.h&&window.parent!==window&&o.focus());try{var u=r.V(o);this.setIgnoreSelectionChangeTime("setSelectionRange"),o.focus(),o.setSelectionRange(t,n),r.T(o,u)}catch(e){}}},x);function x(e){var t=S.call(this)||this;return t._actual=e,t._ignoreSelectionChangeTime=0,t}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var o=n(444),i=n(450),r=n(440),a=(s.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},s.readFromTextArea=function(e){return new s(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)},s.prototype.collapseSelection=function(){return new s(this.value,this.value.length,this.value.length,null,null)},s.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},s.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd)return t=this.value.substring(this.selectionEnd,e),this._finishDeduceEditorPosition(this.selectionEndPosition,t,1);var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var o=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,o,-1)},s.prototype._finishDeduceEditorPosition=function(e,t,n){for(var o=0,i=-1;-1!==(i=t.indexOf("\n",i+1));)o++;return[e,n*t.length,o]},s.selectedText=function(e){return new s(e,0,e.length,null,null)},s.deduceInput=function(e,t,n){if(!e)return{text:"",replaceCharCnt:0};var i=e.value,r=e.selectionStart,a=e.selectionEnd,s=t.value,l=t.selectionStart,c=t.selectionEnd,u=i.substring(a),d=s.substring(c),h=o.d(u,d);s=s.substring(0,s.length-h);var p=(i=i.substring(0,i.length-h)).substring(0,r),f=s.substring(0,l),g=o.c(p,f);if(s=s.substring(g),i=i.substring(g),l-=g,r-=g,c-=g,a-=g,n&&l===c&&0<i.length){var m=null;if(l===s.length?o.N(s,i)&&(m=s.substring(i.length)):o.m(s,i)&&(m=s.substring(0,s.length-i.length)),null!==m&&0<m.length&&(/\uFE0F/.test(m)||o.g(m)))return{text:m,replaceCharCnt:0}}return l===c?i===s&&0===r&&a===i.length&&l===s.length&&-1===s.indexOf("\n")&&o.h(s)?{text:"",replaceCharCnt:0}:{text:s,replaceCharCnt:p.length-g}:{text:s,replaceCharCnt:a-r}},s.EMPTY=new s("",0,0,null,null),s);function s(e,t,n,o,i){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=o,this.selectionEndPosition=i}var l=(c._getPageOfLine=function(e,t){return Math.floor((e-1)/t)},c._getRangeForPage=function(e,t){var n=e*t,o=1+n,i=n+t;return new r.a(o,1,i+1,1)},c.fromEditorSelection=function(e,t,n,o,s){var l,u=c._getPageOfLine(n.startLineNumber,o),d=c._getRangeForPage(u,o),h=c._getPageOfLine(n.endLineNumber,o),p=c._getRangeForPage(h,o),f=d.intersectRanges(new r.a(1,1,n.startLineNumber,n.startColumn)),g=t.getValueInRange(f,1),m=t.getLineCount(),v=t.getLineMaxColumn(m),y=p.intersectRanges(new r.a(n.endLineNumber,n.endColumn,m,v)),b=t.getValueInRange(y,1);if(u===h||u+1===h)l=t.getValueInRange(n,1);else{var _=d.intersectRanges(n),w=p.intersectRanges(n);l=t.getValueInRange(_,1)+String.fromCharCode(8230)+t.getValueInRange(w,1)}return s&&(500<g.length&&(g=g.substring(g.length-500,g.length)),500<b.length&&(b=b.substring(0,500)),1e3<l.length&&(l=l.substring(0,500)+String.fromCharCode(8230)+l.substring(l.length-500,l.length))),new a(g+l+b,g.length,g.length+l.length,new i.a(n.startLineNumber,n.startColumn),new i.a(n.endLineNumber,n.endColumn))},c);function c(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1),this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d}));var o=n(484),i=n(446),r=n(479),a=n(449),s=n(440),l=n(454),c=n(598);function u(e,t){var n=[],o=l.c.ordered(e).reverse().map((function(o){return Promise.resolve(o.provideDocumentColors(e,t)).then((function(e){if(Array.isArray(e))for(var t=0,i=e;t<i.length;t++){var r=i[t];n.push({colorInfo:r,provider:o})}}))}));return Promise.all(o).then((function(){return n}))}function d(e,t,n,o){return Promise.resolve(n.provideColorPresentations(e,t,o))}Object(a.j)("_executeDocumentColorProvider",(function(e,t){var n=t.resource;if(!(n instanceof r.a))throw Object(i.b)();var a=e.get(c.a).getModel(n);if(!a)throw Object(i.b)();var s=[],u=l.c.ordered(a).reverse().map((function(e){return Promise.resolve(e.provideDocumentColors(a,o.a.None)).then((function(e){if(Array.isArray(e))for(var t=0,n=e;t<n.length;t++){var o=n[t];s.push({range:o.range,color:[o.color.red,o.color.green,o.color.blue,o.color.alpha]})}}))}));return Promise.all(u).then((function(){return s}))})),Object(a.j)("_executeColorPresentationProvider",(function(e,t){var n=t.resource,a=t.color,u=t.range;if(!(n instanceof r.a&&Array.isArray(a)&&4===a.length&&s.a.isIRange(u)))throw Object(i.b)();var d=a[0],h=a[1],p=a[2],f=a[3],g=e.get(c.a).getModel(n);if(!g)throw Object(i.b)();var m={range:u,color:{red:d,green:h,blue:p,alpha:f}},v=[],y=l.c.ordered(g).reverse().map((function(e){return Promise.resolve(e.provideColorPresentations(g,m,o.a.None)).then((function(e){Array.isArray(e)&&v.push.apply(v,e)}))}));return Promise.all(y).then((function(){return v}))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return O})),n(1327);var o,i,r,a=n(445),s=n(444),l=n(703),c=n(772),u=n(443),d=n(701),h=n(453),p=n(439),f=n(688),g=n(452),m=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},y=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,b=/(&)?(&)([^\s&])/g;(r=i=i||{})[r.Right=0]="Right",r[r.Left=1]="Left";var _,w=(m(C,_=l.a),C);function C(e,t,n){var o=_.call(this,n||"submenu",e,"",!0)||this;return o.entries=t,o}var S,O=(m(x,S=c.a),x.prototype.style=function(e){var t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:"",o=e.backgroundColor?""+e.backgroundColor:"",i=e.borderColor?"1px solid "+e.borderColor:"",r=e.shadowColor?"0 2px 4px "+e.shadowColor:"";t.style.border=i,this.domNode.style.color=n,this.domNode.style.backgroundColor=o,t.style.boxShadow=r,this.viewItems&&this.viewItems.forEach((function(t){(t instanceof k||t instanceof T)&&t.style(e)}))},x.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(x.prototype,"onScroll",{get:function(){return this.scrollableElement.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),x.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},x.prototype.setFocusedItem=function(e){for(var t=0;t<this.actionsList.children.length;t++)if(e===this.actionsList.children[t]){this.focusedItem=t;break}},x.prototype.updateFocus=function(e){S.prototype.updateFocus.call(this,e,!0),void 0!==this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})},x.prototype.doGetActionViewItem=function(e,t,n){if(e instanceof c.d)return new T(t.context,e,{icon:!0});if(e instanceof w){var o=new L(e,e.entries,n,t);if(t.enableMnemonics&&(r=o.getMnemonic())&&o.isEnabled()){var i=[];this.mnemonics.has(r)&&(i=this.mnemonics.get(r)),i.push(o),this.mnemonics.set(r,i)}return o}var r,a={enableMnemonics:t.enableMnemonics};if(t.getKeyBinding){var s=t.getKeyBinding(e);if(s){var l=s.getLabel();l&&(a.keybinding=l)}}return o=new k(t.context,e,a),t.enableMnemonics&&(r=o.getMnemonic())&&o.isEnabled()&&(i=[],this.mnemonics.has(r)&&(i=this.mnemonics.get(r)),i.push(o),this.mnemonics.set(r,i)),o},x);function x(e,t,n){void 0===n&&(n={});var o=this;Object(u.f)(e,"monaco-menu-container"),e.setAttribute("role","presentation");var i=document.createElement("div");Object(u.f)(i,"monaco-menu"),i.setAttribute("role","presentation"),(o=S.call(this,i,{orientation:2,actionViewItemProvider:function(e){return o.doGetActionViewItem(e,n,r)},context:n.context,actionRunner:n.actionRunner,ariaLabel:n.ariaLabel,triggerKeys:{keys:v([3],g.e?[10]:[]),keyDown:!0}})||this).menuElement=i,o.actionsList.setAttribute("role","menu"),o.actionsList.tabIndex=0,o.menuDisposables=o._register(new p.b),Object(u.j)(i,u.d.KEY_DOWN,(function(e){new d.a(e).equals(2)&&e.preventDefault()})),n.enableMnemonics&&o.menuDisposables.add(Object(u.j)(i,u.d.KEY_DOWN,(function(e){var t=e.key.toLocaleLowerCase();if(o.mnemonics.has(t)){u.c.stop(e,!0);var n=o.mnemonics.get(t);if(1===n.length&&(n[0]instanceof L&&n[0].container&&o.focusItemByElement(n[0].container),n[0].onClick(e)),1<n.length){var i=n.shift();i&&i.container&&(o.focusItemByElement(i.container),n.push(i)),o.mnemonics.set(t,n)}}}))),g.d&&o._register(Object(u.j)(i,u.d.KEY_DOWN,(function(e){var t=new d.a(e);t.equals(14)||t.equals(11)?(o.focusedItem=o.viewItems.length-1,o.focusNext(),u.c.stop(e,!0)):(t.equals(13)||t.equals(12))&&(o.focusedItem=0,o.focusPrevious(),u.c.stop(e,!0))}))),o._register(Object(u.j)(o.domNode,u.d.MOUSE_OUT,(function(e){var t=e.relatedTarget;Object(u.K)(t,o.domNode)||(o.focusedItem=void 0,o.updateFocus(),e.stopPropagation())}))),o._register(Object(u.j)(o.actionsList,u.d.MOUSE_OVER,(function(e){var t=e.target;if(t&&Object(u.K)(t,o.actionsList)&&t!==o.actionsList){for(;t.parentElement!==o.actionsList&&null!==t.parentElement;)t=t.parentElement;if(Object(u.I)(t,"action-item")){var n=o.focusedItem;o.setFocusedItem(t),n!==o.focusedItem&&o.updateFocus()}}})));var r={parent:o};o.mnemonics=new Map,o.scrollableElement=o._register(new f.a(i,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var a=o.scrollableElement.getDomNode();return a.style.position="",o._register(Object(u.j)(a,u.d.MOUSE_UP,(function(e){e.preventDefault()}))),i.style.maxHeight=Math.max(10,window.innerHeight-e.getBoundingClientRect().top-30)+"px",o.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(o.scrollableElement.getDomNode()),o.scrollableElement.scanDomNode(),o.viewItems.filter((function(e){return!(e instanceof T)})).forEach((function(e,t,n){e.updatePositionInSet(t+1,n.length)})),o}var E,k=(m(N,E=c.c),N.prototype.render=function(e){E.prototype.render.call(this,e),this.element&&(this.container=e,this.item=Object(u.q)(this.element,Object(u.a)("a.action-menu-item")),this._action.id===c.d.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(u.q)(this.item,Object(u.a)("span.menu-item-check.codicon.codicon-check")),this.check.setAttribute("role","none"),this.label=Object(u.q)(this.item,Object(u.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(u.q)(this.item,Object(u.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())},N.prototype.blur=function(){E.prototype.blur.call(this),this.applyStyle()},N.prototype.focus=function(){E.prototype.focus.call(this),this.item&&this.item.focus(),this.applyStyle()},N.prototype.updatePositionInSet=function(e,t){this.item&&(this.item.setAttribute("aria-posinset",""+e),this.item.setAttribute("aria-setsize",""+t))},N.prototype.updateLabel=function(){if(this.options.label){var e=this.getAction().label;if(e){var t=function(e){var t=y,n=t.exec(e);if(!n)return e;var o=!n[1];return e.replace(t,o?"$2$3":"").trim()}(e);this.options.enableMnemonics||(e=t),this.label&&this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));var n=y.exec(e);if(n){e=s.o(e),b.lastIndex=0;for(var o=b.exec(e);o&&o[1];)o=b.exec(e);o&&(e=e.substr(0,o.index)+'<u aria-hidden="true">'+o[3]+"</u>"+e.substr(o.index+o[0].length)),e=e.replace(/&&/g,"&"),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())}},N.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=a.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.item&&(this.item.title=e)},N.prototype.updateClass=function(){this.cssClass&&this.item&&Object(u.Q)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(u.f)(this.label,"icon"),this.cssClass&&Object(u.g)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(u.P)(this.label,"icon")},N.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(u.P)(this.element,"disabled"),this.item&&(Object(u.P)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(u.f)(this.element,"disabled"),this.item&&(Object(u.f)(this.item,"disabled"),Object(u.S)(this.item)))},N.prototype.updateChecked=function(){this.item&&(this.getAction().checked?(Object(u.f)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(u.P)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))},N.prototype.getMnemonic=function(){return this.mnemonic},N.prototype.applyStyle=function(){if(this.menuStyle){var e=this.element&&Object(u.I)(this.element,"focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,o=e&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=n?n.toString():""),this.check&&(this.check.style.color=t?t.toString():""),this.container&&(this.container.style.border=o)}},N.prototype.style=function(e){this.menuStyle=e,this.applyStyle()},N);function N(e,t,n){void 0===n&&(n={});var o=this;if(n.isMenu=!0,(o=E.call(this,t,t,n)||this).options=n,o.options.icon=void 0!==n.icon&&n.icon,o.options.label=void 0===n.label||n.label,o.cssClass="",o.options.label&&n.enableMnemonics){var i=o.getAction().label;if(i){var r=y.exec(i);r&&(o.mnemonic=(r[1]?r[1]:r[3]).toLocaleLowerCase())}}return o.runOnceToEnableMouseUp=new h.d((function(){o.element&&o._register(Object(u.j)(o.element,u.d.MOUSE_UP,(function(e){e.defaultPrevented||(u.c.stop(e,!0),o.onClick(e))})))}),100),o._register(o.runOnceToEnableMouseUp),o}var D,L=(m(P,D=k),P.prototype.render=function(e){var t=this;D.prototype.render.call(this,e),this.element&&(this.item&&(Object(u.f)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(u.q)(this.item,Object(u.a)("span.submenu-indicator.codicon.codicon-chevron-right")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(u.j)(this.element,u.d.KEY_UP,(function(e){var n=new d.a(e);(n.equals(17)||n.equals(3))&&(u.c.stop(e,!0),t.createSubmenu(!0))}))),this._register(Object(u.j)(this.element,u.d.KEY_DOWN,(function(e){var n=new d.a(e);document.activeElement===t.item&&(n.equals(17)||n.equals(3))&&u.c.stop(e,!0)}))),this._register(Object(u.j)(this.element,u.d.MOUSE_OVER,(function(e){t.mouseOver||(t.mouseOver=!0,t.showScheduler.schedule())}))),this._register(Object(u.j)(this.element,u.d.MOUSE_LEAVE,(function(e){t.mouseOver=!1}))),this._register(Object(u.j)(this.element,u.d.FOCUS_OUT,(function(e){t.element&&!Object(u.K)(document.activeElement,t.element)&&t.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((function(){t.parentData.parent.focus(!1),t.cleanupExistingSubmenu(!1)}))))},P.prototype.onClick=function(e){u.c.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)},P.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))},P.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=Object(u.q)(this.element,Object(u.a)("div.monaco-submenu")),Object(u.g)(this.submenuContainer,"menubar-menu-items-holder","context-view");var n=getComputedStyle(this.parentData.parent.domNode),o=parseFloat(n.paddingTop||"0")||0;this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-o+"px",this.parentData.submenu=new O(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var r=this.element.getBoundingClientRect(),a=this.submenuContainer.getBoundingClientRect();this.expandDirection===i.Right?window.innerWidth<=r.right+a.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+r.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-o+"px"):this.expandDirection===i.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-o+"px"),this.submenuDisposables.add(Object(u.j)(this.submenuContainer,u.d.KEY_UP,(function(e){new d.a(e).equals(15)&&(u.c.stop(e,!0),t.parentData.parent.focus(),t.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add(Object(u.j)(this.submenuContainer,u.d.KEY_DOWN,(function(e){new d.a(e).equals(15)&&u.c.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}},P.prototype.updateAriaExpanded=function(e){var t;this.item&&null!==(t=this.item)&&void 0!==t&&t.setAttribute("aria-expanded",e)},P.prototype.applyStyle=function(){if(D.prototype.applyStyle.call(this),this.menuStyle){var e=this.element&&Object(u.I)(this.element,"focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=e?""+e:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}},P.prototype.dispose=function(){D.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},P);function P(e,t,n,o){var r=D.call(this,e,e,o)||this;return r.submenuActions=t,r.parentData=n,r.submenuOptions=o,r.mysubmenu=null,r.submenuDisposables=r._register(new p.b),r.mouseOver=!1,r.expandDirection=o&&void 0!==o.expandDirection?o.expandDirection:i.Right,r.showScheduler=new h.d((function(){r.mouseOver&&(r.cleanupExistingSubmenu(!1),r.createSubmenu(!1))}),250),r.hideScheduler=new h.d((function(){r.element&&!Object(u.K)(document.activeElement,r.element)&&r.parentData.submenu===r.mysubmenu&&(r.parentData.parent.focus(!1),r.cleanupExistingSubmenu(!0))}),750),r}var I,T=(m(M,I=c.b),M.prototype.style=function(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:"")},M);function M(){return null!==I&&I.apply(this,arguments)||this}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o,i=n(442),r=n(439),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=(l.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},l.prototype.withScrollDimensions=function(e){return new l(void 0!==e.width?e.width:this.width,void 0!==e.scrollWidth?e.scrollWidth:this.scrollWidth,this.scrollLeft,void 0!==e.height?e.height:this.height,void 0!==e.scrollHeight?e.scrollHeight:this.scrollHeight,this.scrollTop)},l.prototype.withScrollPosition=function(e){return new l(this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.scrollTop)},l.prototype.createScrollEvent=function(e){var t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,i=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,a=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:o,heightChanged:i,scrollHeightChanged:r,scrollTopChanged:a}},l);function l(e,t,n,o,i,r){(e|=0)<0&&(e=0),(t|=0)<(n|=0)+e&&(n=t-e),n<0&&(n=0),(o|=0)<0&&(o=0),(i|=0)<(r|=0)+o&&(r=i-o),r<0&&(r=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=o,this.scrollHeight=i,this.scrollTop=r}var c,u=(a(d,c=r.a),d.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),c.prototype.dispose.call(this)},d.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},d.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},d.prototype.getScrollDimensions=function(){return this._state},d.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},d.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},d.prototype.getCurrentScrollPosition=function(){return this._state},d.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},d.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===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 o=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=o}else n=this._state.withScrollPosition(e),this._smoothScrolling=f.start(this._state,n,this._smoothScrollDuration);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())}))},d.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())}))}},d.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},d);function d(e,t){var n=c.call(this)||this;return n._onScroll=n._register(new i.a),n.onScroll=n._onScroll.event,n._smoothScrollDuration=e,n._scheduleAtNextAnimationFrame=t,n._state=new s(0,0,0,0,0,0),n._smoothScrolling=null,n}var h=function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n};function p(e,t){var n=t-e;return function(t){return e+n*(1-function(e){return Math.pow(e,3)}(1-t))}}var f=(g.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)},g.prototype._initAnimation=function(e,t,n){var o,i,r;if(2.5*n<Math.abs(e-t)){var a,s=void 0;return a=e<t?(s=e+.75*n,t-.75*n):(s=e-.75*n,t+.75*n),o=p(e,s),i=p(a,t),r=.33,function(e){return e<r?o(e/r):i((e-r)/(1-r))}}return p(e,t)},g.prototype.dispose=function(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},g.prototype.acceptScrollDimensions=function(e){this.to=e.withScrollPosition(this.to),this._initAnimations()},g.prototype.tick=function(){return this._tick(Date.now())},g.prototype._tick=function(e){var t=(e-this._startTime)/this.duration;if(t<1){var n=this.scrollLeft(t),o=this.scrollTop(t);return new h(n,o,!1)}return new h(this.to.scrollLeft,this.to.scrollTop,!0)},g.prototype.combine=function(e,t,n){return g.start(e,t,n)},g.start=function(e,t,n){return n+=10,new g(e,t,Date.now()-10,n)},g);function g(e,t,n,o){this.from=e,this.to=t,this.duration=o,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(444),i=n(794),r=n(555),a=n(953),s=n(440),l=(c.deleteRight=function(e,t,n,o){for(var r=[],l=3!==e,c=0,u=o.length;c<u;c++){var d=o[c],h=d;if(h.isEmpty()){var p=d.getPosition(),f=a.a.right(t,n,p.lineNumber,p.column);h=new s.a(f.lineNumber,f.column,p.lineNumber,p.column)}h.isEmpty()?r[c]=null:(h.startLineNumber!==h.endLineNumber&&(l=!0),r[c]=new i.a(h,""))}return[l,r]},c._isAutoClosingPairDelete=function(e,t,n){if("never"===e.autoClosingBrackets&&"never"===e.autoClosingQuotes)return!1;for(var o=0,i=n.length;o<i;o++){var a=n[o],s=a.getPosition();if(!a.isEmpty())return!1;var l=t.getLineContent(s.lineNumber),c=l[s.column-2],u=e.autoClosingPairsOpen2.get(c);if(!u)return!1;if(Object(r.g)(c)){if("never"===e.autoClosingQuotes)return!1}else if("never"===e.autoClosingBrackets)return!1;for(var d=l[s.column-1],h=!1,p=0,f=u;p<f.length;p++){var g=f[p];g.open===c&&g.close===d&&(h=!0)}if(!h)return!1}return!0},c._runAutoClosingPairDelete=function(e,t,n){for(var o=[],r=0,a=n.length;r<a;r++){var l=n[r].getPosition(),c=new s.a(l.lineNumber,l.column-1,l.lineNumber,l.column+1);o[r]=new i.a(c,"")}return[!0,o]},c.deleteLeft=function(e,t,n,l){if(this._isAutoClosingPairDelete(t,n,l))return this._runAutoClosingPairDelete(t,n,l);for(var c=[],u=2!==e,d=0,h=l.length;d<h;d++){var p=l[d],f=p;if(f.isEmpty()){var g=p.getPosition();if(t.useTabStops&&1<g.column){var m=n.getLineContent(g.lineNumber),v=o.q(m),y=-1===v?m.length+1:v+1;if(g.column<=y){var b=r.a.visibleColumnFromColumn2(t,n,g),_=r.a.prevIndentTabStop(b,t.indentSize),w=r.a.columnFromVisibleColumn2(t,n,g.lineNumber,_);f=new s.a(g.lineNumber,w,g.lineNumber,g.column)}else f=new s.a(g.lineNumber,g.column-1,g.lineNumber,g.column)}else{var C=a.a.left(t,n,g.lineNumber,g.column);f=new s.a(C.lineNumber,C.column,g.lineNumber,g.column)}}f.isEmpty()?c[d]=null:(f.startLineNumber!==f.endLineNumber&&(u=!0),c[d]=new i.a(f,""))}return[u,c]},c.cut=function(e,t,n){for(var o=[],a=0,l=n.length;a<l;a++){var c=n[a];if(c.isEmpty())if(e.emptySelectionClipboard){var u,d=c.getPosition(),h=void 0,p=void 0,f=void 0;u=d.lineNumber<t.getLineCount()?(h=d.lineNumber,p=1,f=d.lineNumber+1,1):(p=1<d.lineNumber?(h=d.lineNumber-1,t.getLineMaxColumn(d.lineNumber-1)):(h=d.lineNumber,1),f=d.lineNumber,t.getLineMaxColumn(d.lineNumber));var g=new s.a(h,p,f,u);g.isEmpty()?o[a]=null:o[a]=new i.a(g,"")}else o[a]=null;else o[a]=new i.a(c,"")}return new r.e(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},c);function c(){}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return o}));var o,i,r=n(465),a=n(555),s=n(953),l=n(954),c=n(450),u=n(440),d=(h.addCursorDown=function(e,t,n){for(var o=[],i=0,r=0,l=t.length;r<l;r++){var c=t[r];o[i++]=new a.d(c.modelState,c.viewState),o[i++]=n?a.d.fromModelState(s.a.translateDown(e.config,e.model,c.modelState)):a.d.fromViewState(s.a.translateDown(e.config,e.viewModel,c.viewState))}return o},h.addCursorUp=function(e,t,n){for(var o=[],i=0,r=0,l=t.length;r<l;r++){var c=t[r];o[i++]=new a.d(c.modelState,c.viewState),o[i++]=n?a.d.fromModelState(s.a.translateUp(e.config,e.model,c.modelState)):a.d.fromViewState(s.a.translateUp(e.config,e.viewModel,c.viewState))}return o},h.moveToBeginningOfLine=function(e,t,n){for(var o=[],i=0,r=t.length;i<r;i++){var a=t[i];o[i]=this._moveToLineStart(e,a,n)}return o},h._moveToLineStart=function(e,t,n){var o=t.viewState.position.column,i=o===t.modelState.position.column,r=t.viewState.position.lineNumber,a=e.viewModel.getLineFirstNonWhitespaceColumn(r);return i||o===a?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n)},h._moveToLineStartByView=function(e,t,n){return a.d.fromViewState(s.a.moveToBeginningOfLine(e.config,e.viewModel,t.viewState,n))},h._moveToLineStartByModel=function(e,t,n){return a.d.fromModelState(s.a.moveToBeginningOfLine(e.config,e.model,t.modelState,n))},h.moveToEndOfLine=function(e,t,n){for(var o=[],i=0,r=t.length;i<r;i++){var a=t[i];o[i]=this._moveToLineEnd(e,a,n)}return o},h._moveToLineEnd=function(e,t,n){var o=t.viewState.position,i=e.viewModel.getLineMaxColumn(o.lineNumber),r=o.column===i,a=t.modelState.position,s=e.model.getLineMaxColumn(a.lineNumber),l=i-o.column==s-a.column;return r||l?this._moveToLineEndByModel(e,t,n):this._moveToLineEndByView(e,t,n)},h._moveToLineEndByView=function(e,t,n){return a.d.fromViewState(s.a.moveToEndOfLine(e.config,e.viewModel,t.viewState,n))},h._moveToLineEndByModel=function(e,t,n){return a.d.fromModelState(s.a.moveToEndOfLine(e.config,e.model,t.modelState,n))},h.expandLineSelection=function(e,t){for(var n=[],o=0,i=t.length;o<i;o++){var r,s=t[o],l=s.modelState.selection.startLineNumber,d=e.model.getLineCount(),h=s.modelState.selection.endLineNumber;r=h===d?e.model.getLineMaxColumn(d):(h++,1),n[o]=a.d.fromModelState(new a.f(new u.a(l,1,l,1),0,new c.a(h,r),0))}return n},h.moveToBeginningOfBuffer=function(e,t,n){for(var o=[],i=0,r=t.length;i<r;i++){var l=t[i];o[i]=a.d.fromModelState(s.a.moveToBeginningOfBuffer(e.config,e.model,l.modelState,n))}return o},h.moveToEndOfBuffer=function(e,t,n){for(var o=[],i=0,r=t.length;i<r;i++){var l=t[i];o[i]=a.d.fromModelState(s.a.moveToEndOfBuffer(e.config,e.model,l.modelState,n))}return o},h.selectAll=function(e,t){var n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return a.d.fromModelState(new a.f(new u.a(1,1,1,1),0,new c.a(n,o),0))},h.line=function(e,t,n,o,i){var r=e.model.validatePosition(o),s=i?e.validateViewPosition(new c.a(i.lineNumber,i.column),r):e.convertModelPositionToViewPosition(r);if(!n||!t.modelState.hasSelection()){var l=e.model.getLineCount(),d=r.lineNumber+1,h=1;return l<d&&(d=l,h=e.model.getLineMaxColumn(d)),a.d.fromModelState(new a.f(new u.a(r.lineNumber,1,d,h),0,new c.a(d,h),0))}var p=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumber<p)return a.d.fromViewState(t.viewState.move(t.modelState.hasSelection(),s.lineNumber,1,0));if(r.lineNumber>p){l=e.viewModel.getLineCount();var f=s.lineNumber+1,g=1;return l<f&&(f=l,g=e.viewModel.getLineMaxColumn(f)),a.d.fromViewState(t.viewState.move(t.modelState.hasSelection(),f,g,0))}var m=t.modelState.selectionStart.getEndPosition();return a.d.fromModelState(t.modelState.move(t.modelState.hasSelection(),m.lineNumber,m.column,0))},h.word=function(e,t,n,o){var i=e.model.validatePosition(o);return a.d.fromModelState(l.a.word(e.config,e.model,t.modelState,n,i))},h.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new a.d(t.modelState,t.viewState);var n=t.viewState.position.lineNumber,o=t.viewState.position.column;return a.d.fromViewState(new a.f(new u.a(n,o,n,o),0,new c.a(n,o),0))},h.moveTo=function(e,t,n,o,i){var r=e.model.validatePosition(o),s=i?e.validateViewPosition(new c.a(i.lineNumber,i.column),r):e.convertModelPositionToViewPosition(r);return a.d.fromViewState(t.viewState.move(n,s.lineNumber,s.column,0))},h.move=function(e,t,n){var o=n.select,i=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,o):this._moveLeft(e,t,o,i);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,o):this._moveRight(e,t,o,i);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,o,i):this._moveUpByModelLines(e,t,o,i);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,o,i):this._moveDownByModelLines(e,t,o,i);case 4:return this._moveToViewMinColumn(e,t,o);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,o);case 6:return this._moveToViewCenterColumn(e,t,o);case 7:return this._moveToViewMaxColumn(e,t,o);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,o);case 9:var r=t[0],a=e.getCompletelyVisibleModelRange(),s=this._firstLineNumberInRange(e.model,a,i),l=e.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(e,r,o,s,l)];case 11:return r=t[0],a=e.getCompletelyVisibleModelRange(),s=this._lastLineNumberInRange(e.model,a,i),l=e.model.getLineFirstNonWhitespaceColumn(s),[this._moveToModelPosition(e,r,o,s,l)];case 10:return r=t[0],a=e.getCompletelyVisibleModelRange(),s=Math.round((a.startLineNumber+a.endLineNumber)/2),l=e.model.getLineFirstNonWhitespaceColumn(s),[this._moveToModelPosition(e,r,o,s,l)];case 12:for(var c=e.getCompletelyVisibleViewRange(),u=[],d=0,h=t.length;d<h;d++)r=t[d],u[d]=this.findPositionInViewportIfOutside(e,r,c,o);return u}return null},h.findPositionInViewportIfOutside=function(e,t,n,o){var i=t.viewState.position.lineNumber;if(n.startLineNumber<=i&&i<=n.endLineNumber-1)return new a.d(t.modelState,t.viewState);i>n.endLineNumber-1&&(i=n.endLineNumber-1),i<n.startLineNumber&&(i=n.startLineNumber);var r=e.viewModel.getLineFirstNonWhitespaceColumn(i);return this._moveToViewPosition(e,t,o,i,r)},h._firstLineNumberInRange=function(e,t,n){var o=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(o)&&o++,Math.min(t.endLineNumber,o+n-1)},h._lastLineNumberInRange=function(e,t,n){var o=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(o)&&o++,Math.max(o,t.endLineNumber-n+1)},h._moveLeft=function(e,t,n,o){for(var i=[],r=0,l=t.length;r<l;r++){var c=t[r],u=s.a.moveLeft(e.config,e.viewModel,c.viewState,n,o);1===o&&u.position.lineNumber!==c.viewState.position.lineNumber&&e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position).lineNumber===c.modelState.position.lineNumber&&(u=s.a.moveLeft(e.config,e.viewModel,u,n,1)),i[r]=a.d.fromViewState(u)}return i},h._moveHalfLineLeft=function(e,t,n){for(var o=[],i=0,r=t.length;i<r;i++){var l=t[i],c=l.viewState.position.lineNumber,u=Math.round(e.viewModel.getLineContent(c).length/2);o[i]=a.d.fromViewState(s.a.moveLeft(e.config,e.viewModel,l.viewState,n,u))}return o},h._moveRight=function(e,t,n,o){for(var i=[],r=0,l=t.length;r<l;r++){var c=t[r],u=s.a.moveRight(e.config,e.viewModel,c.viewState,n,o);1===o&&u.position.lineNumber!==c.viewState.position.lineNumber&&e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position).lineNumber===c.modelState.position.lineNumber&&(u=s.a.moveRight(e.config,e.viewModel,u,n,1)),i[r]=a.d.fromViewState(u)}return i},h._moveHalfLineRight=function(e,t,n){for(var o=[],i=0,r=t.length;i<r;i++){var l=t[i],c=l.viewState.position.lineNumber,u=Math.round(e.viewModel.getLineContent(c).length/2);o[i]=a.d.fromViewState(s.a.moveRight(e.config,e.viewModel,l.viewState,n,u))}return o},h._moveDownByViewLines=function(e,t,n,o){for(var i=[],r=0,l=t.length;r<l;r++){var c=t[r];i[r]=a.d.fromViewState(s.a.moveDown(e.config,e.viewModel,c.viewState,n,o))}return i},h._moveDownByModelLines=function(e,t,n,o){for(var i=[],r=0,l=t.length;r<l;r++){var c=t[r];i[r]=a.d.fromModelState(s.a.moveDown(e.config,e.model,c.modelState,n,o))}return i},h._moveUpByViewLines=function(e,t,n,o){for(var i=[],r=0,l=t.length;r<l;r++){var c=t[r];i[r]=a.d.fromViewState(s.a.moveUp(e.config,e.viewModel,c.viewState,n,o))}return i},h._moveUpByModelLines=function(e,t,n,o){for(var i=[],r=0,l=t.length;r<l;r++){var c=t[r];i[r]=a.d.fromModelState(s.a.moveUp(e.config,e.model,c.modelState,n,o))}return i},h._moveToViewPosition=function(e,t,n,o,i){return a.d.fromViewState(t.viewState.move(n,o,i,0))},h._moveToModelPosition=function(e,t,n,o,i){return a.d.fromModelState(t.modelState.move(n,o,i,0))},h._moveToViewMinColumn=function(e,t,n){for(var o=[],i=0,r=t.length;i<r;i++){var a=t[i],s=a.viewState.position.lineNumber,l=e.viewModel.getLineMinColumn(s);o[i]=this._moveToViewPosition(e,a,n,s,l)}return o},h._moveToViewFirstNonWhitespaceColumn=function(e,t,n){for(var o=[],i=0,r=t.length;i<r;i++){var a=t[i],s=a.viewState.position.lineNumber,l=e.viewModel.getLineFirstNonWhitespaceColumn(s);o[i]=this._moveToViewPosition(e,a,n,s,l)}return o},h._moveToViewCenterColumn=function(e,t,n){for(var o=[],i=0,r=t.length;i<r;i++){var a=t[i],s=a.viewState.position.lineNumber,l=Math.round((e.viewModel.getLineMaxColumn(s)+e.viewModel.getLineMinColumn(s))/2);o[i]=this._moveToViewPosition(e,a,n,s,l)}return o},h._moveToViewMaxColumn=function(e,t,n){for(var o=[],i=0,r=t.length;i<r;i++){var a=t[i],s=a.viewState.position.lineNumber,l=e.viewModel.getLineMaxColumn(s);o[i]=this._moveToViewPosition(e,a,n,s,l)}return o},h._moveToViewLastNonWhitespaceColumn=function(e,t,n){for(var o=[],i=0,r=t.length;i<r;i++){var a=t[i],s=a.viewState.position.lineNumber,l=e.viewModel.getLineLastNonWhitespaceColumn(s);o[i]=this._moveToViewPosition(e,a,n,s,l)}return o},h);function h(){}(i=o=o||{}).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:function(e){if(!r.i(e))return!1;var t=e;return!!r.j(t.to)&&!(!r.k(t.select)&&!r.e(t.select))&&!(!r.k(t.by)&&!r.j(t.by))&&!(!r.k(t.value)&&!r.h(t.value))},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}}}}]},i.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"},i.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},i.parse=function(e){if(!e.to)return null;var t;switch(e.to){case i.RawDirection.Left:t=0;break;case i.RawDirection.Right:t=1;break;case i.RawDirection.Up:t=2;break;case i.RawDirection.Down:t=3;break;case i.RawDirection.WrappedLineStart:t=4;break;case i.RawDirection.WrappedLineFirstNonWhitespaceCharacter:t=5;break;case i.RawDirection.WrappedLineColumnCenter:t=6;break;case i.RawDirection.WrappedLineEnd:t=7;break;case i.RawDirection.WrappedLineLastNonWhitespaceCharacter:t=8;break;case i.RawDirection.ViewPortTop:t=9;break;case i.RawDirection.ViewPortBottom:t=11;break;case i.RawDirection.ViewPortCenter:t=10;break;case i.RawDirection.ViewPortIfOutside:t=12;break;default:return null}var n=0;switch(e.by){case i.RawUnit.Line:n=1;break;case i.RawUnit.WrappedLine:n=2;break;case i.RawUnit.Character:n=3;break;case i.RawUnit.HalfLine:n=4}return{direction:t,unit:n,select:!!e.select,value:e.value||1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(444),i=n(555),r=n(440),a=n(466),s=n(575),l=Object.create(null);function c(e,t){l[e]||(l[e]=["",e]);for(var n=l[e],o=n.length;o<=t;o++)n[o]=n[o-1]+e;return n[t]}var u=(d.unshiftIndent=function(e,t,n,o,r){var a=i.a.visibleColumnFromColumn(e,t,n);if(r){var s=c(" ",o);return c(s,i.a.prevIndentTabStop(a,o)/o)}return c(s="\t",i.a.prevRenderTabStop(a,n)/n)},d.shiftIndent=function(e,t,n,o,r){var a=i.a.visibleColumnFromColumn(e,t,n);if(r){var s=c(" ",o);return c(s,i.a.nextIndentTabStop(a,o)/o)}return c(s="\t",i.a.nextRenderTabStop(a,n)/n)},d.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)},d.prototype.getEditOperations=function(e,t){var n=this._selection.startLineNumber,a=this._selection.endLineNumber;1===this._selection.endColumn&&n!==a&&--a;var l=this._opts,u=l.tabSize,h=l.indentSize,p=l.insertSpaces,f=n===a;if(this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(n))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var g=0,m=0,v=n;v<=a;v++,g=m){m=0;var y=e.getLineContent(v),b=o.q(y);if((!this._opts.isUnshift||0!==y.length&&0!==b)&&(f||this._opts.isUnshift||0!==y.length)){if(-1===b&&(b=y.length),1<v&&i.a.visibleColumnFromColumn(y,b+1,u)%h!=0&&e.isCheapToTokenize(v-1)){var _=s.a.getEnterAction(this._opts.autoIndent,e,new r.a(v-1,e.getLineMaxColumn(v-1),v-1,e.getLineMaxColumn(v-1)));if(_){if(m=g,_.appendText)for(var w=0,C=_.appendText.length;w<C&&m<h&&32===_.appendText.charCodeAt(w);w++)m++;for(_.removeText&&(m=Math.max(0,m-_.removeText)),w=0;w<m&&0!==b&&32===y.charCodeAt(b-1);w++)b--}}if(!this._opts.isUnshift||0!==b){var S;S=this._opts.isUnshift?d.unshiftIndent(y,b+1,u,h,p):d.shiftIndent(y,b+1,u,h,p),this._addEditOperation(t,new r.a(v,1,v,b+1),S),v!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=b+1)}}}else{var O=p?c(" ",h):"\t";for(v=n;v<=a;v++)if(y=e.getLineContent(v),b=o.q(y),(!this._opts.isUnshift||0!==y.length&&0!==b)&&(f||this._opts.isUnshift||0!==y.length)&&(-1===b&&(b=y.length),!this._opts.isUnshift||0!==b))if(this._opts.isUnshift){b=Math.min(b,h);for(var x=0;x<b;x++)if(9===y.charCodeAt(x)){b=x+1;break}this._addEditOperation(t,new r.a(v,1,v,b+1),"")}else this._addEditOperation(t,new r.a(v,1,v,1),O),v!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}this._selectionId=t.trackSelection(this._selection)},d.prototype.computeCursorState=function(e,t){if(this._useLastEditRangeForCursorEndPosition){var n=t.getInverseEditOperations()[0];return new a.a(n.range.endLineNumber,n.range.endColumn,n.range.endLineNumber,n.range.endColumn)}var o=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var i=this._selection.startColumn;return o.startColumn<=i?o:0===o.getDirection()?new a.a(o.startLineNumber,i,o.endLineNumber,o.endColumn):new a.a(o.endLineNumber,o.endColumn,o.startLineNumber,i)}return o},d);function d(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o,i,r=n(439),a=n(443),s=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(l,i=r.a),l.prototype.dispose=function(){this.stopObserving(),i.prototype.dispose.call(this)},l.prototype.getWidth=function(){return this.width},l.prototype.getHeight=function(){return this.height},l.prototype.startObserving=function(){var e=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver((function(){return e._onDidMutate()})),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=a.j(window,"resize",(function(){return e._onDidResizeWindow()})))},l.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},l.prototype.observe=function(e){this.measureReferenceDomElement(!0,e)},l.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},l.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},l.prototype.measureReferenceDomElement=function(e,t){var n=0,o=0;t?(n=t.width,o=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,o=this.referenceDomElement.clientHeight),n=Math.max(5,n),o=Math.max(5,o),this.width===n&&this.height===o||(this.width=n,this.height=o,e&&this.changeCallback())},l);function l(e,t,n){var o=i.call(this)||this;return o.referenceDomElement=e,o.changeCallback=n,o.width=-1,o.height=-1,o.mutationObserver=null,o.windowSizeListener=null,o.measureReferenceDomElement(!1,t),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var o=(i.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},i);function i(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}var r=(a.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},a.prototype.setColorZone=function(e){this._colorZone=e},a.prototype.getColorZones=function(){return this._colorZone},a);function a(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}var s=(l.prototype.getId2Color=function(){return this._id2Color},l.prototype.setZones=function(e){this._zones=e,this._zones.sort(r.compare)},l.prototype.setLineHeight=function(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0)},l.prototype.setPixelRatio=function(e){this._pixelRatio=e,this._colorZonesInvalid=!0},l.prototype.getDOMWidth=function(){return this._domWidth},l.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},l.prototype.setDOMWidth=function(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0)},l.prototype.getDOMHeight=function(){return this._domHeight},l.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},l.prototype.setDOMHeight=function(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0)},l.prototype.getOuterHeight=function(){return this._outerHeight},l.prototype.setOuterHeight=function(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0)},l.prototype.resolveColorZones=function(){for(var e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),i=n/Math.floor(this._outerHeight),r=Math.floor(4*this._pixelRatio/2),a=[],s=0,l=this._zones.length;s<l;s++){var c=this._zones[s];if(!e){var u=c.getColorZones();if(u){a.push(u);continue}}var d=Math.floor(i*this._getVerticalOffsetForLine(c.startLineNumber)),h=Math.floor(i*(this._getVerticalOffsetForLine(c.endLineNumber)+t)),p=Math.floor((d+h)/2),f=h-p;f<r&&(f=r),p-f<0&&(p=f),n<p+f&&(p=n-f);var g=c.color,m=this._color2Id[g];m||(m=++this._lastAssignedId,this._color2Id[g]=m,this._id2Color[m]=g);var v=new o(p-f,p+f,m);c.setColorZone(v),a.push(v)}return this._colorZonesInvalid=!1,a.sort(o.compare),a},l);function l(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=[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=(i.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},i.prototype.run=function(){return this.isSupported()&&this._run()||Promise.resolve(void 0)},i);function i(e,t,n,o,i,r){this.id=e,this.label=t,this.alias=n,this._precondition=o,this._run=i,this._contextKeyService=r}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var o=n(444),i=n(824),r=n(756),a={getInitialState:function(){return r.c},tokenize2:function(e,t,n){return Object(r.e)(0,e,t,n)}};function s(e,t){return void 0===t&&(t=a),function(e,t){for(var n='<div class="monaco-tokenized-source">',r=e.split(/\r\n|\r|\n/),a=t.getInitialState(),s=0,l=r.length;s<l;s++){var c=r[s];0<s&&(n+="<br/>");var u=t.tokenize2(c,a,0);i.a.convertToEndOffset(u.tokens,c.length);for(var d=new i.a(u.tokens,c).inflate(),h=0,p=0,f=d.getCount();p<f;p++){var g=d.getClassName(p),m=d.getEndOffset(p);n+='<span class="'+g+'">'+o.o(c.substring(h,m))+"</span>",h=m}a=u.endState}return n+"</div>"}(e,t||a)}function l(e,t,n,o,i,r,a){for(var s="<div>",l=o,c=0,u=0,d=t.getCount();u<d;u++){var h=t.getEndOffset(u);if(!(h<=o)){for(var p="";l<h&&l<i;l++){var f=e.charCodeAt(l);switch(f){case 9:var g=r-(l+c)%r;for(c+=g-1;0<g;)p+=a?" ":" ",g--;break;case 60:p+="<";break;case 62:p+=">";break;case 38:p+="&";break;case 0:p+="�";break;case 65279:case 8232:p+="\ufffd";break;case 13:p+="​";break;case 32:p+=a?" ":" ";break;default:p+=String.fromCharCode(f)}}if(s+='<span style="'+t.getInlineStyle(u,n)+'">'+p+"</span>",i<h||i<=l)break}}return s+"</div>"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var o=n(1074),i=function(e,t){this.index=e,this.remainder=t},r=(a.prototype.insertValues=function(e,t){e=Object(o.a)(e);var n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),0<=this.prefixSumValidIndex[0]&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},a.prototype.changeValue=function(e,t){return e=Object(o.a)(e),t=Object(o.a)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)},a.prototype.removeValues=function(e,t){e=Object(o.a)(e),t=Object(o.a)(t);var n=this.values,i=this.prefixSum;if(e>=n.length)return!1;var r=n.length-e;return r<=t&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),0<=this.prefixSumValidIndex[0]&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},a.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},a.prototype.getAccumulatedValue=function(e){return e<0?0:(e=Object(o.a)(e),this._getAccumulatedValue(e))},a.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]},a.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,n=this.values.length-1,o=0,r=0,a=0;t<=n;)if(o=t+(n-t)/2|0,e<(a=(r=this.prefixSum[o])-this.values[o]))n=o-1;else{if(!(r<=e))break;t=o+1}return new i(o,e-a)},a);function a(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n(445),i=(r.prototype.toLabel=function(e,t,n){if(0===t.length)return null;for(var o=[],i=0,r=t.length;i<r;i++){var a=t[i],s=n(a);if(null===s)return null;o[i]=l(a,s,this.modifierLabels[e])}return o.join(" ")},r);function r(e,t,n){void 0===n&&(n=t),this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}var a=new i({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:o.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:o.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:o.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:o.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:o.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:o.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:o.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:o.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),s=new i({ctrlKey:o.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:o.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:o.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:o.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:o.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:o.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:o.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:o.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:o.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:o.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:o.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:o.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function l(e,t,n){if(null===t)return"";var o=[];return e.ctrlKey&&o.push(n.ctrlKey),e.shiftKey&&o.push(n.shiftKey),e.altKey&&o.push(n.altKey),e.metaKey&&o.push(n.metaKey),o.push(t),o.join(n.separator)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p}));var o=n(459),i=n(484),r=n(446),a=n(449),s=n(454);function l(e,t,n,i){var a=n.ordered(e).map((function(n){return Promise.resolve(i(n,e,t)).then(void 0,(function(e){Object(r.f)(e)}))}));return Promise.all(a).then(o.m).then(o.d)}function c(e,t,n){return l(e,t,s.f,(function(e,t,o){return e.provideDefinition(t,o,n)}))}function u(e,t,n){return l(e,t,s.e,(function(e,t,o){return e.provideDeclaration(t,o,n)}))}function d(e,t,n){return l(e,t,s.q,(function(e,t,o){return e.provideImplementation(t,o,n)}))}function h(e,t,n){return l(e,t,s.C,(function(e,t,o){return e.provideTypeDefinition(t,o,n)}))}function p(e,t,n,o){var i=this;return l(e,t,s.u,(function(e,t,r){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(i,void 0,void 0,(function(){var i,a;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(s){switch(s.label){case 0:return[4,e.provideReferences(t,r,{includeDeclaration:!0},o)];case 1:return i=s.sent(),n&&i&&2===i.length?[4,e.provideReferences(t,r,{includeDeclaration:!1},o)]:[2,i];case 2:return(a=s.sent())&&1===a.length?[2,a]:[2,i]}}))}))}))}Object(a.k)("_executeDefinitionProvider",(function(e,t){return c(e,t,i.a.None)})),Object(a.k)("_executeDeclarationProvider",(function(e,t){return u(e,t,i.a.None)})),Object(a.k)("_executeImplementationProvider",(function(e,t){return d(e,t,i.a.None)})),Object(a.k)("_executeTypeDefinitionProvider",(function(e,t){return h(e,t,i.a.None)})),Object(a.k)("_executeReferenceProvider",(function(e,t){return p(e,t,!1,i.a.None)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o,i=n(478),r=n(439),a=n(442),s=n(452),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function c(e,t){return!!e[t]}var u=function(e,t){this.target=e.target,this.hasTriggerModifier=c(e.event,t.triggerModifier),this.hasSideBySideModifier=c(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=i.i||e.event.detail<=1},d=function(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=c(e,t.triggerModifier)},h=(p.prototype.equals=function(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier},p);function p(e,t,n,o){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=o}function f(e){return"altKey"===e?s.e?new h(57,"metaKey",6,"altKey"):new h(5,"ctrlKey",6,"altKey"):s.e?new h(6,"altKey",57,"metaKey"):new h(6,"altKey",5,"ctrlKey")}var g,m=(l(v,g=r.a),v.prototype.onDidChangeCursorSelection=function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this.resetHandler()},v.prototype.onEditorMouseMove=function(e){this.lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])},v.prototype.onEditorMouseDown=function(e){this.hasTriggerKeyOnMouseDown=e.hasTriggerModifier},v.prototype.onEditorMouseUp=function(e){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(e)},v.prototype.onEditorKeyDown=function(e){this.lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()},v.prototype.onEditorKeyUp=function(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()},v.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},v);function v(e){var t=g.call(this)||this;return t._onMouseMoveOrRelevantKeyDown=t._register(new a.a),t.onMouseMoveOrRelevantKeyDown=t._onMouseMoveOrRelevantKeyDown.event,t._onExecute=t._register(new a.a),t.onExecute=t._onExecute.event,t._onCancel=t._register(new a.a),t.onCancel=t._onCancel.event,t._editor=e,t._opts=f(t._editor.getOption(59)),t.lastMouseMoveEvent=null,t.hasTriggerKeyOnMouseDown=!1,t._register(t._editor.onDidChangeConfiguration((function(e){if(e.hasChanged(59)){var n=f(t._editor.getOption(59));if(t._opts.equals(n))return;t._opts=n,t.lastMouseMoveEvent=null,t.hasTriggerKeyOnMouseDown=!1,t._onCancel.fire()}}))),t._register(t._editor.onMouseMove((function(e){return t.onEditorMouseMove(new u(e,t._opts))}))),t._register(t._editor.onMouseDown((function(e){return t.onEditorMouseDown(new u(e,t._opts))}))),t._register(t._editor.onMouseUp((function(e){return t.onEditorMouseUp(new u(e,t._opts))}))),t._register(t._editor.onKeyDown((function(e){return t.onEditorKeyDown(new d(e,t._opts))}))),t._register(t._editor.onKeyUp((function(e){return t.onEditorKeyUp(new d(e,t._opts))}))),t._register(t._editor.onMouseDrag((function(){return t.resetHandler()}))),t._register(t._editor.onDidChangeCursorSelection((function(e){return t.onDidChangeCursorSelection(e)}))),t._register(t._editor.onDidChangeModel((function(e){return t.resetHandler()}))),t._register(t._editor.onDidChangeModelContent((function(){return t.resetHandler()}))),t._register(t._editor.onDidScrollChange((function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&t.resetHandler()}))),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(479);function i(e){var t=JSON.parse(e);return function e(t,n){if(void 0===n&&(n=0),!t||200<n)return t;if("object"==typeof t){switch(t.$mid){case 1:return o.a.revive(t);case 2:return new RegExp(t.source,t.flags)}for(var i in t)Object.hasOwnProperty.call(t,i)&&(t[i]=e(t[i],n+1))}return t}(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(448),i=Object(o.c)("markerDecorationsService")},function(e,t,n){"use strict";n(1374),n(1375)},function(e,t,n){"use strict";n(1376),n(1377);var o=n(445),i=n(451),r=n(461),a=Object(r.Tb)("symbolIcon.arrayForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),s=Object(r.Tb)("symbolIcon.booleanForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=Object(r.Tb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(o.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=Object(r.Tb)("symbolIcon.colorForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=Object(r.Tb)("symbolIcon.constantForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=Object(r.Tb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(o.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=Object(r.Tb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(o.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=Object(r.Tb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(o.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=Object(r.Tb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(o.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=Object(r.Tb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(o.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=Object(r.Tb)("symbolIcon.fileForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=Object(r.Tb)("symbolIcon.folderForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=Object(r.Tb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(o.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=Object(r.Tb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(o.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=Object(r.Tb)("symbolIcon.keyForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=Object(r.Tb)("symbolIcon.keywordForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=Object(r.Tb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(o.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=Object(r.Tb)("symbolIcon.moduleForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=Object(r.Tb)("symbolIcon.namespaceForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=Object(r.Tb)("symbolIcon.nullForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=Object(r.Tb)("symbolIcon.numberForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=Object(r.Tb)("symbolIcon.objectForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=Object(r.Tb)("symbolIcon.operatorForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=Object(r.Tb)("symbolIcon.packageForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=Object(r.Tb)("symbolIcon.propertyForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=Object(r.Tb)("symbolIcon.referenceForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=Object(r.Tb)("symbolIcon.snippetForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=Object(r.Tb)("symbolIcon.stringForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=Object(r.Tb)("symbolIcon.structForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),j=Object(r.Tb)("symbolIcon.textForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=Object(r.Tb)("symbolIcon.typeParameterForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=Object(r.Tb)("symbolIcon.unitForeground",{dark:r.W,light:r.W,hc:r.W},Object(o.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=Object(r.Tb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(o.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(i.e)((function(e,t){var n=e.getColor(a);n&&t.addRule(".codicon-symbol-array { color: "+n+" !important; }");var o=e.getColor(s);o&&t.addRule(".codicon-symbol-boolean { color: "+o+" !important; }");var i=e.getColor(l);i&&t.addRule(".codicon-symbol-class { color: "+i+" !important; }");var r=e.getColor(C);r&&t.addRule(".codicon-symbol-method { color: "+r+" !important; }");var V=e.getColor(c);V&&t.addRule(".codicon-symbol-color { color: "+V+" !important; }");var W=e.getColor(u);W&&t.addRule(".codicon-symbol-constant { color: "+W+" !important; }");var B=e.getColor(d);B&&t.addRule(".codicon-symbol-constructor { color: "+B+" !important; }");var H=e.getColor(h);H&&t.addRule("\n\t\t\t.codicon-symbol-value,.codicon-symbol-enum { color: "+H+" !important; }");var z=e.getColor(p);z&&t.addRule(".codicon-symbol-enum-member { color: "+z+" !important; }");var K=e.getColor(f);K&&t.addRule(".codicon-symbol-event { color: "+K+" !important; }");var U=e.getColor(g);U&&t.addRule(".codicon-symbol-field { color: "+U+" !important; }");var q=e.getColor(m);q&&t.addRule(".codicon-symbol-file { color: "+q+" !important; }");var G=e.getColor(v);G&&t.addRule(".codicon-symbol-folder { color: "+G+" !important; }");var Y=e.getColor(y);Y&&t.addRule(".codicon-symbol-function { color: "+Y+" !important; }");var Z=e.getColor(b);Z&&t.addRule(".codicon-symbol-interface { color: "+Z+" !important; }");var $=e.getColor(_);$&&t.addRule(".codicon-symbol-key { color: "+$+" !important; }");var X=e.getColor(w);X&&t.addRule(".codicon-symbol-keyword { color: "+X+" !important; }");var J=e.getColor(S);J&&t.addRule(".codicon-symbol-module { color: "+J+" !important; }");var Q=e.getColor(O);Q&&t.addRule(".codicon-symbol-namespace { color: "+Q+" !important; }");var ee=e.getColor(x);ee&&t.addRule(".codicon-symbol-null { color: "+ee+" !important; }");var te=e.getColor(E);te&&t.addRule(".codicon-symbol-number { color: "+te+" !important; }");var ne=e.getColor(k);ne&&t.addRule(".codicon-symbol-object { color: "+ne+" !important; }");var oe=e.getColor(N);oe&&t.addRule(".codicon-symbol-operator { color: "+oe+" !important; }");var ie=e.getColor(D);ie&&t.addRule(".codicon-symbol-package { color: "+ie+" !important; }");var re=e.getColor(L);re&&t.addRule(".codicon-symbol-property { color: "+re+" !important; }");var ae=e.getColor(P);ae&&t.addRule(".codicon-symbol-reference { color: "+ae+" !important; }");var se=e.getColor(I);se&&t.addRule(".codicon-symbol-snippet { color: "+se+" !important; }");var le=e.getColor(T);le&&t.addRule(".codicon-symbol-string { color: "+le+" !important; }");var ce=e.getColor(M);ce&&t.addRule(".codicon-symbol-struct { color: "+ce+" !important; }");var ue=e.getColor(j);ue&&t.addRule(".codicon-symbol-text { color: "+ue+" !important; }");var de=e.getColor(R);de&&t.addRule(".codicon-symbol-type-parameter { color: "+de+" !important; }");var he=e.getColor(A);he&&t.addRule(".codicon-symbol-unit { color: "+he+" !important; }");var pe=e.getColor(F);pe&&t.addRule(".codicon-symbol-variable { color: "+pe+" !important; }")}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(450),i=n(440),r=n(786),a=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},s=(l.prototype.provideSelectionRanges=function(e,t){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,o,i,r,s;return a(this,(function(c){switch(c.label){case 0:n=[],o=function(t){var o,i;return a(this,(function(r){switch(r.label){case 0:return o=[],n.push(o),i=new Map,[4,new Promise((function(n){return l._bracketsRightYield(n,0,e,t,i)}))];case 1:return r.sent(),[4,new Promise((function(n){return l._bracketsLeftYield(n,0,e,t,i,o)}))];case 2:return r.sent(),[2]}}))},i=0,r=t,c.label=1;case 1:return i<r.length?(s=r[i],[5,o(s)]):[3,4];case 2:c.sent(),c.label=3;case 3:return i++,[3,1];case 4:return[2,n]}}))}))},l._bracketsRightYield=function(e,t,n,o,i){for(var a=new Map,s=Date.now();;){if(l._maxRounds<=t){e();break}if(!o){e();break}var c=n.findNextBracket(o);if(!c){e();break}var u=Date.now()-s;if(l._maxDuration<u){setTimeout((function(){return l._bracketsRightYield(e,t+1,n,o,i)}));break}var d=c.close[0];if(c.isOpen){var h=a.has(d)?a.get(d):0;a.set(d,h+1)}else if(h=a.has(d)?a.get(d):0,--h,a.set(d,Math.max(0,h)),h<0){var p=i.get(d);p||(p=new r.a,i.set(d,p)),p.push(c.range)}o=c.range.getEndPosition()}},l._bracketsLeftYield=function(e,t,n,o,r,a){for(var s=new Map,c=Date.now();;){if(l._maxRounds<=t&&0===r.size){e();break}if(!o){e();break}var u=n.findPrevBracket(o);if(!u){e();break}var d=Date.now()-c;if(l._maxDuration<d){setTimeout((function(){return l._bracketsLeftYield(e,t+1,n,o,r,a)}));break}var h=u.close[0];if(u.isOpen){if(v=s.has(h)?s.get(h):0,--v,s.set(h,Math.max(0,v)),v<0){var p=r.get(h);if(p){var f=p.shift();0===p.size&&r.delete(h);var g=i.a.fromPositions(u.range.getEndPosition(),f.getStartPosition()),m=i.a.fromPositions(u.range.getStartPosition(),f.getEndPosition());a.push({range:g}),a.push({range:m}),l._addBracketLeading(n,m,a)}}}else{var v=s.has(h)?s.get(h):0;s.set(h,v+1)}o=u.range.getStartPosition()}},l._addBracketLeading=function(e,t,n){if(t.startLineNumber!==t.endLineNumber){var r=t.startLineNumber,a=e.getLineFirstNonWhitespaceColumn(r);0!==a&&a!==t.startColumn&&(n.push({range:i.a.fromPositions(new o.a(r,a),t.getEndPosition())}),n.push({range:i.a.fromPositions(new o.a(r,1),t.getEndPosition())}));var s=r-1;if(0<s){var l=e.getLineFirstNonWhitespaceColumn(s);l===t.startColumn&&l!==e.getLineLastNonWhitespaceColumn(s)&&(n.push({range:i.a.fromPositions(new o.a(s,l),t.getEndPosition())}),n.push({range:i.a.fromPositions(new o.a(s,1),t.getEndPosition())}))}}},l._maxDuration=30,l._maxRounds=2,l);function l(){}},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o=(i.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(i.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),i);function i(e){this.executor=e,this._didRun=!1}var r,a,s=n(439),l=n(444),c=n(449),u=n(951),d=n(469),h=n(885),p=n(459),f=n(446),g=n(887),m=n(448),v=n(443),y=n(772),b=n(703),_=n(450),w=n(454),C=n(886),S=n(757),O=n(531),x=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=function(){return(E=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},k=function(e,t){return function(n,o){t(n,o,e)}},N=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},D=(x(L,a=b.a),L);function L(e,t){var n=a.call(this,e.command?e.command.id:e.title,e.title,void 0,!e.disabled,t)||this;return n.action=e,n}var P,I=(x(T,P=s.a),Object.defineProperty(T.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),T.prototype.show=function(e,t,n,o){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var i,r,a,s,l=this;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(c){if(!(i=o.includeDisabledActions?t.allActions:t.validActions).length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(f.a)();return this._visible=!0,this._showingActions.value=t,r=this.getMenuActions(e,i),a=_.a.isIPosition(n)?this._toCoords(n):n||{x:0,y:0},s=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return a},getActions:function(){return r},onHide:function(){l._visible=!1,l._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(e){return e instanceof D?s(e.action):void 0}}),[2]}))}))},T.prototype.getMenuActions=function(e,t){function n(e){return new D(e,(function(){return r._delegate.onSelectCodeAction(e)}))}var o,i,r=this,a=t.map(n),s=this._editor.getModel();if(s&&a.length)for(var l=0,c=w.a.all(s);l<c.length;l++){var u=c[l];if(u._getAdditionalMenuItems){var d=u._getAdditionalMenuItems({trigger:e.type,only:null===(i=null===(o=e.filter)||void 0===o?void 0:o.include)||void 0===i?void 0:i.value},t);d.length&&a.push.apply(a,N([new y.d],d.map((function(e){return n({title:e.title,command:e})}))))}}return a},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=Object(v.C)(this._editor.getDomNode());return{x:n.left+t.left,y:n.top+t.top+t.height}},T=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([k(2,S.a),k(3,O.a)],T));function T(e,t,n,o){var i=P.call(this)||this;return i._editor=e,i._delegate=t,i._contextMenuService=n,i._visible=!1,i._showingActions=i._register(new s.d),i._keybindingResolver=new M({getKeybindings:function(){return o.getKeybindings()}}),i}var M=(j.prototype.getResolver=function(){var e=this,t=new o((function(){return e._keybindingProvider.getKeybindings().filter((function(e){return 0<=j.codeActionCommands.indexOf(e.command)})).filter((function(e){return e.resolvedKeybinding})).map((function(e){var t=e.commandArgs;return e.command===h.d?t={kind:C.b.SourceOrganizeImports.value}:e.command===h.b&&(t={kind:C.b.SourceFixAll.value}),E({resolvedKeybinding:e.resolvedKeybinding},C.a.fromUser(t,{kind:C.b.None,apply:"never"}))}))}));return function(n){if(n.kind){var o=e.bestKeybindingForCodeAction(n,t.getValue());return null==o?void 0:o.resolvedKeybinding}}},j.prototype.bestKeybindingForCodeAction=function(e,t){if(e.kind){var n=new C.b(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}),void 0)}},j.codeActionCommands=[h.e,h.a,h.f,h.d,h.b],j);function j(e){this._keybindingProvider=e}var R,A,F=n(793),V=n(442),W=(n(1325),n(495)),B=n(445),H=n(451),z=n(461),K=n(702),U=(R=function(e,t){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){e.Hidden={type:0},e.Showing=function(e,t,n,o){this.actions=e,this.trigger=t,this.editorPosition=n,this.widgetPosition=o,this.type=1}}(A=A||{});var q,G=(U(Y,q=s.a),Y.prototype.dispose=function(){q.prototype.dispose.call(this),this._editor.removeContentWidget(this)},Y.prototype.getId=function(){return"LightBulbWidget"},Y.prototype.getDomNode=function(){return this._domNode},Y.prototype.getPosition=function(){return 1===this._state.type?this._state.widgetPosition:null},Y.prototype.update=function(e,t,n){var o=this;if(e.validActions.length<=0)return this.hide();var i=this._editor.getOptions();if(!i.get(47).enabled)return this.hide();var r=n.lineNumber,a=n.column,s=this._editor.getModel();if(!s)return this.hide();function l(e){return 2<e&&o._editor.getTopForLineNumber(e)===o._editor.getTopForLineNumber(e-1)}var c=s.getOptions().tabSize,u=i.get(34),d=s.getLineContent(r),h=W.b.computeIndentLevel(d,c),p=r;if(!(22<u.spaceWidth*h))if(1<r&&!l(r-1))--p;else if(l(r+1)){if(a*u.spaceWidth<22)return this.hide()}else p+=1;this.state=new A.Showing(e,t,n,{position:{lineNumber:p,column:1},preference:Y._posPref}),v.Y(this._domNode,"codicon-lightbulb-autofix",e.hasAutoFix),this._editor.layoutContentWidget(this)},Y.prototype.hide=function(){this.state=A.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(Y.prototype,"state",{get:function(){return this._state},set:function(e){this._state=e,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),Y.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=B.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",e.getLabel()))}var t=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=t?B.a("quickFixWithKb","Show Fixes ({0})",t.getLabel()):B.a("quickFix","Show Fixes")},Object.defineProperty(Y.prototype,"title",{set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),Y._posPref=[0],Y=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(3,O.a)],Y));function Y(e,t,n,o){var i=q.call(this)||this;return i._editor=e,i._quickFixActionId=t,i._preferredFixActionId=n,i._keybindingService=o,i._onClick=i._register(new V.a),i.onClick=i._onClick.event,i._state=A.Hidden,i._domNode=document.createElement("div"),i._domNode.className="codicon codicon-lightbulb",i._editor.addContentWidget(i),i._register(i._editor.onDidChangeModelContent((function(e){var t=i._editor.getModel();(1!==i.state.type||!t||i.state.editorPosition.lineNumber>=t.getLineCount())&&i.hide()}))),K.b.ignoreTarget(i._domNode),i._register(v.n(i._domNode,(function(e){if(1===i.state.type){i._editor.focus(),e.preventDefault();var t=v.C(i._domNode),n=t.top,o=t.height,r=i._editor.getOption(49),a=Math.floor(r/3);null!==i.state.widgetPosition.position&&i.state.widgetPosition.position.lineNumber<i.state.editorPosition.lineNumber&&(a+=r),i._onClick.fire({x:e.posx,y:n+o+a,actions:i.state.actions,trigger:i.state.trigger})}}))),i._register(v.j(i._domNode,"mouseenter",(function(e){if(1==(1&e.buttons)){i.hide();var t=new F.a;t.startMonitoring(e.target,e.buttons,F.b,(function(){}),(function(){t.dispose()}))}}))),i._register(i._editor.onDidChangeConfiguration((function(e){e.hasChanged(47)&&!i._editor.getOption(47).enabled&&i.hide()}))),i._updateLightBulbTitle(),i._register(i._keybindingService.onDidUpdateKeybindings(i._updateLightBulbTitle,i)),i}Object(H.e)((function(e,t){var n=e.getColor(z.J);n&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb {\n\t\t\tcolor: "+n+";\n\t\t}");var o=e.getColor(z.I);o&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb-autofix {\n\t\t\tcolor: "+o+";\n\t\t}")}));var Z,$,X=(Z=function(e,t){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),J=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},Q=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},ee=(X(te,$=s.a),te.prototype.update=function(e){var t,n,o;return J(this,void 0,void 0,(function(){var i,r,a,s,l;return Q(this,(function(c){switch(c.label){case 0:if(1!==e.type)return null!==(t=this._lightBulbWidget.rawValue)&&void 0!==t&&t.hide(),[2];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,e.actions];case 2:return i=c.sent(),[3,4];case 3:return r=c.sent(),Object(f.e)(r),[2];case 4:if(this._lightBulbWidget.getValue().update(i,e.trigger,e.position),2!==e.trigger.type)return[3,11];if(null===(n=e.trigger.filter)||void 0===n||!n.include)return[3,10];if(!(a=this.tryGetValidActionToApply(e.trigger,i)))return[3,9];c.label=5;case 5:return c.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(a,!1)];case 6:return c.sent(),[3,8];case 7:return i.dispose(),[7];case 8:return[2];case 9:if(e.trigger.context&&(s=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,i))&&s.disabled)return g.a.get(this._editor).showMessage(s.disabled,e.trigger.context.position),i.dispose(),[2];c.label=10;case 10:return l=!(null===(o=e.trigger.filter)||void 0===o||!o.include),!e.trigger.context||i.allActions.length&&(l||i.validActions.length)?(this._activeCodeActions.value=i,this._codeActionWidget.getValue().show(e.trigger,i,e.position,{includeDisabledActions:l}),[3,12]):(g.a.get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),(this._activeCodeActions.value=i).dispose(),[2]);case 11:this._codeActionWidget.getValue().isVisible?i.dispose():this._activeCodeActions.value=i,c.label=12;case 12:return[2]}}))}))},te.prototype.getInvalidActionThatWouldHaveBeenApplied=function(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?Object(p.h)(t.allActions,(function(e){return e.disabled})):void 0},te.prototype.tryGetValidActionToApply=function(e,t){if(t.validActions.length)return"first"===e.autoApply&&0<t.validActions.length||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0},te.prototype.showCodeActionList=function(e,t,n,o){return J(this,void 0,void 0,(function(){return Q(this,(function(i){return this._codeActionWidget.getValue().show(e,t,n,o),[2]}))}))},te=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(4,m.a)],te));function te(e,t,n,i,r){var a=$.call(this)||this;return a._editor=e,a.delegate=i,a._activeCodeActions=a._register(new s.d),a._codeActionWidget=new o((function(){return a._register(r.createInstance(I,a._editor,{onSelectCodeAction:function(e){return J(a,void 0,void 0,(function(){return Q(this,(function(t){return this.delegate.applyCodeAction(e,!0),[2]}))}))}}))})),a._lightBulbWidget=new o((function(){var e=a._register(r.createInstance(G,a._editor,t,n));return a._register(e.onClick((function(e){return a.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1})}))),e})),a}var ne,oe,ie,re=n(489),ae=n(456),se=n(773),le=n(532),ce=n(774),ue=n(821),de=n(453),he=n(440),pe=n(554),fe=(ne=function(e,t){return(ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ne(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ge=new ae.d("supportedCodeAction",""),me=(fe(ve,oe=s.a),ve.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)},ve.prototype._onMarkerChanges=function(e){var t=this,n=this._editor.getModel();n&&e.some((function(e){return Object(pe.e)(e,n.uri)}))&&this._autoTriggerTimer.cancelAndSet((function(){t.trigger({type:1})}),this._delay)},ve.prototype._onCursorChange=function(){var e=this;this._autoTriggerTimer.cancelAndSet((function(){e.trigger({type:1})}),this._delay)},ve.prototype._getRangeOfMarker=function(e){var t=this._editor.getModel();if(t)for(var n=0,o=this._markerService.read({resource:t.uri});n<o.length;n++){var i=o[n],r=t.validateRange(i);if(he.a.intersectRanges(r,e))return he.a.lift(r)}},ve.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&1===e.type){var o=n.getPosition(),i=o.lineNumber,r=o.column,a=t.getLineContent(i);if(0===a.length)return;if(1===r){if(/\s/.test(a[0]))return}else if(r===t.getLineMaxColumn(i)){if(/\s/.test(a[a.length-1]))return}else if(/\s/.test(a[r-2])&&/\s/.test(a[r-1]))return}return n}},ve.prototype._createEventAndSignalChange=function(e,t){var n=this._editor.getModel();if(t&&n){var o=this._getRangeOfMarker(t),i=o?o.getStartPosition():t.getStartPosition(),r={trigger:e,selection:t,position:i};return this._signalChange(r),r}this._signalChange(void 0)},ve);function ve(e,t,n,o){void 0===o&&(o=250);var i=oe.call(this)||this;return i._editor=e,i._markerService=t,i._signalChange=n,i._delay=o,i._autoTriggerTimer=i._register(new de.e),i._register(i._markerService.onMarkerChanged((function(e){return i._onMarkerChanges(e)}))),i._register(i._editor.onDidChangeCursorPosition((function(){return i._onCursorChange()}))),i}!function(e){e.Empty={type:0},e.Triggered=function(e,t,n,o){this.trigger=e,this.rangeOrSelection=t,this.position=n,this.actions=o,this.type=1}}(ie=ie||{});var ye,be=(fe(_e,ye=s.a),_e.prototype.dispose=function(){ye.prototype.dispose.call(this),this.setState(ie.Empty,!0)},_e.prototype._update=function(){var e=this;this._codeActionOracle.value=void 0,this.setState(ie.Empty);var t=this._editor.getModel();if(t&&w.a.has(t)&&!this._editor.getOption(68)){for(var n=[],o=0,i=w.a.all(t);o<i.length;o++){var r=i[o];Array.isArray(r.providedCodeActionKinds)&&n.push.apply(n,r.providedCodeActionKinds)}this._supportedCodeActions.set(n.join(" ")),this._codeActionOracle.value=new me(this._editor,this._markerService,(function(n){if(n){var o=Object(de.f)((function(e){return Object(h.c)(t,n.selection,n.trigger,e)}));e._progressService&&2===n.trigger.type&&e._progressService.showWhile(o,250),e.setState(new ie.Triggered(n.trigger,n.selection,n.position,o))}else e.setState(ie.Empty)}),void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()},_e.prototype.trigger=function(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)},_e.prototype.setState=function(e,t){e!==this._state&&(1===this._state.type&&this._state.actions.cancel(),this._state=e,t||this._onDidChangeState.fire(e))},_e);function _e(e,t,n,o){var i=ye.call(this)||this;return i._editor=e,i._markerService=t,i._progressService=o,i._codeActionOracle=i._register(new s.d),i._state=ie.Empty,i._onDidChangeState=i._register(new V.a),i.onDidChangeState=i._onDidChangeState.event,i._supportedCodeActions=ge.bindTo(n),i._register(i._editor.onDidChangeModel((function(){return i._update()}))),i._register(i._editor.onDidChangeModelLanguage((function(){return i._update()}))),i._register(w.a.onDidChange((function(){return i._update()}))),i._update(),i}n.d(t,"f",(function(){return Le})),n.d(t,"e",(function(){return je})),n.d(t,"b",(function(){return Fe})),n.d(t,"g",(function(){return Be})),n.d(t,"h",(function(){return Ke})),n.d(t,"d",(function(){return Ge})),n.d(t,"c",(function(){return $e})),n.d(t,"a",(function(){return Qe}));var we,Ce=(we=function(e,t){return(we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}we(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Se=function(e,t){return function(n,o){t(n,o,e)}},Oe=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},xe=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},Ee=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};function ke(e){return ae.a.regex(ge.keys()[0],new RegExp("(\\s|^)"+Object(l.p)(e.value)+"\\b"))}var Ne,De={type:"object",required:["kind"],defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:B.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:B.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[B.a("args.schema.apply.first","Always apply the first returned code action."),B.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),B.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:B.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},Le=(Ce(Pe,Ne=s.a),Pe.get=function(e){return e.getContribution(Pe.ID)},Pe.prototype.update=function(e){this._ui.getValue().update(e)},Pe.prototype.showCodeActions=function(e,t,n){return this._ui.getValue().showCodeActionList(e,t,n,{includeDisabledActions:!1})},Pe.prototype.manualTriggerAtCurrentPosition=function(e,t,n){if(this._editor.hasModel()){g.a.get(this._editor).closeMessage();var o=this._editor.getPosition();this._trigger({type:2,filter:t,autoApply:n,context:{notAvailableMessage:e,position:o}})}},Pe.prototype._trigger=function(e){return this._model.trigger(e)},Pe.prototype._applyCodeAction=function(e){return this._instantiationService.invokeFunction(Ie,e,this._editor)},Pe.ID="editor.contrib.quickFixController",Pe=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([Se(1,se.b),Se(2,ae.c),Se(3,ce.a),Se(4,m.a)],Pe));function Pe(e,t,n,i,r){var a=Ne.call(this)||this;return a._instantiationService=r,a._editor=e,a._model=a._register(new be(a._editor,t,n,i)),a._register(a._model.onDidChangeState((function(e){return a.update(e)}))),a._ui=new o((function(){return a._register(new ee(e,je.Id,Qe.Id,{applyCodeAction:function(e,t){return Oe(a,void 0,void 0,(function(){return xe(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:1,filter:{}}),[7];case 3:return[2]}}))}))}},a._instantiationService))})),a}function Ie(e,t,n){return Oe(this,void 0,void 0,(function(){var o,i,r,a,s,l;return xe(this,(function(c){switch(c.label){case 0:return o=e.get(u.a),i=e.get(re.b),r=e.get(ue.a),a=e.get(le.a),r.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.title,codeActionKind:t.kind,codeActionIsPreferred:!!t.isPreferred}),t.edit?[4,o.apply(t.edit,{editor:n})]:[3,2];case 1:c.sent(),c.label=2;case 2:if(!t.command)return[3,6];c.label=3;case 3:return c.trys.push([3,5,,6]),[4,i.executeCommand.apply(i,Ee([t.command.id],t.command.arguments||[]))];case 4:return c.sent(),[3,6];case 5:return s=c.sent(),l="string"==typeof(d=s)?d:d instanceof Error&&"string"==typeof d.message?d.message:void 0,a.error("string"==typeof l?l:B.a("applyCodeActionFailed","An unknown error occurred while applying the code action")),[3,6];case 6:return[2]}var d}))}))}function Te(e,t,n,o){if(e.hasModel()){var i=Le.get(e);i&&i.manualTriggerAtCurrentPosition(t,n,o)}}var Me,je=(Ce(Re,Me=c.b),Re.prototype.run=function(e,t){return Te(t,B.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},Re.Id="editor.action.quickFix",Re);function Re(){return Me.call(this,{id:Re.Id,label:B.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:ae.a.and(d.a.writable,d.a.hasCodeActionsProvider),kbOpts:{kbExpr:d.a.editorTextFocus,primary:2132,weight:100}})||this}var Ae,Fe=(Ce(Ve,Ae=c.c),Ve.prototype.runEditorCommand=function(e,t,n){var o=C.a.fromUser(n,{kind:C.b.Empty,apply:"ifSingle"});return Te(t,"string"==typeof(null==n?void 0:n.kind)?o.preferred?B.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):B.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):o.preferred?B.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):B.a("editor.action.codeAction.noneMessage","No code actions available"),{include:o.kind,includeSourceActions:!0,onlyIncludePreferredActions:o.preferred},o.apply)},Ve);function Ve(){return Ae.call(this,{id:h.a,precondition:ae.a.and(d.a.writable,d.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:De}]}})||this}var We,Be=(Ce(He,We=c.b),He.prototype.run=function(e,t,n){var o=C.a.fromUser(n,{kind:C.b.Refactor,apply:"never"});return Te(t,"string"==typeof(null==n?void 0:n.kind)?o.preferred?B.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):B.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):o.preferred?B.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):B.a("editor.action.refactor.noneMessage","No refactorings available"),{include:C.b.Refactor.contains(o.kind)?o.kind:C.b.None,onlyIncludePreferredActions:o.preferred},o.apply)},He);function He(){return We.call(this,{id:h.e,label:B.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:ae.a.and(d.a.writable,d.a.hasCodeActionsProvider),kbOpts:{kbExpr:d.a.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:ae.a.and(d.a.writable,ke(C.b.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:De}]}})||this}var ze,Ke=(Ce(Ue,ze=c.b),Ue.prototype.run=function(e,t,n){var o=C.a.fromUser(n,{kind:C.b.Source,apply:"never"});return Te(t,"string"==typeof(null==n?void 0:n.kind)?o.preferred?B.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):B.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):o.preferred?B.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):B.a("editor.action.source.noneMessage","No source actions available"),{include:C.b.Source.contains(o.kind)?o.kind:C.b.None,includeSourceActions:!0,onlyIncludePreferredActions:o.preferred},o.apply)},Ue);function Ue(){return ze.call(this,{id:h.f,label:B.a("source.label","Source Action..."),alias:"Source Action...",precondition:ae.a.and(d.a.writable,d.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:ae.a.and(d.a.writable,ke(C.b.Source))},description:{description:"Source Action...",args:[{name:"args",schema:De}]}})||this}var qe,Ge=(Ce(Ye,qe=c.b),Ye.prototype.run=function(e,t){return Te(t,B.a("editor.action.organize.noneMessage","No organize imports action available"),{include:C.b.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")},Ye);function Ye(){return qe.call(this,{id:h.d,label:B.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:ae.a.and(d.a.writable,ke(C.b.SourceOrganizeImports)),kbOpts:{kbExpr:d.a.editorTextFocus,primary:1581,weight:100}})||this}var Ze,$e=(Ce(Xe,Ze=c.b),Xe.prototype.run=function(e,t){return Te(t,B.a("fixAll.noneMessage","No fix all action available"),{include:C.b.SourceFixAll,includeSourceActions:!0},"ifSingle")},Xe);function Xe(){return Ze.call(this,{id:h.b,label:B.a("fixAll.label","Fix All"),alias:"Fix All",precondition:ae.a.and(d.a.writable,ke(C.b.SourceFixAll))})||this}var Je,Qe=(Ce(et,Je=c.b),et.prototype.run=function(e,t){return Te(t,B.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:C.b.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},et.Id="editor.action.autoFix",et);function et(){return Je.call(this,{id:et.Id,label:B.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:ae.a.and(d.a.writable,ke(C.b.QuickFix)),kbOpts:{kbExpr:d.a.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})||this}},function(e,t,n){"use strict";var o=n(445),i=n(446),r=n(439),a=n(504),s=n(448),l=n(456),c=n(573),u=n(775),d=n(897),h=(n(1361),n(443)),p=n(490),f=n(442),g=n(596),m=n(554),v=n(957),y=n(440),b=n(495),_=n(787),w=n(960),C=(n(1362),n(444)),S=n(505),O={badgeBackground:p.a.fromHex("#4D4D4D"),badgeForeground:p.a.fromHex("#FFFFFF")},x=(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=Object(C.r)(this.countFormat,this.count),this.element.title=Object(C.r)(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 E(e,t){this.count=0,this.options=t||Object.create(null),Object(S.g)(this.options,O,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(h.q)(e,Object(h.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}var k,N=n(898),D=n(451),L=n(826),P=n(956),I=n(531),T=n(760),M=n(961),j=(k=function(e,t){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),R=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},A=function(e,t){return function(n,o){t(n,o,e)}},F=(V.prototype.hasChildren=function(e){return e instanceof d.c||e instanceof d.a&&!e.failure},V.prototype.getChildren=function(e){if(e instanceof d.c)return e.groups;if(e instanceof d.a)return e.resolve(this._resolverService).then((function(e){return e.children}));throw new Error("bad tree")},V=R([A(0,_.a)],V));function V(e){this._resolverService=e}var W=(B.prototype.getHeight=function(){return 23},B.prototype.getTemplateId=function(e){return e instanceof d.a?Z.id:Q.id},B);function B(){}var H=(z.prototype.getKeyboardNavigationLabel=function(e){if(e instanceof d.b){var t=e.parent.preview,n=t&&t.preview(e.range);if(n)return n.value}return Object(m.b)(e.uri)},z=R([A(0,I.a)],z));function z(e){this._keybindingService=e}var K=(U.prototype.getId=function(e){return e instanceof d.b?e.id:e.uri},U);function U(){}var q,G=(j(Y,q=r.a),Y.prototype.set=function(e,t){var n=Object(m.d)(e.uri);this.file.setLabel(Object(P.a)(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(Object(o.a)("referencesFailre","Failed to resolve file.")):1<i?this.badge.setTitleFormat(Object(o.a)("referencesCount","{0} references",i)):this.badge.setTitleFormat(Object(o.a)("referenceCount","{0} reference",i))},Y=R([A(1,N.a),A(2,D.c)],Y));function Y(e,t,n){var o=q.call(this)||this;o._uriLabel=t;var i=document.createElement("div");return h.f(i,"reference-file"),o.file=o._register(new w.a(i,{supportHighlights:!0})),o.badge=new x(h.q(i,h.a(".count"))),o._register(Object(L.a)(o.badge,n)),e.appendChild(i),o}var Z=($.prototype.renderTemplate=function(e){return this._instantiationService.createInstance(G,e)},$.prototype.renderElement=function(e,t,n){n.set(e.element,Object(T.c)(e.filterData))},$.prototype.disposeTemplate=function(e){e.dispose()},$.id="FileReferencesRenderer",$=R([A(0,s.a)],$));function $(e){this._instantiationService=e,this.templateId=$.id}var X=(J.prototype.set=function(e,t){var n=e.parent.preview,o=n&&n.preview(e.range);if(o){var i=o.value,r=o.highlight;t&&!T.a.isDefault(t)?(h.Y(this.label.element,"referenceMatch",!1),this.label.set(i,Object(T.c)(t))):(h.Y(this.label.element,"referenceMatch",!0),this.label.set(i,[r]))}else this.label.set(Object(m.b)(e.uri)+":"+(e.range.startLineNumber+1)+":"+(e.range.startColumn+1))},J);function J(e){this.label=new M.a(e,!1)}var Q=(ee.prototype.renderTemplate=function(e){return new X(e)},ee.prototype.renderElement=function(e,t,n){n.set(e.element,e.filterData)},ee.prototype.disposeTemplate=function(){},ee.id="OneReferenceRenderer",ee);function ee(){this.templateId=ee.id}var te=(ne.prototype.getAriaLabel=function(e){return e.ariaMessage},ne);function ne(){}var oe,ie=n(969),re=n(461),ae=n(916),se=(n(1365),n(465)),le=n(962),ce=n(459),ue=n(891),de=n(686),he=(oe=function(e,t){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pe=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},fe={separatorBorder:p.a.transparent},ge=(Object.defineProperty(me.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"visible",{get:function(){return void 0===this._cachedVisibleSize},enumerable:!0,configurable:!0}),me.prototype.setVisible=function(e,t){e!==this.visible&&(e?(this.size=Object(le.a)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),h.Y(this.container,"visible",e),this.view.setVisible&&this.view.setVisible(e))},Object.defineProperty(me.prototype,"minimumSize",{get:function(){return this.visible?this.view.minimumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"viewMinimumSize",{get:function(){return this.view.minimumSize},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"maximumSize",{get:function(){return this.visible?this.view.maximumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"viewMaximumSize",{get:function(){return this.view.maximumSize},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"priority",{get:function(){return this.view.priority},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"snap",{get:function(){return!!this.view.snap},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"enabled",{set:function(e){this.container.style.pointerEvents=e?null:"none"},enumerable:!0,configurable:!0}),me.prototype.layout=function(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)},me.prototype.dispose=function(){return this.disposable.dispose(),this.view},me);function me(e,t,n,o){this.container=e,this.view=t,this.disposable=o,this._cachedVisibleSize=void 0,"number"==typeof n?(this._size=n,this._cachedVisibleSize=void 0,h.f(e,"visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}var ve,ye=(he(be,ve=ge),be.prototype.layoutContainer=function(e){this.container.style.top=e+"px",this.container.style.height=this.size+"px"},be);function be(){return null!==ve&&ve.apply(this,arguments)||this}var _e,we,Ce,Se,Oe,xe=(he(Ee,_e=ge),Ee.prototype.layoutContainer=function(e){this.container.style.left=e+"px",this.container.style.width=this.size+"px"},Ee);function Ee(){return null!==_e&&_e.apply(this,arguments)||this}(Ce=we=we||{})[Ce.Idle=0]="Idle",Ce[Ce.Busy=1]="Busy",(Oe=Se=Se||{}).Distribute={type:"distribute"},Oe.Split=function(e){return{type:"split",index:e}},Oe.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}};var ke,Ne=(he(De,ke=r.a),Object.defineProperty(De.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++)n[t].sash.orthogonalStartSash=e;this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++)n[t].sash.orthogonalEndSash=e;this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"startSnappingEnabled",{get:function(){return this._startSnappingEnabled},set:function(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"endSnappingEnabled",{get:function(){return this._endSnappingEnabled},set:function(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())},enumerable:!0,configurable:!0}),De.prototype.style=function(e){e.separatorBorder.isTransparent()?(h.P(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(h.f(this.el,"separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))},De.prototype.addView=function(e,t,n){void 0===n&&(n=this.viewItems.length),this.doAddView(e,t,n,!1)},De.prototype.layout=function(e,t){var n=this,o=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(var i=0;i<this.viewItems.length;i++){var r=this.viewItems[i];r.size=Object(le.a)(Math.round(this.proportions[i]*e),r.minimumSize,r.maximumSize)}else{var a=Object(ce.u)(this.viewItems.length),s=a.filter((function(e){return 1===n.viewItems[e].priority})),l=a.filter((function(e){return 2===n.viewItems[e].priority}));this.resize(this.viewItems.length-1,e-o,void 0,s,l)}this.distributeEmptySpace(),this.layoutViews()},De.prototype.saveProportions=function(){var e=this;this.proportionalLayout&&0<this.contentSize&&(this.proportions=this.viewItems.map((function(t){return t.size/e.contentSize})))},De.prototype.onSashStart=function(e){for(var t=this,n=e.sash,o=e.start,i=e.alt,a=0,s=this.viewItems;a<s.length;a++)s[a].enabled=!1;var l=Object(ce.k)(this.sashItems,(function(e){return e.sash===n})),c=Object(r.e)(Object(de.a)(document.body,"keydown")((function(e){return u(t.sashDragState.current,e.altKey)})),Object(de.a)(document.body,"keyup")((function(){return u(t.sashDragState.current,!1)}))),u=function(e,n){var o,i,r=t.viewItems.map((function(e){return e.size})),a=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;if(t.inverseAltBehavior&&(n=!n),n&&(s=l===t.sashItems.length-1?(a=((_=t.viewItems[l]).minimumSize-_.size)/2,(_.maximumSize-_.size)/2):(a=((_=t.viewItems[l+1]).size-_.maximumSize)/2,(_.size-_.minimumSize)/2)),!n){var u=Object(ce.u)(l,-1),d=Object(ce.u)(l+1,t.viewItems.length),h=u.reduce((function(e,n){return e+(t.viewItems[n].minimumSize-r[n])}),0),p=u.reduce((function(e,n){return e+(t.viewItems[n].viewMaximumSize-r[n])}),0),f=0===d.length?Number.POSITIVE_INFINITY:d.reduce((function(e,n){return e+(r[n]-t.viewItems[n].minimumSize)}),0),g=0===d.length?Number.NEGATIVE_INFINITY:d.reduce((function(e,n){return e+(r[n]-t.viewItems[n].viewMaximumSize)}),0),m=Math.max(h,g),v=Math.min(f,p),y=t.findFirstSnapIndex(u),b=t.findFirstSnapIndex(d);if("number"==typeof y){var _=t.viewItems[y],w=Math.floor(_.viewMinimumSize/2);o={index:y,limitDelta:_.visible?m-w:m+w,size:_.size}}"number"==typeof b&&(_=t.viewItems[b],w=Math.floor(_.viewMinimumSize/2),i={index:b,limitDelta:_.visible?v+w:v-w,size:_.size})}t.sashDragState={start:e,current:e,index:l,sizes:r,minDelta:a,maxDelta:s,alt:n,snapBefore:o,snapAfter:i,disposable:c}};u(o,i)},De.prototype.onSashChange=function(e){var t=e.current,n=this.sashDragState,o=n.index,i=n.start,r=n.sizes,a=n.alt,s=n.minDelta,l=n.maxDelta,c=n.snapBefore,u=n.snapAfter,d=(this.sashDragState.current=t)-i,h=this.resize(o,d,r,void 0,void 0,s,l,c,u);if(a){var p=o===this.sashItems.length-1,f=this.viewItems.map((function(e){return e.size})),g=p?o:o+1,m=this.viewItems[g],v=m.size-m.maximumSize,y=m.size-m.minimumSize,b=p?o-1:o+1;this.resize(b,-h,f,void 0,void 0,v,y)}this.distributeEmptySpace(),this.layoutViews()},De.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++)n[t].enabled=!0},De.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=Object(le.a)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&0<n?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))},De.prototype.resizeView=function(e,t){var n=this;if(this.state!==we.Idle)throw new Error("Cant modify splitview");if(this.state=we.Busy,!(e<0||e>=this.viewItems.length)){var o=Object(ce.u)(this.viewItems.length).filter((function(t){return t!==e})),i=pe(o.filter((function(e){return 1===n.viewItems[e].priority})),[e]),r=o.filter((function(e){return 2===n.viewItems[e].priority})),a=this.viewItems[e];t=Math.round(t),t=Object(le.a)(t,a.minimumSize,Math.min(a.maximumSize,this.size)),a.size=t,this.relayout(i,r),this.state=we.Idle}},De.prototype.distributeViewSizes=function(){for(var e=this,t=[],n=0,o=0,i=this.viewItems;o<i.length;o++)0<(l=i[o]).maximumSize-l.minimumSize&&(t.push(l),n+=l.size);for(var r=Math.floor(n/t.length),a=0,s=t;a<s.length;a++){var l;(l=s[a]).size=Object(le.a)(r,l.minimumSize,l.maximumSize)}var c=Object(ce.u)(this.viewItems.length),u=c.filter((function(t){return 1===e.viewItems[t].priority})),d=c.filter((function(t){return 2===e.viewItems[t].priority}));this.relayout(u,d)},De.prototype.getViewSize=function(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size},De.prototype.doAddView=function(e,t,n,o){var i=this;if(void 0===n&&(n=this.viewItems.length),this.state!==we.Idle)throw new Error("Cant modify splitview");this.state=we.Busy;var a=h.a(".split-view-view");n===this.viewItems.length?this.viewContainer.appendChild(a):this.viewContainer.insertBefore(a,this.viewContainer.children.item(n));var s,l=e.onDidChange((function(e){return i.onViewChange(p,e)})),c=Object(r.h)((function(){return i.viewContainer.removeChild(a)})),u=Object(r.e)(l,c);s="number"==typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;var d,p=new(0===this.orientation?ye:xe)(a,e,s,u);if(this.viewItems.splice(n,0,p),1<this.viewItems.length){var g=0===this.orientation?1:0,m=0===this.orientation?{getHorizontalSashTop:function(e){return i.getSashPosition(e)}}:{getVerticalSashLeft:function(e){return i.getSashPosition(e)}},v=new ue.a(this.sashContainer,m,{orientation:g,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),y=0===this.orientation?function(e){return{sash:v,start:e.startY,current:e.currentY,alt:e.altKey}}:function(e){return{sash:v,start:e.startX,current:e.currentX,alt:e.altKey}},b=f.b.map(v.onDidStart,y)(this.onSashStart,this),_=f.b.map(v.onDidChange,y)(this.onSashChange,this),w=f.b.map(v.onDidEnd,(function(){return Object(ce.k)(i.sashItems,(function(e){return e.sash===v}))}))(this.onSashEnd,this),C=v.onDidReset((function(){var e=Object(ce.k)(i.sashItems,(function(e){return e.sash===v})),t=Object(ce.u)(e,-1),n=Object(ce.u)(e+1,i.viewItems.length),o=i.findFirstSnapIndex(t),r=i.findFirstSnapIndex(n);"number"==typeof o&&!i.viewItems[o].visible||"number"==typeof r&&!i.viewItems[r].visible||i._onDidSashReset.fire(e)})),S=Object(r.e)(b,_,w,C,v),O={sash:v,disposable:S};this.sashItems.splice(n-1,0,O)}a.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(d=[t.index]),o||this.relayout([n],d),this.state=we.Idle,o||"number"==typeof t||"distribute"!==t.type||this.distributeViewSizes()},De.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()},De.prototype.resize=function(e,t,n,o,i,r,a,s,l){var c=this;if(void 0===n&&(n=this.viewItems.map((function(e){return e.size}))),void 0===r&&(r=Number.NEGATIVE_INFINITY),void 0===a&&(a=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var u=Object(ce.u)(e,-1),d=Object(ce.u)(e+1,this.viewItems.length);if(i)for(var h=0,p=i;h<p.length;h++){var f=p[h];Object(ce.t)(u,f),Object(ce.t)(d,f)}if(o)for(var g=0,m=o;g<m.length;g++){var v=m[g];Object(ce.s)(u,v),Object(ce.s)(d,v)}var y,b=u.map((function(e){return c.viewItems[e]})),_=u.map((function(e){return n[e]})),w=d.map((function(e){return c.viewItems[e]})),C=d.map((function(e){return n[e]})),S=u.reduce((function(e,t){return e+(c.viewItems[t].minimumSize-n[t])}),0),O=u.reduce((function(e,t){return e+(c.viewItems[t].maximumSize-n[t])}),0),x=0===d.length?Number.POSITIVE_INFINITY:d.reduce((function(e,t){return e+(n[t]-c.viewItems[t].minimumSize)}),0),E=0===d.length?Number.NEGATIVE_INFINITY:d.reduce((function(e,t){return e+(n[t]-c.viewItems[t].maximumSize)}),0),k=Math.max(S,E,r),N=Math.min(x,O,a),D=!1;if(s){var L=this.viewItems[s.index];D=(y=t>=s.limitDelta)!==L.visible,L.setVisible(y,s.size)}if(!D&&l&&(L=this.viewItems[l.index],D=(y=t<l.limitDelta)!==L.visible,L.setVisible(y,l.size)),D)return this.resize(e,t,n,o,i,r,a);for(var P=0,I=t=Object(le.a)(t,k,N);P<b.length;P++){var T=b[P];I-=(j=Object(le.a)(_[P]+I,T.minimumSize,T.maximumSize))-_[P],T.size=j}P=0;for(var M=t;P<w.length;P++){var j;T=w[P],M+=(j=Object(le.a)(C[P]-M,T.minimumSize,T.maximumSize))-C[P],T.size=j}return t},De.prototype.distributeEmptySpace=function(e){for(var t=this,n=this.viewItems.reduce((function(e,t){return e+t.size}),0),o=this.size-n,i=Object(ce.u)(this.viewItems.length-1,-1),r=i.filter((function(e){return 1===t.viewItems[e].priority})),a=0,s=i.filter((function(e){return 2===t.viewItems[e].priority}));a<s.length;a++){var l=s[a];Object(ce.t)(i,l)}for(var c=0,u=r;c<u.length;c++)l=u[c],Object(ce.s)(i,l);"number"==typeof e&&Object(ce.s)(i,e);for(var d=0;0!==o&&d<i.length;d++){var h=this.viewItems[i[d]],p=Object(le.a)(h.size+o,h.minimumSize,h.maximumSize);o-=p-h.size,h.size=p}},De.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 o=n[t];o.layout(e,this.layoutContext),e+=o.size}this.sashItems.forEach((function(e){return e.sash.layout()})),this.updateSashEnablement()},De.prototype.updateSashEnablement=function(){var e=!1,t=this.viewItems.map((function(t){return e=0<t.size-t.minimumSize||e}));e=!1;var n=this.viewItems.map((function(t){return e=0<t.maximumSize-t.size||e})),o=pe(this.viewItems).reverse();e=!1;var i=o.map((function(t){return e=0<t.size-t.minimumSize||e})).reverse();e=!1;for(var r=o.map((function(t){return e=0<t.maximumSize-t.size||e})).reverse(),a=0,s=0;s<this.sashItems.length;s++){var l=this.sashItems[s].sash;a+=this.viewItems[s].size;var c=!(t[s]&&r[s+1]),u=!(n[s]&&i[s+1]);if(c&&u){var d=Object(ce.u)(s,-1),h=Object(ce.u)(s+1,this.viewItems.length),p=this.findFirstSnapIndex(d),f=this.findFirstSnapIndex(h),g="number"==typeof p&&!this.viewItems[p].visible,m="number"==typeof f&&!this.viewItems[f].visible;g&&i[s]&&(0<a||this.startSnappingEnabled)?l.state=1:m&&t[s]&&(a<this.contentSize||this.endSnappingEnabled)?l.state=2:l.state=0}else l.state=c&&!u?1:!c&&u?2:3}},De.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},De.prototype.findFirstSnapIndex=function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t];if((a=this.viewItems[o]).visible&&a.snap)return o}for(var i=0,r=e;i<r.length;i++){var a;if(o=r[i],(a=this.viewItems[o]).visible&&0<a.maximumSize-a.minimumSize)return;if(!a.visible&&a.snap)return o}},De.prototype.dispose=function(){ke.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=[]},De);function De(e,t){void 0===t&&(t={});var n=ke.call(this)||this;return n.size=0,n.contentSize=0,n.proportions=void 0,n.viewItems=[],n.sashItems=[],n.state=we.Idle,n._onDidSashChange=n._register(new f.a),n.onDidSashChange=n._onDidSashChange.event,n._onDidSashReset=n._register(new f.a),n._startSnappingEnabled=!0,n._endSnappingEnabled=!0,n.orientation=se.k(t.orientation)?0:t.orientation,n.inverseAltBehavior=!!t.inverseAltBehavior,n.proportionalLayout=!!se.k(t.proportionalLayout)||!!t.proportionalLayout,n.el=document.createElement("div"),h.f(n.el,"monaco-split-view2"),h.f(n.el,0===n.orientation?"vertical":"horizontal"),e.appendChild(n.el),n.sashContainer=h.q(n.el,h.a(".sash-container")),n.viewContainer=h.q(n.el,h.a(".split-view-container")),n.style(t.styles||fe),t.descriptor&&(n.size=t.descriptor.size,t.descriptor.views.forEach((function(e,t){var o=se.k(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},i=e.view;n.doAddView(i,o,t,!0)})),n.contentSize=n.viewItems.reduce((function(e,t){return e+t.size}),0),n.saveProportions()),n}var Le,Pe=(Le=function(e,t){return(Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Le(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ie=function(e,t){return function(n,o){t(n,o,e)}},Te=(Me.prototype.dispose=function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()},Me.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 o=n[t];if(Object(m.e)(o.uri,e.uri))return void this._addDecorations(o)}},Me.prototype._addDecorations=function(e){var t=this;if(this._editor.hasModel()){this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((function(e){return t._onDecorationChanged()})));for(var n=[],o=[],i=0,r=e.children.length;i<r;i++){var a=e.children[i];this._decorationIgnoreSet.has(a.id)||(n.push({range:a.range,options:Me.DecorationOptions}),o.push(i))}var s=this._editor.deltaDecorations([],n);for(i=0;i<s.length;i++)this._decorations.set(s[i],e.children[o[i]])}},Me.prototype._onDecorationChanged=function(){var e=this,t=[],n=this._editor.getModel();if(n){this._decorations.forEach((function(o,i){var r=n.getDecorationRange(i);if(r){var a=!1;y.a.equalsRange(r,o.range)||(!y.a.spansMultipleLines(r)&&o.range.endColumn-o.range.startColumn==r.endColumn-r.startColumn||(a=!0),a?(e._decorationIgnoreSet.add(o.id),t.push(i)):o.range=r)}}));for(var o=0,i=t.length;o<i;o++)this._decorations.delete(t[o]);this._editor.deltaDecorations(t,[])}},Me.prototype.removeDecorations=function(){var e=[];this._decorations.forEach((function(t,n){e.push(n)})),this._editor.deltaDecorations(e,[]),this._decorations.clear()},Me.DecorationOptions=b.a.register({stickiness:1,className:"reference-decoration"}),Me);function Me(e,t){var n=this;this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new r.b,this._callOnModelChange=new r.b,this._callOnDispose.add(this._editor.onDidChangeModel((function(){return n._onModelChanged()}))),this._onModelChanged()}var je=(Re.fromJSON=function(e){var t,n;try{var o=JSON.parse(e);t=o.ratio,n=o.heightInLines}catch(e){}return{ratio:t||.7,heightInLines:n||18}},Re);function Re(){this.ratio=.7,this.heightInLines=18}var Ae,Fe=(Pe(Ve,Ae=ae.c),Ve.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(r.f)(this._preview),Object(r.f)(this._previewNotAvailableMessage),Object(r.f)(this._tree),Object(r.f)(this._previewModelReference),this._splitView.dispose(),Ae.prototype.dispose.call(this)},Ve.prototype._applyTheme=function(e){var t=e.getColor(ae.e)||p.a.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(ae.p)||p.a.transparent,primaryHeadingColor:e.getColor(ae.q),secondaryHeadingColor:e.getColor(ae.r)})},Ve.prototype.show=function(e){this.editor.revealRangeInCenterIfOutsideViewport(e,0),Ae.prototype.show.call(this,e,this.layoutData.heightInLines||18)},Ve.prototype.focusOnReferenceTree=function(){this._tree.domFocus()},Ve.prototype.focusOnPreviewEditor=function(){this._preview.focus()},Ve.prototype.isPreviewEditorFocused=function(){return this._preview.hasTextFocus()},Ve.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"})},Ve.prototype._fillBody=function(e){var t=this;this.setCssClass("reference-zone-widget"),this._messageContainer=h.q(e,h.a("div.messages")),h.J(this._messageContainer),this._splitView=new Ne(e,{orientation:1}),this._previewContainer=h.q(e,h.a("div.preview.inline")),this._preview=this._instantiationService.createInstance(v.a,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},this.editor),h.J(this._previewContainer),this._previewNotAvailableMessage=b.b.createFromString(o.a("missingPreviewMessage","no preview available")),this._treeContainer=h.q(e,h.a("div.ref-tree.inline"));var n={ariaLabel:o.a("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new te,keyboardNavigationLabelProvider:this._instantiationService.createInstance(H),identityProvider:new K,overrideStyles:{listBackground:ae.j}};function i(e,n){e instanceof d.b&&("show"===n&&t._revealReference(e,!1),t._onDidSelectReference.fire({element:e,kind:n,source:"tree"}))}this._tree=this._instantiationService.createInstance(ie.c,"ReferencesWidget",this._treeContainer,new W,[this._instantiationService.createInstance(Z),this._instantiationService.createInstance(Q)],this._instantiationService.createInstance(F),n),this._splitView.addView({onDidChange:f.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(e){t._preview.layout({height:t._dim.height,width:e})}},Se.Distribute),this._splitView.addView({onDidChange:f.b.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)}},Se.Distribute),this._disposables.add(this._splitView.onDidSashChange((function(){t._dim.width&&(t.layoutData.ratio=t._splitView.getViewSize(0)/t._dim.width)}),void 0)),this._tree.onDidChangeFocus((function(e){i(e.elements[0],"show")})),this._tree.onDidOpen((function(e){e.browserEvent instanceof MouseEvent&&(e.browserEvent.ctrlKey||e.browserEvent.metaKey||e.browserEvent.altKey)?i(e.elements[0],"side"):e.browserEvent instanceof KeyboardEvent||e.browserEvent instanceof MouseEvent&&2===e.browserEvent.detail||2===e.browserEvent.tapCount?i(e.elements[0],"goto"):i(e.elements[0],"show")})),h.J(this._treeContainer)},Ve.prototype._onWidth=function(e){this._dim&&this._doLayoutBody(this._dim.height,e)},Ve.prototype._doLayoutBody=function(e,t){Ae.prototype._doLayoutBody.call(this,e,t),this._dim={height:e,width:t},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)},Ve.prototype.setSelection=function(e){var t=this;return this._revealReference(e,!0).then((function(){t._model&&(t._tree.setSelection([e]),t._tree.setFocus([e]))}))},Ve.prototype.setModel=function(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()},Ve.prototype._onNewModel=function(){var e=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerHTML=o.a("noResults","No results"),h.X(this._messageContainer),Promise.resolve(void 0)):(h.J(this._messageContainer),this._decorationsManager=new Te(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,o=t.target;if(2===n.detail){var i=e._getFocusedReference();i&&e._onDidSelectReference.fire({element:{uri:i.uri,range:o.range},kind:n.ctrlKey||n.metaKey||n.altKey?"side":"open",source:"editor"})}}))),h.f(this.container,"results-loaded"),h.X(this._treeContainer),h.X(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)},Ve.prototype._getFocusedReference=function(){var e=this._tree.getFocus()[0];return e instanceof d.b?e:e instanceof d.a&&0<e.children.length?e.children[0]:void 0},Ve.prototype._revealReference=function(e,t){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,i,a,s,l;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(c){switch(c.label){case 0:return this._revealedReference===e?[2]:((this._revealedReference=e).uri.scheme!==g.b.inMemory?this.setTitle(Object(m.c)(e.uri),this._uriLabel.getUriLabel(Object(m.d)(e.uri))):this.setTitle(o.a("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:c.sent(),this._tree.reveal(e),c.label=3;case 3:return[4,n];case 4:return i=c.sent(),this._model?(Object(r.f)(this._previewModelReference),(a=i.object)?(s=this._preview.getModel()===a.textEditorModel?0:1,l=y.a.lift(e.range).collapseToStart(),this._previewModelReference=i,this._preview.setModel(a.textEditorModel),this._preview.setSelection(l),this._preview.revealRangeInCenter(l,s)):(this._preview.setModel(this._previewNotAvailableMessage),i.dispose())):i.dispose(),[2]}}))}))},Ve=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([Ie(3,D.c),Ie(4,_.a),Ie(5,s.a),Ie(6,ae.a),Ie(7,N.a)],Ve));function Ve(e,t,n,o,i,a,s,l){var c=Ae.call(this,e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return c._defaultTreeKeyboardSupport=t,c.layoutData=n,c._textModelResolverService=i,c._instantiationService=a,c._peekViewService=s,c._uriLabel=l,c._disposeOnNewModel=new r.b,c._callOnDispose=new r.b,c._onDidSelectReference=new f.a,c.onDidSelectReference=c._onDidSelectReference.event,c._dim={height:0,width:0},c._applyTheme(o.getTheme()),c._callOnDispose.add(o.onThemeChange(c._applyTheme.bind(c))),c._peekViewService.addExclusiveWidget(e,c),c.create(),c}Object(D.e)((function(e,t){var n=e.getColor(ae.m);n&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+n+"; }");var o=e.getColor(ae.h);o&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+o+"; }");var i=e.getColor(ae.i);i&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+i+"; box-sizing: border-box; }");var r=e.getColor(re.b);r&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+r+"; box-sizing: border-box; }");var a=e.getColor(ae.j);a&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+a+"; }");var s=e.getColor(ae.l);s&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+s+"; }");var l=e.getColor(ae.k);l&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+l+"; }");var c=e.getColor(ae.n);c&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+c+"; }");var u=e.getColor(ae.o);u&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+u+" !important; }");var d=e.getColor(ae.f);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(ae.g);h&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+h+";}")}));var We=n(450),Be=n(532),He=n(453),ze=n(788),Ke=n(548),Ue=n(489);n.d(t,"a",(function(){return Ye}));var qe=function(e,t){return function(n,o){t(n,o,e)}},Ge=new l.d("referenceSearchVisible",!1),Ye=(Ze.get=function(e){return e.getContribution(Ze.ID)},Ze.prototype.dispose=function(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(r.f)(this._widget),Object(r.f)(this._model),this._widget=void 0,this._model=void 0},Ze.prototype.toggleWidget=function(e,t,n){var i,r=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(){r.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((function(){r._ignoreModelChangeEvent||r.closeWidget()})));var a="peekViewLayout",s=je.fromJSON(this._storageService.get(a,0,"{}"));this._widget=this._instantiationService.createInstance(Fe,this._editor,this._defaultTreeKeyboardSupport,s),this._widget.setTitle(o.a("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((function(){t.cancel(),r._widget&&(r._storageService.store(a,JSON.stringify(r._widget.layoutData),0),r._widget=void 0),r.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((function(e){var t=e.element,o=e.kind;if(t)switch(o){case"open":"editor"===e.source&&r._configurationService.getValue("editor.stablePeek")||r.openReference(t,!1);break;case"side":r.openReference(t,!0);break;case"goto":n?r._gotoReference(t):r.openReference(t,!1)}})));var l=++this._requestIdPool;t.then((function(t){if(l===r._requestIdPool&&r._widget)return r._model&&r._model.dispose(),r._model=t,r._widget.setModel(r._model).then((function(){if(r._widget&&r._model&&r._editor.hasModel()){r._model.isEmpty?r._widget.setMetaTitle(""):r._widget.setMetaTitle(o.a("metaTitle.N","{0} ({1})",r._model.title,r._model.references.length));var t=r._editor.getModel().uri,n=new We.a(e.startLineNumber,e.startColumn),i=r._model.nearestReference(t,n);if(i)return r._widget.setSelection(i).then((function(){r._widget&&"editor"===r._editor.getOption(65)&&r._widget.focusOnPreviewEditor()}))}}))}),(function(e){r._notificationService.error(e)}))}},Ze.prototype.changeFocusBetweenPreviewAndReferences=function(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())},Ze.prototype.goToNextOrPreviousReference=function(e){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var t,n,o,i,r;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(a){switch(a.label){case 0:return this._editor.hasModel()&&this._model&&this._widget&&(t=this._widget.position)&&(n=this._model.nearestReference(this._editor.getModel().uri,t))?(o=this._model.nextOrPreviousReference(n,e),i=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused(),[4,this._widget.setSelection(o)]):[2];case 1:return a.sent(),[4,this._gotoReference(o)];case 2:return a.sent(),i?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor(),[2]}}))}))},Ze.prototype.closeWidget=function(e){void 0===e&&(e=!0),this._referenceSearchVisible.reset(),this._disposables.clear(),Object(r.f)(this._widget),Object(r.f)(this._model),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1},Ze.prototype._gotoReference=function(e){var t=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var n=y.a.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n}},this._editor).then((function(e){var o;if(t._ignoreModelChangeEvent=!1,e&&t._widget)if(t._editor===e)t._widget.show(n),t._widget.focusOnReferenceTree();else{var i=Ze.get(e),r=t._model.clone();t.closeWidget(),e.focus(),i.toggleWidget(n,Object(He.f)((function(e){return Promise.resolve(r)})),null!==(o=t._peekMode)&&void 0!==o&&o)}else t.closeWidget()}),(function(e){t._ignoreModelChangeEvent=!1,Object(i.e)(e)}))},Ze.prototype.openReference=function(e,t){t||this.closeWidget();var n=e.uri,o=e.range;this._editorService.openCodeEditor({resource:n,options:{selection:o}},this._editor,t)},Ze.ID="editor.contrib.referencesController",Ze=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([qe(2,l.c),qe(3,a.a),qe(4,Be.a),qe(5,s.a),qe(6,u.a),qe(7,c.a)],Ze));function Ze(e,t,n,o,i,a,s,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=o,this._notificationService=i,this._instantiationService=a,this._storageService=s,this._configurationService=l,this._disposables=new r.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Ge.bindTo(n)}function $e(e,t){var n=Object(ae.d)(e);if(n){var o=Ye.get(n);o&&t(o)}}ze.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(Ke.a)(2089,60),when:l.a.or(Ge,ae.b.inPeekEditor),handler:function(e){$e(e,(function(e){e.changeFocusBetweenPreviewAndReferences()}))}}),ze.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:l.a.or(Ge,ae.b.inPeekEditor),handler:function(e){$e(e,(function(e){e.goToNextOrPreviousReference(!0)}))}}),ze.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:l.a.or(Ge,ae.b.inPeekEditor),handler:function(e){$e(e,(function(e){e.goToNextOrPreviousReference(!1)}))}}),Ue.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),Ue.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),Ue.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),Ue.a.registerCommand("closeReferenceSearch",(function(e){return $e(e,(function(e){return e.closeWidget()}))})),ze.a.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:l.a.and(ae.b.inPeekEditor,l.a.not("config.editor.stablePeek"))}),ze.a.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:l.a.and(Ge,l.a.not("config.editor.stablePeek"))}),ze.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:l.a.and(Ge,ie.d),handler:function(e){var t,n=null===(t=e.get(ie.a).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof d.b&&$e(e,(function(e){return e.openReference(n[0],!0)}))}}),Ue.a.registerCommand("openReference",(function(e){var t,n=null===(t=e.get(ie.a).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof d.b&&$e(e,(function(e){return e.openReference(n[0],!1)}))}))},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ConfigConsumer",{enumerable:!0,get:function(){return s.ConfigConsumer}}),t.default=t.configConsumerProps=void 0;var o,i=c(n(0)),r=c(n(1981)),a=(o=n(1410))&&o.__esModule?o:{default:o},s=n(1988);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=o?Object.getOwnPropertyDescriptor(e,i):null;r&&(r.get||r.set)?Object.defineProperty(n,i,r):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.configConsumerProps=["getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];var m=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=p(this,f(e).apply(this,arguments))).getPrefixCls=function(e,n){var o=t.props.prefixCls,i=void 0===o?"ant":o;return n||(e?"".concat(i,"-").concat(e):i)},t.renderProvider=function(e,n){var o=t.props,a=o.children,l=o.getPopupContainer,c=o.renderEmpty,u=o.csp,h=o.autoInsertSpaceInButton,p=o.locale,f=o.pageHeader,g=d(d({},e),{getPrefixCls:t.getPrefixCls,csp:u,autoInsertSpaceInButton:h});return l&&(g.getPopupContainer=l),c&&(g.renderEmpty=c),f&&(g.pageHeader=f),i.createElement(s.ConfigContext.Provider,{value:g},i.createElement(r.default,{locale:p||n,_ANT_MARK__:r.ANT_MARK},a))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(e,i.Component),t=e,(n=[{key:"render",value:function(){var e=this;return i.createElement(a.default,null,(function(t,n,o){return i.createElement(s.ConfigConsumer,null,(function(t){return e.renderProvider(t,o)}))}))}}])&&h(t.prototype,n),e}();t.default=m},function(e,t,n){"use strict";n(104);var o=n(60),i=n(8),r=n(7),a=n(10),s=n(9),l=n(11),c=n(0),u=n.n(c),d=function(e){function t(e){return Object(i.a)(this,t),Object(a.a)(this,Object(s.a)(t).call(this,e))}return Object(l.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props.style;return u.a.createElement("div",{className:"edu-tab-con-box clearfix edu-txt-center",style:e},u.a.createElement("style",null,"\n .edu-tab-con-box{\n padding:100px 0px;\n }\n .ant-modal-body .edu-tab-con-box{\n padding:0px!important;\n }\n img.edu-nodata-img{\n margin: 40px auto 20px;\n }\n "),u.a.createElement(o.a,{tip:"\u6b63\u5728\u83b7\u53d6\u76f8\u5173\u6570\u636e..."}))}}]),t}(c.Component);t.a=d},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processSize=function(e){return/^\d+$/.test(e)?"".concat(e,"px"):e},t.noop=function(){}},function(e,t,n){"use strict";n(46),n(1390)},,,,,,function(e,t,n){"use strict";var o=n(0),i=n(1),r=n(52),a=n(33),s=n(12),l=n.n(s),c=n(25),u=n(77);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return e?e.toString().split("").reverse().map((function(e){var t=Number(e);return isNaN(t)?e:t})):[]}var v=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,f(e).call(this,t))).onAnimated=function(){var e=n.props.onAnimated;e&&e()},n.renderScrollNumber=function(e){var t=e.getPrefixCls,i=n.props,r=i.prefixCls,s=i.className,c=i.style,u=i.title,d=i.component,p=void 0===d?"sup":d,f=i.displayComponent,g=Object(a.default)(n.props,["count","onAnimated","component","prefixCls","displayComponent"]),m=t("scroll-number",r),v=h(h({},g),{className:l()(m,s),title:u});return c&&c.borderColor&&(v.style=h(h({},c),{boxShadow:"0 0 0 1px ".concat(c.borderColor," inset")})),f?o.cloneElement(f,{className:l()("".concat(m,"-custom-component"),f.props&&f.props.className)}):o.createElement(p,v,n.renderNumberElement(m))},n.state={animateStarted:!0,count:t.count},n}var t,n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(e,o.Component),t=e,i=[{key:"getDerivedStateFromProps",value:function(e,t){return"count"in e&&t.count!==e.count?{animateStarted:!0}:null}}],(n=[{key:"componentDidUpdate",value:function(e,t){this.lastCount=t.count,this.state.animateStarted&&this.setState((function(e,t){return{animateStarted:!1,count:t.count}}),this.onAnimated)}},{key:"getPositionByNum",value:function(e,t){var n=this.state.count,o=Math.abs(Number(n)),i=Math.abs(Number(this.lastCount)),r=Math.abs(m(this.state.count)[t]),a=Math.abs(m(this.lastCount)[t]);return this.state.animateStarted?10+e:i<o?a<=r?10+e:20+e:r<=a?10+e:e}},{key:"renderCurrentNumber",value:function(e,t,n){if("number"!=typeof t)return o.createElement("span",{key:"symbol",className:"".concat(e,"-symbol")},t);var i=this.getPositionByNum(t,n),r=this.state.animateStarted||void 0===m(this.lastCount)[n];return o.createElement("span",{className:"".concat(e,"-only"),style:{transition:r?"none":void 0,msTransform:"translateY(".concat(100*-i,"%)"),WebkitTransform:"translateY(".concat(100*-i,"%)"),transform:"translateY(".concat(100*-i,"%)")},key:n},function(e,t){for(var n=[],i=0;i<30;i++)n.push(o.createElement("p",{key:i.toString(),className:l()(t,{current:e===i})},i%10));return n}(i,"".concat(e,"-only-unit")))}},{key:"renderNumberElement",value:function(e){var t=this,n=this.state.count;return n&&Number(n)%1==0?m(n).map((function(n,o){return t.renderCurrentNumber(e,n,o)})).reverse():n}},{key:"render",value:function(){return o.createElement(u.a,null,this.renderScrollNumber)}}])&&p(t.prototype,n),i&&p(t,i),e}();v.defaultProps={count:null,onAnimated:function(){}},Object(c.polyfill)(v);var y=v,b=n(632);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function O(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return D}));var k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};function N(e){return-1!==b.a.indexOf(e)}var D=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=O(this,x(e).apply(this,arguments))).renderBadge=function(e){var n,i=e.getPrefixCls,s=t.props,c=s.prefixCls,u=s.scrollNumberPrefixCls,d=s.children,h=s.status,p=s.text,f=s.color,g=k(s,["prefixCls","scrollNumberPrefixCls","children","status","text","color"]),m=["count","showZero","overflowCount","className","style","dot","offset","title"],v=i("badge",c),y=i("scroll-number",u),b=t.renderBadgeNumber(v,y),_=t.renderStatusText(v),S=l()((C(n={},"".concat(v,"-status-dot"),t.hasStatus()),C(n,"".concat(v,"-status-").concat(h),!!h),C(n,"".concat(v,"-status-").concat(f),N(f)),n)),O={};if(f&&!N(f)&&(O.background=f),d||!t.hasStatus())return o.createElement("span",w({},Object(a.default)(g,m),{className:t.getBadgeClassName(v)}),d,o.createElement(r.a,{component:"",showProp:"data-show",transitionName:d?"".concat(v,"-zoom"):"",transitionAppear:!0},b),_);var x=t.getStyleWithOffset(),E=x&&x.color;return o.createElement("span",w({},Object(a.default)(g,m),{className:t.getBadgeClassName(v),style:x}),o.createElement("span",{className:S,style:O}),o.createElement("span",{style:{color:E},className:"".concat(v,"-status-text")},p))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(e,o.Component),t=e,(n=[{key:"getNumberedDispayCount",value:function(){var e=this.props,t=e.count,n=e.overflowCount;return n<t?"".concat(n,"+"):t}},{key:"getDispayCount",value:function(){return this.isDot()?"":this.getNumberedDispayCount()}},{key:"getScrollNumberTitle",value:function(){var e=this.props,t=e.title,n=e.count;return t||("string"==typeof n||"number"==typeof n?n:void 0)}},{key:"getStyleWithOffset",value:function(){var e=this.props,t=e.offset,n=e.style;return t?w({right:-parseInt(t[0],10),marginTop:t[1]},n):n}},{key:"getBadgeClassName",value:function(e){var t,n=this.props,o=n.className,i=n.children;return l()(o,e,(C(t={},"".concat(e,"-status"),this.hasStatus()),C(t,"".concat(e,"-not-a-wrapper"),!i),t))}},{key:"hasStatus",value:function(){var e=this.props,t=e.status,n=e.color;return!!t||!!n}},{key:"isZero",value:function(){var e=this.getNumberedDispayCount();return"0"===e||0===e}},{key:"isDot",value:function(){var e=this.props.dot,t=this.isZero();return e&&!t||this.hasStatus()}},{key:"isHidden",value:function(){var e=this.props.showZero,t=this.getDispayCount(),n=this.isZero(),o=this.isDot();return(null==t||""===t||n&&!e)&&!o}},{key:"renderStatusText",value:function(e){var t=this.props.text;return this.isHidden()||!t?null:o.createElement("span",{className:"".concat(e,"-status-text")},t)}},{key:"renderDispayComponent",value:function(){var e=this.props.count;if(e&&"object"===_(e))return o.cloneElement(e,{style:w(w({},this.getStyleWithOffset()),e.props&&e.props.style)})}},{key:"renderBadgeNumber",value:function(e,t){var n,i=this.props,r=i.status,a=i.count,s=i.color,c=this.getDispayCount(),u=this.isDot(),d=this.isHidden(),h=l()((C(n={},"".concat(e,"-dot"),u),C(n,"".concat(e,"-count"),!u),C(n,"".concat(e,"-multiple-words"),!u&&a&&a.toString&&1<a.toString().length),C(n,"".concat(e,"-status-").concat(r),!!r),C(n,"".concat(e,"-status-").concat(s),N(s)),n)),p=this.getStyleWithOffset();return s&&!N(s)&&((p=p||{}).background=s),d?null:o.createElement(y,{prefixCls:t,"data-show":!d,className:h,count:c,displayComponent:this.renderDispayComponent(),title:this.getScrollNumberTitle(),style:p,key:"scrollNumber"})}},{key:"render",value:function(){return o.createElement(u.a,null,this.renderBadge)}}])&&S(t.prototype,n),e}();D.defaultProps={count:null,showZero:!1,dot:!1,overflowCount:99},D.propTypes={count:i.node,showZero:i.bool,dot:i.bool,overflowCount:i.number}},,function(e,t,n){"use strict";n.r(t),n(1318);var o,i,r=n(478),a=n(443),s=n(488),l=n(943),c=n(635),u=n(597),d=n(439),h=n(452),p=n(444),f=n(479),g=n(449),m=n(469),v=n(1003),y=n(456),b=n(448),_=n(531),w=n(636),C=n(461),S=n(451),O=n(754),x=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},k=function(e,t){return function(n,o){t(n,o,e)}},N=new y.d("accessibilityHelpWidgetVisible",!1),D=(x(L,i=d.a),L.get=function(e){return e.getContribution(L.ID)},L.prototype.show=function(){this._widget.show()},L.prototype.hide=function(){this._widget.hide()},L.ID="editor.contrib.accessibilityHelpController",L=E([k(1,b.a)],L));function L(e,t){var n=i.call(this)||this;return n._editor=e,n._widget=n._register(t.createInstance(I,n._editor)),n}var P,I=(x(T,P=u.a),T.prototype.dispose=function(){this._editor.removeOverlayWidget(this),P.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 o=this._keybindingService.lookupKeybinding(e);return o?p.r(t,o.getAriaLabel()):p.r(n,e)},T.prototype._buildContent=function(){var e=this._editor.getOptions(),t=this._editor.getSelections(),n=0;if(t){var o=this._editor.getModel();o&&t.forEach((function(e){n+=o.getValueLengthInRange(e)}))}var i,r,a=(r=n,(i=t)&&0!==i.length?1===i.length?r?p.r(O.a.singleSelectionRange,i[0].positionLineNumber,i[0].positionColumn,r):p.r(O.a.singleSelection,i[0].positionLineNumber,i[0].positionColumn):r?p.r(O.a.multiSelectionRange,i.length,r):0<i.length?p.r(O.a.multiSelection,i.length):"":O.a.noSelection);e.get(45)?e.get(68)?a+=O.a.readonlyDiffEditor:a+=O.a.editableDiffEditor:e.get(68)?a+=O.a.readonlyEditor:a+=O.a.editableEditor;var s=h.e?O.a.changeConfigToOnMac:O.a.changeConfigToOnWinLinux;switch(e.get(2)){case 0:a+="\n\n - "+s;break;case 2:a+="\n\n - "+O.a.auto_on;break;case 1:a+="\n\n - "+O.a.auto_off,a+=" "+s}e.get(106)?a+="\n\n - "+this._descriptionForCommand(v.ToggleTabFocusModeAction.ID,O.a.tabFocusModeOnMsg,O.a.tabFocusModeOnMsgNoKb):a+="\n\n - "+this._descriptionForCommand(v.ToggleTabFocusModeAction.ID,O.a.tabFocusModeOffMsg,O.a.tabFocusModeOffMsgNoKb),a+="\n\n - "+(h.e?O.a.openDocMac:O.a.openDocWinLinux),a+="\n\n"+O.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(l.b)(a)),this._contentDomNode.domNode.setAttribute("aria-label",a)},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,a.t(this._contentDomNode.domNode),this._editor.focus())},T.prototype._layout=function(){var e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(T.WIDTH,e.width-40)),n=Math.max(5,Math.min(T.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(n);var o=Math.round((e.height-n)/2);this._domNode.setTop(o);var i=Math.round((e.width-t)/2);this._domNode.setLeft(i)},T.ID="editor.contrib.accessibilityHelpWidget",T.WIDTH=500,T.HEIGHT=300,T=E([k(1,y.c),k(2,_.a),k(3,w.a)],T));function T(e,t,n,o){var i=P.call(this)||this;return i._contextKeyService=t,i._keybindingService=n,i._openerService=o,i._editor=e,i._isVisibleKey=N.bindTo(i._contextKeyService),i._domNode=Object(s.b)(document.createElement("div")),i._domNode.setClassName("accessibilityHelpWidget"),i._domNode.setDisplay("none"),i._domNode.setAttribute("role","dialog"),i._domNode.setAttribute("aria-hidden","true"),i._contentDomNode=Object(s.b)(document.createElement("div")),i._contentDomNode.setAttribute("role","document"),i._domNode.appendChild(i._contentDomNode),i._isVisible=!1,i._register(i._editor.onDidLayoutChange((function(){i._isVisible&&i._layout()}))),i._register(a.o(i._contentDomNode.domNode,"keydown",(function(e){if(i._isVisible&&(e.equals(2083)&&(Object(c.a)(O.a.emergencyConfOn),i._editor.updateOptions({accessibilitySupport:"on"}),a.t(i._contentDomNode.domNode),i._buildContent(),i._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){Object(c.a)(O.a.openingDocs);var t=i._editor.getRawOptions().accessibilityHelpUrl;void 0===t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),i._openerService.open(f.a.parse(t)),e.preventDefault(),e.stopPropagation()}}))),i.onblur(i._contentDomNode.domNode,(function(){i.hide()})),i._editor.addOverlayWidget(i),i}var M,j=(x(R,M=g.b),R.prototype.run=function(e,t){var n=D.get(t);n&&n.show()},R);function R(){return M.call(this,{id:"editor.action.showAccessibilityHelp",label:O.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:m.a.focus,primary:r.i?2107:571,weight:100}})||this}Object(g.h)(D.ID,D),Object(g.f)(j);var A=g.c.bindToContribution(D.get);Object(g.g)(new A({id:"closeAccessibilityHelp",precondition:N,handler:function(e){return e.hide()},kbOpts:{weight:200,kbExpr:m.a.focus,primary:9,secondary:[1033]}})),Object(S.e)((function(e,t){var n=e.getColor(C.Q);n&&t.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+n+"; }");var o=e.getColor(C.S);o&&t.addRule(".monaco-editor .accessibilityHelpWidget { color: "+o+"; }");var i=e.getColor(C.hc);i&&t.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+i+"; }");var r=e.getColor(C.e);r&&t.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+r+"; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"BracketMatchingController",(function(){return N})),n(1320);var o,i,r=n(445),a=n(453),s=n(439),l=n(449),c=n(450),u=n(440),d=n(466),h=n(469),p=n(599),f=n(495),g=n(572),m=n(461),v=n(451),y=n(755),b=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=Object(m.Tb)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},r.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),w=(b(C,i=l.b),C.prototype.run=function(e,t){var n=N.get(t);n&&n.jumpToBracket()},C);function C(){return i.call(this,{id:"editor.action.jumpToBracket",label:r.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:h.a.editorTextFocus,primary:3160,weight:100}})||this}var S,O=(b(x,S=l.b),x.prototype.run=function(e,t,n){var o=N.get(t);if(o){var i=!0;n&&!1===n.selectBrackets&&(i=!1),o.selectToBracket(i)}},x);function x(){return S.call(this,{id:"editor.action.selectToBracket",label:r.a("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}var E,k=function(e,t,n){this.position=e,this.brackets=t,this.options=n},N=(b(D,E=s.a),D.get=function(e){return e.getContribution(D.ID)},D.prototype.jumpToBracket=function(){if(this._editor.hasModel()){var e=this._editor.getModel(),t=this._editor.getSelections().map((function(t){var n=t.getStartPosition(),o=e.matchBracket(n),i=null;if(o)o[0].containsPosition(n)?i=o[1].getStartPosition():o[1].containsPosition(n)&&(i=o[0].getStartPosition());else{var r=e.findEnclosingBrackets(n);if(r)i=r[0].getStartPosition();else{var a=e.findNextBracket(n);a&&a.range&&(i=a.range.getStartPosition())}}return i?new d.a(i.lineNumber,i.column,i.lineNumber,i.column):new d.a(n.lineNumber,n.column,n.lineNumber,n.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}},D.prototype.selectToBracket=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=[];this._editor.getSelections().forEach((function(o){var i=o.getStartPosition(),r=t.matchBracket(i);if(!r&&!(r=t.findEnclosingBrackets(i))){var a=t.findNextBracket(i);a&&a.range&&(r=t.matchBracket(a.range.getStartPosition()))}var s=null,l=null;if(r){r.sort(u.a.compareRangesUsingStarts);var c=r[0],h=r[1];s=e?c.getStartPosition():c.getEndPosition(),l=e?h.getEndPosition():h.getStartPosition()}s&&l&&n.push(new d.a(s.lineNumber,s.column,l.lineNumber,l.column))})),0<n.length&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}},D.prototype._updateBrackets=function(){if("never"!==this._matchBrackets){this._recomputeBrackets();for(var e=[],t=0,n=0,o=this._lastBracketsData;n<o.length;n++){var i=o[n],r=i.brackets;r&&(e[t++]={range:r[0],options:i.options},e[t++]={range:r[1],options:i.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}},D.prototype._recomputeBrackets=function(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);var e=this._editor.getSelections();if(100<e.length)return this._lastBracketsData=[],void(this._lastVersionId=0);var t=this._editor.getModel(),n=t.getVersionId(),o=[];this._lastVersionId===n&&(o=this._lastBracketsData);for(var i=[],r=0,a=0,s=e.length;a<s;a++){var l=e[a];l.isEmpty()&&(i[r++]=l.getStartPosition())}1<i.length&&i.sort(c.a.compare);var u=[],d=0,h=0,p=o.length;for(a=0,s=i.length;a<s;a++){for(var f=i[a];h<p&&o[h].position.isBefore(f);)h++;if(h<p&&o[h].position.equals(f))u[d++]=o[h];else{var g=t.matchBracket(f),m=D._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;g||"always"!==this._matchBrackets||(g=t.findEnclosingBrackets(f,20),m=D._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),u[d++]=new k(f,g,m)}}this._lastBracketsData=u,this._lastVersionId=n},D.ID="editor.contrib.bracketMatchingController",D._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=f.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(v.f)(_),position:p.d.Center}}),D._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=f.a.register({stickiness:1,className:"bracket-match"}),D);function D(e){var t=E.call(this)||this;return t._editor=e,t._lastBracketsData=[],t._lastVersionId=0,t._decorations=[],t._updateBracketsSoon=t._register(new a.d((function(){return t._updateBrackets()}),50)),t._matchBrackets=t._editor.getOption(53),t._updateBracketsSoon.schedule(),t._register(e.onDidChangeCursorPosition((function(e){"never"!==t._matchBrackets&&t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeModelContent((function(e){t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeModel((function(e){t._lastBracketsData=[],t._decorations=[],t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeModelLanguageConfiguration((function(e){t._lastBracketsData=[],t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeConfiguration((function(e){e.hasChanged(53)&&(t._matchBrackets=t._editor.getOption(53),t._decorations=t._editor.deltaDecorations(t._decorations,[]),t._lastBracketsData=[],t._lastVersionId=0,t._updateBracketsSoon.schedule())}))),t}Object(l.h)(N.ID,N),Object(l.f)(O),Object(l.f)(w),Object(v.e)((function(e,t){var n=e.getColor(g.c);n&&t.addRule(".monaco-editor .bracket-match { background-color: "+n+"; }");var o=e.getColor(g.d);o&&t.addRule(".monaco-editor .bracket-match { border: 1px solid "+o+"; }")})),y.c.appendMenuItem(19,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:r.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},function(e,t,n){"use strict";n.r(t),n(1322);var o,i,r=n(445),a=n(478),s=n(452),l=n(1077),c=n(449),u=n(504),d=n(469),h=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p="9_cutcopypaste",f=s.f||document.queryCommandSupported("cut"),g=s.f||document.queryCommandSupported("copy"),m=g&&!a.f,v=s.f||!a.d&&document.queryCommandSupported("paste"),y=(h(b,i=c.b),b.prototype.runCommand=function(e,t){var n=e.get(u.a).getFocusedCodeEditor();n&&n.hasTextFocus()?n.trigger("keyboard",this.id,t):document.execCommand(this.browserCommand)},b.prototype.run=function(e,t){t.focus(),document.execCommand(this.browserCommand)},b);function b(e,t){var n=i.call(this,t)||this;return n.browserCommand=e,n}var _,w=(h(C,_=y),C.prototype.run=function(e,t){t.hasModel()&&(!t.getOption(25)&&t.getSelection().isEmpty()||_.prototype.run.call(this,e,t))},C);function C(){var e={kbExpr:d.a.textInputFocus,primary:2102,win:{primary:2102,secondary:[1044]},weight:100};return s.f||(e=void 0),_.call(this,"cut",{id:"editor.action.clipboardCutAction",label:r.a("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:d.a.writable,kbOpts:e,contextMenuOpts:{group:p,order:1},menuOpts:{menuId:17,group:"2_ccp",title:r.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this}var S,O=(h(x,S=y),x.prototype.run=function(e,t){t.hasModel()&&(!t.getOption(25)&&t.getSelection().isEmpty()||S.prototype.run.call(this,e,t))},x);function x(){var e={kbExpr:d.a.textInputFocus,primary:2081,win:{primary:2081,secondary:[2067]},weight:100};return s.f||(e=void 0),S.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:r.a("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:e,contextMenuOpts:{group:p,order:2},menuOpts:{menuId:17,group:"2_ccp",title:r.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this}var E,k=(h(N,E=y),N);function N(){var e={kbExpr:d.a.textInputFocus,primary:2100,win:{primary:2100,secondary:[1043]},weight:100};return s.f||(e=void 0),E.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:r.a("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:d.a.writable,kbOpts:e,contextMenuOpts:{group:p,order:3},menuOpts:{menuId:17,group:"2_ccp",title:r.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this}var D,L=(h(P,D=y),P.prototype.run=function(e,t){t.hasModel()&&(!t.getOption(25)&&t.getSelection().isEmpty()||(l.a.forceCopyWithSyntaxHighlighting=!0,D.prototype.run.call(this,e,t),l.a.forceCopyWithSyntaxHighlighting=!1))},P);function P(){return D.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:r.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:d.a.textInputFocus,primary:0,weight:100}})||this}f&&Object(c.f)(w),g&&Object(c.f)(O),v&&Object(c.f)(k),m&&Object(c.f)(L)},function(e,t,n){"use strict";n.r(t);var o=n(449),i=n(1116);Object(o.h)(i.f.ID,i.f),Object(o.f)(i.e),Object(o.f)(i.g),Object(o.f)(i.h),Object(o.f)(i.d),Object(o.f)(i.a),Object(o.f)(i.c),Object(o.g)(new i.b)},function(e,t,n){"use strict";n.r(t),n.d(t,"CursorUndoRedoController",(function(){return p})),n.d(t,"CursorUndo",(function(){return m})),n.d(t,"CursorRedo",(function(){return b}));var o,i=n(445),r=n(439),a=n(449),s=n(469),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=(u.prototype.equals=function(e){var t=this.selections.length;if(t!==e.selections.length)return!1;for(var n=0;n<t;n++)if(!this.selections[n].equalsSelection(e.selections[n]))return!1;return!0},u);function u(e){this.selections=e}var d,h=function(e,t,n){this.cursorState=e,this.scrollTop=t,this.scrollLeft=n},p=(l(f,d=r.a),f.get=function(e){return e.getContribution(f.ID)},f.prototype.cursorUndo=function(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new h(new c(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))},f.prototype.cursorRedo=function(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new h(new c(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))},f.prototype._applyState=function(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1},f.ID="editor.contrib.cursorUndoRedoController",f);function f(e){var t=d.call(this)||this;return t._editor=e,t._isCursorUndoRedo=!1,t._undoStack=[],t._redoStack=[],t._register(e.onDidChangeModel((function(e){t._undoStack=[],t._redoStack=[]}))),t._register(e.onDidChangeModelContent((function(e){t._undoStack=[],t._redoStack=[]}))),t._register(e.onDidChangeCursorSelection((function(n){if(!t._isCursorUndoRedo&&n.oldSelections&&n.oldModelVersionId===n.modelVersionId){var o=new c(n.oldSelections);0<t._undoStack.length&&t._undoStack[t._undoStack.length-1].cursorState.equals(o)||(t._undoStack.push(new h(o,e.getScrollTop(),e.getScrollLeft())),t._redoStack=[],50<t._undoStack.length&&t._undoStack.shift())}}))),t}var g,m=(l(v,g=a.b),v.prototype.run=function(e,t,n){p.get(t).cursorUndo()},v);function v(){return g.call(this,{id:"cursorUndo",label:i.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:s.a.textInputFocus,primary:2099,weight:100}})||this}var y,b=(l(_,y=a.b),_.prototype.run=function(e,t,n){p.get(t).cursorRedo()},_);function _(){return y.call(this,{id:"cursorRedo",label:i.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})||this}Object(a.h)(p.ID,p),Object(a.f)(m),Object(a.f)(b)},function(e,t,n){"use strict";n.r(t);var o,i,r=n(445),a=n(449),s=n(883),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=(l(u,i=a.b),u.prototype.run=function(e,t){s.a.setZoomLevel(s.a.getZoomLevel()+1)},u);function u(){return i.call(this,{id:"editor.action.fontZoomIn",label:r.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})||this}var d,h=(l(p,d=a.b),p.prototype.run=function(e,t){s.a.setZoomLevel(s.a.getZoomLevel()-1)},p);function p(){return d.call(this,{id:"editor.action.fontZoomOut",label:r.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})||this}var f,g=(l(m,f=a.b),m.prototype.run=function(e,t){s.a.setZoomLevel(0)},m);function m(){return f.call(this,{id:"editor.action.fontZoomReset",label:r.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})||this}Object(a.f)(c),Object(a.f)(h),Object(a.f)(g)},function(e,t,n){"use strict";n.r(t),n.d(t,"GotoLineEntry",(function(){return g})),n.d(t,"GotoLineAction",(function(){return y})),n(1354);var o,i,r=n(444),a=n(975),s=n(892),l=n(449),c=n(450),u=n(440),d=n(469),h=n(968),p=n(754),f=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=(f(m,i=a.a),m.prototype.parseInput=function(e){var t,n,o=e.split(",").map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)}));if(t=0===o.length?new c.a(-1,-1):1===o.length?new c.a(o[0],1):new c.a(o[0],o[1]),Object(s.a)(this.editor))n=this.editor.getModel();else{var i=this.editor.getModel();n=i?i.modified:null}var a=!!n&&n.validatePosition(t).equals(t);return{position:t,isValid:a,label:a?t.column&&1<t.column?r.r(p.b.gotoLineLabelValidLineAndColumn,t.lineNumber,t.column):r.r(p.b.gotoLineLabelValidLine,t.lineNumber):t.lineNumber<1||t.lineNumber>(n?n.getLineCount():0)?r.r(p.b.gotoLineLabelEmptyWithLineLimit,n?n.getLineCount():0):r.r(p.b.gotoLineLabelEmptyWithLineAndColumnLimit,n?n.getLineMaxColumn(t.lineNumber):0)}},m.prototype.getLabel=function(){return this.parseResult.label},m.prototype.getAriaLabel=function(){var e=this.editor.getPosition(),t=e?e.lineNumber:0;return r.r(p.b.gotoLineAriaLabel,t,this.parseResult.label)},m.prototype.run=function(e,t){return 1===e?this.runOpen():this.runPreview()},m.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var e=this.toSelection();return this.editor.setSelection(e),this.editor.revealRangeInCenter(e,0),this.editor.focus(),!0},m.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(e,this.editor),!1},m.prototype.toSelection=function(){return new u.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},m);function m(e,t,n){var o=i.call(this)||this;return o.editor=t,o.decorator=n,o.parseResult=o.parseInput(e),o}var v,y=(f(b,v=h.a),b.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new a.c([new g(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:0<e.length}}})},b);function b(){return v.call(this,p.b.gotoLineActionInput,{id:"editor.action.gotoLine",label:p.b.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:2085,mac:{primary:293},weight:100}})||this}Object(l.f)(y)},function(e,t,n){"use strict";n.r(t),n.d(t,"IPadShowKeyboard",(function(){return u})),n(1369);var o,i,r=n(478),a=n(443),s=n(439),l=n(449),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=(c(d,i=s.a),d.prototype.update=function(){var e=!this.editor.getOption(68);!this.widget&&e?this.widget=new p(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)},d.prototype.dispose=function(){i.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},d.ID="editor.contrib.iPadShowKeyboard",d);function d(e){var t=i.call(this)||this;return t.editor=e,t.widget=null,r.j&&(t._register(e.onDidChangeConfiguration((function(){return t.update()}))),t.update()),t}var h,p=(c(f,h=s.a),f.prototype.dispose=function(){this.editor.removeOverlayWidget(this),h.prototype.dispose.call(this)},f.prototype.getId=function(){return f.ID},f.prototype.getDomNode=function(){return this._domNode},f.prototype.getPosition=function(){return{preference:1}},f.ID="editor.contrib.ShowKeyboardWidget",f);function f(e){var t=h.call(this)||this;return t.editor=e,t._domNode=document.createElement("textarea"),t._domNode.className="iPadShowKeyboard",t._register(a.j(t._domNode,"touchstart",(function(e){t.editor.focus()}))),t._register(a.j(t._domNode,"focus",(function(e){t.editor.focus()}))),t.editor.addOverlayWidget(t),t}Object(l.h)(u.ID,u)},function(e,t,n){"use strict";n.r(t),n(1370);var o,i,r=n(490),a=n(439),s=n(444),l=n(449),c=n(454),u=n(756),d=n(778),h=n(827),p=n(461),f=n(451),g=n(754),m=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e,t){return function(n,o){t(n,o,e)}},y=(m(b,i=a.a),b.get=function(e){return e.getContribution(b.ID)},b.prototype.dispose=function(){this.stop(),i.prototype.dispose.call(this)},b.prototype.launch=function(){this._widget||this._editor.hasModel()&&(this._widget=new O(this._editor,this._modeService))},b.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},b.ID="editor.contrib.inspectTokens",b=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([v(1,h.a),v(2,d.a)],b));function b(e,t,n){var o=i.call(this)||this;return o._editor=e,o._modeService=n,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(c.B.onDidChange((function(e){return o.stop()}))),o}var _,w=(m(C,_=l.b),C.prototype.run=function(e,t){var n=y.get(t);n&&n.launch()},C);function C(){return _.call(this,{id:"editor.action.inspectTokens",label:g.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})||this}var S,O=(m(x,S=a.a),x.prototype.dispose=function(){this._editor.removeContentWidget(this),S.prototype.dispose.call(this)},x.prototype.getId=function(){return x._ID},x.prototype._compute=function(e){for(var t=this._getTokensAtLine(e.lineNumber),n=0,o=t.tokens1.length-1;0<=o;o--){var i=t.tokens1[o];if(e.column-1>=i.offset){n=o;break}}var a=0;for(o=t.tokens2.length>>>1;0<=o;o--)if(e.column-1>=t.tokens2[o<<1]){a=o;break}var l="",c=this._model.getLineContent(e.lineNumber),u="";if(n<t.tokens1.length){var d=t.tokens1[n].offset,h=n+1<t.tokens1.length?t.tokens1[n+1].offset:c.length;u=c.substring(d,h)}l+='<h2 class="tm-token">'+function(e){for(var t="",n=0,o=e.length;n<o;n++){var i=e.charCodeAt(n);switch(i){case 9:t+="→";break;case 32:t+="·";break;case 60:t+="<";break;case 62:t+=">";break;case 38:t+="&";break;default:t+=String.fromCharCode(i)}}return t}(u)+'<span class="tm-token-length">('+u.length+" "+(1===u.length?"char":"chars")+")</span></h2>",l+='<hr class="tokens-inspect-separator" style="clear:both"/>';var p=this._decodeMetadata(t.tokens2[1+(a<<1)]);l+='<table class="tm-metadata-table"><tbody>',l+='<tr><td class="tm-metadata-key">language</td><td class="tm-metadata-value">'+Object(s.o)(p.languageIdentifier.language)+"</td>",l+='<tr><td class="tm-metadata-key">token type</td><td class="tm-metadata-value">'+this._tokenTypeToString(p.tokenType)+"</td>",l+='<tr><td class="tm-metadata-key">font style</td><td class="tm-metadata-value">'+this._fontStyleToString(p.fontStyle)+"</td>",l+='<tr><td class="tm-metadata-key">foreground</td><td class="tm-metadata-value">'+r.a.Format.CSS.formatHex(p.foreground)+"</td>",l+='<tr><td class="tm-metadata-key">background</td><td class="tm-metadata-value">'+r.a.Format.CSS.formatHex(p.background)+"</td>",l+="</tbody></table>",l+='<hr class="tokens-inspect-separator"/>',n<t.tokens1.length&&(l+='<span class="tm-token-type">'+Object(s.o)(t.tokens1[n].type)+"</span>"),this._domNode.innerHTML=l,this._editor.layoutContentWidget(this)},x.prototype._decodeMetadata=function(e){var t=c.B.getColorMap(),n=c.A.getLanguageId(e),o=c.A.getTokenType(e),i=c.A.getFontStyle(e),r=c.A.getForeground(e),a=c.A.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:o,fontStyle:i,foreground:t[r],background:t[a]}},x.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},x.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t},x.prototype._getTokensAtLine=function(e){var t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),o=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:o.tokens,endState:n.endState}},x.prototype._getStateBeforeLine=function(e){for(var t=this._tokenizationSupport.getInitialState(),n=1;n<e;n++)t=this._tokenizationSupport.tokenize(this._model.getLineContent(n),t,0).endState;return t},x.prototype.getDomNode=function(){return this._domNode},x.prototype.getPosition=function(){return{position:this._editor.getPosition(),preference:[2,1]}},x._ID="editor.contrib.inspectTokensWidget",x);function x(e,t){var n,o=S.call(this)||this;return o.allowEditorOverflow=!0,o._editor=e,o._modeService=t,o._model=o._editor.getModel(),o._domNode=document.createElement("div"),o._domNode.className="tokens-inspect-widget",o._tokenizationSupport=(n=o._model.getLanguageIdentifier(),c.B.get(n.language)||{getInitialState:function(){return u.c},tokenize:function(e,t,o){return Object(u.d)(n.language,e,t,o)},tokenize2:function(e,t,o){return Object(u.e)(n.id,e,t,o)}}),o._compute(o._editor.getPosition()),o._register(o._editor.onDidChangeCursorPosition((function(e){return o._compute(o._editor.getPosition())}))),o._editor.addContentWidget(o),o}Object(l.h)(y.ID,y),Object(l.f)(w),Object(f.e)((function(e,t){var n=e.getColor(p.B);if(n){var o=e.type===f.b?2:1;t.addRule(".monaco-editor .tokens-inspect-widget { border: "+o+"px solid "+n+"; }"),t.addRule(".monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: "+n+"; }")}var i=e.getColor(p.A);i&&t.addRule(".monaco-editor .tokens-inspect-widget { background-color: "+i+"; }");var r=e.getColor(p.C);r&&t.addRule(".monaco-editor .tokens-inspect-widget { color: "+r+"; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"InsertCursorAbove",(function(){return C})),n.d(t,"InsertCursorBelow",(function(){return x})),n.d(t,"MultiCursorSessionResult",(function(){return R})),n.d(t,"MultiCursorSession",(function(){return A})),n.d(t,"MultiCursorSelectionController",(function(){return W})),n.d(t,"MultiCursorSelectionControllerAction",(function(){return z})),n.d(t,"AddSelectionToNextFindMatchAction",(function(){return q})),n.d(t,"AddSelectionToPreviousFindMatchAction",(function(){return Z})),n.d(t,"MoveSelectionToNextFindMatchAction",(function(){return J})),n.d(t,"MoveSelectionToPreviousFindMatchAction",(function(){return te})),n.d(t,"SelectHighlightsAction",(function(){return ie})),n.d(t,"CompatChangeAll",(function(){return se})),n.d(t,"SelectionHighlighter",(function(){return he}));var o,i,r=n(445),a=n(453),s=n(548),l=n(439),c=n(449),u=n(1084),d=n(440),h=n(466),p=n(469),f=n(599),g=n(495),m=n(454),v=n(1051),y=n(461),b=n(451),_=n(456),w=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=(w(S,i=c.b),S.prototype.run=function(e,t,n){if(t.hasModel()){var o=n&&!0===n.logicalLine,i=t._getCursors(),r=i.context;r.config.readOnly||(r.model.pushStackElement(),i.setStates(n.source,3,u.b.addCursorUp(r,i.getAll(),o)),i.reveal(n.source,!0,1,0))}},S);function S(){return i.call(this,{id:"editor.action.insertCursorAbove",label:r.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})||this}var O,x=(w(E,O=c.b),E.prototype.run=function(e,t,n){if(t.hasModel()){var o=n&&!0===n.logicalLine,i=t._getCursors(),r=i.context;r.config.readOnly||(r.model.pushStackElement(),i.setStates(n.source,3,u.b.addCursorDown(r,i.getAll(),o)),i.reveal(n.source,!0,2,0))}},E);function E(){return O.call(this,{id:"editor.action.insertCursorBelow",label:r.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})||this}var k,N=(w(D,k=c.b),D.prototype.getCursorsForSelection=function(e,t,n){if(!e.isEmpty()){for(var o=e.startLineNumber;o<e.endLineNumber;o++){var i=t.getLineMaxColumn(o);n.push(new h.a(o,i,o,i))}1<e.endColumn&&n.push(new h.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}},D.prototype.run=function(e,t){var n=this;if(t.hasModel()){var o=t.getModel(),i=t.getSelections(),r=[];i.forEach((function(e){return n.getCursorsForSelection(e,o,r)})),0<r.length&&t.setSelections(r)}},D);function D(){return k.call(this,{id:"editor.action.insertCursorAtEndOfEachLineSelected",label:r.a("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:p.a.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})||this}var L,P=(w(I,L=c.b),I.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),o=t.getModel().getLineCount(),i=[],r=n[0].startLineNumber;r<=o;r++)i.push(new h.a(r,n[0].startColumn,r,n[0].endColumn));0<i.length&&t.setSelections(i)}},I);function I(){return L.call(this,{id:"editor.action.addCursorsToBottom",label:r.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}var T,M=(w(j,T=c.b),j.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),o=[],i=n[0].startLineNumber;1<=i;i--)o.push(new h.a(i,n[0].startColumn,i,n[0].endColumn));0<o.length&&t.setSelections(o)}},j);function j(){return T.call(this,{id:"editor.action.addCursorsToTop",label:r.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}var R=function(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n},A=(F.create=function(e,t){if(!e.hasModel())return null;var n=t.getState();if(!e.hasTextFocus()&&n.isRevealed&&0<n.searchString.length)return new F(e,t,!1,n.searchString,n.wholeWord,n.matchCase,null);var o,i,r=!1,a=e.getSelections();i=1===a.length&&a[0].isEmpty()?o=r=!0:(o=n.wholeWord,n.matchCase);var s,l=e.getSelection(),c=null;if(l.isEmpty()){var u=e.getModel().getWordAtPosition(l.getStartPosition());if(!u)return null;s=u.word,c=new h.a(l.startLineNumber,u.startColumn,l.startLineNumber,u.endColumn)}else s=e.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new F(e,t,r,s,o,i,c)},F.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new R(t.concat(e),e,0)},F.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new R(t.slice(0,t.length-1).concat(e),e,0)},F.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],o=this._editor.getModel().findNextMatch(this.searchText,n.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return o?new h.a(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn):null},F.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new R(t.concat(e),e,0)},F.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new R(t.slice(0,t.length-1).concat(e),e,0)},F.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],o=this._editor.getModel().findPreviousMatch(this.searchText,n.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return o?new h.a(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn):null},F.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(96):null,!1,1073741824)):[]},F);function F(e,t,n,o,i,r,a){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=o,this.wholeWord=i,this.matchCase=r,this.currentMatch=a}var V,W=(w(B,V=l.a),B.get=function(e){return e.getContribution(B.ID)},B.prototype.dispose=function(){this._endSession(),V.prototype.dispose.call(this)},B.prototype._beginSessionIfNeeded=function(e){var t=this;if(!this._session){var n=A.create(this._editor,e);if(!n)return;this._session=n;var o={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(o.wholeWordOverride=1,o.matchCaseOverride=1,o.isRegexOverride=2),e.getState().change(o,!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()})))}},B.prototype._endSession=function(){this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController&&this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1),this._session=null},B.prototype._setSelections=function(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1},B.prototype._expandEmptyToWord=function(e,t){if(!t.isEmpty())return t;var n=e.getWordAtPosition(t.getStartPosition());return n?new h.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t},B.prototype._applySessionResult=function(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))},B.prototype.getSession=function(e){return this._session},B.prototype.addSelectionToNextFindMatch=function(e){if(this._editor.hasModel()){if(!this._session){var t=this._editor.getSelections();if(1<t.length){var n=e.getState().matchCase;if(!fe(this._editor.getModel(),t,n)){for(var o=this._editor.getModel(),i=[],r=0,a=t.length;r<a;r++)i[r]=this._expandEmptyToWord(o,t[r]);return void this._editor.setSelections(i)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}},B.prototype.addSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())},B.prototype.moveSelectionToNextFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())},B.prototype.moveSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())},B.prototype.selectAll=function(e){if(this._editor.hasModel()){var t=null,n=e.getState();if(n.isRevealed&&0<n.searchString.length&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(96):null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(n.searchScope){for(var o=n.searchScope,i=[],r=0;r<t.length;r++)t[r].range.endLineNumber<=o.endLineNumber&&t[r].range.startLineNumber>=o.startLineNumber&&i.push(t[r]);t=i}if(0<t.length){for(var a=this._editor.getSelection(),s=(r=0,t.length);r<s;r++){var l=t[r];if(l.range.intersectRanges(a)){t[r]=t[0],t[0]=l;break}}this._setSelections(t.map((function(e){return new h.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)})))}}},B.ID="editor.contrib.multiCursorController",B);function B(e){var t=V.call(this)||this;return t._sessionDispose=t._register(new l.b),t._editor=e,t._ignoreSelectionChange=!1,t._session=null,t}var H,z=(w(K,H=c.b),K.prototype.run=function(e,t){var n=W.get(t);if(n){var o=v.CommonFindController.get(t);o&&this._run(n,o)}},K);function K(){return null!==H&&H.apply(this,arguments)||this}var U,q=(w(G,U=z),G.prototype._run=function(e,t){e.addSelectionToNextFindMatch(t)},G);function G(){return U.call(this,{id:"editor.action.addSelectionToNextFindMatch",label:r.a("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:p.a.focus,primary:2082,weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})||this}var Y,Z=(w($,Y=z),$.prototype._run=function(e,t){e.addSelectionToPreviousFindMatch(t)},$);function $(){return Y.call(this,{id:"editor.action.addSelectionToPreviousFindMatch",label:r.a("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})||this}var X,J=(w(Q,X=z),Q.prototype._run=function(e,t){e.moveSelectionToNextFindMatch(t)},Q);function Q(){return X.call(this,{id:"editor.action.moveSelectionToNextFindMatch",label:r.a("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:p.a.focus,primary:Object(s.a)(2089,2082),weight:100}})||this}var ee,te=(w(ne,ee=z),ne.prototype._run=function(e,t){e.moveSelectionToPreviousFindMatch(t)},ne);function ne(){return ee.call(this,{id:"editor.action.moveSelectionToPreviousFindMatch",label:r.a("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})||this}var oe,ie=(w(re,oe=z),re.prototype._run=function(e,t){e.selectAll(t)},re);function re(){return oe.call(this,{id:"editor.action.selectHighlights",label:r.a("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:p.a.focus,primary:3114,weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})||this}var ae,se=(w(le,ae=z),le.prototype._run=function(e,t){e.selectAll(t)},le);function le(){return ae.call(this,{id:"editor.action.changeAll",label:r.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:_.a.and(p.a.writable,p.a.editorTextFocus),kbOpts:{kbExpr:p.a.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})||this}var ce=(ue.softEquals=function(e,t){return!e&&!t||!(!e||!t)&&e.searchText===t.searchText&&e.matchCase===t.matchCase&&e.wordSeparators===t.wordSeparators},ue);function ue(e,t,n){this.searchText=e,this.matchCase=t,this.wordSeparators=n}var de,he=(w(pe,de=l.a),pe.prototype._update=function(){this._setState(pe._createState(this._isEnabled,this.editor))},pe._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 o=W.get(t);if(!o)return null;var i=v.CommonFindController.get(t);if(!i)return null;var r=o.getSession(i);if(!r){var a=t.getSelections();if(1<a.length){var s=i.getState().matchCase;if(!fe(t.getModel(),a,s))return null}r=A.create(t,i)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(200<r.searchText.length)return null;var l=i.getState(),c=l.matchCase;if(l.isRevealed){var u=l.searchString;c||(u=u.toLowerCase());var d=r.searchText;if(c||(d=d.toLowerCase()),u===d&&r.matchCase===l.matchCase&&r.wholeWord===l.wholeWord&&!l.isRegex)return null}return new ce(r.searchText,r.matchCase,r.wholeWord?t.getOption(96):null)},pe.prototype._setState=function(e){if(ce.softEquals(this.state,e))this.state=e;else if(this.state=e,this.state){if(this.editor.hasModel()){var t=this.editor.getModel();if(!t.isTooLargeForTokenization()){var n=m.i.has(t),o=t.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map((function(e){return e.range}));o.sort(d.a.compareRangesUsingStarts);var i=this.editor.getSelections();i.sort(d.a.compareRangesUsingStarts);for(var r=[],a=0,s=0,l=o.length,c=i.length;a<l;){var u=o[a];if(c<=s)r.push(u),a++;else{var h=d.a.compareRangesUsingStarts(u,i[s]);h<0?(!i[s].isEmpty()&&d.a.areIntersecting(u,i[s])||r.push(u),a++):(0<h||a++,s++)}}var p=r.map((function(e){return{range:e,options:n?pe._SELECTION_HIGHLIGHT:pe._SELECTION_HIGHLIGHT_OVERVIEW}}));this.decorations=this.editor.deltaDecorations(this.decorations,p)}}}else this.decorations=this.editor.deltaDecorations(this.decorations,[])},pe.prototype.dispose=function(){this._setState(null),de.prototype.dispose.call(this)},pe.ID="editor.contrib.selectionHighlighter",pe._SELECTION_HIGHLIGHT_OVERVIEW=g.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(b.f)(y.Mb),position:f.d.Center}}),pe._SELECTION_HIGHLIGHT=g.a.register({stickiness:1,className:"selectionHighlight"}),pe);function pe(e){var t=de.call(this)||this;return t.editor=e,t._isEnabled=e.getOption(82),t.decorations=[],t.updateSoon=t._register(new a.d((function(){return t._update()}),300)),t.state=null,t._register(e.onDidChangeConfiguration((function(n){t._isEnabled=e.getOption(82)}))),t._register(e.onDidChangeCursorSelection((function(e){t._isEnabled&&(e.selection.isEmpty()?3===e.reason?(t.state&&t._setState(null),t.updateSoon.schedule()):t._setState(null):t._update())}))),t._register(e.onDidChangeModel((function(e){t._setState(null)}))),t._register(v.CommonFindController.get(e).getState().onFindReplaceStateChange((function(e){t._update()}))),t}function fe(e,t,n){for(var o=ge(e,t[0],!n),i=1,r=t.length;i<r;i++){var a=t[i];if(a.isEmpty())return!1;if(o!==ge(e,a,!n))return!1}return!0}function ge(e,t,n){var o=e.getValueInRange(t);return n?o.toLowerCase():o}Object(c.h)(W.ID,W),Object(c.h)(he.ID,he),Object(c.f)(C),Object(c.f)(x),Object(c.f)(N),Object(c.f)(q),Object(c.f)(Z),Object(c.f)(J),Object(c.f)(te),Object(c.f)(ie),Object(c.f)(se),Object(c.f)(P),Object(c.f)(M)},function(e,t,n){"use strict";n.r(t),n.d(t,"EditorActionCommandEntry",(function(){return m})),n.d(t,"QuickCommandAction",(function(){return b}));var o,i,r=n(444),a=n(478),s=n(446),l=n(760),c=n(975),u=n(449),d=n(469),h=n(968),p=n(531),f=n(754),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=(g(v,i=c.b),v.prototype.getLabel=function(){return this.action.label},v.prototype.getAriaLabel=function(){return this.keyAriaLabel?r.r(f.d.ariaLabelEntryWithKey,this.getLabel(),this.keyAriaLabel):r.r(f.d.ariaLabelEntry,this.getLabel())},v.prototype.getGroupLabel=function(){return this.key},v.prototype.run=function(e,t){var n=this;return 1===e&&(setTimeout((function(){n.editor.focus();try{(n.action.run()||Promise.resolve()).then(void 0,s.e)}catch(e){Object(s.e)(e)}}),50),!0)},v);function v(e,t,n,o,r){var a=i.call(this)||this;return a.key=e,a.keyAriaLabel=t,a.setHighlights(n),a.action=o,a.editor=r,a}var y,b=(g(_,y=h.a),_.prototype.run=function(e,t){var n=this,o=e.get(p.a);this._show(this.getController(t),{getModel:function(e){return new c.c(n._editorActionsToEntries(o,t,e))},getAutoFocus:function(e){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:e}}})},_.prototype._sort=function(e,t){var n=(e.getLabel()||"").toLowerCase(),o=(t.getLabel()||"").toLowerCase();return n.localeCompare(o)},_.prototype._editorActionsToEntries=function(e,t,n){for(var o=[],i=0,r=t.getSupportedActions();i<r.length;i++){var a=r[i],s=e.lookupKeybinding(a.id);if(a.label){var c=Object(l.f)(n,a.label);c&&o.push(new m(s&&s.getLabel()||"",s&&s.getAriaLabel()||"",c,a,t))}}return o.sort(this._sort)},_);function _(){return y.call(this,f.d.quickCommandActionInput,{id:"editor.action.quickCommand",label:f.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:a.i?571:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})||this}Object(u.f)(b)},function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneReferencesController",(function(){return f}));var o,i,r=n(449),a=n(504),s=n(1117),l=n(573),c=n(456),u=n(448),d=n(532),h=n(775),p=function(e,t){return function(n,o){t(n,o,e)}},f=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(g,i=s.a),g=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([p(1,c.c),p(2,a.a),p(3,d.a),p(4,u.a),p(5,h.a),p(6,l.a)],g));function g(e,t,n,o,r,a,s){return i.call(this,!0,e,t,n,o,r,a,s)||this}Object(r.h)(s.a.ID,f)},function(e,t,n){"use strict";n.r(t);var o,i,r=n(449),a=n(827),s=n(754),l=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(c,i=r.b),c.prototype.run=function(e,t){var n=e.get(a.a);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getTheme().themeName,n.setTheme("hc-black"))},c);function c(){var e=i.call(this,{id:"editor.action.toggleHighContrast",label:s.h.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0})||this;return e._originalThemeName=null,e}Object(r.f)(l)},function(e,t,n){"use strict";n.r(t);var o,i,r=n(445),a=n(449),s=n(794),l=n(440),c=n(469),u=n(953),d=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(h,i=a.b),h.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),o=[],i=0,r=t.getSelections();i<r.length;i++){var a=r[i];if(a.isEmpty()){var c=a.startLineNumber,d=a.startColumn,h=n.getLineMaxColumn(c);if(1!==c||1!==d&&(2!==d||2!==h)){var p=d===h?a.getPosition():u.a.rightPosition(n,a.getPosition().lineNumber,a.getPosition().column),f=u.a.leftPosition(n,p.lineNumber,p.column),g=u.a.leftPosition(n,f.lineNumber,f.column),m=n.getValueInRange(l.a.fromPositions(g,f)),v=n.getValueInRange(l.a.fromPositions(f,p)),y=l.a.fromPositions(g,p);o.push(new s.a(y,v+m))}}}0<o.length&&(t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop())}},h);function h(){return i.call(this,{id:"editor.action.transposeLetters",label:r.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:c.a.writable,kbOpts:{kbExpr:c.a.textInputFocus,primary:0,mac:{primary:306},weight:100}})||this}Object(a.f)(d)},function(e,t,n){"use strict";n.r(t),n.d(t,"getOccurrencesAtPosition",(function(){return k}));var o,i=n(445),r=n(459),a=n(453),s=n(484),l=n(446),c=n(439),u=n(449),d=n(440),h=n(469),p=n(599),f=n(495),g=n(454),m=n(456),v=n(461),y=n(451),b=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=Object(v.Tb)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},i.a("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),w=Object(v.Tb)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},i.a("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),C=Object(v.Tb)("editor.wordHighlightBorder",{light:null,dark:null,hc:v.b},i.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),S=Object(v.Tb)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:v.b},i.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),O=Object(v.Tb)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},i.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),x=Object(v.Tb)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},i.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),E=new m.d("hasWordHighlights",!1);function k(e,t,n){var o=g.i.ordered(e);return Object(a.h)(o.map((function(o){return function(){return Promise.resolve(o.provideDocumentHighlights(e,t,n)).then(void 0,l.f)}})),r.q)}var N=(D.prototype._getCurrentWordRange=function(e,t){var n=e.getWordAtPosition(t.getPosition());return n?new d.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null},D.prototype.isValid=function(e,t,n){for(var o=t.startLineNumber,i=t.startColumn,r=t.endColumn,a=this._getCurrentWordRange(e,t),s=Boolean(this._wordRange&&this._wordRange.equalsRange(a)),l=0,c=n.length;!s&&l<c;l++){var u=e.getDecorationRange(n[l]);u&&u.startLineNumber===o&&u.startColumn<=i&&u.endColumn>=r&&(s=!0)}return s},D.prototype.cancel=function(){this.result.cancel()},D);function D(e,t,n){var o=this;this._wordRange=this._getCurrentWordRange(e,t),this.result=Object(a.f)((function(i){return o._compute(e,t,n,i)}))}var L,P=(b(I,L=N),I.prototype._compute=function(e,t,n,o){return k(e,t.getPosition(),o).then((function(e){return e||[]}))},I);function I(){return null!==L&&L.apply(this,arguments)||this}var T,M=(b(j,T=N),j.prototype._compute=function(e,t,n,o){return Object(a.l)(250,o).then((function(){if(!t.isEmpty())return[];var o=e.getWordAtPosition(t.getPosition());return o?e.findMatches(o.word,!0,!1,!0,n,!1).map((function(e){return{range:e.range,kind:g.h.Text}})):[]}))},j.prototype.isValid=function(e,t,n){var o=t.isEmpty();return this._selectionIsEmpty===o&&T.prototype.isValid.call(this,e,t,n)},j);function j(e,t,n){var o=T.call(this,e,t,n)||this;return o._selectionIsEmpty=t.isEmpty(),o}Object(u.k)("_executeDocumentHighlights",(function(e,t){return k(e,t,s.a.None)}));var R=(A.prototype.hasDecorations=function(){return 0<this._decorationIds.length},A.prototype.restore=function(){this.occurrencesHighlight&&this._run()},A.prototype._getSortedHighlights=function(){var e=this;return r.d(this._decorationIds.map((function(t){return e.model.getDecorationRange(t)})).sort(d.a.compareRangesUsingStarts))},A.prototype.moveNext=function(){var e=this,t=this._getSortedHighlights(),n=t[(r.k(t,(function(t){return t.containsPosition(e.editor.getPosition())}))+1)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n)}finally{this._ignorePositionChangeEvent=!1}},A.prototype.moveBack=function(){var e=this,t=this._getSortedHighlights(),n=t[(r.k(t,(function(t){return t.containsPosition(e.editor.getPosition())}))-1+t.length)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n)}finally{this._ignorePositionChangeEvent=!1}},A.prototype._removeDecorations=function(){0<this._decorationIds.length&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},A.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)},A.prototype._onPositionChanged=function(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll()},A.prototype._run=function(){var e=this,t=this.editor.getSelection();if(t.startLineNumber===t.endLineNumber){var n=t.startLineNumber,o=t.startColumn,i=t.endColumn,r=this.model.getWordAtPosition({lineNumber:n,column:o});if(!r||r.startColumn>o||r.endColumn<i)this._stopAll();else{var a,s,c,u=this.workerRequest&&this.workerRequest.isValid(this.model,t,this._decorationIds);if(this.lastCursorPositionChangeTime=(new Date).getTime(),u)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var d=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=(a=this.model,s=this.editor.getSelection(),c=this.editor.getOption(96),new(g.i.has(a)?P:M)(a,s,c)),this.workerRequest.result.then((function(t){d===e.workerRequestTokenId&&(e.workerRequestCompleted=!0,e.workerRequestValue=t||[],e._beginRenderDecorations())}),l.e)}}}else this._stopAll()},A.prototype._beginRenderDecorations=function(){var e=this,t=(new Date).getTime(),n=this.lastCursorPositionChangeTime+250;n<=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((function(){e.renderDecorations()}),n-t)},A.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var e=[],t=0,n=this.workerRequestValue.length;t<n;t++){var o=this.workerRequestValue[t];e.push({range:o.range,options:A._getDecorationOptions(o.kind)})}this._decorationIds=this.editor.deltaDecorations(this._decorationIds,e),this._hasWordHighlights.set(this.hasDecorations())},A._getDecorationOptions=function(e){return e===g.h.Write?this._WRITE_OPTIONS:e===g.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS},A.prototype.dispose=function(){this._stopAll(),this.toUnhook.dispose()},A._WRITE_OPTIONS=f.a.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(y.f)(x),position:p.d.Center}}),A._TEXT_OPTIONS=f.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(y.f)(v.Mb),position:p.d.Center}}),A._REGULAR_OPTIONS=f.a.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(y.f)(O),position:p.d.Center}}),A);function A(e,t){var n=this;this.toUnhook=new c.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=E.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(61),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(61);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}var F,V=(b(W,F=c.a),W.get=function(e){return e.getContribution(W.ID)},W.prototype.saveViewState=function(){return!(!this.wordHighligher||!this.wordHighligher.hasDecorations())},W.prototype.moveNext=function(){this.wordHighligher&&this.wordHighligher.moveNext()},W.prototype.moveBack=function(){this.wordHighligher&&this.wordHighligher.moveBack()},W.prototype.restoreViewState=function(e){this.wordHighligher&&e&&this.wordHighligher.restore()},W.prototype.dispose=function(){this.wordHighligher&&(this.wordHighligher.dispose(),this.wordHighligher=null),F.prototype.dispose.call(this)},W.ID="editor.contrib.wordHighlighter",W=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(1,m.c)],W));function W(e,t){var n=F.call(this)||this;function o(){e.hasModel()&&(n.wordHighligher=new R(e,t))}return n.wordHighligher=null,n._register(e.onDidChangeModel((function(e){n.wordHighligher&&(n.wordHighligher.dispose(),n.wordHighligher=null),o()}))),o(),n}var B,H=(b(z,B=u.b),z.prototype.run=function(e,t){var n=V.get(t);n&&(this._isNext?n.moveNext():n.moveBack())},z);function z(e,t){var n=B.call(this,t)||this;return n._isNext=e,n}var K,U=(b(q,K=H),q);function q(){return K.call(this,!0,{id:"editor.action.wordHighlight.next",label:i.a("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:E,kbOpts:{kbExpr:h.a.editorTextFocus,primary:65,weight:100}})||this}var G,Y=(b(Z,G=H),Z);function Z(){return G.call(this,!1,{id:"editor.action.wordHighlight.prev",label:i.a("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:E,kbOpts:{kbExpr:h.a.editorTextFocus,primary:1089,weight:100}})||this}var $,X=(b(J,$=u.b),J.prototype.run=function(e,t,n){var o=V.get(t);o&&o.restoreViewState(!0)},J);function J(){return $.call(this,{id:"editor.action.wordHighlight.trigger",label:i.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:E.toNegated(),kbOpts:{kbExpr:h.a.editorTextFocus,primary:0,weight:100}})||this}Object(u.h)(V.ID,V),Object(u.f)(U),Object(u.f)(Y),Object(u.f)(X),Object(y.e)((function(e,t){var n=e.getColor(v.M);n&&(t.addRule(".monaco-editor .focused .selectionHighlight { background-color: "+n+"; }"),t.addRule(".monaco-editor .selectionHighlight { background-color: "+n.transparent(.5)+"; }"));var o=e.getColor(_);o&&t.addRule(".monaco-editor .wordHighlight { background-color: "+o+"; }");var i=e.getColor(w);i&&t.addRule(".monaco-editor .wordHighlightStrong { background-color: "+i+"; }");var r=e.getColor(v.N);r&&t.addRule(".monaco-editor .selectionHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+r+"; box-sizing: border-box; }");var a=e.getColor(C);a&&t.addRule(".monaco-editor .wordHighlight { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+a+"; box-sizing: border-box; }");var s=e.getColor(S);s&&t.addRule(".monaco-editor .wordHighlightStrong { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; box-sizing: border-box; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"DeleteWordPartLeft",(function(){return h})),n.d(t,"DeleteWordPartRight",(function(){return g})),n.d(t,"WordPartLeftCommand",(function(){return y})),n.d(t,"CursorWordPartLeft",(function(){return w})),n.d(t,"CursorWordPartLeftSelect",(function(){return O})),n.d(t,"WordPartRightCommand",(function(){return k})),n.d(t,"CursorWordPartRight",(function(){return L})),n.d(t,"CursorWordPartRightSelect",(function(){return T}));var o,i,r=n(449),a=n(954),s=n(440),l=n(469),c=n(1006),u=n(489),d=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=(d(p,i=c.DeleteWordCommand),p.prototype._delete=function(e,t,n,o,i){return a.b.deleteWordPartLeft(e,t,n,o)||new s.a(1,1,1,1)},p);function p(){return i.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:l.a.writable,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:769},weight:100}})||this}var f,g=(d(m,f=c.DeleteWordCommand),m.prototype._delete=function(e,t,n,o,i){var r=a.b.deleteWordPartRight(e,t,n,o);if(r)return r;var l=t.getLineCount(),c=t.getLineMaxColumn(l);return new s.a(l,c,l,c)},m);function m(){return f.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:l.a.writable,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:788},weight:100}})||this}var v,y=(d(b,v=c.MoveWordCommand),b.prototype._move=function(e,t,n,o){return a.b.moveWordPartLeft(e,t,n)},b);function b(){return null!==v&&v.apply(this,arguments)||this}var _,w=(d(C,_=y),C);function C(){return _.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:783},weight:100}})||this}u.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var S,O=(d(x,S=y),x);function x(){return S.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:1807},weight:100}})||this}u.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var E,k=(d(N,E=c.MoveWordCommand),N.prototype._move=function(e,t,n,o){return a.b.moveWordPartRight(e,t,n)},N);function N(){return null!==E&&E.apply(this,arguments)||this}var D,L=(d(P,D=k),P);function P(){return D.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:785},weight:100}})||this}var I,T=(d(M,I=k),M);function M(){return I.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:1809},weight:100}})||this}Object(r.g)(new h),Object(r.g)(new g),Object(r.g)(new w),Object(r.g)(new O),Object(r.g)(new L),Object(r.g)(new T)},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return n.e(236).then(n.bind(null,1544))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return n.e(237).then(n.bind(null,1545))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return n.e(238).then(n.bind(null,1546))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return n.e(239).then(n.bind(null,1547))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return n.e(240).then(n.bind(null,1548))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return n.e(241).then(n.bind(null,1549))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return n.e(242).then(n.bind(null,1550))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return n.e(33).then(n.bind(null,1269))}}),Object(o.a)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return n.e(33).then(n.bind(null,1269))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return n.e(243).then(n.bind(null,1551))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return n.e(244).then(n.bind(null,1552))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return n.e(245).then(n.bind(null,1553))}})},function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return i})),n(785);var o=monaco.Emitter,i=(Object.defineProperty(r.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),r.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},r.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},r);function r(e,t,n){this._onDidChange=new o,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}var a={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"}},s={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},l=new i("css",a,s),c=new i("scss",a,s),u=new i("less",a,s);function d(){return n.e(220).then(n.bind(null,1606))}monaco.languages.css={cssDefaults:l,lessDefaults:u,scssDefaults:c},monaco.languages.onLanguage("less",(function(){d().then((function(e){return e.setupMode(u)}))})),monaco.languages.onLanguage("scss",(function(){d().then((function(e){return e.setupMode(c)}))})),monaco.languages.onLanguage("css",(function(){d().then((function(e){return e.setupMode(l)}))}))},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return n.e(246).then(n.bind(null,1554))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return n.e(247).then(n.bind(null,1555))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return n.e(248).then(n.bind(null,1556))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return n.e(249).then(n.bind(null,1557))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return n.e(250).then(n.bind(null,1558))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({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(251).then(n.bind(null,1559))}})},function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return i})),n(785);var o=monaco.Emitter,i=(Object.defineProperty(r.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),r.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},r.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},r);function r(e,t,n){this._onDidChange=new o,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}var a={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"},s={format:a,suggest:{html5:!0}},l={format:a,suggest:{html5:!0,razor:!0}};function c(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===u,documentFormattingEdits:e===u,documentRangeFormattingEdits:e===u}}var u="html",d="handlebars",h=new i(u,{format:a,suggest:{html5:!0,angular1:!0,ionic:!0}},c(u)),p=new i(d,s,c(d)),f=new i("razor",l,c("razor"));function g(){return n.e(221).then(n.bind(null,1607))}monaco.languages.html={htmlDefaults:h,razorDefaults:f,handlebarDefaults:p},monaco.languages.onLanguage(u,(function(){g().then((function(e){return e.setupMode(h)}))})),monaco.languages.onLanguage(d,(function(){g().then((function(e){return e.setupMode(p)}))})),monaco.languages.onLanguage("razor",(function(){g().then((function(e){return e.setupMode(f)}))}))},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return n.e(252).then(n.bind(null,1560))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return n.e(253).then(n.bind(null,1561))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return n.e(219).then(n.bind(null,1562))}})},function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return i})),n(785);var o=monaco.Emitter,i=(Object.defineProperty(r.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),r.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},r.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},r);function r(e,t,n){this._onDidChange=new o,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}var a=new i("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});monaco.languages.json={jsonDefaults:a},monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",(function(){n.e(222).then(n.bind(null,1608)).then((function(e){return e.setupMode(a)}))}))},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return n.e(254).then(n.bind(null,1563))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return n.e(255).then(n.bind(null,1564))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return n.e(256).then(n.bind(null,1565))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return n.e(257).then(n.bind(null,1566))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return n.e(258).then(n.bind(null,1567))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return n.e(259).then(n.bind(null,1568))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return n.e(260).then(n.bind(null,1569))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return n.e(261).then(n.bind(null,1570))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return n.e(262).then(n.bind(null,1571))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return n.e(263).then(n.bind(null,1572))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return n.e(264).then(n.bind(null,1573))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return n.e(265).then(n.bind(null,1574))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return n.e(266).then(n.bind(null,1575))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return n.e(267).then(n.bind(null,1576))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return n.e(268).then(n.bind(null,1577))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return n.e(269).then(n.bind(null,1578))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return n.e(270).then(n.bind(null,1579))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return n.e(271).then(n.bind(null,1580))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return n.e(272).then(n.bind(null,1581))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return n.e(273).then(n.bind(null,1582))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return n.e(274).then(n.bind(null,1583))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return n.e(275).then(n.bind(null,1584))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return n.e(276).then(n.bind(null,1585))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return n.e(277).then(n.bind(null,1586))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return n.e(278).then(n.bind(null,1587))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return n.e(279).then(n.bind(null,1588))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return n.e(280).then(n.bind(null,1589))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return n.e(281).then(n.bind(null,1590))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return n.e(282).then(n.bind(null,1591))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return n.e(283).then(n.bind(null,1592))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return n.e(284).then(n.bind(null,1593))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return n.e(285).then(n.bind(null,1594))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return n.e(286).then(n.bind(null,1595))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return n.e(287).then(n.bind(null,1596))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return n.e(288).then(n.bind(null,1597))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return n.e(289).then(n.bind(null,1598))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return n.e(290).then(n.bind(null,1509))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return n.e(291).then(n.bind(null,1599))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({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(292).then(n.bind(null,1600))}})},function(e,t,n){"use strict";n.r(t);var o=n(447);Object(o.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return n.e(293).then(n.bind(null,1601))}})},,,,,,,,,,function(e,t,n){"use strict";n.r(t);var o,i=n(635),r=n(459),a=n(446),s=n(548),l=n(439),c=n(449),u=n(704),d=n(440),h=n(469),p=n(926),f=n(964),g=n(553),m=n(775),v=n(454),y=n(453),b=n(448),_=n(573),w=n(792),C=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=function(e,t){return function(n,o){t(n,o,e)}},O=(x.prototype.select=function(e,t,n){if(0===n.length)return 0;for(var o=n[0].score[0],i=1;i<n.length;i++){var r=n[i],a=r.score,s=r.completion;if(a[0]!==o)break;if(s.preselect)return i}return 0},x);function x(){}var E,k=(C(N,E=O),N.prototype.memorize=function(e,t,n){},N.prototype.toJSON=function(){},N.prototype.fromJSON=function(){},N);function N(){return null!==E&&E.apply(this,arguments)||this}var D,L=(C(P,D=O),P.prototype.memorize=function(e,t,n){var o=n.completion.label,i=e.getLanguageIdentifier().language+"/"+o;this._cache.set(i,{touch:this._seq++,type:n.completion.kind,insertText:n.completion.insertText})},P.prototype.select=function(e,t,n){if(0===n.length)return 0;var o=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(o))return D.prototype.select.call(this,e,t,n);for(var i=n[0].score[0],r=-1,a=-1,s=0;s<n.length&&n[s].score[0]===i;s++){var l=e.getLanguageIdentifier().language+"/"+n[s].completion.label,c=this._cache.peek(l);if(c&&c.touch>a&&c.type===n[s].completion.kind&&c.insertText===n[s].completion.insertText&&(a=c.touch,r=s),n[s].completion.preselect)return s}return-1!==r?r:0},P.prototype.toJSON=function(){var e=[];return this._cache.forEach((function(t,n){e.push([n,t])})),e},P.prototype.fromJSON=function(e){this._cache.clear();for(var t=0,n=e;t<n.length;t++){var o=n[t],i=o[0],r=o[1];r.touch=0,r.type="number"==typeof r.type?r.type:Object(v.E)(r.type),this._cache.set(i,r)}this._seq=this._cache.size},P);function P(){var e=null!==D&&D.apply(this,arguments)||this;return e._cache=new g.a(300,.66),e._seq=0,e}var I,T=(C(M,I=O),M.prototype.memorize=function(e,t,n){var o=e.getWordUntilPosition(t).word,i=e.getLanguageIdentifier().language+"/"+o;this._trie.set(i,{type:n.completion.kind,insertText:n.completion.insertText,touch:this._seq++})},M.prototype.select=function(e,t,n){var o=e.getWordUntilPosition(t).word;if(!o)return I.prototype.select.call(this,e,t,n);var i=e.getLanguageIdentifier().language+"/"+o,r=this._trie.get(i);if(r=r||this._trie.findSubstr(i))for(var a=0;a<n.length;a++){var s=n[a].completion,l=s.kind,c=s.insertText;if(l===r.type&&c===r.insertText)return a}return I.prototype.select.call(this,e,t,n)},M.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)},M.prototype.fromJSON=function(e){if(this._trie.clear(),0<e.length){this._seq=e[0][1].touch+1;for(var t=0,n=e;t<n.length;t++){var o=n[t],i=o[0],r=o[1];r.type="number"==typeof r.type?r.type:Object(v.E)(r.type),this._trie.set(i,r)}}},M);function M(){var e=null!==I&&I.apply(this,arguments)||this;return e._trie=g.c.forStrings(),e._seq=0,e}var j,R=(C(A,j=l.a),A.prototype._update=function(e,t,n){if(n||this._mode!==e||this._shareMem!==t){this._shareMem=t,this._mode=e,this._strategy=new("recentlyUsedByPrefix"===e?T:"recentlyUsed"===e?L:k);try{var o=t?0:1,i=this._storageService.get(this._storagePrefix+"/"+this._mode,o);i&&this._strategy.fromJSON(JSON.parse(i))}catch(e){}}},A.prototype.memorize=function(e,t,n){this._strategy.memorize(e,t,n),this._persistSoon.schedule()},A.prototype.select=function(e,t,n){return this._strategy.select(e,t,n)},A.prototype._saveState=function(){var e=JSON.stringify(this._strategy),t=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,e,t)},A=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([S(0,m.a),S(1,_.a)],A));function A(e,t){var n=j.call(this)||this;function o(){var e=n._configService.getValue("editor.suggestSelection"),t=n._configService.getValue("editor.suggest.shareSuggestSelections");n._update(e,t,!1)}return n._storageService=e,n._configService=t,n._storagePrefix="suggest/memories",n._persistSoon=n._register(new y.d((function(){return n._saveState()}),500)),n._register(e.onWillSaveState((function(e){e.reason===m.c.SHUTDOWN&&n._saveState()}))),n._register(n._configService.onDidChangeConfiguration((function(e){(e.affectsConfiguration("editor.suggestSelection")||e.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&o()}))),n._register(n._storageService.onDidChangeStorage((function(e){0===e.scope&&0===e.key.indexOf(n._storagePrefix)&&(document.hasFocus()||n._update(n._mode,n._shareMem,!0))}))),o(),n}var F=Object(b.c)("ISuggestMemories");Object(w.b)(F,R,!0);var V=n(445),W=n(489),B=n(456),H=n(788),z=n(900),K=(U.prototype.dispose=function(){this.reset()},U.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(l.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},U.prototype.set=function(e,t){var n=this,o=e.model,i=e.index;0!==o.items.length&&U._moveIndex(!0,o,i)!==i?(this._acceptNext=t,this._model=o,this._index=i,this._listener=this._editor.onDidChangeCursorPosition((function(){n._ignore||n.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()},U._moveIndex=function(e,t,n){for(var o=n;(o=(o+t.items.length+(e?1:-1))%t.items.length)!==n&&t.items[o].completion.additionalTextEdits;);return o},U.prototype.next=function(){this._move(!0)},U.prototype.prev=function(){this._move(!1)},U.prototype._move=function(e){if(this._model)try{this._ignore=!0,this._index=U._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},U.OtherSuggestions=new B.d("hasOtherSuggestions",!1),U=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(1,B.c)],U));function U(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=U.OtherSuggestions.bindTo(t)}var q=n(442),G=n(466),Y=n(760),Z=n(444),$=(Object.defineProperty(X.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(X.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),X.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(X.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),X.prototype._ensureCachedState=function(){0!==this._refilterKind&&this._createCachedState()},X.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,o="",i="",r=1===this._refilterKind?this._items:this._filteredItems,a=[],s=!this._options.filterGraceful||2e3<r.length?Y.d:Y.e,l=0;l<r.length;l++){var c=r[l];c.container.incomplete&&this._isIncomplete.add(c.provider);var u=c.position.column-c.editStart.column,d=u+n-(c.position.column-this._column);if(o.length!==d&&(i=(o=0==d?"":t.slice(-d)).toLowerCase()),c.word=o,0==d)c.score=Y.a.Default;else{for(var h=0;h<u;){var p=o.charCodeAt(h);if(32!==p&&9!==p)break;h+=1}var f="string"==typeof c.completion.label?c.completion.label:c.completion.label.name;if(d<=h)c.score=Y.a.Default;else if("string"==typeof c.completion.filterText){if(!(g=s(o,i,h,c.completion.filterText,c.filterTextLow,0,!1)))continue;0===Object(Z.f)(c.completion.filterText,f)?c.score=g:(c.score=Object(Y.b)(o,i,h,f,c.labelLow,0),c.score[0]=g[0])}else{var g;if(!(g=s(o,i,h,f,c.labelLow,0,!1)))continue;c.score=g}}switch(c.idx=l,c.distance=this._wordDistance.distance(c.position,c.completion),a.push(c),this._stats.suggestionCount++,c.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++}}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0},X._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},X._compareCompletionItemsSnippetsDown=function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return 1;if(25===t.completion.kind)return-1}return X._compareCompletionItems(e,t)},X._compareCompletionItemsSnippetsUp=function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return-1;if(25===t.completion.kind)return 1}return X._compareCompletionItems(e,t)},X);function X(e,t,n,o,i,r){this._snippetCompareFn=X._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=o,this._options=i,this._refilterKind=1,this._lineContext=n,"top"===r?this._snippetCompareFn=X._compareCompletionItemsSnippetsUp:"bottom"===r&&(this._snippetCompareFn=X._compareCompletionItemsSnippetsDown)}var J,Q,ee=n(484),te=n(1099),ne=(J=function(e,t){return(J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}J(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),oe=(ie.create=function(e,t){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,o,i,a;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(s){switch(s.label){case 0:return t.getOption(89).localityBonus&&t.hasModel()?(n=t.getModel(),o=t.getPosition(),e.canComputeWordRanges(n.uri)?[4,(new te.a).provideSelectionRanges(n,[o])]:[2,ie.None]):[2,ie.None];case 1:return(i=s.sent())&&0!==i.length&&0!==i[0].length?[4,e.computeWordRanges(n.uri,i[0][0].range)]:[2,ie.None];case 2:return a=s.sent(),[2,(ne(l,c=ie),l.prototype.distance=function(e,n){if(!a||!o.equals(t.getPosition()))return 0;if(17===n.kind)return 2<<20;var s="string"==typeof n.label?n.label:n.label.name,l=a[s];if(Object(r.p)(l))return 2<<20;for(var c=Object(r.c)(l,d.a.fromPositions(e),d.a.compareRangesUsingStarts),u=0<=c?l[c]:l[Math.max(0,~c-1)],h=i.length,p=0,f=i[0];p<f.length;p++){var g=f[p];if(!d.a.containsRange(g.range,u))break;--h}return h},new l)]}function l(){return null!==c&&c.apply(this,arguments)||this}var c}))}))},ie.None=(ne(re,Q=ie),re.prototype.distance=function(){return 0},new re),ie);function ie(){}function re(){return null!==Q&&Q.apply(this,arguments)||this}var ae=(se.shouldAutoTrigger=function(e){if(!e.hasModel())return!1;var t=e.getModel(),n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);var o=t.getWordAtPosition(n);return!!o&&o.endColumn===n.column&&!!isNaN(Number(o.word))},se);function se(e,t,n,o){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=o}var le=(ce.prototype.dispose=function(){Object(l.f)(this._triggerCharacterListener),Object(l.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},ce.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getOption(67),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},ce.prototype._updateTriggerCharacters=function(){var e=this;if(this._triggerCharacterListener.clear(),!this._editor.getOption(68)&&this._editor.hasModel()&&this._editor.getOption(92)){for(var t=new Map,n=0,o=v.d.all(this._editor.getModel());n<o.length;n++)for(var i=o[n],r=0,a=i.triggerCharacters||[];r<a.length;r++){var s=a[r],l=t.get(s);l||((l=new Set).add(Object(z.c)()),t.set(s,l)),l.add(i)}var c=function(n){if(!n){var o=e._editor.getPosition();n=e._editor.getModel().getLineContent(o.lineNumber).substr(0,o.column-1)}var i="";Object(Z.A)(n.charCodeAt(n.length-1))?Object(Z.z)(n.charCodeAt(n.length-2))&&(i=n.substr(n.length-2)):i=n.charAt(n.length-1);var r=t.get(i);if(r){var a=e._completionModel?e._completionModel.adopt(r):void 0;e.trigger({auto:!0,shy:!1,triggerCharacter:i},Boolean(e._completionModel),r,a)}};this._triggerCharacterListener.add(this._editor.onDidType(c)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(c))}},Object.defineProperty(ce.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),ce.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}))},ce.prototype.clear=function(){this._completionDisposables.clear()},ce.prototype._updateActiveSuggestSession=function(){0!==this._state&&(this._editor.hasModel()&&v.d.has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1},!0):this.cancel())},ce.prototype._onCursorChange=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getModel(),o=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source)this.cancel();else if(v.d.has(n)&&0===this._state){if(!1===this._editor.getOption(66))return;if(!o.containsRange(this._currentSelection)&&!o.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(89).snippetsPreventQuickSuggestions&&p.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet((function(){if(0===t._state&&ae.shouldAutoTrigger(t._editor)&&t._editor.hasModel()){var e=t._editor.getModel(),n=t._editor.getPosition(),o=t._editor.getOption(66);if(!1!==o){if(!0!==o){e.tokenizeIfCheap(n.lineNumber);var i=e.getLineTokens(n.lineNumber),r=i.getStandardTokenType(i.findTokenIndexAtOffset(Math.max(n.column-1-1,0)));if(!(o.other&&0===r||o.comments&&1===r||o.strings&&2===r))return}t.trigger({auto:!0,shy:!1})}}}),this._quickSuggestDelay)}}},ce.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(),o=new ae(t,n,2===e._state,!1);e._onNewContext(o)}}))},ce.prototype.trigger=function(e,t,n,o){var i=this;if(void 0===t&&(t=!1),this._editor.hasModel()){var s,c=this._editor.getModel(),u=e.auto,d=new ae(c,this._editor.getPosition(),u,e.shy);this.cancel(t),this._state=u?2:1,this._onDidTrigger.fire({auto:u,shy:e.shy,position:this._editor.getPosition()}),this._context=d,s=e.triggerCharacter?{triggerKind:1,triggerCharacter:e.triggerCharacter}:n&&0<n.size?{triggerKind:2}:{triggerKind:0},this._requestToken=new ee.b;var h=this._editor.getOption(86),p=1;switch(h){case"top":p=0;break;case"bottom":p=2}var f=ce._createItemKindFilter(this._editor),g=oe.create(this._editorWorker,this._editor),m=Object(z.e)(c,this._editor.getPosition(),new z.a(p,f,n),s,this._requestToken.token);Promise.all([m,g]).then((function(t){var n=t[0],a=t[1];if(Object(l.f)(i._requestToken),0!==i._state&&i._editor.hasModel()){var s=i._editor.getModel();if(Object(r.q)(o)){var c=Object(z.d)(p);n=n.concat(o).sort(c)}var d=new ae(s,i._editor.getPosition(),u,e.shy);i._completionModel=new $(n,i._context.column,{leadingLineContent:d.leadingLineContent,characterCountDelta:d.column-i._context.column},a,i._editor.getOption(89),i._editor.getOption(86));for(var h=0,f=n;h<f.length;h++){var g=f[h];Object(l.g)(g.container)&&i._completionDisposables.add(g.container)}i._onNewContext(d)}})).catch(a.e)}},ce._createItemKindFilter=function(e){var t=new Set;"none"===e.getOption(86)&&t.add(25);var n=e.getOption(89);return n.showMethods||t.add(0),n.showFunctions||t.add(1),n.showConstructors||t.add(2),n.showFields||t.add(3),n.showVariables||t.add(4),n.showClasses||t.add(5),n.showStructs||t.add(6),n.showInterfaces||t.add(7),n.showModules||t.add(8),n.showProperties||t.add(9),n.showEvents||t.add(10),n.showOperators||t.add(11),n.showUnits||t.add(12),n.showValues||t.add(13),n.showConstants||t.add(14),n.showEnums||t.add(15),n.showEnumMembers||t.add(16),n.showKeywords||t.add(17),n.showWords||t.add(18),n.showColors||t.add(19),n.showFiles||t.add(20),n.showReferences||t.add(21),n.showColors||t.add(22),n.showFolders||t.add(23),n.showTypeParameters||t.add(24),n.showSnippets||t.add(25),t},ce.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&&0<this._completionModel.incomplete.size&&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 o=this._completionModel.lineContext,i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(ae.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=o,(i=0<this._completionModel.items.length)&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:i})}}else this.cancel()},ce);function ce(e,t){var n=this;this._editor=e,this._editorWorker=t,this._toDispose=new l.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new l.b,this._triggerQuickSuggest=new y.e,this._state=0,this._completionDisposables=new l.b,this._onDidCancel=new q.a,this._onDidTrigger=new q.a,this._onDidSuggest=new q.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new G.a(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(v.d.onDidChange((function(){n._updateTriggerCharacters(),n._updateActiveSuggestSession()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((function(e){n._onCursorChange(e)})));var o=!1;this._toDispose.add(this._editor.onDidCompositionStart((function(){o=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((function(){o=!1,n._refilterCompletionItems()}))),this._toDispose.add(this._editor.onDidChangeModelContent((function(){o||n._refilterCompletionItems()}))),this._updateTriggerCharacters(),this._updateQuickSuggest()}n(1380),n(1381),n(1097),n(1098);var ue,de,he=n(443),pe=n(972),fe=n(688),ge=n(531),me=n(821),ve=n(826),ye=n(451),be=n(461),_e=n(915),we=n(778),Ce=n(636),Se=n(960),Oe=n(596),xe=n(554),Ee=n(901);function ke(e,t,n,o){var i,r=o===ue.ROOT_FOLDER?["rootfolder-icon"]:o===ue.FOLDER?["folder-icon"]:["file-icon"];if(n)if(i=n.scheme===Oe.b.data?xe.a.parseMetaData(n).get(xe.a.META_DATA_LABEL):Ne(Object(xe.c)(n).toLowerCase()),o===ue.FOLDER)r.push(i+"-name-folder-icon");else{if(i){r.push(i+"-name-file-icon");for(var a=i.split("."),s=1;s<a.length;s++)r.push(a.slice(s).join(".")+"-ext-file-icon");r.push("ext-file-icon")}var l=function(e,t,n){if(!n)return null;var o=null;if(n.scheme===Oe.b.data){var i=xe.a.parseMetaData(n).get(xe.a.META_DATA_MIME);i&&(o=t.getModeId(i))}else{var r=e.getModel(n);r&&(o=r.getModeId())}return o&&o!==Ee.c?o:t.getModeIdByFilepathOrFirstLine(n)}(e,t,n);l&&r.push(Ne(l)+"-lang-file-icon")}return r}function Ne(e){return e.replace(/\s/g,"\\$&")}(de=ue=ue||{})[de.FILE=0]="FILE",de[de.FOLDER=1]="FOLDER",de[de.ROOT_FOLDER=2]="ROOT_FOLDER";var De=n(598),Le=n(479),Pe=n(795),Ie=n(450),Te=function(){return(Te=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Me=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},je=function(e,t){return function(n,o){t(n,o,e)}},Re=Object(be.Tb)("editorSuggestWidget.background",{dark:be.Q,light:be.Q,hc:be.Q},V.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),Ae=Object(be.Tb)("editorSuggestWidget.border",{dark:be.R,light:be.R,hc:be.R},V.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),Fe=Object(be.Tb)("editorSuggestWidget.foreground",{dark:be.x,light:be.x,hc:be.x},V.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),Ve=Object(be.Tb)("editorSuggestWidget.selectedBackground",{dark:be.rb,light:be.rb,hc:be.rb},V.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),We=Object(be.Tb)("editorSuggestWidget.highlightForeground",{dark:be.tb,light:be.tb,hc:be.tb},V.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),Be=/^(#([\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 He(e){if(e){var t=e.completion;return t.documentation||t.detail&&t.detail!==t.label}}function ze(e){return"suggest-aria-id:"+e}var Ke=(Object.defineProperty(Ue.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),Ue.prototype.renderTemplate=function(e){var t=this,n=Object.create(null);n.disposables=new l.b,n.root=e,Object(he.f)(n.root,"show-file-icons"),n.icon=Object(he.q)(e,Object(he.a)(".icon")),n.colorspan=Object(he.q)(n.icon,Object(he.a)("span.colorspan"));var o=Object(he.q)(e,Object(he.a)(".contents")),i=Object(he.q)(o,Object(he.a)(".main"));function r(){var e=t.editor.getOptions(),o=e.get(34),r=o.fontFamily,a=o.fontFeatureSettings,s=e.get(90)||o.fontSize,l=e.get(91)||o.lineHeight,c=o.fontWeight,u=s+"px",d=l+"px";n.root.style.fontSize=u,n.root.style.fontWeight=c,i.style.fontFamily=r,i.style.fontFeatureSettings=a,i.style.lineHeight=d,n.icon.style.height=d,n.icon.style.width=d,n.readMore.style.height=d,n.readMore.style.width=d}return n.left=Object(he.q)(i,Object(he.a)("span.left")),n.right=Object(he.q)(i,Object(he.a)("span.right")),n.iconContainer=Object(he.q)(n.left,Object(he.a)(".icon-label.codicon")),n.iconLabel=new Se.a(n.left,{supportHighlights:!0,supportCodicons:!0}),n.disposables.add(n.iconLabel),n.signatureLabel=Object(he.q)(n.left,Object(he.a)("span.signature-label")),n.qualifierLabel=Object(he.q)(n.left,Object(he.a)("span.qualifier-label")),n.detailsLabel=Object(he.q)(n.right,Object(he.a)("span.details-label")),n.readMore=Object(he.q)(n.right,Object(he.a)("span.readMore.codicon.codicon-info")),n.readMore.title=V.a("readMore","Read More...{0}",this.triggerKeybindingLabel),r(),n.disposables.add(q.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(34)||e.hasChanged(90)||e.hasChanged(91)})).on(r,null)),n},Ue.prototype.renderElement=function(e,t,n){var o=this,i=n,a=e.completion,s="string"==typeof a.label?a.label:a.label.name;i.root.id=ze(t),i.icon.className="icon "+Object(v.F)(a.kind);var l,c,u,d={labelEscapeNewLines:!(i.colorspan.style.backgroundColor=""),matches:Object(Y.c)(e.score)},h=[];if(19===a.kind&&(c=h,(u="string"==typeof(l=e).completion.label?l.completion.label:l.completion.label.name).match(Be)?(c[0]=u,1):"string"==typeof l.completion.documentation&&l.completion.documentation.match(Be)&&(c[0]=l.completion.documentation,1)))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=h[0];else if(20===a.kind&&this._themeService.getIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";var p=ke(this._modelService,this._modeService,Le.a.from({scheme:"fake",path:s}),ue.FILE),f=ke(this._modelService,this._modeService,Le.a.from({scheme:"fake",path:a.detail}),ue.FILE);d.extraClasses=p.length>f.length?p:f}else 23===a.kind&&this._themeService.getIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",d.extraClasses=Object(r.m)([ke(this._modelService,this._modeService,Le.a.from({scheme:"fake",path:s}),ue.FOLDER),ke(this._modelService,this._modeService,Le.a.from({scheme:"fake",path:a.detail}),ue.FOLDER)])):(i.icon.className="icon hide",i.iconContainer.className="",Object(he.g)(i.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(v.F)(a.kind)));a.tags&&0<=a.tags.indexOf(1)&&(d.extraClasses=(d.extraClasses||[]).concat(["deprecated"]),d.matches=[]),i.iconLabel.setLabel(s,void 0,d),"string"==typeof a.label?(i.signatureLabel.textContent="",i.qualifierLabel.textContent="",i.detailsLabel.textContent=(a.detail||"").replace(/\n.*$/m,""),Object(he.P)(i.right,"always-show-details")):(i.signatureLabel.textContent=(a.label.signature||"").replace(/\n.*$/m,""),i.qualifierLabel.textContent=(a.label.qualifier||"").replace(/\n.*$/m,""),i.detailsLabel.textContent=(a.label.type||"").replace(/\n.*$/m,""),Object(he.f)(i.right,"always-show-details")),He(e)?(Object(he.f)(i.right,"can-expand-details"),Object(he.X)(i.readMore),i.readMore.onmousedown=function(e){e.stopPropagation(),e.preventDefault()},i.readMore.onclick=function(e){e.stopPropagation(),e.preventDefault(),o.widget.toggleDetails()}):(Object(he.P)(i.right,"can-expand-details"),Object(he.J)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)},Ue.prototype.disposeTemplate=function(e){e.disposables.dispose()},Ue=Me([je(3,De.a),je(4,we.a),je(5,ye.c)],Ue));function Ue(e,t,n,o,i,r){this.widget=e,this.editor=t,this.triggerKeybindingLabel=n,this._modelService=o,this._modeService=i,this._themeService=r}var qe=(Object.defineProperty(Ge.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),Ge.prototype.renderLoading=function(){this.type.textContent=V.a("loading","Loading..."),this.docs.textContent=""},Ge.prototype.renderItem=function(e,t){var n=this;this.renderDisposeable=Object(l.f)(this.renderDisposeable);var o=e.completion,i=o.documentation,r=o.detail;if(t){var a="";a+="score: "+e.score[0]+(e.word?", compared '"+(e.completion.filterText&&e.completion.filterText+" (filterText)"||e.completion.label)+"' with '"+e.word+"'":" (no prefix)")+"\n",a+="distance: "+e.distance+", see localityBonus-setting\n",a+="index: "+e.idx+", based on "+(e.completion.sortText&&'sortText: "'+e.completion.sortText+'"'||"label")+"\n",i=(new Pe.a).appendCodeblock("empty",a),r="Provider: "+e.provider._debugDisplayName}if(!t&&!He(e))return this.type.textContent="",this.docs.textContent="",void Object(he.f)(this.el,"no-docs");if(Object(he.P)(this.el,"no-docs"),"string"==typeof i)Object(he.P)(this.docs,"markdown-docs"),this.docs.textContent=i;else{Object(he.f)(this.docs,"markdown-docs"),this.docs.innerHTML="";var s=this.markdownRenderer.render(i);this.renderDisposeable=s,this.docs.appendChild(s.element)}r?(this.type.innerText=r,Object(he.X)(this.type)):(this.type.innerText="",Object(he.J)(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()},Ge.prototype.scrollDown=function(e){void 0===e&&(e=8),this.body.scrollTop+=e},Ge.prototype.scrollUp=function(e){void 0===e&&(e=8),this.body.scrollTop-=e},Ge.prototype.scrollTop=function(){this.body.scrollTop=0},Ge.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},Ge.prototype.pageDown=function(){this.scrollDown(80)},Ge.prototype.pageUp=function(){this.scrollUp(80)},Ge.prototype.setBorderWidth=function(e){this.borderWidth=e},Ge.prototype.configureFont=function(){var e=this.editor.getOptions(),t=e.get(34),n=t.fontFamily,o=e.get(90)||t.fontSize,i=e.get(91)||t.lineHeight,r=t.fontWeight,a=o+"px",s=i+"px";this.el.style.fontSize=a,this.el.style.fontWeight=r,this.el.style.fontFeatureSettings=t.fontFeatureSettings,this.type.style.fontFamily=n,this.close.style.height=s,this.close.style.width=s},Ge.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(l.f)(this.renderDisposeable)},Ge);function Ge(e,t,n,o,i){var r=this;this.widget=t,this.editor=n,this.markdownRenderer=o,this.kbToggleDetails=i,this.borderWidth=1,this.disposables=new l.b,this.el=Object(he.q)(e,Object(he.a)(".details")),this.disposables.add(Object(l.h)((function(){return e.removeChild(r.el)}))),this.body=Object(he.a)(".body"),this.scrollbar=new fe.a(this.body,{}),Object(he.q)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(he.q)(this.body,Object(he.a)(".header")),this.close=Object(he.q)(this.header,Object(he.a)("span.codicon.codicon-close")),this.close.title=V.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(he.q)(this.header,Object(he.a)("p.type")),this.docs=Object(he.q)(this.body,Object(he.a)("p.docs")),this.configureFont(),q.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(34)})).on(this.configureFont,this,this.disposables),o.onDidRenderCodeBlock((function(){return r.scrollbar.scanDomNode()}),this,this.disposables)}var Ye=(Ze.prototype.onEditorMouseDown=function(e){this.details.element.contains(e.target.element)?this.details.element.focus():this.element.contains(e.target.element)&&this.editor.focus()},Ze.prototype.onCursorSelectionChanged=function(){0!==this.state&&this.editor.layoutContentWidget(this)},Ze.prototype.onEditorLayoutChange=function(){3!==this.state&&5!==this.state||!this.expandDocsSettingFromStorage()||this.expandSideOrBelow()},Ze.prototype.onListMouseDownOrTap=function(e){void 0!==e.element&&void 0!==e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this.select(e.element,e.index))},Ze.prototype.onListSelection=function(e){e.elements.length&&this.select(e.elements[0],e.indexes[0])},Ze.prototype.select=function(e,t){var n=this.completionModel;n&&(this.onDidSelectEmitter.fire({item:e,index:t,model:n}),this.editor.focus())},Ze.prototype.onThemeChange=function(e){var t=e.getColor(Re);t&&(this.listElement.style.backgroundColor=t.toString(),this.statusBarElement.style.backgroundColor=t.toString(),this.details.element.style.backgroundColor=t.toString(),this.messageElement.style.backgroundColor=t.toString());var n=e.getColor(Ae);n&&(this.listElement.style.borderColor=n.toString(),this.statusBarElement.style.borderColor=n.toString(),this.details.element.style.borderColor=n.toString(),this.messageElement.style.borderColor=n.toString(),this.detailsBorderColor=n.toString());var o=e.getColor(be.V);o&&(this.detailsFocusBorderColor=o.toString()),this.details.setBorderWidth("hc"===e.type?2:1)},Ze.prototype.onListFocus=function(e){var t,n,o=this;if(!this.ignoreFocusEvents){if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this.editor.setAriaOptions({activeDescendant:void 0});if(this.completionModel){var i=e.elements[0],r=e.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,i!==this.focusedItem){var s="insert"===this.editor.getOption(89).insertMode,l=null===(t=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))||void 0===t?void 0:t.getLabel(),c=null===(n=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))||void 0===n?void 0:n.getLabel();Ie.a.equals(i.editInsertEnd,i.editReplaceEnd)?this.setStatusBarLeftText(V.a("accept","{0} to accept",l)):s?this.setStatusBarLeftText(V.a("insert","{0} to insert, {1} to replace",l,c)):this.setStatusBarLeftText(V.a("replace","{0} to replace, {1} to insert",l,c)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=i,this.list.reveal(r),this.currentSuggestionDetails=Object(y.f)((function(e){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(o,void 0,void 0,(function(){var t,n,o=this;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(r){switch(r.label){case 0:return t=Object(y.g)((function(){return o.showDetails(!0)}),250),e.onCancellationRequested((function(){return t.dispose()})),[4,i.resolve(e)];case 1:return n=r.sent(),t.dispose(),[2,n]}}))}))})),this.currentSuggestionDetails.then((function(){r>=o.list.length||i!==o.list.element(r)||(o.ignoreFocusEvents=!0,o.list.splice(r,1,[i]),o.list.setFocus([r]),o.ignoreFocusEvents=!1,o.expandDocsSettingFromStorage()?o.showDetails(!1):Object(he.P)(o.element,"docs-side"),He(o.focusedItem)?o.expandDocsSettingFromStorage()?o.setStatusBarRightText(o.msgDetailsLess):o.setStatusBarRightText(o.msgDetailMore):o.statusBarRightSpan.innerText="",o.editor.setAriaOptions({activeDescendant:ze(r)}))})).catch(a.e)}this.onDidFocusEmitter.fire({item:i,index:r,model:this.completionModel})}}},Ze.prototype.setState=function(e){if(this.element){var t=this.state!==e;switch(this.state=e,Object(he.Y)(this.element,"frozen",4===e),e){case 0:Object(he.J)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,t&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=Ze.LOADING_MESSAGE,Object(he.J)(this.listElement,this.details.element,this.statusBarElement),Object(he.X)(this.messageElement),Object(he.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=Ze.NO_SUGGESTIONS_MESSAGE,Object(he.J)(this.listElement,this.details.element,this.statusBarElement),Object(he.X)(this.messageElement),Object(he.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(he.J)(this.messageElement),Object(he.X)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(he.J)(this.messageElement),Object(he.X)(this.listElement),this.show();break;case 5:Object(he.J)(this.messageElement),Object(he.X)(this.details.element,this.listElement,this.statusBarElement),this.show()}}},Ze.prototype.showTriggered=function(e,t){var n=this;0===this.state&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=Object(y.g)((function(){return n.setState(1)}),t)))},Ze.prototype.showSuggestions=function(e,t,n,o){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 i=this.completionModel.items.length,r=0===i;if(this.suggestWidgetMultipleSuggestions.set(1<i),r)o?this.setState(0):this.setState(2),this.completionModel=null;else{if(3!==this.state){var a=this.completionModel.stats;a.wasAutomaticallyTriggered=!!o,this.telemetryService.publicLog("suggestWidget",Te({},a))}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)}}},Ze.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}},Ze.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},Ze.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}},Ze.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}},Ze.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},Ze.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}},Ze.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}},Ze.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")},Ze.prototype.toggleDetails=function(){if(He(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(he.J)(this.details.element),Object(he.P)(this.element,"docs-side"),Object(he.P)(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(3!==this.state&&5!==this.state&&4!==this.state)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},Ze.prototype.showDetails=function(e){e||this.expandSideOrBelow(),Object(he.X)(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()},Ze.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},Ze.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(){Object(he.f)(e.element,"visible"),e.onDidShowEmitter.fire(e)}),100)},Ze.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(he.P)(this.element,"visible")},Ze.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},Ze.prototype.getPosition=function(){if(0===this.state)return null;var e=[2,1];return this.preferDocPositionTop&&(e=[1]),{position:this.editor.getPosition(),preference:e}},Ze.prototype.getDomNode=function(){return this.element},Ze.prototype.getId=function(){return Ze.ID},Ze.prototype.isFrozen=function(){return 4===this.state},Ze.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(89).maxVisibleSuggestions;e=Math.min(t,n)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.statusBarElement.style.top=e+"px",this.list.layout(e),e},Ze.prototype.adjustDocsPosition=function(){if(this.editor.hasModel()){var e=this.editor.getOption(49),t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=Object(he.C)(this.editor.getDomNode()),o=n.left+t.left,i=n.top+t.top+t.height,r=Object(he.C)(this.element),a=r.left,s=r.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<s&&!this.preferDocPositionTop)return this.preferDocPositionTop=!0,void this.adjustDocsPosition();this.docsPositionPreviousWidgetY=s,(a<o-this.listWidth?Object(he.f):Object(he.P))(this.element,"list-right"),Object(he.I)(this.element,"docs-side")&&s<i-e&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")}},Ze.prototype.expandSideOrBelow=function(){if(!He(this.focusedItem)&&this.firstFocusInCurrentList)return Object(he.P)(this.element,"docs-side"),void Object(he.P)(this.element,"docs-below");var e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])<this.maxWidgetWidth?(Object(he.f)(this.element,"docs-below"),Object(he.P)(this.element,"docs-side")):He(this.focusedItem)&&(Object(he.f)(this.element,"docs-side"),Object(he.P)(this.element,"docs-below"))},Object.defineProperty(Ze.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getOption(89).maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"unfocusedHeight",{get:function(){var e=this.editor.getOptions();return e.get(91)||e.get(34).lineHeight},enumerable:!0,configurable:!0}),Ze.prototype.getHeight=function(e){return this.unfocusedHeight},Ze.prototype.getTemplateId=function(e){return"suggestion"},Ze.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,!1)},Ze.prototype.updateExpandDocsSetting=function(e){this.storageService.store("expandSuggestionDocs",e,0)},Ze.prototype.setStatusBarLeftText=function(e){this.statusBarLeftSpan.innerText=e},Ze.prototype.setStatusBarRightText=function(e){this.statusBarRightSpan.innerText=e},Ze.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},Ze.ID="editor.widget.suggestWidget",Ze.LOADING_MESSAGE=V.a("suggestWidget.loading","Loading..."),Ze.NO_SUGGESTIONS_MESSAGE=V.a("suggestWidget.noSuggestions","No suggestions."),Ze=Me([je(1,me.a),je(2,ge.a),je(3,B.c),je(4,ye.c),je(5,m.a),je(6,we.a),je(7,Ce.a),je(8,b.a)],Ze));function Ze(e,t,n,o,i,r,a,s,c){var u,d,h=this;this.editor=e,this.telemetryService=t,this.keybindingService=n,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=l.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new y.e,this.toDispose=new l.b,this.onDidSelectEmitter=new q.a,this.onDidFocusEmitter=new q.a,this.onDidHideEmitter=new q.a,this.onDidShowEmitter=new q.a,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 q.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var p=this.toDispose.add(new _e.a(e,a,s)),f=null!==(d=null===(u=n.lookupKeybinding("toggleSuggestionDetails"))||void 0===u?void 0:u.getLabel())&&void 0!==d?d:"";function g(){return Object(he.Y)(h.element,"with-status-bar",!h.editor.getOption(89).hideStatusBar)}function m(){return Object(he.Y)(h.element,"no-icons",!h.editor.getOption(89).showIcons)}this.msgDetailsLess=V.a("detail.less","{0} for less...",f),this.msgDetailMore=V.a("detail.more","{0} for more...",f),this.isAuto=!1,this.focusedItem=null,this.storageService=r,this.element=Object(he.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(he.j)(this.element,"click",(function(e){e.target===h.element&&h.hideWidget()}))),this.messageElement=Object(he.q)(this.element,Object(he.a)(".message")),this.listElement=Object(he.q)(this.element,Object(he.a)(".tree")),g(),this.statusBarElement=Object(he.q)(this.element,Object(he.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(he.q)(this.statusBarElement,Object(he.a)("span")),this.statusBarRightSpan=Object(he.q)(this.statusBarElement,Object(he.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=c.createInstance(qe,this.element,this,this.editor,p,f),m();var v=c.createInstance(Ke,this,this.editor,f);this.list=new pe.c("SuggestWidget",this.listElement,this,[v],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(e){var t="string"==typeof e.completion.label?e.completion.label:e.completion.label.name;if(e.isResolved&&h.expandDocsSettingFromStorage()){var n=e.completion,o=n.documentation,i=n.detail,r=Z.r("{0}{1}",i||"",o?"string"==typeof o?o:o.value:"");return V.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",t,r)}return t}}}),this.toDispose.add(Object(ve.b)(this.list,i,{listInactiveFocusBackground:Ve,listInactiveFocusOutline:be.b})),this.toDispose.add(i.onThemeChange((function(e){return h.onThemeChange(e)}))),this.toDispose.add(e.onDidLayoutChange((function(){return h.onEditorLayoutChange()}))),this.toDispose.add(this.list.onMouseDown((function(e){return h.onListMouseDownOrTap(e)}))),this.toDispose.add(this.list.onTap((function(e){return h.onListMouseDownOrTap(e)}))),this.toDispose.add(this.list.onSelectionChange((function(e){return h.onListSelection(e)}))),this.toDispose.add(this.list.onFocusChange((function(e){return h.onListFocus(e)}))),this.toDispose.add(this.editor.onDidChangeCursorSelection((function(){return h.onCursorSelectionChanged()}))),this.toDispose.add(this.editor.onDidChangeConfiguration((function(e){e.hasChanged(89)&&(g(),m())}))),this.suggestWidgetVisible=z.b.Visible.bindTo(o),this.suggestWidgetMultipleSuggestions=z.b.MultipleSuggestions.bindTo(o),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(i.getTheme()),this.toDispose.add(Object(he.o)(this.details.element,"keydown",(function(e){h._onDetailsKeydown.fire(e)}))),this.toDispose.add(this.editor.onMouseDown((function(e){return h.onEditorMouseDown(e)})))}Object(ye.e)((function(e,t){var n=e.getColor(We);n&&t.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+n+"; }");var o=e.getColor(Fe);o&&t.addRule(".monaco-editor .suggest-widget { color: "+o+"; }");var i=e.getColor(be.ec);i&&t.addRule(".monaco-editor .suggest-widget a { color: "+i+"; }");var r=e.getColor(be.dc);r&&t.addRule(".monaco-editor .suggest-widget code { background-color: "+r+"; }")}));var $e,Xe,Je=(($e=function(e,t){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)},function(e,t){function n(){this.constructor=e}$e(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Qe,Xe=l.a),Qe.prototype.dispose=function(){Xe.prototype.dispose.call(this),Object(l.f)(this._selectionListener),this._ckAtEnd.reset()},Qe.prototype._update=function(){var e=this,t="on"===this._editor.getOption(94);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(),o=t.getWordAtPosition(n.getStartPosition());o?e._ckAtEnd.set(o.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)},Qe.AtEnd=new B.d("atEndOfWord",!1),Qe=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(1,B.c)],Qe));function Qe(e,t){var n=Xe.call(this)||this;return n._editor=e,n._enabled=!1,n._ckAtEnd=Qe.AtEnd.bindTo(t),n._register(n._editor.onDidChangeConfiguration((function(e){return e.hasChanged(94)&&n._update()}))),n._update(),n}var et=n(758),tt=n(465),nt=n(790),ot=(it.prototype._onItem=function(e){if(e&&Object(r.q)(e.item.completion.commitCharacters)){if(!this._active||this._active.item.item!==e.item){for(var t=new nt.b,n=0,o=e.item.completion.commitCharacters;n<o.length;n++){var i=o[n];0<i.length&&t.add(i.charCodeAt(0))}this._active={acceptCharacters:t,item:e}}}else this.reset()},it.prototype.reset=function(){this._active=void 0},it.prototype.dispose=function(){this._disposables.dispose()},it);function it(e,t,n){var o=this;this._disposables=new l.b,this._disposables.add(t.onDidShow((function(){return o._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(i){if(o._active&&!t.isFrozen()){var r=i.charCodeAt(i.length-1);o._active.acceptCharacters.has(r)&&e.getOption(0)&&n(o._active.item)}})))}var rt,at=n(452),st=n(686),lt=(rt=function(e,t){return(rt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}rt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ct=(ut.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(l.f)(this._widgetListener),Object(l.f)(this._shiftKeyListener)},ut.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},ut.prototype._highlight=function(e){var t,n=this;this._currentItem=e;var o=this._controller.editor.getOption(89),i=[];if(o.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=ht.event((function(){return n._highlight(n._currentItem)})));var r=this._controller.getOverwriteInfo(e,ht.isPressed),a=this._controller.editor.getPosition();if("insert"===o.insertMode&&0<r.overwriteAfter)i=[{range:new d.a(a.lineNumber,a.column,a.lineNumber,a.column+r.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if("replace"===o.insertMode&&0===r.overwriteAfter){var s=null===(t=this._controller.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(a);s&&s.endColumn>a.column&&(i=[{range:new d.a(a.lineNumber,a.column,a.lineNumber,s.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,i)},ut);function ut(e){var t=this;this._controller=e,this._disposables=new l.b,this._decorations=[],this._disposables.add(e.model.onDidSuggest((function(e){if(!e.shy){var n=t._controller.widget.getValue(),o=n.getFocusedItem();o&&t._highlight(o.item),t._widgetListener||(t._widgetListener=n.onDidFocus((function(e){return t._highlight(e.item)})))}}))),this._disposables.add(e.model.onDidCancel((function(){t._reset()})))}var dt,ht=(lt(pt,dt=q.a),Object.defineProperty(pt.prototype,"isPressed",{get:function(){return this._isPressed},set:function(e){this._isPressed!==e&&(this._isPressed=e,this.fire(e))},enumerable:!0,configurable:!0}),pt.prototype.dispose=function(){this._subscriptions.dispose(),dt.prototype.dispose.call(this)},new pt);function pt(){var e=dt.call(this)||this;return e._subscriptions=new l.b,e._isPressed=!1,e._subscriptions.add(Object(st.a)(document.body,"keydown")((function(t){return e.isPressed=t.shiftKey}))),e._subscriptions.add(Object(st.a)(document.body,"keyup")((function(){return e.isPressed=!1}))),e._subscriptions.add(Object(st.a)(document.body,"mouseleave")((function(){return e.isPressed=!1}))),e._subscriptions.add(Object(st.a)(document.body,"blur")((function(){return e.isPressed=!1}))),e}n.d(t,"SuggestController",(function(){return _t})),n.d(t,"TriggerSuggestAction",(function(){return St}));var ft,gt=function(){return(gt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},mt=function(e,t){return function(n,o){t(n,o,e)}},vt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},yt=(ft=function(e,t){return(ft=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)},bt.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},bt.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]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column},bt);function bt(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){var n=e.getOffsetAt(t),o=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:d.a.fromPositions(t,o),options:{stickiness:1}}])}}var _t=(wt.get=function(e){return e.getContribution(wt.ID)},wt.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()},wt.prototype._insertSuggestion=function(e,t){var n,o=this;if(!e||!e.item)return this._alternatives.getValue().reset(),this.model.cancel(),void this.model.clear();if(this.editor.hasModel()){var i=this.editor.getModel(),r=i.getAlternativeVersionId(),s=e.item,l=s.completion;1&t||this.editor.pushUndoStop();var c=this.getOverwriteInfo(s,Boolean(8&t));this._memoryService.memorize(i,this.editor.getPosition(),s),Array.isArray(l.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",l.additionalTextEdits.map((function(e){return u.a.replace(d.a.lift(e.range),e.text)})));var h=l.insertText;4&l.insertTextRules||(h=f.c.escape(h)),p.SnippetController2.get(this.editor).insert(h,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&l.insertTextRules)}),2&t||this.editor.pushUndoStop(),l.command?l.command.id===St.id?this.model.trigger({auto:!0,shy:!1},!0):((n=this._commandService).executeCommand.apply(n,vt([l.command.id],l.command.arguments?vt(l.command.arguments):[])).catch(a.e).finally((function(){return o.model.clear()})),this.model.cancel()):(this.model.cancel(),this.model.clear()),4&t&&this._alternatives.getValue().set(e,(function(e){for(;i.canUndo();){r!==i.getAlternativeVersionId()&&i.undo(),o._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(e.item)}},wt.prototype.getOverwriteInfo=function(e,t){Object(tt.a)(this.editor.hasModel());var n="replace"===this.editor.getOption(89).insertMode;t&&(n=!n);var o=e.position.column-e.editStart.column,i=(n?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:o+(this.editor.getPosition().column-e.position.column),overwriteAfter:i+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}},wt.prototype._alertCompletionItem=function(e){var t=e.completion,n="string"==typeof t.label?t.label:t.label.name;if(Object(r.q)(t.additionalTextEdits)){var o=V.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",n,t.additionalTextEdits.length);Object(i.a)(o)}},wt.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())},wt.prototype.triggerSuggestAndAcceptBest=function(e){var t=this;if(this.editor.hasModel()){var n=this.editor.getPosition(),o=function(){n.equals(t.editor.getPosition())&&t._commandService.executeCommand(e.fallback)};q.b.once(this.model.onDidTrigger)((function(e){var n=[];q.b.any(t.model.onDidTrigger,t.model.onDidCancel)((function(){Object(l.f)(n),o()}),void 0,n),t.model.onDidSuggest((function(e){var i=e.completionModel;if(Object(l.f)(n),0!==i.items.length){var r=t._memoryService.select(t.editor.getModel(),t.editor.getPosition(),i.items),a=i.items[r];!function(e){if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return 1;var n=t.editor.getPosition(),o=e.editStart.column,i=n.column;return i-o!==e.completion.insertText.length||t.editor.getModel().getValueInRange({startLineNumber:n.lineNumber,startColumn:o,endLineNumber:n.lineNumber,endColumn:i})!==e.completion.insertText}(a)?o():(t.editor.pushUndoStop(),t._insertSuggestion({index:r,item:a,model:i},7))}else o()}),void 0,n)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(n.lineNumber,0),this.editor.focus()}},wt.prototype.acceptSelectedSuggestion=function(e,t){var n=this.widget.getValue().getFocusedItem(),o=0;e&&(o|=4),t&&(o|=8),this._insertSuggestion(n,o)},wt.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},wt.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},wt.prototype.cancelSuggestWidget=function(){this.model.cancel(),this.model.clear(),this.widget.getValue().hideWidget()},wt.prototype.selectNextSuggestion=function(){this.widget.getValue().selectNext()},wt.prototype.selectNextPageSuggestion=function(){this.widget.getValue().selectNextPage()},wt.prototype.selectLastSuggestion=function(){this.widget.getValue().selectLast()},wt.prototype.selectPrevSuggestion=function(){this.widget.getValue().selectPrevious()},wt.prototype.selectPrevPageSuggestion=function(){this.widget.getValue().selectPreviousPage()},wt.prototype.selectFirstSuggestion=function(){this.widget.getValue().selectFirst()},wt.prototype.toggleSuggestionDetails=function(){this.widget.getValue().toggleDetails()},wt.prototype.toggleExplainMode=function(){this.widget.getValue().toggleExplainMode()},wt.prototype.toggleSuggestionFocus=function(){this.widget.getValue().toggleDetailsFocus()},wt.ID="editor.contrib.suggestController",wt=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([mt(1,et.a),mt(2,F),mt(3,W.b),mt(4,B.c),mt(5,b.a)],wt));function wt(e,t,n,o,i,r){var a=this;function c(){var e=a.editor.getOption(1);u.set("on"===e||"smart"===e)}this._memoryService=n,this._commandService=o,this._contextKeyService=i,this._instantiationService=r,this._lineSuffix=new l.d,this._toDispose=new l.b,this.editor=e,this.model=new le(this.editor,t),this.widget=this._toDispose.add(new y.b((function(){var e=a._instantiationService.createInstance(Ye,a.editor);a._toDispose.add(e),a._toDispose.add(e.onDidSelect((function(e){return a._insertSuggestion(e,0)}),a));var t=new ot(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=z.b.MakesTextEdit.bindTo(a._contextKeyService);return a._toDispose.add(e.onDidFocus((function(e){var t=e.item,o=a.editor.getPosition(),i=t.editStart.column,r=o.column,s=!0;"smart"!==a.editor.getOption(1)||2!==a.model.state||t.completion.command||t.completion.additionalTextEdits||4&t.completion.insertTextRules||r-i!==t.completion.insertText.length||(s=a.editor.getModel().getValueInRange({startLineNumber:o.lineNumber,startColumn:i,endLineNumber:o.lineNumber,endColumn:r})!==t.completion.insertText),n.set(s)}))),a._toDispose.add(Object(l.h)((function(){return n.reset()}))),a._toDispose.add(e.onDetailsKeyDown((function(e){e.toKeybinding().equals(new s.e(!0,!1,!1,!1,33))||at.e&&e.toKeybinding().equals(new s.e(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeybinding().isModifierKey()||a.editor.focus()}))),e}))),this._alternatives=this._toDispose.add(new y.b((function(){return a._toDispose.add(new K(a.editor,a._contextKeyService))}))),this._toDispose.add(r.createInstance(Je,e)),this._toDispose.add(this.model.onDidTrigger((function(e){a.widget.getValue().showTriggered(e.auto,e.shy?250:50),a._lineSuffix.value=new yt(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(){a.model.cancel(),a.model.clear()})));var u=z.b.AcceptSuggestionsOnEnter.bindTo(i);this._toDispose.add(this.editor.onDidChangeConfiguration((function(){return c()}))),c(),this._toDispose.add(new ct(this))}var Ct,St=(function(e,t){function n(){this.constructor=e}ft(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(Ot,Ct=c.b),Ot.prototype.run=function(e,t){var n=_t.get(t);n&&n.triggerSuggest()},Ot.id="editor.action.triggerSuggest",Ot);function Ot(){return Ct.call(this,{id:Ot.id,label:V.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:B.a.and(h.a.writable,h.a.hasCompletionItemProvider),kbOpts:{kbExpr:h.a.textInputFocus,primary:2058,mac:{primary:266,secondary:[521]},weight:100}})||this}Object(c.h)(_t.ID,_t),Object(c.f)(St);var xt=c.c.bindToContribution(_t.get);Object(c.g)(new xt({id:"acceptSelectedSuggestion",precondition:z.b.Visible,handler:function(e){e.acceptSelectedSuggestion(!0,!1)}})),H.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:B.a.and(z.b.Visible,h.a.textInputFocus),primary:2,weight:190}),H.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:B.a.and(z.b.Visible,h.a.textInputFocus,z.b.AcceptSuggestionsOnEnter,z.b.MakesTextEdit),primary:3,weight:190}),Object(c.g)(new xt({id:"acceptAlternativeSelectedSuggestion",precondition:B.a.and(z.b.Visible,h.a.textInputFocus),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:1027,secondary:[1026]},handler:function(e){e.acceptSelectedSuggestion(!1,!0)}})),W.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(c.g)(new xt({id:"hideSuggestWidget",precondition:z.b.Visible,handler:function(e){return e.cancelSuggestWidget()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:9,secondary:[1033]}})),Object(c.g)(new xt({id:"selectNextSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectNextSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Object(c.g)(new xt({id:"selectNextPageSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:12,secondary:[2060]}})),Object(c.g)(new xt({id:"selectLastSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectLastSuggestion()}})),Object(c.g)(new xt({id:"selectPrevSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Object(c.g)(new xt({id:"selectPrevPageSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:11,secondary:[2059]}})),Object(c.g)(new xt({id:"selectFirstSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectFirstSuggestion()}})),Object(c.g)(new xt({id:"toggleSuggestionDetails",precondition:z.b.Visible,handler:function(e){return e.toggleSuggestionDetails()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2058,mac:{primary:266}}})),Object(c.g)(new xt({id:"toggleExplainMode",precondition:z.b.Visible,handler:function(e){return e.toggleExplainMode()},kbOpts:{weight:100,primary:2133}})),Object(c.g)(new xt({id:"toggleSuggestionFocus",precondition:z.b.Visible,handler:function(e){return e.toggleSuggestionFocus()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2570,mac:{primary:778}}})),Object(c.g)(new xt({id:"insertBestCompletion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),Je.AtEnd,z.b.Visible.toNegated(),K.OtherSuggestions.toNegated(),p.SnippetController2.InSnippetMode.toNegated()),handler:function(e,t){e.triggerSuggestAndAcceptBest(Object(tt.i)(t)?gt({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:190,primary:2}})),Object(c.g)(new xt({id:"insertNextSuggestion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),K.OtherSuggestions,z.b.Visible.toNegated(),p.SnippetController2.InSnippetMode.toNegated()),handler:function(e){return e.acceptNextSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2}})),Object(c.g)(new xt({id:"insertPrevSuggestion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),K.OtherSuggestions,z.b.Visible.toNegated(),p.SnippetController2.InSnippetMode.toNegated()),handler:function(e){return e.acceptPrevSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:1026}}))},function(e,t,n){"use strict";n.r(t),n(1334);var o=n(445),i=n(465),r=n(444),a=n(453),s=n(548),l=n(439),c=n(449),u=n(442),d=16777215,h=(p.prototype.ensureParentIndices=function(){var e,t,n;if(!this._parentsComputed){this._parentsComputed=!0;for(var o=[],i=0,r=this._startIndexes.length;i<r;i++){var a=this._startIndexes[i],s=this._endIndexes[i];if(d<a||d<s)throw new Error("startLineNumber or endLineNumber must not exceed "+d);for(;0<o.length&&(e=a,t=s,n=o[o.length-1],!(this.getStartLineNumber(n)<=e&&this.getEndLineNumber(n)>=t));)o.pop();var l=0<o.length?o[o.length-1]:-1;o.push(i),this._startIndexes[i]=a+((255&l)<<24),this._endIndexes[i]=s+((65280&l)<<16)}}},Object.defineProperty(p.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),p.prototype.getStartLineNumber=function(e){return this._startIndexes[e]&d},p.prototype.getEndLineNumber=function(e){return this._endIndexes[e]&d},p.prototype.getType=function(e){return this._types?this._types[e]:void 0},p.prototype.hasTypes=function(){return!!this._types},p.prototype.isCollapsed=function(e){var t=e/32|0,n=e%32;return 0!=(this._collapseStates[t]&1<<n)},p.prototype.setCollapsed=function(e,t){var n=e/32|0,o=e%32,i=this._collapseStates[n];this._collapseStates[n]=t?i|1<<o:i&~(1<<o)},p.prototype.toRegion=function(e){return new f(this,e)},p.prototype.getParentIndex=function(e){this.ensureParentIndices();var t=((4278190080&this._startIndexes[e])>>>24)+((4278190080&this._endIndexes[e])>>>16);return 65535==t?-1:t},p.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t},p.prototype.findIndex=function(e){var t=0,n=this._startIndexes.length;if(0===n)return-1;for(;t<n;){var o=Math.floor((t+n)/2);e<this.getStartLineNumber(o)?n=o:t=o+1}return t-1},p.prototype.findRange=function(e){var t=this.findIndex(e);if(0<=t){if(e<=this.getEndLineNumber(t))return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1},p.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(", ")},p);function p(e,t,n){if(e.length!==t.length||65535<e.length)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}var f=(Object.defineProperty(g.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),g.prototype.containedBy=function(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber},g.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber},g);function g(e,t){this.ranges=e,this.index=t}var m=(Object.defineProperty(v.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),v.prototype.toggleCollapseState=function(e){var t=this;if(e.length){var n={};this._decorationProvider.changeDecorations((function(o){for(var i=0,r=e;i<r.length;i++){var a=r[i].regionIndex,s=t._editorDecorationIds[a];if(s&&!n[s]){n[s]=!0;var l=!t._regions.isCollapsed(a);t._regions.setCollapsed(a,l),o.changeDecorationOptions(s,t._decorationProvider.getDecorationOption(l))}}})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}},v.prototype.update=function(e,t){var n=this;void 0===t&&(t=[]);for(var o=[],i=function(i,r){var a=e.getStartLineNumber(i);r&&function(e,n){for(var o=0,i=t;o<i.length;o++){var r=i[o];if(e<r&&r<=n)return 1}}(a,e.getEndLineNumber(i))&&(r=!1),e.setCollapsed(i,r);var s=n._textModel.getLineMaxColumn(a),l={startLineNumber:a,startColumn:s,endLineNumber:a,endColumn:s};o.push({range:l,options:n._decorationProvider.getDecorationOption(r)})},r=0,a=function(){for(;r<n._regions.length;){var e=n._regions.isCollapsed(r);if(r++,e)return r-1}return-1},s=0,l=a();-1!==l&&s<e.length;){var c=this._textModel.getDecorationRange(this._editorDecorationIds[l]);if(c){var u=c.startLineNumber;if(this._textModel.getLineMaxColumn(u)===c.startColumn)for(;s<e.length;){var d=e.getStartLineNumber(s);if(!(d<=u))break;i(s,u===d),s++}}l=a()}for(;s<e.length;)i(s,!1),s++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,o),this._regions=e,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},v.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 o=n.startLineNumber,i=n.endLineNumber+this._regions.getEndLineNumber(t)-this._regions.getStartLineNumber(t);e.push({startLineNumber:o,endLineNumber:i})}}if(0<e.length)return e},v.prototype.applyMemento=function(e){if(Array.isArray(e)){for(var t=[],n=0,o=e;n<o.length;n++){var i=o[n],r=this.getRegionAtLine(i.startLineNumber);r&&!r.isCollapsed&&t.push(r)}this.toggleCollapseState(t)}},v.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},v.prototype.getAllRegionsAtLine=function(e,t){var n=[];if(this._regions)for(var o=this._regions.findRange(e),i=1;0<=o;){var r=this._regions.toRegion(o);t&&!t(r,i)||n.push(r),i++,o=r.parentIndex}return n},v.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(0<=t)return this._regions.toRegion(t)}return null},v.prototype.getRegionsInside=function(e,t){var n=[],o=e?e.regionIndex+1:0,i=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length)for(var r=[],a=o,s=this._regions.length;a<s;a++){var l=this._regions.toRegion(a);if(!(this._regions.getStartLineNumber(a)<i))break;for(;0<r.length&&!l.containedBy(r[r.length-1]);)r.pop();r.push(l),t(l,r.length)&&n.push(l)}else for(a=o,s=this._regions.length;a<s&&(l=this._regions.toRegion(a),this._regions.getStartLineNumber(a)<i);a++)t&&!t(l)||n.push(l);return n},v);function v(e,t){this._updateEventEmitter=new u.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new h(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}function y(e,t,n,o){void 0===n&&(n=Number.MAX_VALUE);var i=[];if(o&&0<o.length)for(var r=0,a=o;r<a.length;r++){var s=a[r],l=e.getRegionAtLine(s);if(l&&(l.isCollapsed!==t&&i.push(l),1<n)){var c=e.getRegionsInside(l,(function(e,o){return e.isCollapsed!==t&&o<n}));i.push.apply(i,c)}}else c=e.getRegionsInside(null,(function(e,o){return e.isCollapsed!==t&&o<n})),i.push.apply(i,c);e.toggleCollapseState(i)}function b(e,t,n,o){for(var i=[],r=0,a=o;r<a.length;r++){var s=a[r],l=e.getAllRegionsAtLine(s,(function(e,o){return e.isCollapsed!==t&&o<=n}));i.push.apply(i,l)}e.toggleCollapseState(i)}function _(e,t,n){for(var o=e.textModel,i=e.regions,r=[],a=i.length-1;0<=a;a--)if(n!==i.isCollapsed(a)){var s=i.getStartLineNumber(a);t.test(o.getLineContent(s))&&r.push(i.toRegion(a))}e.toggleCollapseState(r)}function w(e,t,n){for(var o=e.regions,i=[],r=o.length-1;0<=r;r--)n!==o.isCollapsed(r)&&t===o.getType(r)&&i.push(o.toRegion(r));e.toggleCollapseState(i)}var C=n(495),S=(O.prototype.getDecorationOption=function(e){return e?this.showFoldingHighlights?O.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:O.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?O.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:O.EXPANDED_VISUAL_DECORATION},O.prototype.deltaDecorations=function(e,t){return this.editor.deltaDecorations(e,t)},O.prototype.changeDecorations=function(e){return this.editor.changeDecorations(e)},O.COLLAPSED_VISUAL_DECORATION=C.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),O.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=C.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),O.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=C.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),O.EXPANDED_VISUAL_DECORATION=C.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),O);function O(e){this.editor=e,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}var x=n(469),E=n(440),k=n(459),N=(Object.defineProperty(D.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),D.prototype.updateHiddenRanges=function(){for(var e=!1,t=[],n=0,o=0,i=Number.MAX_VALUE,r=-1,a=this._foldingModel.regions;n<a.length;n++)if(a.isCollapsed(n)){var s=a.getStartLineNumber(n)+1,l=a.getEndLineNumber(n);i<=s&&l<=r||(!e&&o<this._hiddenRanges.length&&this._hiddenRanges[o].startLineNumber===s&&this._hiddenRanges[o].endLineNumber===l?(t.push(this._hiddenRanges[o]),o++):(e=!0,t.push(new E.a(s,1,l,1))),i=s,r=l)}(e||o<this._hiddenRanges.length)&&this.applyHiddenRanges(t)},D.prototype.applyMemento=function(e){if(!Array.isArray(e)||0===e.length)return!1;for(var t=[],n=0,o=e;n<o.length;n++){var i=o[n];if(!i.startLineNumber||!i.endLineNumber)return!1;t.push(new E.a(i.startLineNumber+1,1,i.endLineNumber,1))}return this.applyHiddenRanges(t),!0},D.prototype.getMemento=function(){return this._hiddenRanges.map((function(e){return{startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}}))},D.prototype.applyHiddenRanges=function(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)},D.prototype.hasRanges=function(){return 0<this._hiddenRanges.length},D.prototype.isHidden=function(e){return null!==L(this._hiddenRanges,e)},D.prototype.adjustSelections=function(e){for(var t=this,n=!1,o=this._foldingModel.textModel,i=null,r=function(e){var n,o;return i&&(n=e)>=(o=i).startLineNumber&&n<=o.endLineNumber||(i=L(t._hiddenRanges,e)),i?i.startLineNumber-1:null},a=0,s=e.length;a<s;a++){var l=e[a],c=r(l.startLineNumber);c&&(l=l.setStartPosition(c,o.getLineMaxColumn(c)),n=!0);var u=r(l.endLineNumber);u&&(l=l.setEndPosition(u,o.getLineMaxColumn(u)),n=!0),e[a]=l}return n},D.prototype.dispose=function(){0<this.hiddenRanges.length&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},D);function D(e){var t=this;this._updateEventEmitter=new u.a,this._foldingModel=e,this._foldingModelListener=e.onDidChange((function(e){return t.updateHiddenRanges()})),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}function L(e,t){var n=Object(k.i)(e,(function(e){return t<e.startLineNumber}))-1;return 0<=n&&e[n].endLineNumber>=t?e[n]:null}var P=n(575),I=(T.prototype.dispose=function(){},T.prototype.compute=function(e){var t=P.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),n=t&&!!t.offSide,o=t&&t.markers;return Promise.resolve(function(e,t,n,o){void 0===o&&(o=5e3);var i=e.getOptions().tabSize,r=new M(o),a=void 0;n&&(a=new RegExp("("+n.start.source+")|(?:"+n.end.source+")"));var s=[],l=e.getLineCount()+1;s.push({indent:-1,endAbove:l,line:l});for(var c=e.getLineCount();0<c;c--){var u=e.getLineContent(c),d=C.b.computeIndentLevel(u,i),h=s[s.length-1];if(-1!==d){var p=void 0;if(a&&(p=u.match(a))){if(!p[1]){s.push({indent:-2,endAbove:c,line:c});continue}for(var f=s.length-1;0<f&&-2!==s[f].indent;)f--;if(0<f){s.length=f+1,h=s[f],r.insertFirst(c,h.line,d),h.line=c,h.indent=d,h.endAbove=c;continue}}if(h.indent>d){for(;s.pop(),(h=s[s.length-1]).indent>d;);var g=h.endAbove-1;1<=g-c&&r.insertFirst(c,g,d)}h.indent===d?h.endAbove=c:s.push({indent:d,endAbove:c,line:c})}else t&&(h.endAbove=c)}return r.toIndentRanges(e)}(this.editorModel,n,o))},T);function T(e){this.editorModel=e,this.id="indent"}var M=(j.prototype.insertFirst=function(e,t,n){if(!(d<e||d<t)){var o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}},j.prototype.toIndentRanges=function(e){if(this._length<=this._foldingRangesLimit){for(var t=new Uint32Array(this._length),n=new Uint32Array(this._length),o=this._length-1,i=0;0<=o;o--,i++)t[i]=this._startIndexes[o],n[i]=this._endIndexes[o];return new h(t,n)}var r=0,a=this._indentOccurrences.length;for(o=0;o<this._indentOccurrences.length;o++){var s=this._indentOccurrences[o];if(s){if(s+r>this._foldingRangesLimit){a=o;break}r+=s}}var l=e.getOptions().tabSize;for(t=new Uint32Array(this._foldingRangesLimit),n=new Uint32Array(this._foldingRangesLimit),o=this._length-1,i=0;0<=o;o--){var c=this._startIndexes[o],u=e.getLineContent(c),d=C.b.computeIndentLevel(u,l);(d<a||d===a&&r++<this._foldingRangesLimit)&&(t[i]=c,n[i]=this._endIndexes[o],i++)}return new h(t,n)},j);function j(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}var R=n(454),A=n(446),F={},V=(W.prototype.compute=function(e){var t,n,o,i,r,a=this;return t=this.providers,n=this.editorModel,o=e,i=null,r=t.map((function(e,t){return Promise.resolve(e.provideFoldingRanges(n,F,o)).then((function(e){if(!o.isCancellationRequested&&Array.isArray(e)){Array.isArray(i)||(i=[]);for(var r=n.getLineCount(),a=0,s=e;a<s.length;a++){var l=s[a];0<l.start&&l.end>l.start&&l.end<=r&&i.push({start:l.start,end:l.end,rank:t,kind:l.kind})}}}),A.f)})),Promise.all(r).then((function(e){return i})).then((function(e){return e?z(e,a.limit):null}))},W.prototype.dispose=function(){},W);function W(e,t,n){void 0===n&&(n=5e3),this.editorModel=e,this.providers=t,this.limit=n,this.id="syntax"}var B=(H.prototype.add=function(e,t,n,o){if(!(d<e||d<t)){var i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._nestingLevels[i]=o,this._types[i]=n,this._length++,o<30&&(this._nestingLevelCounts[o]=(this._nestingLevelCounts[o]||0)+1)}},H.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 h(e,t,this._types)}var o=0,i=this._nestingLevelCounts.length;for(n=0;n<this._nestingLevelCounts.length;n++){var r=this._nestingLevelCounts[n];if(r){if(r+o>this._foldingRangesLimit){i=n;break}o+=r}}e=new Uint32Array(this._foldingRangesLimit),t=new Uint32Array(this._foldingRangesLimit);for(var a=[],s=n=0;n<this._length;n++){var l=this._nestingLevels[n];(l<i||l===i&&o++<this._foldingRangesLimit)&&(e[s]=this._startIndexes[n],t[s]=this._endIndexes[n],a[s]=this._types[n],s++)}return new h(e,t,a)},H);function H(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}function z(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})),o=new B(t),i=void 0,r=[],a=0,s=n;a<s.length;a++){var l=s[a];if(i){if(l.start>i.start)if(l.end<=i.end)r.push(i),i=l,o.add(l.start,l.end,l.kind&&l.kind.value,r.length);else{if(l.start>i.end){for(;(i=r.pop())&&l.start>i.end;);i&&r.push(i),i=l}o.add(l.start,l.end,l.kind&&l.kind.value,r.length)}}else i=l,o.add(l.start,l.end,l.kind&&l.kind.value,r.length)}return o.toIndentRanges()}var K=(U.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)},U.prototype.compute=function(e){var t=[];if(this.decorationIds)for(var n=0,o=this.decorationIds;n<o.length;n++){var i=o[n],r=this.editorModel.getDecorationRange(i);r&&t.push({start:r.startLineNumber,end:r.endLineNumber,rank:1})}return Promise.resolve(z(t,Number.MAX_VALUE))},U);function U(e,t,n,o){this.editorModel=e,this.id="init",t.length&&(this.decorationIds=e.deltaDecorations([],t.map((function(t){return{range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{stickiness:1}}}))),this.timeout=setTimeout(n,o))}var q=n(456),G=n(451),Y=n(461);n.d(t,"FoldingController",(function(){return Q})),n.d(t,"foldBackgroundBackground",(function(){return Ve}));var Z,$,X=(Z=function(e,t){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),J=new q.d("foldingEnabled",!1),Q=(X(ee,$=l.a),ee.get=function(e){return e.getContribution(ee.ID)},ee.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}}},ee.prototype.restoreViewState=function(e){var t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&e.collapsedRegions&&e.lineCount===t.getLineCount()){"syntax"!==e.provider&&"init"!==e.provider||(this.foldingStateMemento=e);var n=e.collapsedRegions;if(this.hiddenRangeModel.applyMemento(n)){var o=this.getFoldingModel();o&&o.then((function(e){e&&e.applyMemento(n)})).then(void 0,A.e)}}},ee.prototype.onModelChanged=function(){var e=this;this.localToDispose.clear();var t=this.editor.getModel();this._isEnabled&&t&&!t.isTooLargeForTokenization()&&(this.foldingModel=new m(t,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new N(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((function(t){return e.onHiddenRangesChanges(t)}))),this.updateScheduler=new a.a(200),this.cursorChangedScheduler=new a.d((function(){return e.revealCursor()}),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(R.o.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())},ee.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},ee.prototype.getRangeProvider=function(e){var t=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new I(e),this._useFoldingProviders&&this.foldingModel){var n=R.o.ordered(this.foldingModel.textModel);if(0===n.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions)return this.rangeProvider=new K(e,this.foldingStateMemento.collapsedRegions,(function(){t.foldingStateMemento=null,t.onFoldingStrategyChanged()}),3e4);0<n.length&&(this.rangeProvider=new V(e,n))}return this.foldingStateMemento=null,this.rangeProvider},ee.prototype.getFoldingModel=function(){return this.foldingModelPromise},ee.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=Object(a.f)((function(n){return e.getRangeProvider(t.textModel).compute(n)}));return n.then((function(o){if(o&&n===e.foldingRegionPromise){var i=e.editor.getSelections(),r=i?i.map((function(e){return e.startLineNumber})):[];t.update(o,r)}return t}))})).then(void 0,(function(e){return Object(A.e)(e),null})))},ee.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)},ee.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},ee.prototype.revealCursor=function(){var e=this,t=this.getFoldingModel();t&&t.then((function(t){if(t){var n=e.editor.getSelections();if(n&&0<n.length){for(var o=[],i=function(n){var i=n.selectionStartLineNumber;e.hiddenRangeModel&&e.hiddenRangeModel.isHidden(i)&&o.push.apply(o,t.getAllRegionsAtLine(i,(function(e){return e.isCollapsed&&i>e.startLineNumber})))},r=0,a=n;r<a.length;r++)i(a[r]);o.length&&(t.toggleCollapseState(o),e.reveal(n[0].getPosition()))}}})).then(void 0,A.e)},ee.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 o=e.target.detail,i=e.target.element.offsetLeft;if(o.offsetX-i<5)return;n=!0;break;case 6:if(this.hiddenRangeModel.hasRanges()){var r=this.editor.getModel();if(r&&t.startColumn===r.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}}},ee.prototype.onEditorMouseUp=function(e){var t=this,n=this.getFoldingModel();if(n&&this.mouseDownInfo&&e.target){var o=this.mouseDownInfo.lineNumber,i=this.mouseDownInfo.iconClicked,r=e.target.range;if(r&&r.startLineNumber===o){if(i){if(4!==e.target.type)return}else{var a=this.editor.getModel();if(!a||r.startColumn!==a.getLineMaxColumn(o))return}n.then((function(n){if(n){var r=n.getRegionAtLine(o);if(r&&r.startLineNumber===o){var a=r.isCollapsed;if(i||a){var s=[],l=e.event.middleButton||e.event.shiftKey;if(l)for(var c=0,u=n.getRegionsInside(r);c<u.length;c++){var d=u[c];d.isCollapsed===a&&s.push(d)}!a&&l&&0!==s.length||s.push(r),n.toggleCollapseState(s),t.reveal({lineNumber:o,column:1})}}}})).then(void 0,A.e)}}},ee.prototype.reveal=function(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)},ee.ID="editor.contrib.folding",ee=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(1,q.c)],ee));function ee(e,t){var n=$.call(this)||this;n.contextKeyService=t,n.localToDispose=n._register(new l.b),n.editor=e;var o=n.editor.getOptions();return n._isEnabled=o.get(30),n._useFoldingProviders="indentation"!==o.get(31),n.foldingModel=null,n.hiddenRangeModel=null,n.rangeProvider=null,n.foldingRegionPromise=null,n.foldingStateMemento=null,n.foldingModelPromise=null,n.updateScheduler=null,n.cursorChangedScheduler=null,n.mouseDownInfo=null,n.foldingDecorationProvider=new S(e),n.foldingDecorationProvider.autoHideFoldingControls="mouseover"===o.get(84),n.foldingDecorationProvider.showFoldingHighlights=o.get(32),n.foldingEnabled=J.bindTo(n.contextKeyService),n.foldingEnabled.set(n._isEnabled),n._register(n.editor.onDidChangeModel((function(){return n.onModelChanged()}))),n._register(n.editor.onDidChangeConfiguration((function(e){if(e.hasChanged(30)){var t=n.editor.getOptions();n._isEnabled=t.get(30),n.foldingEnabled.set(n._isEnabled),n.onModelChanged()}if(e.hasChanged(84)||e.hasChanged(32)){var o=n.editor.getOptions();n.foldingDecorationProvider.autoHideFoldingControls="mouseover"===o.get(84),n.foldingDecorationProvider.showFoldingHighlights=o.get(32),n.onModelContentChanged()}if(e.hasChanged(31)){var i=n.editor.getOptions();n._useFoldingProviders="indentation"!==i.get(31),n.onFoldingStrategyChanged()}}))),n.onModelChanged(),n}var te,ne=(X(oe,te=c.b),oe.prototype.runEditorCommand=function(e,t,n){var o=this,i=Q.get(t);if(i){var r=i.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then((function(e){if(e){o.invoke(i,e,t,n);var r=t.getSelection();r&&i.reveal(r.getStartPosition())}}))):void 0}},oe.prototype.getSelectedLines=function(e){var t=e.getSelections();return t?t.map((function(e){return e.startLineNumber})):[]},oe.prototype.getLineNumbers=function(e,t){return e&&e.selectionLines?e.selectionLines.map((function(e){return e+1})):this.getSelectedLines(t)},oe.prototype.run=function(e,t){},oe);function oe(){return null!==te&&te.apply(this,arguments)||this}function ie(e){if(!i.k(e)){if(!i.i(e))return!1;var t=e;if(!i.k(t.levels)&&!i.h(t.levels))return!1;if(!i.k(t.direction)&&!i.j(t.direction))return!1;if(!(i.k(t.selectionLines)||i.d(t.selectionLines)&&t.selectionLines.every(i.h)))return!1}return!0}var re,ae=(X(se,re=ne),se.prototype.invoke=function(e,t,n,o){var i=o&&o.levels||1,r=this.getLineNumbers(o,n);(o&&"up"===o.direction?b:y)(t,!1,i,r)},se);function se(){return re.call(this,{id:"editor.unfold",label:o.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:J,kbOpts:{kbExpr:x.a.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:ie,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}var le,ce=(X(ue,le=ne),ue.prototype.invoke=function(e,t,n,o){y(t,!1,Number.MAX_VALUE,this.getSelectedLines(n))},ue);function ue(){return le.call(this,{id:"editor.unfoldRecursively",label:o.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(s.a)(2089,2137),weight:100}})||this}var de,he=(X(pe,de=ne),pe.prototype.invoke=function(e,t,n,o){var i=this.getLineNumbers(o,n),r=o&&o.levels,a=o&&o.direction;"number"!=typeof r&&"string"!=typeof a?function(e,t,n){for(var o=[],i=0,r=n;i<r.length;i++){var a=r[i],s=e.getAllRegionsAtLine(a,(function(e){return!0!==e.isCollapsed}));0<s.length&&o.push(s[0])}e.toggleCollapseState(o)}(t,0,i):("up"===a?b:y)(t,!0,r||1,i)},pe);function pe(){return de.call(this,{id:"editor.fold",label:o.a("foldAction.label","Fold"),alias:"Fold",precondition:J,kbOpts:{kbExpr:x.a.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.\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\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:ie,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}var fe,ge=(X(me,fe=ne),me.prototype.invoke=function(e,t,n){!function(e,t,n){for(var o=[],i=function(t){var n=e.getRegionAtLine(t);if(n){n.isCollapsed;o.push(n)}},r=0,a=n;r<a.length;r++)i(a[r]);e.toggleCollapseState(o)}(t,0,this.getSelectedLines(n))},me);function me(){return fe.call(this,{id:"editor.toggleFold",label:o.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(s.a)(2089,2090),weight:100}})||this}var ve,ye=(X(be,ve=ne),be.prototype.invoke=function(e,t,n){var o=this.getSelectedLines(n);y(t,!0,Number.MAX_VALUE,o)},be);function be(){return ve.call(this,{id:"editor.foldRecursively",label:o.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(s.a)(2089,2135),weight:100}})||this}var _e,we=(X(Ce,_e=ne),Ce.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,R.n.Comment.value,!0);else{var o=n.getModel();if(!o)return;var i=P.a.getComments(o.getLanguageIdentifier().id);i&&i.blockCommentStartToken&&_(t,new RegExp("^\\s*"+Object(r.p)(i.blockCommentStartToken)),!0)}},Ce);function Ce(){return _e.call(this,{id:"editor.foldAllBlockComments",label:o.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(s.a)(2089,2133),weight:100}})||this}var Se,Oe=(X(xe,Se=ne),xe.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,R.n.Region.value,!0);else{var o=n.getModel();if(!o)return;var i=P.a.getFoldingRules(o.getLanguageIdentifier().id);i&&i.markers&&i.markers.start&&_(t,new RegExp(i.markers.start),!0)}},xe);function xe(){return Se.call(this,{id:"editor.foldAllMarkerRegions",label:o.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(s.a)(2089,2077),weight:100}})||this}var Ee,ke=(X(Ne,Ee=ne),Ne.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,R.n.Region.value,!1);else{var o=n.getModel();if(!o)return;var i=P.a.getFoldingRules(o.getLanguageIdentifier().id);i&&i.markers&&i.markers.start&&_(t,new RegExp(i.markers.start),!1)}},Ne);function Ne(){return Ee.call(this,{id:"editor.unfoldAllMarkerRegions",label:o.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(s.a)(2089,2078),weight:100}})||this}var De,Le=(X(Pe,De=ne),Pe.prototype.invoke=function(e,t,n){y(t,!0)},Pe);function Pe(){return De.call(this,{id:"editor.foldAll",label:o.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(s.a)(2089,2069),weight:100}})||this}var Ie,Te=(X(Me,Ie=ne),Me.prototype.invoke=function(e,t,n){y(t,!1)},Me);function Me(){return Ie.call(this,{id:"editor.unfoldAll",label:o.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(s.a)(2089,2088),weight:100}})||this}var je,Re=(X(Ae,je=ne),Ae.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(Ae.ID_PREFIX.length))},Ae.prototype.invoke=function(e,t,n){var o,i,r,a;o=t,i=this.getFoldingLevel(),r=this.getSelectedLines(n),a=o.getRegionsInside(null,(function(e,t){return t===i&&!0!==e.isCollapsed&&!r.some((function(t){return e.containsLine(t)}))})),o.toggleCollapseState(a)},Ae.ID_PREFIX="editor.foldLevel",Ae.ID=function(e){return Ae.ID_PREFIX+e},Ae);function Ae(){return null!==je&&je.apply(this,arguments)||this}Object(c.h)(Q.ID,Q),Object(c.f)(ae),Object(c.f)(ce),Object(c.f)(he),Object(c.f)(ye),Object(c.f)(Le),Object(c.f)(Te),Object(c.f)(we),Object(c.f)(Oe),Object(c.f)(ke),Object(c.f)(ge);for(var Fe=1;Fe<=7;Fe++)Object(c.i)(new Re({id:Re.ID(Fe),label:o.a("foldLevelAction.label","Fold Level {0}",Fe),alias:"Fold Level "+Fe,precondition:J,kbOpts:{kbExpr:x.a.editorTextFocus,primary:Object(s.a)(2089,2048|21+Fe),weight:100}}));var Ve=Object(Y.Tb)("editor.foldBackground",{light:Object(Y.fc)(Y.K,.3),dark:Object(Y.fc)(Y.K,.3),hc:null},o.a("editorSelectionBackground","Color of the editor selection."));Object(G.e)((function(e,t){var n=e.getColor(Ve);n&&t.addRule(".monaco-editor .folded-background { background-color: "+n+"; }")}))},function(e,t,n){"use strict";n.r(t),n(1367);var o=n(445),i=n(548),r=n(439),a=n(449),s=n(440),l=n(469),c=n(778),u=n(443),d=n(484),h=n(490),p=n(795),f=n(450),g=n(495),m=n(454),v=n(1080),y=n(1004),b=n(442),_=(Object.defineProperty(w.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(w.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(w.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}),w.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},w.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}},w.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},w);function w(e,t,n){this.presentationIndex=n,this._onColorFlushed=new b.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new b.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new b.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}n(1368);var C,S,O=n(478),x=n(793),E=n(597),k=n(461),N=n(451),D=(C=function(e,t){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),L=u.a,P=(D(I,S=r.a),I.prototype.onDidChangeColor=function(e){this.pickedColorNode.style.backgroundColor=h.a.Format.CSS.format(e)||"",u.Y(this.pickedColorNode,"light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()},I.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},I);function I(e,t,n){var o=S.call(this)||this;o.model=t,o.domNode=L(".colorpicker-header"),u.q(e,o.domNode),o.pickedColorNode=u.q(o.domNode,L(".picked-color"));var i=u.q(o.domNode,L(".original-color"));return i.style.backgroundColor=h.a.Format.CSS.format(o.model.originalColor)||"",o.backgroundColor=n.getTheme().getColor(k.A)||h.a.white,o._register(Object(N.e)((function(e,t){o.backgroundColor=e.getColor(k.A)||h.a.white}))),o._register(u.j(o.pickedColorNode,u.d.CLICK,(function(){return o.model.selectNextColorPresentation()}))),o._register(u.j(i,u.d.CLICK,(function(){o.model.color=o.model.originalColor,o.model.flushColor()}))),o._register(t.onDidChangeColor(o.onDidChangeColor,o)),o._register(t.onDidChangePresentation(o.onDidChangePresentation,o)),o.pickedColorNode.style.backgroundColor=h.a.Format.CSS.format(t.color)||"",u.Y(o.pickedColorNode,"light",t.color.rgba.a<.5?o.backgroundColor.isLighter():t.color.isLighter()),o}var T,M=(D(j,T=r.a),j.prototype.flushColor=function(){this.model.flushColor()},j.prototype.onDidSaturationValueChange=function(e){var t=e.s,n=e.v,o=this.model.color.hsva;this.model.color=new h.a(new h.b(o.h,t,n,o.a))},j.prototype.onDidOpacityChange=function(e){var t=this.model.color.hsva;this.model.color=new h.a(new h.b(t.h,t.s,t.v,e))},j.prototype.onDidHueChange=function(e){var t=this.model.color.hsva,n=360*(1-e);this.model.color=new h.a(new h.b(360==n?0:n,t.s,t.v,t.a))},j.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},j);function j(e,t,n){var o=T.call(this)||this;return o.model=t,o.pixelRatio=n,o.domNode=L(".colorpicker-body"),u.q(e,o.domNode),o.saturationBox=new A(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 z(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 q(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}var R,A=(D(F,R=r.a),F.prototype.onMouseDown=function(e){var t=this;this.monitor=this._register(new x.a);var n=u.C(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.buttons,x.b,(function(e){return t.onDidChangePosition(e.posx-n.left,e.posy-n.top)}),(function(){return null}));var o=u.i(document,(function(){t._onColorFlushed.fire(),o.dispose(),t.monitor&&(t.monitor.stopMonitoring(!0),t.monitor=null)}),!0)},F.prototype.onDidChangePosition=function(e,t){var n=Math.max(0,Math.min(1,e/this.width)),o=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,o),this._onDidChange.fire({s:n,v:o})},F.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)},F.prototype.paint=function(){var e=this.model.color.hsva,t=new h.a(new h.b(e.h,1,1,1)),n=this.canvas.getContext("2d"),o=n.createLinearGradient(0,0,this.canvas.width,0);o.addColorStop(0,"rgba(255, 255, 255, 1)"),o.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),o.addColorStop(1,"rgba(255, 255, 255, 0)");var i=n.createLinearGradient(0,0,0,this.canvas.height);i.addColorStop(0,"rgba(0, 0, 0, 0)"),i.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this.canvas.width,this.canvas.height),n.fillStyle=h.a.Format.CSS.format(t),n.fill(),n.fillStyle=o,n.fill(),n.fillStyle=i,n.fill()},F.prototype.paintSelection=function(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"},F.prototype.onDidChangeColor=function(){this.monitor&&this.monitor.isMonitoring()||this.paint()},F);function F(e,t,n){var o=R.call(this)||this;return o.model=t,o.pixelRatio=n,o._onDidChange=new b.a,o.onDidChange=o._onDidChange.event,o._onColorFlushed=new b.a,o.onColorFlushed=o._onColorFlushed.event,o.domNode=L(".saturation-wrap"),u.q(e,o.domNode),o.canvas=document.createElement("canvas"),o.canvas.className="saturation-box",u.q(o.domNode,o.canvas),o.selection=L(".saturation-selection"),u.q(o.domNode,o.selection),o.layout(),o._register(u.h(o.domNode,(function(e){return o.onMouseDown(e)}))),o._register(o.model.onDidChangeColor(o.onDidChangeColor,o)),o.monitor=null,o}var V,W=(D(B,V=r.a),B.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var e=this.getValue(this.model.color);this.updateSliderPosition(e)},B.prototype.onMouseDown=function(e){var t=this,n=this._register(new x.a),o=u.C(this.domNode);u.f(this.domNode,"grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),n.startMonitoring(e.target,e.buttons,x.b,(function(e){return t.onDidChangeTop(e.posy-o.top)}),(function(){return null}));var i=u.i(document,(function(){t._onColorFlushed.fire(),i.dispose(),n.stopMonitoring(!0),u.P(t.domNode,"grabbing")}),!0)},B.prototype.onDidChangeTop=function(e){var t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)},B.prototype.updateSliderPosition=function(e){this.slider.style.top=(1-e)*this.height+"px"},B);function B(e,t){var n=V.call(this)||this;return n.model=t,n._onDidChange=new b.a,n.onDidChange=n._onDidChange.event,n._onColorFlushed=new b.a,n.onColorFlushed=n._onColorFlushed.event,n.domNode=u.q(e,L(".strip")),n.overlay=u.q(n.domNode,L(".overlay")),n.slider=u.q(n.domNode,L(".slider")),n.slider.style.top="0px",n._register(u.h(n.domNode,(function(e){return n.onMouseDown(e)}))),n.layout(),n}var H,z=(D(K,H=W),K.prototype.onDidChangeColor=function(e){var t=e.rgba,n=t.r,o=t.g,i=t.b,r=new h.a(new h.c(n,o,i,1)),a=new h.a(new h.c(n,o,i,0));this.overlay.style.background="linear-gradient(to bottom, "+r+" 0%, "+a+" 100%)"},K.prototype.getValue=function(e){return e.hsva.a},K);function K(e,t){var n=H.call(this,e,t)||this;return u.f(n.domNode,"opacity-strip"),n._register(t.onDidChangeColor(n.onDidChangeColor,n)),n.onDidChangeColor(n.model.color),n}var U,q=(D(G,U=W),G.prototype.getValue=function(e){return 1-e.hsva.h/360},G);function G(e,t){var n=U.call(this,e,t)||this;return u.f(n.domNode,"hue-strip"),n}var Y,Z=(D($,Y=E.a),$.prototype.layout=function(){this.body.layout()},$);function $(e,t,n,o){var i=Y.call(this)||this;i.model=t,i.pixelRatio=n,i._register(Object(O.o)((function(){return i.layout()})));var r=L(".colorpicker-widget");e.appendChild(r);var a=new P(r,i.model,o);return i.body=new M(r,i.model,i.pixelRatio),i._register(a),i._register(i.body),i}var X=n(459),J=n(446);function Q(e,t,n){var o=m.p.ordered(e).map((function(o){return Promise.resolve(o.provideHover(e,t,n)).then((function(e){return e&&(n=void 0!==(t=e).range,o=void 0!==t.contents&&t.contents&&0<t.contents.length,n&&o)?e:void 0;var t,n,o}),(function(e){Object(J.f)(e)}))}));return Promise.all(o).then(X.d)}Object(a.k)("_executeHoverProvider",(function(e,t){return Q(e,t,d.a.None)}));var ee=n(453),te=(ne.prototype.setHoverTime=function(e){this._hoverTime=e},ne.prototype._firstWaitTime=function(){return this._hoverTime/2},ne.prototype._secondWaitTime=function(){return this._hoverTime/2},ne.prototype._loadingMessageTime=function(){return 3*this._hoverTime},ne.prototype._triggerAsyncComputation=function(){var e=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(ee.f)((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},ne.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()))},ne.prototype._showLoadingMessage=function(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())},ne.prototype._withAsyncResult=function(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))},ne.prototype._onComplete=function(e){this._completeCallback&&this._completeCallback(e)},ne.prototype._onError=function(e){this._errorCallback?this._errorCallback(e):Object(J.e)(e)},ne.prototype._onProgress=function(e){this._progressCallback&&this._progressCallback(e)},ne.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()}},ne.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},ne);function ne(e,t,n,o,i){var r=this;this._computer=e,this._state=0,this._hoverTime=i,this._firstWaitScheduler=new ee.d((function(){return r._triggerAsyncComputation()}),0),this._secondWaitScheduler=new ee.d((function(){return r._triggerSyncComputation()}),0),this._loadingMessageScheduler=new ee.d((function(){return r._showLoadingMessage()}),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=o}var oe,ie,re=n(688),ae=(oe=function(e,t){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),se=(ae(le,ie=E.a),Object.defineProperty(le.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,Object(u.Y)(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),le.prototype.getId=function(){return this._id},le.prototype.getDomNode=function(){return this._containerDomNode},le.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)&&this._containerDomNode.focus()},le.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())},le.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null},le.prototype.dispose=function(){this._editor.removeContentWidget(this),ie.prototype.dispose.call(this)},le.prototype.updateFont=function(){var e=this;Array.prototype.slice.call(this._domNode.getElementsByClassName("code")).forEach((function(t){return e._editor.applyFontInfo(t)}))},le.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},le.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},le.prototype.layout=function(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),t=this._editor.getOption(34),n=t.fontSize,o=t.lineHeight;this._domNode.style.fontSize=n+"px",this._domNode.style.lineHeight=o+"px",this._domNode.style.maxHeight=e+"px",this._domNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"},le);function le(e,t){var n=ie.call(this)||this;return n.allowEditorOverflow=!0,n._id=e,n._editor=t,n._isVisible=!1,n._stoleFocus=!1,n._containerDomNode=document.createElement("div"),n._containerDomNode.className="monaco-editor-hover hidden",n._containerDomNode.tabIndex=0,n._domNode=document.createElement("div"),n._domNode.className="monaco-editor-hover-content",n.scrollbar=new re.a(n._domNode,{}),n._register(n.scrollbar),n._containerDomNode.appendChild(n.scrollbar.getDomNode()),n.onkeydown(n._containerDomNode,(function(e){e.equals(9)&&n.hide()})),n._register(n._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&n.updateFont()}))),n._editor.onDidLayoutChange((function(e){return n.layout()})),n.layout(),n._editor.addContentWidget(n),n._showAtPosition=null,n._showAtRange=null,n._stoleFocus=!1,n}var ce,ue=(ae(de,ce=E.a),Object.defineProperty(de.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,Object(u.Y)(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),de.prototype.getId=function(){return this._id},de.prototype.getDomNode=function(){return this._domNode},de.prototype.showAt=function(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);var t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(this._showAtLineNumber),o=this._editor.getScrollTop(),i=this._editor.getOption(49),r=n-o-(this._domNode.clientHeight-i)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(r),0)+"px"},de.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},de.prototype.getPosition=function(){return null},de.prototype.dispose=function(){this._editor.removeOverlayWidget(this),ce.prototype.dispose.call(this)},de.prototype.updateFont=function(){var e=this;(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o})(Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),Array.prototype.slice.call(this._domNode.getElementsByClassName("code"))).forEach((function(t){return e._editor.applyFontInfo(t)}))},de.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()},de);function de(e,t){var n=ce.call(this)||this;return n._id=e,n._editor=t,n._isVisible=!1,n._domNode=document.createElement("div"),n._domNode.className="monaco-editor-hover hidden",n._domNode.setAttribute("aria-hidden","true"),n._domNode.setAttribute("role","presentation"),n._showAtLineNumber=-1,n._register(n._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&n.updateFont()}))),n._editor.addOverlayWidget(n),n}var he,pe=n(915),fe=n(773),ge=n(554),me=n(636),ve=n(1052),ye=n(885),be=n(1116),_e=n(886),we=(he=function(e,t){return(he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}he(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ce=u.a,Se=function(e,t,n){this.range=e,this.color=t,this.provider=n},Oe=function(e,t){this.range=e,this.marker=t},xe=(Ee.prototype.setRange=function(e){this._range=e,this._result=[]},Ee.prototype.clearResult=function(){this._result=[]},Ee.prototype.computeAsync=function(e){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);var t=this._editor.getModel();return m.p.has(t)?Q(t,new f.a(this._range.startLineNumber,this._range.startColumn),e):Promise.resolve([])},Ee.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 o=y.ColorDetector.get(this._editor),i=t.getLineMaxColumn(n),r=this._editor.getLineDecorations(n),a=!1,l=this._range,c=r.map((function(r){var c=r.range.startLineNumber===n?r.range.startColumn:1,u=r.range.endLineNumber===n?r.range.endColumn:i;if(c>l.startColumn||l.endColumn>u)return null;var d=new s.a(l.startLineNumber,c,l.startLineNumber,u),h=e._markerDecorationsService.getMarker(t,r);if(h)return new Oe(d,h);var f=o.getColorData(r.range.getStartPosition());if(a||!f)return Object(p.b)(r.options.hoverMessage)?null:{contents:r.options.hoverMessage?Object(X.b)(r.options.hoverMessage):[],range:d};a=!0;var g=f.colorInfo,m=g.color,v=g.range;return new Se(v,m,f.provider)}));return Object(X.d)(c)},Ee.prototype.onResult=function(e,t){this._result=t?e.concat(this._result.sort((function(e,t){return e instanceof Se?-1:t instanceof Se?1:0}))):this._result.concat(e)},Ee.prototype.getResult=function(){return this._result.slice(0)},Ee.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},Ee.prototype._getLoadingMessage=function(){return{range:this._range,contents:[(new p.a).appendText(o.a("modesContentHover.loading","Loading..."))]}},Ee);function Ee(e,t){this._markerDecorationsService=t,this._editor=e,this._result=[]}var ke,Ne={type:2,filter:{include:_e.b.QuickFix}},De=(we(Le,ke=se),Le.prototype.dispose=function(){this._hoverOperation.cancel(),ke.prototype.dispose.call(this)},Le.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},Le.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 o=[],i=0,r=this._messages.length;i<r;i++){var a=this._messages[i],s=a.range;s&&s.startColumn<=e.startColumn&&s.endColumn>=e.endColumn&&o.push(a)}if(0<o.length){if(function(e,t){if(!(!e&&t||e&&!t||e.length!==t.length)){for(var n=0;n<e.length;n++){var o=e[n],i=t[n];if(o instanceof Oe&&i instanceof Oe)return fe.a.makeKey(o.marker)===fe.a.makeKey(i.marker);if(o instanceof Se||i instanceof Se)return;if(o instanceof Oe||i instanceof Oe)return;if(!Object(p.c)(o.contents,i.contents))return}return 1}}(o,this._messages))return;this._renderMessages(e,o)}else this.hide()}else this.hide();this._lastRange=e,this._computer.setRange(e),this._shouldFocus=n,this._hoverOperation.start(t)}},Le.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),ke.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},Le.prototype.isColorPickerVisible=function(){return!!this._colorPicker},Le.prototype._withResult=function(e,t){this._messages=e,this._lastRange&&0<this._messages.length?this._renderMessages(this._lastRange,this._messages):t&&this.hide()},Le.prototype._renderMessages=function(e,t){var n=this;this.renderDisposable.dispose(),this._colorPicker=null;var o=1073741824,i=t[0].range?s.a.lift(t[0].range):null,a=document.createDocumentFragment(),l=!0,c=!1,g=new r.b,m=[];if(t.forEach((function(e){if(e.range)if(o=Math.min(o,e.range.startColumn),i=i?s.a.plusRange(i,e.range):s.a.lift(e.range),e instanceof Se){c=!0;var t=e.color,f=t.red,y=t.green,b=t.blue,w=t.alpha,C=new h.c(Math.round(255*f),Math.round(255*y),Math.round(255*b),w),S=new h.a(C);if(!n._editor.hasModel())return;var O=n._editor.getModel(),x=new s.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn),E={range:e.range,color:e.color},k=new _(S,[],0),N=new Z(a,k,n._editor.getOption(105),n._themeService);Object(v.a)(O,E,e.provider,d.a.None).then((function(t){if(k.colorPresentations=t||[],n._editor.hasModel()){var o=n._editor.getModel().getValueInRange(e.range);k.guessColorPresentation(S,o);var i=function(){var e,t;t=k.presentation.textEdit?(e=[k.presentation.textEdit],(t=new s.a(k.presentation.textEdit.range.startLineNumber,k.presentation.textEdit.range.startColumn,k.presentation.textEdit.range.endLineNumber,k.presentation.textEdit.range.endColumn)).setEndPosition(t.endLineNumber,t.startColumn+k.presentation.textEdit.text.length)):(e=[{identifier:null,range:x,text:k.presentation.label,forceMoveMarkers:!1}],x.setEndPosition(x.endLineNumber,x.startColumn+k.presentation.label.length)),n._editor.pushUndoStop(),n._editor.executeEdits("colorpicker",e),k.presentation.additionalTextEdits&&(e=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o}(k.presentation.additionalTextEdits),n._editor.executeEdits("colorpicker",e),n.hide()),n._editor.pushUndoStop(),x=t},l=function(t){return Object(v.a)(O,{range:x,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},e.provider,d.a.None).then((function(e){k.colorPresentations=e||[]}))},c=k.onColorFlushed((function(e){l(e).then(i)})),u=k.onDidChangeColor(l);n._colorPicker=N,n.showAt(x.getStartPosition(),x,n._shouldFocus),n.updateContents(a),n._colorPicker.layout(),n.renderDisposable.value=Object(r.e)(c,u,N,g)}}))}else e instanceof Oe?(m.push(e),l=!1):e.contents.filter((function(e){return!Object(p.b)(e)})).forEach((function(e){var t=Ce("div.hover-row.markdown-hover"),o=u.q(t,Ce("div.hover-contents")),i=g.add(new pe.a(n._editor,n._modeService,n._openerService));g.add(i.onDidRenderCodeBlock((function(){o.className="hover-contents code-hover-contents",n.onContentsChange()})));var r=g.add(i.render(e));o.appendChild(r.element),a.appendChild(t),l=!1}))})),m.length){m.forEach((function(e){return a.appendChild(n.renderMarkerHover(e))}));var y=1===m.length?m[0]:m.sort((function(e,t){return fe.c.compare(e.marker.severity,t.marker.severity)}))[0];a.appendChild(this.renderMarkerStatusbar(y))}c||l||(this.showAt(new f.a(e.startLineNumber,o),i,this._shouldFocus),this.updateContents(a)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,i?[{range:i,options:Le._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},Le.prototype.renderMarkerHover=function(e){var t=this,n=Ce("div.hover-row"),o=u.q(n,Ce("div.marker.hover-contents")),i=e.marker,r=i.source,a=i.message,s=i.code,l=i.relatedInformation;this._editor.applyFontInfo(o);var c=u.q(o,Ce("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=a,r||s)if("string"==typeof s)(d=u.q(o,Ce("span"))).style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=r&&s?r+"("+s+")":r||"("+s+")";else if(s){var d,h=Ce("span");r&&(u.q(h,Ce("span")).innerText=r),this._codeLink=u.q(h,Ce("a.code-link")),this._codeLink.setAttribute("href",s.link.toString()),this._codeLink.onclick=function(e){t._openerService.open(s.link),e.preventDefault(),e.stopPropagation()},u.q(this._codeLink,Ce("span")).innerText=s.value,(d=u.q(o,h)).style.opacity="0.6",d.style.paddingLeft="6px"}if(Object(X.q)(l))for(var p=function(e,n,i,r){var a=u.q(o,Ce("div"));a.style.marginTop="8px";var s=u.q(a,Ce("a"));s.innerText=Object(ge.b)(n)+"("+i+", "+r+"): ",s.style.cursor="pointer",s.onclick=function(e){e.stopPropagation(),e.preventDefault(),t._openerService&&t._openerService.open(n.with({fragment:i+","+r}),{fromUserGesture:!0}).catch(J.e)};var l=u.q(a,Ce("span"));l.innerText=e,f._editor.applyFontInfo(l)},f=this,g=0,m=l;g<m.length;g++){var v=m[g];p(v.message,v.resource,v.startLineNumber,v.startColumn)}return n},Le.prototype.renderMarkerStatusbar=function(e){var t=this,n=Ce("div.hover-row.status-bar"),i=new r.b,a=u.q(n,Ce("div.actions"));e.marker.severity!==fe.c.Error&&e.marker.severity!==fe.c.Warning&&e.marker.severity!==fe.c.Info||i.add(this.renderAction(a,{label:o.a("peek problem","Peek Problem"),commandId:ve.NextMarkerAction.ID,run:function(){t.hide(),ve.MarkerController.get(t._editor).show(e.marker),t._editor.focus()}}));var s=u.q(a,Ce("div"));s.style.opacity="0",s.style.transition="opacity 0.2s",setTimeout((function(){return s.style.opacity="1"}),200),s.textContent=o.a("checkingForQuickFixes","Checking for quick fixes..."),i.add(Object(r.h)((function(){return s.remove()})));var l=this.getCodeActions(e.marker);return i.add(Object(r.h)((function(){return l.cancel()}))),l.then((function(e){if(s.style.transition="",s.style.opacity="1",!e.validActions.length)return e.dispose(),void(s.textContent=o.a("noQuickFixes","No quick fixes available"));s.remove();var n=!1;i.add(Object(r.h)((function(){n||e.dispose()}))),i.add(t.renderAction(a,{label:o.a("quick fixes","Quick Fix..."),commandId:be.e.Id,run:function(o){n=!0;var i=be.f.get(t._editor),r=u.C(o);i.showCodeActions(Ne,e,{x:r.left+6,y:r.top+r.height+6})}}))})),this.renderDisposable.value=i,n},Le.prototype.getCodeActions=function(e){var t=this;return Object(ee.f)((function(n){return Object(ye.c)(t._editor.getModel(),new s.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),Ne,n)}))},Le.prototype.renderAction=function(e,t){var n=u.q(e,Ce("div.action-container")),o=u.q(n,Ce("a.action"));t.iconClass&&u.q(o,Ce("span.icon."+t.iconClass));var i=u.q(o,Ce("span"));i.textContent=t.label;var r=this._keybindingService.lookupKeybinding(t.commandId);return r&&(i.title=t.label+" ("+r.getLabel()+")"),u.j(n,u.d.CLICK,(function(e){e.stopPropagation(),e.preventDefault(),t.run(n)}))},Le.ID="editor.contrib.modesContentHoverWidget",Le._DECORATION_OPTIONS=g.a.register({className:"hoverHighlight"}),Le);function Le(e,t,n,o,i,a){void 0===a&&(a=me.b);var s=ke.call(this,Le.ID,e)||this;return s._themeService=n,s._keybindingService=o,s._modeService=i,s._openerService=a,s.renderDisposable=s._register(new r.d),s._messages=[],s._lastRange=null,s._computer=new xe(s._editor,t),s._highlightDecorations=[],s._isChangingDecorations=!1,s._shouldFocus=!1,s._colorPicker=null,s._hoverOperation=new te(s._computer,(function(e){return s._withResult(e,!0)}),null,(function(e){return s._withResult(e,!1)}),s._editor.getOption(44).delay),s._register(u.o(s.getDomNode(),u.d.FOCUS,(function(){s._colorPicker&&u.f(s.getDomNode(),"colorpicker-hover")}))),s._register(u.o(s.getDomNode(),u.d.BLUR,(function(){u.P(s.getDomNode(),"colorpicker-hover")}))),s._register(e.onDidChangeConfiguration((function(e){s._hoverOperation.setHoverTime(s._editor.getOption(44).delay)}))),s._register(m.B.onDidChange((function(e){s.isVisible&&s._lastRange&&0<s._messages.length&&(s._domNode.textContent="",s._renderMessages(s._lastRange,s._messages))}))),s}Object(N.e)((function(e,t){var n=e.getColor(k.ec);n&&t.addRule(".monaco-editor-hover .hover-contents a.code-link span:hover { color: "+n+"; }")}));var Pe,Ie=(Pe=function(e,t){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Pe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Te=(Me.prototype.setLineNumber=function(e){this._lineNumber=e,this._result=[]},Me.prototype.clearResult=function(){this._result=[]},Me.prototype.computeSync=function(){function e(e){return{value:e}}var t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(var o=0,i=t;o<i.length;o++){var r=i[o];if(r.options.glyphMarginClassName){var a=r.options.glyphMarginHoverMessage;a&&!Object(p.b)(a)&&n.push.apply(n,Object(X.b)(a).map(e))}}return n},Me.prototype.onResult=function(e,t){this._result=this._result.concat(e)},Me.prototype.getResult=function(){return this._result},Me.prototype.getResultWithLoadingMessage=function(){return this.getResult()},Me);function Me(e){this._editor=e,this._lineNumber=-1,this._result=[]}var je,Re=(Ie(Ae,je=ue),Ae.prototype.dispose=function(){this._hoverOperation.cancel(),je.prototype.dispose.call(this)},Ae.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))},Ae.prototype.startShowingAt=function(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0))},Ae.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),je.prototype.hide.call(this)},Ae.prototype._withResult=function(e){this._messages=e,0<this._messages.length?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},Ae.prototype._renderMessages=function(e,t){this._renderDisposeables.clear();for(var n=document.createDocumentFragment(),o=0,i=t;o<i.length;o++){var r=i[o],a=this._markdownRenderer.render(r.value);this._renderDisposeables.add(a),n.appendChild(Object(u.a)("div.hover-row",void 0,a.element))}this.updateContents(n),this.showAt(e)},Ae.ID="editor.contrib.modesGlyphHoverWidget",Ae);function Ae(e,t,n){void 0===n&&(n=me.b);var o=je.call(this,Ae.ID,e)||this;return o._renderDisposeables=o._register(new r.b),o._messages=[],o._lastLineNumber=-1,o._markdownRenderer=o._register(new pe.a(o._editor,t,n)),o._computer=new Te(o._editor),o._hoverOperation=new te(o._computer,(function(e){return o._withResult(e)}),void 0,(function(e){return o._withResult(e)}),300),o}var Fe=n(1096),Ve=n(531),We=n(1005);n.d(t,"ModesHoverController",(function(){return Ke}));var Be,He=(Be=function(e,t){return(Be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Be(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ze=function(e,t){return function(n,o){t(n,o,e)}},Ke=(Object.defineProperty(Ue.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(Ue.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),Ue.get=function(e){return e.getContribution(Ue.ID)},Ue.prototype._hookEvents=function(){function e(){return t._hideWidgets()}var t=this,n=this._editor.getOption(44);this._isHoverEnabled=n.enabled,this._isHoverSticky=n.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown((function(e){return t._onEditorMouseDown(e)}))),this._toUnhook.add(this._editor.onMouseUp((function(e){return t._onEditorMouseUp(e)}))),this._toUnhook.add(this._editor.onMouseMove((function(e){return t._onEditorMouseMove(e)}))),this._toUnhook.add(this._editor.onKeyDown((function(e){return t._onKeyDown(e)}))),this._toUnhook.add(this._editor.onDidChangeModelDecorations((function(){return t._onModelDecorationsChanged()})))):this._toUnhook.add(this._editor.onMouseMove(e)),this._toUnhook.add(this._editor.onMouseLeave(e)),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange((function(e){return t._onEditorScrollChanged(e)})))},Ue.prototype._unhookEvents=function(){this._toUnhook.clear()},Ue.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},Ue.prototype._onEditorScrollChanged=function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()},Ue.prototype._onEditorMouseDown=function(e){this._isMouseDown=!0;var t=e.target.type;9!==t||e.target.detail!==De.ID?12===t&&e.target.detail===Re.ID||(12!==t&&e.target.detail!==Re.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0},Ue.prototype._onEditorMouseUp=function(e){this._isMouseDown=!1},Ue.prototype._onEditorMouseMove=function(e){var t=e.target.type;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible()||this._isHoverSticky&&9===t&&e.target.detail===De.ID||this._isHoverSticky&&12===t&&e.target.detail===Re.ID)){if(7===t){var n=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,o=e.target.detail;o&&!o.isAfterLines&&"number"==typeof o.horizontalDistanceToText&&o.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()}},Ue.prototype._onKeyDown=function(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()},Ue.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())},Ue.prototype._createHoverWidgets=function(){this._contentWidget.value=new De(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget.value=new Re(this._editor,this._modeService,this._openerService)},Ue.prototype.showContentHover=function(e,t,n){this.contentWidget.startShowingAt(e,t,n)},Ue.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},Ue.ID="editor.contrib.hover",Ue=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([ze(1,me.a),ze(2,c.a),ze(3,Fe.a),ze(4,Ve.a),ze(5,N.c)],Ue));function Ue(e,t,n,o,i,a){var s=this;this._editor=e,this._openerService=t,this._modeService=n,this._markerDecorationsService=o,this._keybindingService=i,this._themeService=a,this._toUnhook=new r.b,this._contentWidget=new r.d,this._glyphWidget=new r.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration((function(e){e.hasChanged(44)&&(s._hideWidgets(),s._unhookEvents(),s._hookEvents())}))}var qe,Ge=(He(Ye,qe=a.b),Ye.prototype.run=function(e,t){if(t.hasModel()){var n=Ke.get(t);if(n){var o=t.getPosition(),i=new s.a(o.lineNumber,o.column,o.lineNumber,o.column),r=2===t.getOption(2);n.showContentHover(i,1,r)}}},Ye);function Ye(){return qe.call(this,{id:"editor.action.showHover",label:o.a({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:l.a.editorTextFocus,primary:Object(i.a)(2089,2087),weight:100}})||this}var Ze,$e=(He(Xe,Ze=a.b),Xe.prototype.run=function(e,t){var n=Ke.get(t);if(n){var o=t.getPosition();if(o){var i=new s.a(o.lineNumber,o.column,o.lineNumber,o.column),r=We.GotoDefinitionAtPositionEditorContribution.get(t).startFindDefinitionFromCursor(o);r?r.then((function(){n.showContentHover(i,1,!0)})):n.showContentHover(i,1,!0)}}},Xe);function Xe(){return Ze.call(this,{id:"editor.action.showDefinitionPreviewHover",label:o.a({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}Object(a.h)(Ke.ID,Ke),Object(a.f)(Ge),Object(a.f)($e),Object(N.e)((function(e,t){var n=e.getColor(k.D);n&&t.addRule(".monaco-editor .hoverHighlight { background-color: "+n+"; }");var o=e.getColor(k.A);o&&t.addRule(".monaco-editor .monaco-editor-hover { background-color: "+o+"; }");var i=e.getColor(k.B);i&&(t.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+i+"; }"),t.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+i.transparent(.5)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+i.transparent(.5)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+i.transparent(.5)+"; }"));var r=e.getColor(k.ec);r&&t.addRule(".monaco-editor .monaco-editor-hover a { color: "+r+"; }");var a=e.getColor(k.C);a&&t.addRule(".monaco-editor .monaco-editor-hover { color: "+a+"; }");var s=e.getColor(k.E);s&&t.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+s+"; }");var l=e.getColor(k.dc);l&&t.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+l+"; }")}))},function(e,t,n){"use strict";n.r(t);var o=n(445),i=n(548),r=n(927),a=n(449),s=n(794),l=n(444),c=n(704),u=n(440),d=(h.prototype.getEditOperations=function(e,t){for(var n=function(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;0<=n;n--)t[n].lineNumber===t[n+1].lineNumber&&t.splice(n,1);for(var o=[],i=0,r=0,a=t.length,s=1,d=e.getLineCount();s<=d;s++){var h=e.getLineContent(s),p=h.length+1,f=0;if(!(r<a&&t[r].lineNumber===s&&(f=t[r].column,r++,f===p))&&0!==h.length){var g=l.D(h),m=0;if(-1===g)m=1;else{if(g===h.length-1)continue;m=g+2}m=Math.max(f,m),o[i++]=c.a.delete(new u.a(s,m,s,p))}}return o}(e,this._cursors),o=0,i=n.length;o<i;o++){var r=n[o];t.addEditOperation(r.range,r.text)}this._selectionId=t.trackSelection(this._selection)},h.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},h);function h(e,t){this._selection=e,this._cursors=t,this._selectionId=null}var p=n(974),f=n(450),g=n(466),m=n(469),v=(y.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 o=[],i=n.startLineNumber;i<=n.endLineNumber;i++)o.push(e.getLineContent(i));var r=o.join("\n");""===r&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._isCopyingDown?t.addEditOperation(new u.a(n.startLineNumber,1,n.startLineNumber,1),r+"\n"):t.addEditOperation(new u.a(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+r),this._selectionId=t.trackSelection(n),this._selectionDirection=this._selection.getDirection()},y.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){var o=n.startLineNumber,i=n.startColumn,r=n.endLineNumber,a=n.endColumn;0!==this._startLineNumberDelta&&(o+=this._startLineNumberDelta,i=1),0!==this._endLineNumberDelta&&(r+=this._endLineNumberDelta,a=1),n=g.a.createWithDirection(o,i,r,a,this._selectionDirection)}return n},y);function y(e,t){this._selection=e,this._isCopyingDown=t,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}var b=n(1085),_=n(825),w=n(575);function C(e,t){for(var n=0,o=0;o<e.length;o++)"\t"===e.charAt(o)?n+=t:n++;return n}function S(e,t,n){e=e<0?0:e;var o="";if(!n){var i=Math.floor(e/t);e%=t;for(var r=0;r<i;r++)o+="\t"}for(r=0;r<e;r++)o+=" ";return o}var O=(x.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 o=this._selection;o.startLineNumber<o.endLineNumber&&1===o.endColumn&&(this._moveEndPositionDown=!0,o=o.setEndPosition(o.endLineNumber-1,e.getLineMaxColumn(o.endLineNumber-1)));var i=e.getOptions(),r=i.tabSize,a=i.indentSize,s=i.insertSpaces,c=this.buildIndentConverter(r,a,s),d={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:null};if(o.startLineNumber===o.endLineNumber&&1===e.getLineMaxColumn(o.startLineNumber)){var h=o.startLineNumber,p=this._isMovingDown?h+1:h-1;1===e.getLineMaxColumn(p)?t.addEditOperation(new u.a(1,1,1,1),null):(t.addEditOperation(new u.a(h,1,h,1),e.getLineContent(p)),t.addEditOperation(new u.a(p,1,p,e.getLineMaxColumn(p)),null)),o=new g.a(p,1,p,1)}else{var f,m=void 0;if(this._isMovingDown){f=o.endLineNumber+1,m=e.getLineContent(f),t.addEditOperation(new u.a(f-1,e.getLineMaxColumn(f-1),f,e.getLineMaxColumn(f)),null);var v=m;if(this.shouldAutoIndent(e,o)){var y=this.matchEnterRule(e,c,r,f,o.startLineNumber-1);if(null!==y){var b=S(D=y+C(O=l.t(e.getLineContent(f)),r),r,s);v=b+this.trimLeft(m)}else{d.getLineContent=function(t){return t===o.startLineNumber?e.getLineContent(f):e.getLineContent(t)};var _=w.a.getGoodIndentForLine(this._autoIndent,d,e.getLanguageIdAtPosition(f,1),o.startLineNumber,c);if(null!==_){var O=l.t(e.getLineContent(f));(D=C(_,r))!==(L=C(O,r))&&(b=S(D,r,s),v=b+this.trimLeft(m))}}if(t.addEditOperation(new u.a(o.startLineNumber,1,o.startLineNumber,1),v+"\n"),null!==(k=this.matchEnterRule(e,c,r,o.startLineNumber,o.startLineNumber,v)))0!==k&&this.getIndentEditsOfMovingBlock(e,t,o,r,s,k);else{d.getLineContent=function(t){return t===o.startLineNumber?v:t>=o.startLineNumber+1&&t<=o.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)};var x=w.a.getGoodIndentForLine(this._autoIndent,d,e.getLanguageIdAtPosition(f,1),o.startLineNumber+1,c);if(null!==x&&(O=l.t(e.getLineContent(o.startLineNumber)),(D=C(x,r))!==(L=C(O,r)))){var E=D-L;this.getIndentEditsOfMovingBlock(e,t,o,r,s,E)}}}else t.addEditOperation(new u.a(o.startLineNumber,1,o.startLineNumber,1),v+"\n")}else{var k;if(f=o.startLineNumber-1,m=e.getLineContent(f),t.addEditOperation(new u.a(f,1,f+1,1),null),t.addEditOperation(new u.a(o.endLineNumber,e.getLineMaxColumn(o.endLineNumber),o.endLineNumber,e.getLineMaxColumn(o.endLineNumber)),"\n"+m),this.shouldAutoIndent(e,o))if(d.getLineContent=function(t){return t===f?e.getLineContent(o.startLineNumber):e.getLineContent(t)},null!==(k=this.matchEnterRule(e,c,r,o.startLineNumber,o.startLineNumber-2)))0!==k&&this.getIndentEditsOfMovingBlock(e,t,o,r,s,k);else{var N=w.a.getGoodIndentForLine(this._autoIndent,d,e.getLanguageIdAtPosition(o.startLineNumber,1),f,c);if(null!==N){var D,L,P=l.t(e.getLineContent(o.startLineNumber));(D=C(N,r))!==(L=C(P,r))&&(E=D-L,this.getIndentEditsOfMovingBlock(e,t,o,r,s,E))}}}}this._selectionId=t.trackSelection(o)}else this._selectionId=t.trackSelection(this._selection)},x.prototype.buildIndentConverter=function(e,t,n){return{shiftIndent:function(o){return b.a.shiftIndent(o,o.length+1,e,t,n)},unshiftIndent:function(o){return b.a.unshiftIndent(o,o.length+1,e,t,n)}}},x.prototype.matchEnterRule=function(e,t,n,o,i,r){for(var a=i;1<=a;){var s;if(s=a===i&&void 0!==r?r:e.getLineContent(a),0<=l.D(s))break;a--}if(a<1||o>e.getLineCount())return null;var c=e.getLineMaxColumn(a),d=w.a.getEnterAction(this._autoIndent,e,new u.a(a,c,a,c));if(d){var h=d.indentation;d.indentAction===_.a.None||d.indentAction===_.a.Indent?h=d.indentation+d.appendText:d.indentAction===_.a.IndentOutdent?h=d.indentation:d.indentAction===_.a.Outdent&&(h=t.unshiftIndent(d.indentation)+d.appendText);var p=e.getLineContent(o);if(0<=this.trimLeft(p).indexOf(this.trimLeft(h))){var f=l.t(e.getLineContent(o)),g=l.t(h),m=w.a.getIndentMetadata(e,o);return null!==m&&2&m&&(g=t.unshiftIndent(g)),C(g,n)-C(f,n)}}return null},x.prototype.trimLeft=function(e){return e.replace(/^\s+/,"")},x.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);return n===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==w.a.getIndentRulesSupport(n)},x.prototype.getIndentEditsOfMovingBlock=function(e,t,n,o,i,r){for(var a=n.startLineNumber;a<=n.endLineNumber;a++){var s=e.getLineContent(a),c=l.t(s),d=S(C(c,o)+r,o,i);d!==c&&(t.addEditOperation(new u.a(a,1,a,c.length+1),d),a===n.endLineNumber&&n.endColumn<=c.length+1&&""===d&&(this._moveEndLineSelectionShrink=!0))}},x.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},x);function x(e,t,n){this._selection=e,this._isMovingDown=t,this._autoIndent=n,this._selectionId=null,this._moveEndLineSelectionShrink=!1}var E=(k.getCollator=function(){return k._COLLATOR||(k._COLLATOR=new Intl.Collator),k._COLLATOR},k.prototype.getEditOperations=function(e,t){var n,o,i=(o=N(n=e,this.selection,this.descending))?c.a.replace(new u.a(o.startLineNumber,1,o.endLineNumber,n.getLineMaxColumn(o.endLineNumber)),o.after.join("\n")):null;i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)},k.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this.selectionId)},k.canRun=function(e,t,n){if(null===e)return!1;var o=N(e,t,n);if(!o)return!1;for(var i=0,r=o.before.length;i<r;i++)if(o.before[i]!==o.after[i])return!0;return!1},k._COLLATOR=null,k);function k(e,t){this.selection=e,this.descending=t,this.selectionId=null}function N(e,t,n){var o=t.startLineNumber,i=t.endLineNumber;if(1===t.endColumn&&i--,i<=o)return null;for(var r=[],a=o;a<=i;a++)r.push(e.getLineContent(a));var s=r.slice(0);return s.sort(E.getCollator().compare),!0===n&&(s=s.reverse()),{startLineNumber:o,endLineNumber:i,before:r,after:s}}n.d(t,"DuplicateSelectionAction",(function(){return B})),n.d(t,"AbstractSortLinesAction",(function(){return Q})),n.d(t,"SortLinesAscendingAction",(function(){return ne})),n.d(t,"SortLinesDescendingAction",(function(){return re})),n.d(t,"TrimTrailingWhitespaceAction",(function(){return le})),n.d(t,"DeleteLinesAction",(function(){return de})),n.d(t,"IndentLinesAction",(function(){return fe})),n.d(t,"InsertLineBeforeAction",(function(){return _e})),n.d(t,"InsertLineAfterAction",(function(){return Se})),n.d(t,"AbstractDeleteAllToBoundaryAction",(function(){return Ee})),n.d(t,"DeleteAllLeftAction",(function(){return De})),n.d(t,"DeleteAllRightAction",(function(){return Ie})),n.d(t,"JoinLinesAction",(function(){return je})),n.d(t,"TransposeAction",(function(){return Fe})),n.d(t,"AbstractCaseAction",(function(){return Be})),n.d(t,"UpperCaseAction",(function(){return Ke})),n.d(t,"LowerCaseAction",(function(){return Ge})),n.d(t,"TitleCaseAction",(function(){return $e}));var D,L,P=(D=function(e,t){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=(P(T,L=a.b),T.prototype.run=function(e,t){for(var n=[],o=0,i=t.getSelections()||[];o<i.length;o++){var r=i[o];n.push(new v(r,this.down))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()},T);function T(e,t){var n=L.call(this,t)||this;return n.down=e,n}var M,j=(P(R,M=I),R);function R(){return M.call(this,!1,{id:"editor.action.copyLinesUpAction",label:o.a("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:25,group:"2_line",title:o.a({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})||this}var A,F=(P(V,A=I),V);function V(){return A.call(this,!0,{id:"editor.action.copyLinesDownAction",label:o.a("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:25,group:"2_line",title:o.a({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})||this}var W,B=(P(H,W=a.b),H.prototype.run=function(e,t,n){if(t.hasModel()){for(var o=[],i=t.getSelections(),r=t.getModel(),a=0,l=i;a<l.length;a++){var c=l[a];if(c.isEmpty())o.push(new v(c,!0));else{var u=new g.a(c.endLineNumber,c.endColumn,c.endLineNumber,c.endColumn);o.push(new s.c(u,r.getValueInRange(c)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}},H);function H(){return W.call(this,{id:"editor.action.duplicateSelection",label:o.a("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:m.a.writable,menuOpts:{menuId:25,group:"2_line",title:o.a({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})||this}var z,K=(P(U,z=a.b),U.prototype.run=function(e,t){for(var n=[],o=t.getSelections()||[],i=t.getOption(8),r=0,a=o;r<a.length;r++){var s=a[r];n.push(new O(s,this.down,i))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()},U);function U(e,t){var n=z.call(this,t)||this;return n.down=e,n}var q,G=(P(Y,q=K),Y);function Y(){return q.call(this,!1,{id:"editor.action.moveLinesUpAction",label:o.a("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:25,group:"2_line",title:o.a({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})||this}var Z,$=(P(X,Z=K),X);function X(){return Z.call(this,!0,{id:"editor.action.moveLinesDownAction",label:o.a("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:25,group:"2_line",title:o.a({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})||this}var J,Q=(P(ee,J=a.b),ee.prototype.run=function(e,t){for(var n=t.getSelections()||[],o=0,i=n;o<i.length;o++){var r=i[o];if(!E.canRun(t.getModel(),r,this.descending))return}for(var a=[],s=0,l=n.length;s<l;s++)a[s]=new E(n[s],this.descending);t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()},ee);function ee(e,t){var n=J.call(this,t)||this;return n.descending=e,n}var te,ne=(P(oe,te=Q),oe);function oe(){return te.call(this,!1,{id:"editor.action.sortLinesAscending",label:o.a("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:m.a.writable})||this}var ie,re=(P(ae,ie=Q),ae);function ae(){return ie.call(this,!0,{id:"editor.action.sortLinesDescending",label:o.a("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:m.a.writable})||this}var se,le=(P(ce,se=a.b),ce.prototype.run=function(e,t,n){var o=[];"auto-save"===n.reason&&(o=(t.getSelections()||[]).map((function(e){return new f.a(e.positionLineNumber,e.positionColumn)})));var i=t.getSelection();if(null!==i){var r=new d(i,o);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop()}},ce.ID="editor.action.trimTrailingWhitespace",ce);function ce(){return se.call(this,{id:ce.ID,label:o.a("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:Object(i.a)(2089,2102),weight:100}})||this}var ue,de=(P(he,ue=a.b),he.prototype.run=function(e,t){if(t.hasModel()){var n=this._getLinesToRemove(t),o=t.getModel();if(1!==o.getLineCount()||1!==o.getLineMaxColumn(1)){for(var i=0,r=[],a=[],s=0,l=n.length;s<l;s++){var u=n[s],d=u.startLineNumber,h=u.endLineNumber,p=1,f=o.getLineMaxColumn(h);h<o.getLineCount()?(h+=1,f=1):1<d&&(--d,p=o.getLineMaxColumn(d)),r.push(c.a.replace(new g.a(d,p,h,f),"")),a.push(new g.a(d-i,u.positionColumn,d-i,u.positionColumn)),i+=u.endLineNumber-u.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,r,a),t.pushUndoStop()}}},he.prototype._getLinesToRemove=function(e){var t=e.getSelections().map((function(e){var t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&--t,{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=[],o=t[0],i=1;i<t.length;i++)o.endLineNumber+1>=t[i].startLineNumber?o.endLineNumber=t[i].endLineNumber:(n.push(o),o=t[i]);return n.push(o),n},he);function he(){return ue.call(this,{id:"editor.action.deleteLines",label:o.a("lines.delete","Delete Line"),alias:"Delete Line",precondition:m.a.writable,kbOpts:{kbExpr:m.a.textInputFocus,primary:3113,weight:100}})||this}var pe,fe=(P(ge,pe=a.b),ge.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p.a.indent(n.context.config,t.getModel(),t.getSelections())),t.pushUndoStop())},ge);function ge(){return pe.call(this,{id:"editor.action.indentLines",label:o.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:2137,weight:100}})||this}var me,ve=(P(ye,me=a.b),ye.prototype.run=function(e,t){r.CoreEditingCommands.Outdent.runEditorCommand(e,t,null)},ye);function ye(){return me.call(this,{id:"editor.action.outdentLines",label:o.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:2135,weight:100}})||this}var be,_e=(P(we,be=a.b),we.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p.a.lineInsertBefore(n.context.config,t.getModel(),t.getSelections())))},we);function we(){return be.call(this,{id:"editor.action.insertLineBefore",label:o.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:3075,weight:100}})||this}var Ce,Se=(P(Oe,Ce=a.b),Oe.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p.a.lineInsertAfter(n.context.config,t.getModel(),t.getSelections())))},Oe);function Oe(){return Ce.call(this,{id:"editor.action.insertLineAfter",label:o.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:2051,weight:100}})||this}var xe,Ee=(P(ke,xe=a.b),ke.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelection(),o=this._getRangesToDelete(t),i=[],r=0,a=o.length-1;r<a;r++){var s=o[r],l=o[r+1];null===u.a.intersectRanges(s,l)?i.push(s):o[r+1]=u.a.plusRange(s,l)}i.push(o[o.length-1]);var d=this._getEndCursorState(n,i),h=i.map((function(e){return c.a.replace(e,"")}));t.pushUndoStop(),t.executeEdits(this.id,h,d),t.pushUndoStop()}},ke);function ke(){return null!==xe&&xe.apply(this,arguments)||this}var Ne,De=(P(Le,Ne=Ee),Le.prototype._getEndCursorState=function(e,t){var n=null,o=[],i=0;return t.forEach((function(t){var r;if(1===t.endColumn&&0<i){var a=t.startLineNumber-i;r=new g.a(a,t.startColumn,a,t.startColumn)}else r=new g.a(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);i+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?n=r:o.push(r)})),n&&o.unshift(n),o},Le.prototype._getRangesToDelete=function(e){var t=e.getSelections();if(null===t)return[];var n=t,o=e.getModel();return null===o?[]:(n.sort(u.a.compareRangesUsingStarts),n=n.map((function(e){if(e.isEmpty()){if(1!==e.startColumn)return new u.a(e.startLineNumber,1,e.startLineNumber,e.startColumn);var t=Math.max(1,e.startLineNumber-1),n=1===e.startLineNumber?1:o.getLineContent(t).length+1;return new u.a(t,n,e.startLineNumber,1)}return new u.a(e.startLineNumber,1,e.endLineNumber,e.endColumn)})))},Le);function Le(){return Ne.call(this,{id:"deleteAllLeft",label:o.a("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:m.a.writable,kbOpts:{kbExpr:m.a.textInputFocus,primary:0,mac:{primary:2049},weight:100}})||this}var Pe,Ie=(P(Te,Pe=Ee),Te.prototype._getEndCursorState=function(e,t){for(var n=null,o=[],i=0,r=t.length;i<r;i++){var a=t[i],s=new g.a(+a.startLineNumber,a.startColumn,+a.startLineNumber,a.startColumn);a.intersectRanges(e)?n=s:o.push(s)}return n&&o.unshift(n),o},Te.prototype._getRangesToDelete=function(e){var t=e.getModel();if(null===t)return[];var n=e.getSelections();if(null===n)return[];var o=n.map((function(e){if(e.isEmpty()){var n=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===n?new u.a(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new u.a(e.startLineNumber,e.startColumn,e.startLineNumber,n)}return e}));return o.sort(u.a.compareRangesUsingStarts),o},Te);function Te(){return Pe.call(this,{id:"deleteAllRight",label:o.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:m.a.writable,kbOpts:{kbExpr:m.a.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})||this}var Me,je=(P(Re,Me=a.b),Re.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var o=t.getSelection();if(null!==o){n.sort(u.a.compareRangesUsingStarts);var i=[],r=n.reduce((function(e,t){return e.isEmpty()?e.endLineNumber===t.startLineNumber?(o.equalsSelection(e)&&(o=t),t):t.startLineNumber>e.endLineNumber+1?(i.push(e),t):new g.a(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(i.push(e),t):new g.a(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)}));i.push(r);var a=t.getModel();if(null!==a){for(var s=[],l=[],d=o,h=0,p=0,f=i.length;p<f;p++){var m=i[p],v=m.startLineNumber,y=0,b=void 0,_=void 0,w=a.getLineContent(m.endLineNumber).length-m.endColumn;if(m.isEmpty()||m.startLineNumber===m.endLineNumber){var C=m.getStartPosition();_=C.lineNumber<a.getLineCount()?(b=v+1,a.getLineMaxColumn(b)):(b=C.lineNumber,a.getLineMaxColumn(C.lineNumber))}else b=m.endLineNumber,_=a.getLineMaxColumn(b);for(var S=a.getLineContent(v),O=v+1;O<=b;O++){var x=a.getLineContent(O),E=a.getLineFirstNonWhitespaceColumn(O);if(1<=E){var k=!0;""===S&&(k=!1),!k||" "!==S.charAt(S.length-1)&&"\t"!==S.charAt(S.length-1)||(k=!1,S=S.replace(/[\s\uFEFF\xA0]+$/g," "));var N=x.substr(E-1);S+=(k?" ":"")+N,y=k?N.length+1:N.length}else y=0}var D=new u.a(v,1,b,_);if(!D.isEmpty()){var L;L=m.isEmpty()?(s.push(c.a.replace(D,S)),new g.a(D.startLineNumber-h,S.length-y+1,v-h,S.length-y+1)):m.startLineNumber===m.endLineNumber?(s.push(c.a.replace(D,S)),new g.a(m.startLineNumber-h,m.startColumn,m.endLineNumber-h,m.endColumn)):(s.push(c.a.replace(D,S)),new g.a(m.startLineNumber-h,m.startColumn,m.startLineNumber-h,S.length-w)),null!==u.a.intersectRanges(D,o)?d=L:l.push(L)}h+=D.endLineNumber-D.startLineNumber}l.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,s,l),t.pushUndoStop()}}}},Re);function Re(){return Me.call(this,{id:"editor.action.joinLines",label:o.a("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:0,mac:{primary:296},weight:100}})||this}var Ae,Fe=(P(Ve,Ae=a.b),Ve.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var o=t.getModel();if(null!==o){for(var i=[],r=0,a=n.length;r<a;r++){var l=n[r];if(l.isEmpty()){var c=l.getStartPosition(),d=o.getLineMaxColumn(c.lineNumber);if(c.column>=d){if(c.lineNumber===o.getLineCount())continue;var h=new u.a(c.lineNumber,Math.max(1,c.column-1),c.lineNumber+1,1),p=o.getValueInRange(h).split("").reverse().join("");i.push(new s.a(new g.a(c.lineNumber,Math.max(1,c.column-1),c.lineNumber+1,1),p))}else h=new u.a(c.lineNumber,Math.max(1,c.column-1),c.lineNumber,c.column+1),p=o.getValueInRange(h).split("").reverse().join(""),i.push(new s.b(h,p,new g.a(c.lineNumber,c.column+1,c.lineNumber,c.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}},Ve);function Ve(){return Ae.call(this,{id:"editor.action.transpose",label:o.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:m.a.writable})||this}var We,Be=(P(He,We=a.b),He.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var o=t.getModel();if(null!==o){for(var i=t.getOption(96),r=[],a=0,l=n.length;a<l;a++){var c=n[a];if(c.isEmpty()){var d=c.getStartPosition(),h=o.getWordAtPosition(d);if(!h)continue;var p=new u.a(d.lineNumber,h.startColumn,d.lineNumber,h.endColumn),f=o.getValueInRange(p);r.push(new s.b(p,this._modifyText(f,i),new g.a(d.lineNumber,d.column,d.lineNumber,d.column)))}else f=o.getValueInRange(c),r.push(new s.b(c,this._modifyText(f,i),c))}t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}},He);function He(){return null!==We&&We.apply(this,arguments)||this}var ze,Ke=(P(Ue,ze=Be),Ue.prototype._modifyText=function(e,t){return e.toLocaleUpperCase()},Ue);function Ue(){return ze.call(this,{id:"editor.action.transformToUppercase",label:o.a("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:m.a.writable})||this}var qe,Ge=(P(Ye,qe=Be),Ye.prototype._modifyText=function(e,t){return e.toLocaleLowerCase()},Ye);function Ye(){return qe.call(this,{id:"editor.action.transformToLowercase",label:o.a("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:m.a.writable})||this}var Ze,$e=(P(Xe,Ze=Be),Xe.prototype._modifyText=function(e,t){for(var n=("\r\n\t "+t).split(""),o="",i=!0,r=0;r<e.length;r++){var a=e[r];0<=n.indexOf(a)?(i=!0,o+=a):i?(i=!1,o+=a.toLocaleUpperCase()):o+=a.toLocaleLowerCase()}return o},Xe);function Xe(){return Ze.call(this,{id:"editor.action.transformToTitlecase",label:o.a("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:m.a.writable})||this}Object(a.f)(j),Object(a.f)(F),Object(a.f)(B),Object(a.f)(G),Object(a.f)($),Object(a.f)(ne),Object(a.f)(re),Object(a.f)(le),Object(a.f)(de),Object(a.f)(fe),Object(a.f)(ve),Object(a.f)(_e),Object(a.f)(Se),Object(a.f)(De),Object(a.f)(Ie),Object(a.f)(je),Object(a.f)(Fe),Object(a.f)(Ke),Object(a.f)(Ge),Object(a.f)($e)},function(e,t,n){"use strict";n.r(t);var o=n(453),i=n(446),r=n(439),a=n(761),s=n(449),l=n(454),c=n(459),u=n(484),d=n(479),h=n(598),p=(f.prototype.dispose=function(){this._disposables.dispose()},f.prototype.add=function(e,t){this._disposables.add(e);for(var n=0,o=e.lenses;n<o.length;n++){var i=o[n];this.lenses.push({symbol:i,provider:t})}},f);function f(){this.lenses=[],this._disposables=new r.b}function g(e,t){var n=l.b.ordered(e),o=new Map,r=new p,a=n.map((function(n,a){return o.set(n,a),Promise.resolve(n.provideCodeLenses(e,t)).then((function(e){return e&&r.add(e,n)})).catch(i.f)}));return Promise.all(a).then((function(){return r.lenses=Object(c.r)(r.lenses,(function(e,t){return e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:o.get(e.provider)<o.get(t.provider)?-1:o.get(e.provider)>o.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0})),r}))}Object(s.j)("_executeCodeLensProvider",(function(e,t){var n=t.resource,o=t.itemResolveCount;if(!(n instanceof d.a))throw Object(i.b)();var a=e.get(h.a).getModel(n);if(!a)throw Object(i.b)();var s=[],l=new r.b;return g(a,u.a.None).then((function(e){l.add(e);for(var t=[],n=function(e){void 0===o||Boolean(e.symbol.command)?s.push(e.symbol):0<o--&&e.provider.resolveCodeLens&&t.push(Promise.resolve(e.provider.resolveCodeLens(a,e.symbol,u.a.None)).then((function(t){return s.push(t||e.symbol)})))},i=0,r=e.lenses;i<r.length;i++)n(r[i]);return Promise.all(t)})).then((function(){return s})).finally((function(){setTimeout((function(){return l.dispose()}),100)}))})),n(1326);var m=n(443),v=n(890),y=n(444),b=n(440),_=n(495),w=n(572),C=n(461),S=n(451),O=(x.prototype.onComputedHeight=function(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())},x);function x(e,t){this.afterLineNumber=e,this._onHeight=t,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}var E=(k.prototype.withCommands=function(e,t){this._commands.clear();for(var n="",o=!1,i=0;i<e.length;i++){var r=e[i];if(r&&(o=!0,r.command)){var a=Object(v.c)(Object(y.o)(r.command.title));r.command.id?(n+="<a id="+i+">"+a+"</a>",this._commands.set(String(i),r.command)):n+="<span>"+a+"</span>",i+1<e.length&&(n+="<span> | </span>")}}o?(n=n||" ",this._domNode.innerHTML=n,this._isEmpty&&t&&m.f(this._domNode,"fadein"),this._isEmpty=!1):this._domNode.innerHTML="<span>no commands</span>"},k.prototype.getCommand=function(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0},k.prototype.getId=function(){return this._id},k.prototype.getDomNode=function(){return this._domNode},k.prototype.updatePosition=function(e){var t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}},k.prototype.getPosition=function(){return this._widgetPosition||null},k._idPool=0,k);function k(e,t,n){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+k._idPool++,this.updatePosition(n),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+t}var N=(D.prototype.addDecoration=function(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)},D.prototype.removeDecoration=function(e){this._removeDecorations.push(e)},D.prototype.commit=function(e){for(var t=e.deltaDecorations(this._removeDecorations,this._addDecorations),n=0,o=t.length;n<o;n++)this._addDecorationsCallbacks[n](t[n])},D);function D(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}var L=(P.prototype._createContentWidgetIfNecessary=function(){this._contentWidget||(this._contentWidget=new E(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))},P.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},P.prototype.isDisposed=function(){return this._isDisposed},P.prototype.isValid=function(){var e=this;return this._decorationIds.some((function(t,n){var o=e._editor.getModel().getDecorationRange(t),i=e._data[n].symbol;return!(!o||b.a.isEmpty(i.range)!==o.isEmpty())}))},P.prototype.updateCodeLensSymbols=function(e,t){var n=this;this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((function(e,o){t.addDecoration({range:e.symbol.range,options:_.a.EMPTY},(function(e){return n._decorationIds[o]=e}))}))},P.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},P.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 o=this._data[t].symbol;o.command=n.command||o.command}}},P.prototype.getCommand=function(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getCommand(e)},P.prototype.getLineNumber=function(){var e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1},P.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)))}},P);function P(e,t,n,o,i,r){var a,s=this;this._isDisposed=!1,this._editor=t,this._className=n,this._data=e,this._decorationIds=[];var l=[];this._data.forEach((function(e,t){e.symbol.command&&l.push(e.symbol),o.addDecoration({range:e.symbol.range,options:_.a.EMPTY},(function(e){return s._decorationIds[t]=e})),a=a?b.a.plusRange(a,e.symbol.range):b.a.lift(e.symbol.range)})),this._viewZone=new O(a.startLineNumber-1,r),this._viewZoneId=i.addZone(this._viewZone),0<l.length&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}Object(S.e)((function(e,t){var n=e.getColor(w.e);n&&(t.addRule(".monaco-editor .codelens-decoration { color: "+n+"; }"),t.addRule(".monaco-editor .codelens-decoration .codicon { color: "+n+"; }"));var o=e.getColor(C.n);o&&(t.addRule(".monaco-editor .codelens-decoration > a:hover { color: "+o+" !important; }"),t.addRule(".monaco-editor .codelens-decoration > a:hover .codicon { color: "+o+" !important; }"))}));var I=n(489),T=n(532),M=n(448),j=n(792),R=n(553),A=n(775),F=n(880),V=Object(M.c)("ICodeLensCache"),W=function(e,t){this.lineCount=e,this.data=t},B=(H.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}}})),o=new p;o.add({lenses:n,dispose:function(){}},this._fakeProvider);var i=new W(e.getLineCount(),o);this._cache.set(e.uri.toString(),i)},H.prototype.get=function(e){var t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0},H.prototype.delete=function(e){this._cache.delete(e.uri.toString())},H.prototype._serialize=function(){var e=Object.create(null);return this._cache.forEach((function(t,n){for(var o=new Set,i=0,r=t.data.lenses;i<r.length;i++){var a=r[i];o.add(a.symbol.range.startLineNumber)}e[n]={lineCount:t.lineCount,lines:Object(R.e)(o)}})),JSON.stringify(e)},H.prototype._deserialize=function(e){try{var t=JSON.parse(e);for(var n in t){for(var o=t[n],i=[],r=0,a=o.lines;r<a.length;r++){var s=a[r];i.push({range:new b.a(s,1,s,11)})}var l=new p;l.add({lenses:i,dispose:function(){}},this._fakeProvider),this._cache.set(n,new W(o.lineCount,l))}}catch(e){}},H=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(0,A.a)],H));function H(e){var t=this;function n(){}this._fakeProvider=(n.prototype.provideCodeLenses=function(){throw new Error("not supported")},new n),this._cache=new R.a(20,.75),Object(o.k)((function(){return e.remove("codelens/cache",1)}));var i="codelens/cache2",r=e.get(i,1,"{}");this._deserialize(r),Object(F.a)(e.onWillSaveState)((function(n){n.reason===A.c.SHUTDOWN&&e.store(i,t._serialize(),1)}))}Object(j.b)(V,B);var z=n(952);n.d(t,"CodeLensContribution",(function(){return q}));var K=function(e,t){return function(n,o){t(n,o,e)}},U=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},q=(G.prototype.dispose=function(){this._localDispose(),this._globalToDispose.dispose(),this._oldCodeLensModels.dispose(),Object(r.f)(this._currentCodeLensModel)},G.prototype._updateLensStyle=function(){var e=this._editor.getOptions(),t=e.get(34),n=e.get(49),o=Math.round(1.1*n),i=Math.round(.9*t.fontSize),r="\n\t\t.monaco-editor .codelens-decoration."+this._styleClassName+" { height: "+o+"px; line-height: "+n+"px; font-size: "+i+"px; padding-right: "+Math.round(.45*t.fontSize)+"px;}\n\t\t.monaco-editor .codelens-decoration."+this._styleClassName+" > a > .codicon { line-height: "+n+"px; font-size: "+i+"px; }\n\t\t";this._styleElement.innerHTML=r},G.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(),Object(r.f)(this._currentCodeLensModel)},G.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),l.b.has(t)){for(var s=0,c=l.b.all(t);s<c.length;s++){var u=c[s];if("function"==typeof u.onDidChange){var d=u.onDidChange((function(){return p.schedule()}));this._localToDispose.add(d)}}var h=this._detectVisibleLenses=new o.d((function(){return e._onViewportChanged()}),250),p=new o.d((function(){var n=++e._modelChangeCounter;e._currentFindCodeLensSymbolsPromise&&e._currentFindCodeLensSymbolsPromise.cancel(),e._currentFindCodeLensSymbolsPromise=Object(o.f)((function(e){return g(t,e)})),e._currentFindCodeLensSymbolsPromise.then((function(o){n===e._modelChangeCounter&&(e._currentCodeLensModel&&e._oldCodeLensModels.add(e._currentCodeLensModel),e._currentCodeLensModel=o,e._codeLensCache.put(t,o),e._renderCodeLensSymbols(o),h.schedule())}),i.e)}),250);this._localToDispose.add(p),this._localToDispose.add(h),this._localToDispose.add(this._editor.onDidChangeModelContent((function(){e._editor.changeDecorations((function(t){e._editor.changeViewZones((function(n){var o=[],i=-1;e._lenses.forEach((function(e){e.isValid()&&i!==e.getLineNumber()?(e.update(n),i=e.getLineNumber()):o.push(e)}));var r=new N;o.forEach((function(t){t.dispose(r,n),e._lenses.splice(e._lenses.indexOf(t),1)})),r.commit(t)}))})),h.schedule(),p.schedule()}))),this._localToDispose.add(this._editor.onDidScrollChange((function(t){t.scrollTopChanged&&0<e._lenses.length&&h.schedule()}))),this._localToDispose.add(this._editor.onDidLayoutChange((function(){h.schedule()}))),this._localToDispose.add(Object(r.h)((function(){if(e._editor.getModel()){var t=a.c.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;if(9===t.target.type){var o=t.target.element;if("SPAN"===(null==o?void 0:o.tagName)&&(o=o.parentElement),"A"===(null==o?void 0:o.tagName))for(var i=0,r=e._lenses;i<r.length;i++){var a=r[i].getCommand(o);if(a){(n=e._commandService).executeCommand.apply(n,U([a.id],a.arguments||[])).catch((function(t){return e._notificationService.error(t)}));break}}}}))),p.schedule()}else n&&this._localToDispose.add(Object(o.g)((function(){var o=e._codeLensCache.get(t);n===o&&(e._codeLensCache.delete(t),e._onModelChange())}),3e4))}},G.prototype._disposeAllLenses=function(e,t){for(var n=new N,o=0,i=this._lenses;o<i.length;o++)i[o].dispose(n,t);e&&n.commit(e),this._lenses=[]},G.prototype._renderCodeLensSymbols=function(e){var t=this;if(this._editor.hasModel()){for(var n,o=this._editor.getModel().getLineCount(),i=[],r=0,s=e.lenses;r<s.length;r++){var l=s[r],c=l.symbol.range.startLineNumber;c<1||o<c||(n&&n[n.length-1].symbol.range.startLineNumber===c?n.push(l):(n=[l],i.push(n)))}var u=a.c.capture(this._editor);this._editor.changeDecorations((function(e){t._editor.changeViewZones((function(n){for(var o=new N,r=0,a=0;a<i.length&&r<t._lenses.length;){var s=i[a][0].symbol.range.startLineNumber,l=t._lenses[r].getLineNumber();l<s?(t._lenses[r].dispose(o,n),t._lenses.splice(r,1)):l===s?(t._lenses[r].updateCodeLensSymbols(i[a],o),a++,r++):(t._lenses.splice(r,0,new L(i[a],t._editor,t._styleClassName,o,n,(function(){return t._detectVisibleLenses&&t._detectVisibleLenses.schedule()}))),r++,a++)}for(;r<t._lenses.length;)t._lenses[r].dispose(o,n),t._lenses.splice(r,1);for(;a<i.length;)t._lenses.push(new L(i[a],t._editor,t._styleClassName,o,n,(function(){return t._detectVisibleLenses&&t._detectVisibleLenses.schedule()}))),a++;o.commit(e)}))})),u.restore(this._editor)}},G.prototype._onViewportChanged=function(){var e=this;this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);var t=this._editor.getModel();if(t){var n=[],r=[];if(this._lenses.forEach((function(e){var o=e.computeIfNecessary(t);o&&(n.push(o),r.push(e))})),0!==n.length){var a=Object(o.f)((function(e){var o=n.map((function(n,o){var a=new Array(n.length),s=n.map((function(n,o){return n.symbol.command||"function"!=typeof n.provider.resolveCodeLens?(a[o]=n.symbol,Promise.resolve(void 0)):Promise.resolve(n.provider.resolveCodeLens(t,n.symbol,e)).then((function(e){a[o]=e}),i.f)}));return Promise.all(s).then((function(){e.isCancellationRequested||r[o].isDisposed()||r[o].updateCommands(a)}))}));return Promise.all(o)}));this._currentResolveCodeLensSymbolsPromise=a,this._currentResolveCodeLensSymbolsPromise.then((function(){e._currentCodeLensModel&&e._codeLensCache.put(t,e._currentCodeLensModel),e._oldCodeLensModels.clear(),a===e._currentResolveCodeLensSymbolsPromise&&(e._currentResolveCodeLensSymbolsPromise=void 0)}),(function(t){Object(i.e)(t),a===e._currentResolveCodeLensSymbolsPromise&&(e._currentResolveCodeLensSymbolsPromise=void 0)}))}}},G.ID="css.editor.codeLens",G=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([K(1,I.b),K(2,T.a),K(3,V)],G));function G(e,t,n,o){var i=this;this._editor=e,this._commandService=t,this._notificationService=n,this._codeLensCache=o,this._globalToDispose=new r.b,this._localToDispose=new r.b,this._lenses=[],this._oldCodeLensModels=new r.b,this._modelChangeCounter=0,this._isEnabled=this._editor.getOption(11),this._globalToDispose.add(this._editor.onDidChangeModel((function(){return i._onModelChange()}))),this._globalToDispose.add(this._editor.onDidChangeModelLanguage((function(){return i._onModelChange()}))),this._globalToDispose.add(this._editor.onDidChangeConfiguration((function(){var e=i._isEnabled;i._isEnabled=i._editor.getOption(11),e!==i._isEnabled&&i._onModelChange()}))),this._globalToDispose.add(l.b.onDidChange(this._onModelChange,this)),this._globalToDispose.add(this._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&i._updateLensStyle()}))),this._onModelChange(),this._styleClassName=Object(z.a)(this._editor.getId()).toString(16),this._styleElement=m.w(m.N(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}Object(s.h)(q.ID,q)},function(e,t,n){"use strict";n.r(t);var o=n(459),i=n(484),r=n(548),a=n(439),s=n(449),l=n(504),c=n(790),u=n(440),d=n(469),h=n(454),p=n(758),f=n(635),g=n(446),m=n(479),v=n(761),y=n(892),b=n(450),_=n(466),w=n(598),C=n(704),S=(O._handleEolEdits=function(e,t){for(var n=void 0,o=[],i=0,r=t;i<r.length;i++){var a=r[i];"number"==typeof a.eol&&(n=a.eol),a.range&&"string"==typeof a.text&&o.push(a)}return"number"==typeof n&&e.hasModel()&&e.getModel().pushEOL(n),o},O._isFullModelReplaceEdit=function(e,t){if(!e.hasModel())return!1;var n=e.getModel(),o=n.validateRange(t.range);return n.getFullModelRange().equalsRange(o)},O.execute=function(e,t){e.pushUndoStop();var n=O._handleEolEdits(e,t);1===n.length&&O._isFullModelReplaceEdit(e,n[0])?e.executeEdits("formatEditsCommand",n.map((function(e){return C.a.replace(u.a.lift(e.range),e.text)}))):e.executeEdits("formatEditsCommand",n.map((function(e){return C.a.replaceMove(u.a.lift(e.range),e.text)}))),e.pushUndoStop()},O);function O(){}var x=n(445),E=(k.toKey=function(e){return"string"==typeof e?e.toLowerCase():e._lower},k);function k(e){this.value=e,this._lower=e.toLowerCase()}var N=n(448),D=n(786),L=n(489),P=n(465),I=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},T=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}};function M(e){if((e=e.filter((function(e){return e.range}))).length){for(var t=e[0].range,n=1;n<e.length;n++)t=u.a.plusRange(t,e[n].range);var o=t.startLineNumber,i=t.endLineNumber;o===i?1===e.length?Object(f.a)(x.a("hint11","Made 1 formatting edit on line {0}",o)):Object(f.a)(x.a("hintn1","Made {0} formatting edits on line {1}",e.length,o)):1===e.length?Object(f.a)(x.a("hint1n","Made 1 formatting edit between lines {0} and {1}",o,i)):Object(f.a)(x.a("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,o,i))}}function j(e){for(var t=[],n=new Set,o=0,i=h.g.ordered(e);o<i.length;o++){var r=i[o];t.push(r),r.extensionId&&n.add(E.toKey(r.extensionId))}for(var a=function(e){if(e.extensionId){if(n.has(E.toKey(e.extensionId)))return"continue";n.add(E.toKey(e.extensionId))}t.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:function(t,n,o){return e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),n,o)}})},s=0,l=h.j.ordered(e);s<l.length;s++)a(r=l[s]);return t}var R=(A.select=function(e,t,n){return I(this,void 0,void 0,(function(){var o;return T(this,(function(i){switch(i.label){case 0:return 0===e.length?[2,void 0]:(o=A._selectors.iterator().next().value)?[4,o(e,t,n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,e[0]]}}))}))},A._selectors=new D.a,A);function A(){}function F(e,t,n,o,i){return I(this,void 0,void 0,(function(){var r,a,s,l;return T(this,(function(c){switch(c.label){case 0:return r=e.get(N.a),a=Object(y.a)(t)?t.getModel():t,s=h.j.ordered(a),[4,R.select(s,a,o)];case 1:return(l=c.sent())?[4,r.invokeFunction(V,l,t,n,i)]:[3,3];case 2:c.sent(),c.label=3;case 3:return[2]}}))}))}function V(e,t,n,o,i){return I(this,void 0,void 0,(function(){var r,a,s,l,c,d,h;return T(this,(function(f){switch(f.label){case 0:r=e.get(p.a),s=Object(y.a)(n)?(a=n.getModel(),new v.b(n,5,i)):(a=n,new v.d(n,i)),f.label=1;case 1:return f.trys.push([1,,4,5]),[4,t.provideDocumentRangeFormattingEdits(a,o,a.getFormattingOptions(),s.token)];case 2:return c=f.sent(),[4,r.computeMoreMinimalEdits(a.uri,c)];case 3:return l=f.sent(),s.token.isCancellationRequested?[2,!0]:[3,5];case 4:return s.dispose(),[7];case 5:return l&&0!==l.length?(Object(y.a)(n)?(S.execute(n,l),M(l),n.pushUndoStop(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1)):(d=l[0].range,h=new _.a(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),a.pushEditOperations([h],l.map((function(e){return{text:e.text,range:u.a.lift(e.range),forceMoveMarkers:!0}})),(function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t].range;if(u.a.areIntersectingOrTouching(o,h))return[new _.a(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn)]}return null}))),[2,!0]):[2,!1]}}))}))}function W(e,t,n,o){return I(this,void 0,void 0,(function(){var i,r,a,s;return T(this,(function(l){switch(l.label){case 0:return i=e.get(N.a),r=Object(y.a)(t)?t.getModel():t,a=j(r),[4,R.select(a,r,n)];case 1:return(s=l.sent())?[4,i.invokeFunction(B,s,t,n,o)]:[3,3];case 2:l.sent(),l.label=3;case 3:return[2]}}))}))}function B(e,t,n,o,i){return I(this,void 0,void 0,(function(){var r,a,s,l,c,d,h;return T(this,(function(f){switch(f.label){case 0:r=e.get(p.a),s=Object(y.a)(n)?(a=n.getModel(),new v.b(n,5,i)):(a=n,new v.d(n,i)),f.label=1;case 1:return f.trys.push([1,,4,5]),[4,t.provideDocumentFormattingEdits(a,a.getFormattingOptions(),s.token)];case 2:return c=f.sent(),[4,r.computeMoreMinimalEdits(a.uri,c)];case 3:return l=f.sent(),s.token.isCancellationRequested?[2,!0]:[3,5];case 4:return s.dispose(),[7];case 5:return l&&0!==l.length?(Object(y.a)(n)?(S.execute(n,l),2!==o&&(M(l),n.pushUndoStop(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1))):(d=l[0].range,h=new _.a(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),a.pushEditOperations([h],l.map((function(e){return{text:e.text,range:u.a.lift(e.range),forceMoveMarkers:!0}})),(function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t].range;if(u.a.areIntersectingOrTouching(o,h))return[new _.a(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn)]}return null}))),[2,!0]):[2,!1]}}))}))}function H(e,t,n,o,r){var a=h.t.ordered(t);return 0===a.length||a[0].autoFormatTriggerCharacters.indexOf(o)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,n,o,r,i.a.None)).catch(g.f).then((function(n){return e.computeMoreMinimalEdits(t.uri,n)}))}L.a.registerCommand("_executeFormatRangeProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t[0],a=t[1],s=t[2];Object(P.a)(m.a.isUri(r)),Object(P.a)(u.a.isIRange(a));var l=e.get(w.a).getModel(r);if(!l)throw Object(g.b)("resource");return function(e,t,n,i,r){return I(this,void 0,void 0,(function(){var a,s,l,c,u;return T(this,(function(d){switch(d.label){case 0:a=h.j.ordered(t),s=0,l=a,d.label=1;case 1:return s<l.length?(c=l[s],[4,Promise.resolve(c.provideDocumentRangeFormattingEdits(t,n,i,r)).catch(g.f)]):[3,5];case 2:return u=d.sent(),Object(o.q)(u)?[4,e.computeMoreMinimalEdits(t.uri,u)]:[3,4];case 3:return[2,d.sent()];case 4:return s++,[3,1];case 5:return[2,void 0]}}))}))}(e.get(p.a),l,u.a.lift(a),s,i.a.None)})),L.a.registerCommand("_executeFormatDocumentProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t[0],a=t[1];Object(P.a)(m.a.isUri(r));var s=e.get(w.a).getModel(r);if(!s)throw Object(g.b)("resource");return function(e,t,n,i){return I(this,void 0,void 0,(function(){var r,a,s,l,c;return T(this,(function(u){switch(u.label){case 0:r=j(t),a=0,s=r,u.label=1;case 1:return a<s.length?(l=s[a],[4,Promise.resolve(l.provideDocumentFormattingEdits(t,n,i)).catch(g.f)]):[3,5];case 2:return c=u.sent(),Object(o.q)(c)?[4,e.computeMoreMinimalEdits(t.uri,c)]:[3,4];case 3:return[2,u.sent()];case 4:return a++,[3,1];case 5:return[2,void 0]}}))}))}(e.get(p.a),s,a,i.a.None)})),L.a.registerCommand("_executeFormatOnTypeProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=t[0],i=t[1],r=t[2],a=t[3];Object(P.a)(m.a.isUri(o)),Object(P.a)(b.a.isIPosition(i)),Object(P.a)("string"==typeof r);var s=e.get(w.a).getModel(o);if(!s)throw Object(g.b)("resource");return H(e.get(p.a),s,b.a.lift(i),r,a)}));var z,K=n(456),U=(z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),q=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},G=function(e,t){return function(n,o){t(n,o,e)}},Y=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},Z=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},$=(X.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},X.prototype._update=function(){var e=this;if(this._callOnModel.clear(),this._editor.getOption(39)&&this._editor.hasModel()){var t=this._editor.getModel(),n=h.t.ordered(t)[0];if(n&&n.autoFormatTriggerCharacters){for(var o=new c.b,i=0,r=n.autoFormatTriggerCharacters;i<r.length;i++){var a=r[i];o.add(a.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType((function(t){var n=t.charCodeAt(t.length-1);o.has(n)&&e._trigger(String.fromCharCode(n))})))}}},X.prototype._trigger=function(e){var t=this;if(this._editor.hasModel()&&!(1<this._editor.getSelections().length)){var n=this._editor.getModel(),i=this._editor.getPosition(),r=!1,a=this._editor.onDidChangeModelContent((function(e){if(e.isFlush)return r=!0,void a.dispose();for(var t=0,n=e.changes.length;t<n;t++)if(e.changes[t].range.endLineNumber<=i.lineNumber)return r=!0,void a.dispose()}));H(this._workerService,n,i,e,n.getFormattingOptions()).then((function(e){a.dispose(),r||Object(o.q)(e)&&(S.execute(t._editor,e),M(e))}),(function(e){throw a.dispose(),e}))}},X.ID="editor.contrib.autoFormat",X=q([G(1,p.a)],X));function X(e,t){var n=this;this._workerService=t,this._callOnDispose=new a.b,this._callOnModel=new a.b,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(h.t.onDidChange(this._update,this))}var J=(Q.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Q.prototype._update=function(){var e=this;this._callOnModel.clear(),this.editor.getOption(38)&&this.editor.hasModel()&&h.j.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((function(t){var n=t.range;return e._trigger(n)})))},Q.prototype._trigger=function(e){this.editor.hasModel()&&(1<this.editor.getSelections().length||this._instantiationService.invokeFunction(F,this.editor,e,2,i.a.None).catch(g.e))},Q.ID="editor.contrib.formatOnPaste",Q=q([G(1,N.a)],Q));function Q(e,t){var n=this;this.editor=e,this._instantiationService=t,this._callOnDispose=new a.b,this._callOnModel=new a.b,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(h.j.onDidChange(this._update,this))}var ee,te=(U(ne,ee=s.b),ne.prototype.run=function(e,t){return Y(this,void 0,void 0,(function(){return Z(this,(function(n){switch(n.label){case 0:return t.hasModel()?[4,e.get(N.a).invokeFunction(W,t,1,i.a.None)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},ne);function ne(){return ee.call(this,{id:"editor.action.formatDocument",label:x.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:K.a.and(d.a.writable,d.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:K.a.and(d.a.editorTextFocus,d.a.hasDocumentFormattingProvider),primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{when:d.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}var oe,ie=(U(re,oe=s.b),re.prototype.run=function(e,t){return Y(this,void 0,void 0,(function(){var n,o,r;return Z(this,(function(a){switch(a.label){case 0:return t.hasModel()?(n=e.get(N.a),o=t.getModel(),(r=t.getSelection()).isEmpty()&&(r=new u.a(r.startLineNumber,1,r.startLineNumber,o.getLineMaxColumn(r.startLineNumber))),[4,n.invokeFunction(F,t,r,1,i.a.None)]):[2];case 1:return a.sent(),[2]}}))}))},re);function re(){return oe.call(this,{id:"editor.action.formatSelection",label:x.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:K.a.and(d.a.writable,d.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:K.a.and(d.a.editorTextFocus,d.a.hasDocumentSelectionFormattingProvider),primary:Object(r.a)(2089,2084),weight:100},contextMenuOpts:{when:K.a.and(d.a.hasDocumentSelectionFormattingProvider,d.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}Object(s.h)($.ID,$),Object(s.h)(J.ID,J),Object(s.f)(te),Object(s.f)(ie),L.a.registerCommand("editor.action.format",(function(e){return Y(void 0,void 0,void 0,(function(){var t,n;return Z(this,(function(o){switch(o.label){case 0:return(t=e.get(l.a).getFocusedCodeEditor())&&t.hasModel()?(n=e.get(L.b),t.getSelection().isEmpty()?[4,n.executeCommand("editor.action.formatDocument")]:[3,2]):[2];case 1:return o.sent(),[3,4];case 2:return[4,n.executeCommand("editor.action.formatSelection")];case 3:o.sent(),o.label=4;case 4:return[2]}}))}))}))},function(e,t,n){"use strict";n.r(t);var o=n(445),i=n(439),r=n(448),a=n(469),s=n(456),l=n(449),c=n(443),u=n(686),d=n(635),h=n(688),p=n(442),f=(n(1372),n(778)),g=n(915),m=n(453),v=n(446),y=n(454),b=n(484),_={Visible:new s.d("parameterHintsVisible",!1),MultipleSignatures:new s.d("parameterHintsMultipleSignatures",!1)};function w(e,t,n,o){var i=y.x.ordered(e);return Object(m.h)(i.map((function(i){return function(){return Promise.resolve(i.provideSignatureHelp(e,t,o,n)).catch((function(e){return Object(v.f)(e)}))}})))}Object(l.e)("_executeSignatureHelpProvider",(function(e,t,n){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var o;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(i){switch(i.label){case 0:return[4,w(e,t,{triggerKind:y.y.Invoke,isRetrigger:!1,triggerCharacter:n.triggerCharacter},b.a.None)];case 1:return(o=i.sent())?(setTimeout((function(){return o.dispose()}),0),[2,o.value]):[2,void 0]}}))}))}));var C,S,O=n(636),x=n(461),E=n(451),k=n(790),N=(C=function(e,t){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),D=function(){return(D=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(e){e.Default={type:0},e.Pending=function(e){this.request=e,this.type=2},e.Active=function(e){this.hints=e,this.type=1}}(S=S||{});var L,P=(N(I,L=i.a),Object.defineProperty(I.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}),I.prototype.cancel=function(e){void 0===e&&(e=!1),this.state=S.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)},I.prototype.trigger=function(e,t){var n=this,o=this.editor.getModel();if(o&&y.x.has(o)){var i=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((function(){return n.doTrigger(i)}),t).catch(v.e)}},I.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,o=this.editor.getOption(64).cycle;!(e<2||n)||o?this.updateActiveSignature(n&&o?0:t+1):this.cancel()}},I.prototype.previous=function(){if(1===this.state.type){var e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=0===t,o=this.editor.getOption(64).cycle;!(e<2||n)||o?this.updateActiveSignature(n&&o?e-1:t-1):this.cancel()}},I.prototype.updateActiveSignature=function(e){1===this.state.type&&(this.state=new S.Active(D(D({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))},I.prototype.doTrigger=function(e){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var t,n,o,i,r,a,s,l;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(c){switch(c.label){case 0:if(t=1===this.state.type||2===this.state.type,n=1===this.state.type?this.state.hints:void 0,this.cancel(!0),0===this._pendingTriggers.length)return[2,!1];if(o=this._pendingTriggers.reduce(T),this._pendingTriggers=[],i={triggerKind:o.triggerKind,triggerCharacter:o.triggerCharacter,isRetrigger:t,activeSignatureHelp:n},!this.editor.hasModel())return[2,!1];r=this.editor.getModel(),a=this.editor.getPosition(),this.state=new S.Pending(Object(m.f)((function(e){return w(r,a,i,e)}))),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.state.request];case 2:return s=c.sent(),e!==this.triggerId?(null!=s&&s.dispose(),[2,!1]):s&&s.value.signatures&&0!==s.value.signatures.length?(this.state=new S.Active(s.value),this._lastSignatureHelpResult.value=s,this._onChangedHints.fire(this.state.hints),[2,!0]):(null!=s&&s.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),[2,!1]);case 3:return l=c.sent(),e===this.triggerId&&(this.state=S.Default),Object(v.e)(l),[2,!1];case 4:return[2]}}))}))},Object.defineProperty(I.prototype,"isTriggered",{get:function(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()},enumerable:!0,configurable:!0}),I.prototype.onModelChanged=function(){this.cancel(),this.triggerChars=new k.b,this.retriggerChars=new k.b;var e=this.editor.getModel();if(e)for(var t=0,n=y.x.ordered(e);t<n.length;t++){for(var o=n[t],i=0,r=o.signatureHelpTriggerCharacters||[];i<r.length;i++){var a=r[i];this.triggerChars.add(a.charCodeAt(0)),this.retriggerChars.add(a.charCodeAt(0))}for(var s=0,l=o.signatureHelpRetriggerCharacters||[];s<l.length;s++)a=l[s],this.retriggerChars.add(a.charCodeAt(0))}},I.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:y.y.TriggerCharacter,triggerCharacter:e.charAt(t)})}},I.prototype.onCursorChange=function(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:y.y.ContentChange})},I.prototype.onModelContentChange=function(){this.isTriggered&&this.trigger({triggerKind:y.y.ContentChange})},I.prototype.onEditorConfigurationChange=function(){this.triggerOnType=this.editor.getOption(64).enabled,this.triggerOnType||this.cancel()},I.prototype.dispose=function(){this.cancel(!0),L.prototype.dispose.call(this)},I.DEFAULT_DELAY=120,I);function I(e,t){void 0===t&&(t=I.DEFAULT_DELAY);var n=L.call(this)||this;return n._onChangedHints=n._register(new p.a),n.onChangedHints=n._onChangedHints.event,n.triggerOnType=!1,n._state=S.Default,n._pendingTriggers=[],n._lastSignatureHelpResult=n._register(new i.d),n.triggerChars=new k.b,n.retriggerChars=new k.b,n.triggerId=0,n.editor=e,n.throttledDelayer=new m.a(t),n._register(n.editor.onDidChangeConfiguration((function(){return n.onEditorConfigurationChange()}))),n._register(n.editor.onDidChangeModel((function(e){return n.onModelChanged()}))),n._register(n.editor.onDidChangeModelLanguage((function(e){return n.onModelChanged()}))),n._register(n.editor.onDidChangeCursorSelection((function(e){return n.onCursorChange(e)}))),n._register(n.editor.onDidChangeModelContent((function(e){return n.onModelContentChange()}))),n._register(y.x.onDidChange(n.onModelChanged,n)),n._register(n.editor.onDidType((function(e){return n.onDidType(e)}))),n.onEditorConfigurationChange(),n.onModelChanged(),n}function T(e,t){switch(t.triggerKind){case y.y.Invoke:return t;case y.y.ContentChange:return e;case y.y.TriggerCharacter:default:return t}}var M,j,R=n(444),A=(M=function(e,t){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),F=function(e,t){return function(n,o){t(n,o,e)}},V=c.a,W=(A(B,j=i.a),B.prototype.createParamaterHintDOMNodes=function(){var e=this,t=V(".editor-widget.parameter-hints-widget"),n=c.q(t,V(".wrapper"));n.tabIndex=-1;var o=c.q(n,V(".controls")),i=c.q(o,V(".button.codicon.codicon-chevron-up")),r=c.q(o,V(".overloads")),a=c.q(o,V(".button.codicon.codicon-chevron-down")),s=Object(u.b)(Object(u.a)(i,"click"));this._register(s(this.previous,this));var l=Object(u.b)(Object(u.a)(a,"click"));this._register(l(this.next,this));var d=V(".body"),f=new h.a(d,{});this._register(f),n.appendChild(f.getDomNode());var g=c.q(d,V(".signature")),m=c.q(d,V(".docs"));function v(){if(e.domNodes){var t=e.editor.getOption(34);e.domNodes.element.style.fontSize=t.fontSize+"px"}}t.style.userSelect="text",this.domNodes={element:t,signature:g,overloads:r,docs:m,scrollbar:f},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((function(t){e.visible&&e.editor.layoutContentWidget(e)}))),v(),this._register(p.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(34)})).on(v,null)),this._register(this.editor.onDidLayoutChange((function(t){return e.updateMaxHeight()}))),this.updateMaxHeight()},B.prototype.show=function(){var e=this;this.visible||(this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((function(){e.domNodes&&c.f(e.domNodes.element,"visible")}),100),this.editor.layoutContentWidget(this))},B.prototype.hide=function(){this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&c.P(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this))},B.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null},B.prototype.render=function(e){if(this.domNodes){var t=1<e.signatures.length;c.Y(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=c.q(this.domNodes.signature,V(".code")),r=0<n.parameters.length,a=this.editor.getOption(34);i.style.fontSize=a.fontSize+"px",i.style.fontFamily=a.fontFamily,r?this.renderParameters(i,n,e.activeParameter):c.q(i,V("span")).textContent=n.label,this.renderDisposeables.clear();var s=n.parameters[e.activeParameter];if(s&&s.documentation){var l=V("span.documentation");if("string"==typeof s.documentation)l.textContent=s.documentation;else{var u=this.markdownRenderer.render(s.documentation);c.f(u.element,"markdown-docs"),this.renderDisposeables.add(u),l.appendChild(u.element)}c.q(this.domNodes.docs,V("p",{},l))}void 0!==n.documentation&&("string"==typeof n.documentation?c.q(this.domNodes.docs,V("p",{},n.documentation)):(u=this.markdownRenderer.render(n.documentation),c.f(u.element,"markdown-docs"),this.renderDisposeables.add(u),c.q(this.domNodes.docs,u.element)));var h=this.hasDocs(n,s);if(c.Y(this.domNodes.signature,"has-docs",h),c.Y(this.domNodes.docs,"empty",!h),this.domNodes.overloads.textContent=Object(R.F)(e.activeSignature+1,e.signatures.length.toString().length)+"/"+e.signatures.length,s){var p=this.getParameterLabel(n,e.activeParameter);this.announcedLabel!==p&&(d.a(o.a("hint","{0}, hint",p)),this.announcedLabel=p)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}}},B.prototype.hasDocs=function(e,t){return!!(t&&"string"==typeof t.documentation&&0<t.documentation.length)||!!(t&&"object"==typeof t.documentation&&0<t.documentation.value.length)||"string"==typeof e.documentation&&0<e.documentation.length||"object"==typeof e.documentation&&0<e.documentation.value.length},B.prototype.renderParameters=function(e,t,n){var o=this.getParameterLabelOffsets(t,n),i=o[0],r=o[1],a=document.createElement("span");a.textContent=t.label.substring(0,i);var s=document.createElement("span");s.textContent=t.label.substring(i,r),s.className="parameter active";var l=document.createElement("span");l.textContent=t.label.substring(r),c.q(e,a,s,l)},B.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])},B.prototype.getParameterLabelOffsets=function(e,t){var n=e.parameters[t];if(n){if(Array.isArray(n.label))return n.label;var o=e.label.lastIndexOf(n.label);return 0<=o?[o,o+n.label.length]:[0,0]}return[0,0]},B.prototype.next=function(){this.editor.focus(),this.model.next()},B.prototype.previous=function(){this.editor.focus(),this.model.previous()},B.prototype.cancel=function(){this.model.cancel()},B.prototype.getDomNode=function(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element},B.prototype.getId=function(){return B.ID},B.prototype.trigger=function(e){this.model.trigger(e,0)},B.prototype.updateMaxHeight=function(){if(this.domNodes){var e=Math.max(this.editor.getLayoutInfo().height/4,250)+"px";this.domNodes.element.style.maxHeight=e;var t=this.domNodes.element.getElementsByClassName("wrapper");t.length&&(t[0].style.maxHeight=e)}},B.ID="editor.widget.parameterHintsWidget",B=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([F(1,s.c),F(2,O.a),F(3,f.a)],B));function B(e,t,n,o){var r=j.call(this)||this;return r.editor=e,r.renderDisposeables=r._register(new i.b),r.visible=!1,r.announcedLabel=null,r.allowEditorOverflow=!0,r.markdownRenderer=r._register(new g.a(e,o,n)),r.model=r._register(new P(e)),r.keyVisible=_.Visible.bindTo(t),r.keyMultipleSignatures=_.MultipleSignatures.bindTo(t),r._register(r.model.onChangedHints((function(e){e?(r.show(),r.render(e)):r.hide()}))),r}Object(E.e)((function(e,t){var n=e.getColor(x.B);if(n){var o=e.type===E.b?2:1;t.addRule(".monaco-editor .parameter-hints-widget { border: "+o+"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 i=e.getColor(x.A);i&&t.addRule(".monaco-editor .parameter-hints-widget { background-color: "+i+"; }");var r=e.getColor(x.ec);r&&t.addRule(".monaco-editor .parameter-hints-widget a { color: "+r+"; }");var a=e.getColor(x.C);a&&t.addRule(".monaco-editor .parameter-hints-widget { color: "+a+"; }");var s=e.getColor(x.dc);s&&t.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+s+"; }")})),n.d(t,"TriggerParameterHintsAction",(function(){return Y}));var H,z,K=(H=function(e,t){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),U=(K(q,z=i.a),q.get=function(e){return e.getContribution(q.ID)},q.prototype.cancel=function(){this.widget.cancel()},q.prototype.previous=function(){this.widget.previous()},q.prototype.next=function(){this.widget.next()},q.prototype.trigger=function(e){this.widget.trigger(e)},q.ID="editor.controller.parameterHints",q=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(1,r.a)],q));function q(e,t){var n=z.call(this)||this;return n.editor=e,n.widget=n._register(t.createInstance(W,n.editor)),n}var G,Y=(K(Z,G=l.b),Z.prototype.run=function(e,t){var n=U.get(t);n&&n.trigger({triggerKind:y.y.Invoke})},Z);function Z(){return G.call(this,{id:"editor.action.triggerParameterHints",label:o.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:a.a.hasSignatureHelpProvider,kbOpts:{kbExpr:a.a.editorTextFocus,primary:3082,weight:100}})||this}Object(l.h)(U.ID,U),Object(l.f)(Y);var $=l.c.bindToContribution(U.get);Object(l.g)(new $({id:"closeParameterHints",precondition:_.Visible,handler:function(e){return e.cancel()},kbOpts:{weight:175,kbExpr:a.a.focus,primary:9,secondary:[1033]}})),Object(l.g)(new $({id:"showPrevParameterHint",precondition:s.a.and(_.Visible,_.MultipleSignatures),handler:function(e){return e.previous()},kbOpts:{weight:175,kbExpr:a.a.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Object(l.g)(new $({id:"showNextParameterHint",precondition:s.a.and(_.Visible,_.MultipleSignatures),handler:function(e){return e.next()},kbOpts:{weight:175,kbExpr:a.a.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},function(e,t,n){"use strict";n.r(t);var o=n(445),i=n(548),r=n(449),a=n(469),s=n(704),l=n(450),c=n(440),u=n(466),d=n(575),h=(p._haystackHasNeedleAtOffset=function(e,t,n){if(n<0)return!1;var o=t.length;if(e.length<n+o)return!1;for(var i=0;i<o;i++){var r=e.charCodeAt(n+i),a=t.charCodeAt(i);if(r!==a&&!(65<=r&&r<=90&&r+32===a||65<=a&&a<=90&&a+32===r))return!1}return!0},p.prototype._createOperationsForBlockComment=function(e,t,n,o,i,r){var a,s=e.startLineNumber,l=e.startColumn,u=e.endLineNumber,d=e.endColumn,h=i.getLineContent(s),f=i.getLineContent(u),g=h.lastIndexOf(t,l-1+t.length),m=f.indexOf(n,d-1-n.length);if(-1!==g&&-1!==m)if(s===u)0<=h.substring(g+t.length,m).indexOf(n)&&(m=g=-1);else{var v=h.substring(g+t.length),y=f.substring(0,m);(0<=v.indexOf(n)||0<=y.indexOf(n))&&(m=g=-1)}-1!==g&&-1!==m?(o&&g+t.length<h.length&&32===h.charCodeAt(g+t.length)&&(t+=" "),o&&0<m&&32===f.charCodeAt(m-1)&&(n=" "+n,--m),a=p._createRemoveBlockCommentOperations(new c.a(s,g+t.length+1,u,m+1),t,n)):(a=p._createAddBlockCommentOperations(e,t,n,this._insertSpace),this._usedEndToken=1===a.length?n:null);for(var b=0,_=a;b<_.length;b++){var w=_[b];r.addTrackedEditOperation(w.range,w.text)}},p._createRemoveBlockCommentOperations=function(e,t,n){var o=[];return c.a.isEmpty(e)?o.push(s.a.delete(new c.a(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(o.push(s.a.delete(new c.a(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),o.push(s.a.delete(new c.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),o},p._createAddBlockCommentOperations=function(e,t,n,o){var i=[];return c.a.isEmpty(e)?i.push(s.a.replace(new c.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(i.push(s.a.insert(new l.a(e.startLineNumber,e.startColumn),t+(o?" ":""))),i.push(s.a.insert(new l.a(e.endLineNumber,e.endColumn),(o?" ":"")+n))),i},p.prototype.getEditOperations=function(e,t){var n=this._selection.startLineNumber,o=this._selection.startColumn;e.tokenizeIfCheap(n);var i=e.getLanguageIdAtPosition(n,o),r=d.a.getComments(i);r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)},p.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations();if(2===n.length){var o=n[0],i=n[1];return new u.a(o.range.endLineNumber,o.range.endColumn,i.range.startLineNumber,i.range.startColumn)}var r=n[0].range,a=this._usedEndToken?-this._usedEndToken.length-1:0;return new u.a(r.endLineNumber,r.endColumn+a,r.endLineNumber,r.endColumn+a)},p);function p(e,t){this._selection=e,this._insertSpace=t,this._usedEndToken=null}var f=n(444),g=(m._gatherPreflightCommentStrings=function(e,t,n){e.tokenizeIfCheap(t);var o=e.getLanguageIdAtPosition(t,1),i=d.a.getComments(o),r=i?i.lineCommentToken:null;if(!r)return null;for(var a=[],s=0,l=n-t+1;s<l;s++)a[s]={ignore:!1,commentStr:r,commentStrOffset:0,commentStrLength:r.length};return a},m._analyzeLines=function(e,t,n,o,i){var r,a=!0;r=0===e||1!==e;for(var s=0,l=o.length;s<l;s++){var c=o[s],u=i+s,d=n.getLineContent(u),p=f.q(d);if(-1!==p){if(a=!1,c.ignore=!1,c.commentStrOffset=p,r&&!h._haystackHasNeedleAtOffset(d,c.commentStr,p)&&(0===e?r=!1:1===e||(c.ignore=!0)),r&&t){var g=p+c.commentStrLength;g<d.length&&32===d.charCodeAt(g)&&(c.commentStrLength+=1)}}else c.ignore=!0,c.commentStrOffset=d.length}if(0===e&&a)for(r=!1,s=0,l=o.length;s<l;s++)o[s].ignore=!1;return{supported:!0,shouldRemoveComments:r,lines:o}},m._gatherPreflightData=function(e,t,n,o,i){var r=m._gatherPreflightCommentStrings(n,o,i);return null===r?{supported:!1}:m._analyzeLines(e,t,n,r,o)},m.prototype._executeLineComments=function(e,t,n,o){var i;i=n.shouldRemoveComments?m._createRemoveLineCommentsOperations(n.lines,o.startLineNumber):(m._normalizeInsertionPoint(e,n.lines,o.startLineNumber,this._tabSize),this._createAddLineCommentsOperations(n.lines,o.startLineNumber));for(var r=new l.a(o.positionLineNumber,o.positionColumn),a=0,s=i.length;a<s;a++)t.addEditOperation(i[a].range,i[a].text),i[a].range.isEmpty()&&i[a].range.getStartPosition().equals(r)&&e.getLineContent(r.lineNumber).length+1===r.column&&(this._deltaColumn=(i[a].text||"").length);this._selectionId=t.trackSelection(o)},m.prototype._attemptRemoveBlockComment=function(e,t,n,o){var i=t.startLineNumber,r=t.endLineNumber,a=o.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),s=e.getLineContent(i).lastIndexOf(n,a-1),l=e.getLineContent(r).indexOf(o,t.endColumn-1-n.length);return-1!==s&&-1===l&&(l=e.getLineContent(i).indexOf(o,s+n.length),r=i),-1===s&&-1!==l&&(s=e.getLineContent(r).lastIndexOf(n,l),i=r),!t.isEmpty()||-1!==s&&-1!==l||-1!==(s=e.getLineContent(i).indexOf(n))&&(l=e.getLineContent(i).indexOf(o,s+n.length)),-1!==s&&32===e.getLineContent(i).charCodeAt(s+n.length)&&(n+=" "),-1!==l&&32===e.getLineContent(r).charCodeAt(l-1)&&(o=" "+o,--l),-1!==s&&-1!==l?h._createRemoveBlockCommentOperations(new c.a(i,s+n.length+1,r,l+1),n,o):null},m.prototype._executeBlockComment=function(e,t,n){e.tokenizeIfCheap(n.startLineNumber);var o=e.getLanguageIdAtPosition(n.startLineNumber,1),i=d.a.getComments(o);if(i&&i.blockCommentStartToken&&i.blockCommentEndToken){var r=i.blockCommentStartToken,a=i.blockCommentEndToken,s=this._attemptRemoveBlockComment(e,n,r,a);if(!s){if(n.isEmpty()){var l=e.getLineContent(n.startLineNumber),u=f.q(l);-1===u&&(u=l.length),s=h._createAddBlockCommentOperations(new c.a(n.startLineNumber,u+1,n.startLineNumber,l.length+1),r,a,this._insertSpace)}else s=h._createAddBlockCommentOperations(new c.a(n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),r,a,this._insertSpace);1===s.length&&(this._deltaColumn=r.length+1)}this._selectionId=t.trackSelection(n);for(var p=0,g=s;p<g.length;p++){var m=g[p];t.addEditOperation(m.range,m.text)}}},m.prototype.getEditOperations=function(e,t){var n=this._selection;this._moveEndPositionDown=!1,n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));var o=m._gatherPreflightData(this._type,this._insertSpace,e,n.startLineNumber,n.endLineNumber);return o.supported?this._executeLineComments(e,t,o,n):this._executeBlockComment(e,t,n)},m.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new u.a(n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn)},m._createRemoveLineCommentsOperations=function(e,t){for(var n=[],o=0,i=e.length;o<i;o++){var r=e[o];r.ignore||n.push(s.a.delete(new c.a(t+o,r.commentStrOffset+1,t+o,r.commentStrOffset+r.commentStrLength+1)))}return n},m.prototype._createAddLineCommentsOperations=function(e,t){for(var n=[],o=this._insertSpace?" ":"",i=0,r=e.length;i<r;i++){var a=e[i];a.ignore||n.push(s.a.insert(new l.a(t+i,a.commentStrOffset+1),a.commentStr+o))}return n},m.nextVisibleColumn=function(e,t,n,o){return n?e+(t-e%t):e+o},m._normalizeInsertionPoint=function(e,t,n,o){for(var i,r,a=1073741824,s=0,l=t.length;s<l;s++)if(!t[s].ignore){for(var c=e.getLineContent(n+s),u=0,d=0,h=t[s].commentStrOffset;u<a&&d<h;d++)u=m.nextVisibleColumn(u,o,9===c.charCodeAt(d),1);u<a&&(a=u)}for(a=Math.floor(a/o)*o,s=0,l=t.length;s<l;s++)if(!t[s].ignore){for(c=e.getLineContent(n+s),i=u=0,r=t[s].commentStrOffset;u<a&&i<r;i++)u=m.nextVisibleColumn(u,o,9===c.charCodeAt(i),1);t[s].commentStrOffset=a<u?i-1:i}},m);function m(e,t,n,o){this._selection=e,this._tabSize=t,this._type=n,this._insertSpace=o,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1}var v,y,b=(v=function(e,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=(b(w,y=r.b),w.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),o=[],i=t.getSelections(),r=n.getOptions(),a=t.getOption(13),s=0,l=i;s<l.length;s++){var c=l[s];o.push(new g(c,r.tabSize,this._type,a.insertSpace))}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}},w);function w(e,t){var n=y.call(this,t)||this;return n._type=e,n}var C,S=(b(O,C=_),O);function O(){return C.call(this,0,{id:"editor.action.commentLine",label:o.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:a.a.writable,kbOpts:{kbExpr:a.a.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:17,group:"5_insert",title:o.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}var x,E=(b(k,x=_),k);function k(){return x.call(this,1,{id:"editor.action.addCommentLine",label:o.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:a.a.writable,kbOpts:{kbExpr:a.a.editorTextFocus,primary:Object(i.a)(2089,2081),weight:100}})||this}var N,D=(b(L,N=_),L);function L(){return N.call(this,2,{id:"editor.action.removeCommentLine",label:o.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:a.a.writable,kbOpts:{kbExpr:a.a.editorTextFocus,primary:Object(i.a)(2089,2099),weight:100}})||this}var P,I=(b(T,P=r.b),T.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getOption(13),o=[],i=0,r=t.getSelections();i<r.length;i++){var a=r[i];o.push(new h(a,n.insertSpace))}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}},T);function T(){return P.call(this,{id:"editor.action.blockComment",label:o.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:a.a.writable,kbOpts:{kbExpr:a.a.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:17,group:"5_insert",title:o.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}Object(r.f)(S),Object(r.f)(E),Object(r.f)(D),Object(r.f)(I)},function(e,t,n){"use strict";n.r(t),n(1373),n(1097),n(1098);var o,i=n(484),r=n(760),a=n(444),s=n(975),l=n(449),c=n(440),u=n(469),d=n(454),h=n(479),p=n(598),f=n(787),g=n(459),m=n(822),v=n(446),y=n(553),b=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=(w.prototype.remove=function(){this.parent&&delete this.parent.children[this.id]},w.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 o=n,i=0;void 0!==t.children[o];i++)o=n+"_"+i;return o},w.empty=function(e){for(var t in e.children)return!1;return!0},w);function w(){}var C,S=(b(O,C=_),O);function O(e,t,n){var o=C.call(this)||this;return o.id=e,o.parent=t,o.symbol=n,o.children=Object.create(null),o}var x,E=(b(k,x=_),k);function k(e,t,n,o){var i=x.call(this)||this;return i.id=e,i.parent=t,i.provider=n,i.providerIndex=o,i.children=Object.create(null),i}var N=(D.prototype.update=function(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this},D);function D(){this._n=1,this._val=0}var L,P=(b(I,L=_),I.create=function(e,t){var n=this,o=this._keys.for(e,!0),r=I._requests.get(o);if(!r){var a=new i.b;r={promiseCnt:0,source:a,promise:I._create(e,a.token),model:void 0},I._requests.set(o,r);var s=Date.now();r.promise.then((function(){var t=n._keys.for(e,!1),o=n._requestDurations.get(t);o||(o=new N,n._requestDurations.set(t,o)),o.update(Date.now()-s)}))}return r.model?Promise.resolve(r.model):(r.promiseCnt+=1,t.onCancellationRequested((function(){0==--r.promiseCnt&&(r.source.cancel(),I._requests.delete(o))})),new Promise((function(e,t){r.promise.then((function(t){r.model=t,e(t)}),(function(e){I._requests.delete(o),t(e)}))})))},I._create=function(e,t){var n=new i.b(t),o=new I(e),r=d.m.ordered(e),a=r.map((function(e,t){var i=_.findId("provider_"+t,o),r=new E(i,o,e,t);return Promise.resolve(e.provideDocumentSymbols(o.textModel,n.token)).then((function(e){for(var t=0,n=e||[];t<n.length;t++)I._makeOutlineElement(n[t],r);return r}),(function(e){return Object(v.f)(e),r})).then((function(e){_.empty(e)?e.remove():o._groups[i]=e}))})),s=d.m.onDidChange((function(){var t=d.m.ordered(e);Object(g.g)(t,r)||n.cancel()}));return Promise.all(a).then((function(){return n.token.isCancellationRequested&&!t.isCancellationRequested?I._create(e,t):o._compact()})).finally((function(){s.dispose()}))},I._makeOutlineElement=function(e,t){var n=_.findId(e,t),o=new S(n,t,e);if(e.children)for(var i=0,r=e.children;i<r.length;i++){var a=r[i];I._makeOutlineElement(a,o)}t.children[o.id]=o},I.prototype._compact=function(){var e=0;for(var t in this._groups){var n=this._groups[t];void 0===Object(m.b)(n.children)?delete this._groups[t]:e+=1}if(1!==e)this.children=this._groups;else for(var t in(n=Object(m.b)(this._groups)).children){var o=n.children[t];(o.parent=this).children[o.id]=o}return this},I._requestDurations=new y.a(50,.7),I._requests=new y.a(9,.75),I._keys=(T.prototype.for=function(e,t){return e.id+"/"+(t?e.getVersionId():"")+"/"+this._hash(d.m.all(e))},T.prototype._hash=function(e){for(var t="",n=0,o=e;n<o.length;n++){var i=o[n],r=this._data.get(i);void 0===r&&(r=this._counter++,this._data.set(i,r)),t+=r}return t},new T),I);function I(e){var t=L.call(this)||this;return t.textModel=e,t.id="root",t.parent=void 0,t._groups=Object.create(null),t.children=Object.create(null),t.id="root",t.parent=void 0,t}function T(){this._counter=1,this._data=new WeakMap}var M=n(489),j=n(465),R=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},A=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}};function F(e,t,n){return R(this,void 0,void 0,(function(){var o,i,r,a,s,l;return A(this,(function(c){switch(c.label){case 0:return[4,P.create(e,n)];case 1:for(o=c.sent(),i=[],r=0,a=Object(m.d)(o.children);r<a.length;r++)(s=a[r])instanceof S?i.push(s.symbol):i.push.apply(i,Object(m.d)(s.children).map((function(e){return e.symbol})));return l=[],n.isCancellationRequested?[2,l]:(t?function e(t,n,o){for(var i=0,r=n;i<r.length;i++){var a=r[i];t.push({kind:a.kind,tags:a.tags,name:a.name,detail:a.detail,containerName:a.containerName||o,range:a.range,selectionRange:a.selectionRange,children:void 0}),a.children&&e(t,a.children,a.name)}}(l,i,""):l=i,[2,l.sort(V)])}}))}))}function V(e,t){return c.a.compareRangesUsingStarts(e.range,t.range)}M.a.registerCommand("_executeDocumentSymbolProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return R(this,void 0,void 0,(function(){var n,o,r;return A(this,(function(a){switch(a.label){case 0:return n=t[0],Object(j.a)(h.a.isUri(n)),(o=e.get(p.a).getModel(n))?[2,F(o,!1,i.a.None)]:[4,e.get(f.a).createModelReference(n)];case 1:r=a.sent(),a.label=2;case 2:return a.trys.push([2,,4,5]),[4,F(r.object.textEditorModel,!1,i.a.None)];case 3:return[2,a.sent()];case 4:return r.dispose(),[7];case 5:return[2]}}))}))}));var W=n(968),B=n(754);n.d(t,"SymbolEntry",(function(){return U})),n.d(t,"QuickOutlineAction",(function(){return Y}));var H,z,K=(H=function(e,t){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),U=(K(q,z=s.b),q.prototype.getLabel=function(){return this.name},q.prototype.getAriaLabel=function(){return a.r(B.e.entryAriaLabel,this.name)},q.prototype.getIcon=function(){return this.type},q.prototype.getDescription=function(){return this.description},q.prototype.getType=function(){return this.type},q.prototype.getRange=function(){return this.range},q.prototype.run=function(e,t){return 1===e?this.runOpen(t):this.runPreview()},q.prototype.runOpen=function(e){var t=this.toSelection();return this.editor.setSelection(t),this.editor.revealRangeInCenter(t,0),this.editor.focus(),!0},q.prototype.runPreview=function(){var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(this.range,this.editor),!1},q.prototype.toSelection=function(){return new c.a(this.range.startLineNumber,this.range.startColumn||1,this.range.startLineNumber,this.range.startColumn||1)},q);function q(e,t,n,o,i,r,a){var s=z.call(this)||this;return s.name=e,s.type=t,s.description=n,s.range=o,s.setHighlights(i),s.editor=r,s.decorator=a,s}var G,Y=(K(Z,G=W.a),Z.prototype.run=function(e,t){var n=this;if(t.hasModel()){var o=t.getModel();if(d.m.has(o))return F(o,!0,i.a.None).then((function(e){0!==e.length&&n._run(t,e)}))}},Z.prototype._run=function(e,t){var n=this;this._show(this.getController(e),{getModel:function(o){return new s.c(n.toQuickOpenEntries(e,t,o))},getAutoFocus:function(e){return 0===e.indexOf(":")&&(e=e.substr(":".length)),{autoFocusPrefixMatch:e,autoFocusFirstEntry:!!e}}})},Z.prototype.symbolEntry=function(e,t,n,o,i,r,a){return new U(e,t,n,c.a.lift(o),i,r,a)},Z.prototype.toQuickOpenEntries=function(e,t,n){var o=this.getController(e),i=[],s=n;0===n.indexOf(":")&&(s=s.substr(":".length));for(var l=0,c=t;l<c.length;l++){var u=c[l],h=a.Q(u.name),p=Object(r.f)(s,h);if(p){var f=void 0;u.containerName&&(f=u.containerName),i.push(this.symbolEntry(h,d.z.toCssClassName(u.kind),f,u.range,p,e,o))}}if(n&&(i=0===n.indexOf(":")?i.sort(this.sortScoped.bind(this,n.toLowerCase())):i.sort(this.sortNormal.bind(this,n.toLowerCase()))),0<i.length&&0===n.indexOf(":")){for(var g=null,m=null,v=0,y=0;y<i.length;y++){var b=i[y];g!==b.getType()?(m&&m.setGroupLabel(this.typeToLabel(g||"",v)),g=b.getType(),v=1,(m=b).setShowBorder(0<y)):v++}m&&m.setGroupLabel(this.typeToLabel(g||"",v))}else 0<i.length&&i[0].setGroupLabel(a.r(B.e._symbols_,i.length));return i},Z.prototype.typeToLabel=function(e,t){switch(e){case"module":return a.r(B.e._modules_,t);case"class":return a.r(B.e._class_,t);case"interface":return a.r(B.e._interface_,t);case"method":return a.r(B.e._method_,t);case"function":return a.r(B.e._function_,t);case"property":return a.r(B.e._property_,t);case"variable":return a.r(B.e._variable_,t);case"var":return a.r(B.e._variable2_,t);case"constructor":return a.r(B.e._constructor_,t);case"call":return a.r(B.e._call_,t)}return e},Z.prototype.sortNormal=function(e,t,n){var o=t.getLabel().toLowerCase(),i=n.getLabel().toLowerCase(),r=o.localeCompare(i);if(0!==r)return r;var a=t.getRange(),s=n.getRange();return a.startLineNumber-s.startLineNumber},Z.prototype.sortScoped=function(e,t,n){e=e.substr(":".length);var o=t.getType(),i=n.getType(),r=o.localeCompare(i);if(0!==r)return r;if(e){var a=t.getLabel().toLowerCase(),s=n.getLabel().toLowerCase(),l=a.localeCompare(s);if(0!==l)return l}var c=t.getRange(),u=n.getRange();return c.startLineNumber-u.startLineNumber},Z);function Z(){return G.call(this,B.e.quickOutlineActionInput,{id:"editor.action.quickOutline",label:B.e.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:u.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:u.a.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})||this}Object(l.f)(Y)},function(e,t,n){"use strict";n.r(t);var o=n(445),i=n(449),r=n(469),a=n(440),s=(l.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 o,i,r,s=n.selectionStartLineNumber,l=e.getLineContent(s);r=this._isMovingLeft?(o=l.substring(0,n.startColumn-2),i=l.substring(n.startColumn-1,n.endColumn-1),l.substring(n.startColumn-2,n.startColumn-1)+l.substring(n.endColumn-1)):(o=l.substring(0,n.startColumn-1)+l.substring(n.endColumn-1,n.endColumn),i=l.substring(n.startColumn-1,n.endColumn-1),l.substring(n.endColumn));var c=o+i+r;t.addEditOperation(new a.a(s,1,s,e.getLineMaxColumn(s)),null),t.addEditOperation(new a.a(s,1,s,1),c),this._cutStartIndex=n.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+n.endColumn-n.startColumn,this._moved=!0}},l.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moved&&(n=(n=n.setStartPosition(n.startLineNumber,this._cutStartIndex)).setEndPosition(n.startLineNumber,this._cutEndIndex)),n},l);function l(e,t){this._selection=e,this._isMovingLeft=t,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}var c,u,d=(c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=(d(p,u=i.b),p.prototype.run=function(e,t){if(t.hasModel()){for(var n=[],o=0,i=t.getSelections();o<i.length;o++){var r=i[o];n.push(new s(r,this.left))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},p);function p(e,t){var n=u.call(this,t)||this;return n.left=e,n}var f,g=(d(m,f=h),m);function m(){return f.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:o.a("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:r.a.writable})||this}var v,y=(d(b,v=h),b);function b(){return v.call(this,!1,{id:"editor.action.moveCarretRightAction",label:o.a("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:r.a.writable})||this}Object(i.f)(g),Object(i.f)(y)},function(e,t,n){"use strict";n.r(t);var o,i,r=n(445),a=n(443),s=n(772),l=n(439),c=n(449),u=n(469),d=n(755),h=n(456),p=n(757),f=n(531),g=n(1081),m=((o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(v,i=g.b),v);function v(e,t){var n=i.call(this,e,t,"contextsubmenu")||this;return n.entries=t,n}n.d(t,"ContextMenuController",(function(){return w}));var y,b=(y=function(e,t){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=function(e,t){return function(n,o){t(n,o,e)}},w=(C.get=function(e){return e.getContribution(C.ID)},C.prototype._onContextMenu=function(e){if(this._editor.hasModel()){if(!this._editor.getOption(14))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,o=this._editor.getSelections();n<o.length;n++)if(o[n].containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}var i=null;1!==e.target.type&&(i={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(i)}}},C.prototype.showContextMenu=function(e){if(this._editor.getOption(14)&&this._editor.hasModel())if(this._contextMenuService){var t=this._getMenuActions(this._editor.getModel(),7);0<t.length&&this._doShowContextMenu(t,e)}else this._editor.focus()},C.prototype._getMenuActions=function(e,t){var n=[],o=this._menuService.createMenu(t,this._contextKeyService),i=o.getActions({arg:e.uri});o.dispose();for(var r=0,a=i;r<a.length;r++){for(var l=0,c=0,u=a[r][1];c<u.length;c++){var h=u[c];if(h instanceof d.d){var p=this._getMenuActions(e,h.item.submenu);0<p.length&&(n.push(new m(h.label,p)),l++)}else n.push(h),l++}l&&n.push(new s.d)}return n.length&&n.pop(),n},C.prototype._doShowContextMenu=function(e,t){var n=this;if(void 0===t&&(t=null),this._editor.hasModel()){var o=this._editor.getOption(44);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var i=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=a.C(this._editor.getDomNode()),l=r.left+i.left,c=r.top+i.top+i.height;t={x:l,y:c}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return t},getActions:function(){return e},getActionViewItem:function(e){var t=n._keybindingFor(e);return t?new s.b(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0}):"function"==typeof e.getActionViewItem?e.getActionViewItem():new s.b(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(e){return n._keybindingFor(e)},onHide:function(){n._contextMenuIsBeingShownCount--,n._editor.focus(),n._editor.updateOptions({hover:o})}})}},C.prototype._keybindingFor=function(e){return this._keybindingService.lookupKeybinding(e.id)},C.prototype.dispose=function(){0<this._contextMenuIsBeingShownCount&&this._contextViewService.hideContextView(),this._toDispose.dispose()},C.ID="editor.contrib.contextmenu",C=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([_(1,p.a),_(2,p.b),_(3,h.c),_(4,f.a),_(5,d.a)],C));function C(e,t,n,o,i,r){var a=this;this._contextMenuService=t,this._contextViewService=n,this._contextKeyService=o,this._keybindingService=i,this._menuService=r,this._toDispose=new l.b,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((function(e){return a._onContextMenu(e)}))),this._toDispose.add(this._editor.onMouseWheel((function(e){0<a._contextMenuIsBeingShownCount&&a._contextViewService.hideContextView()}))),this._toDispose.add(this._editor.onKeyDown((function(e){58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),a.showContextMenu())})))}var S,O=(b(x,S=c.b),x.prototype.run=function(e,t){w.get(t).showContextMenu()},x);function x(){return S.call(this,{id:"editor.action.showContextMenu",label:r.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:u.a.textInputFocus,primary:1092,weight:100}})||this}Object(c.h)(w.ID,w),Object(c.f)(O)},function(e,t,n){"use strict";n.r(t),n(1329);var o=n(439),i=n(452),r=n(449),a=n(450),s=n(440),l=n(466),c=(u.prototype.getEditOperations=function(e,t){var n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new s.a(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 l.a(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 l.a(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 l.a(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 l.a(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 l.a(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},u.prototype.computeCursorState=function(e,t){return this.targetSelection},u);function u(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}var d,h=n(495);function p(e){return i.e?e.altKey:e.ctrlKey}n.d(t,"DragAndDropController",(function(){return g}));var f,g=((d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(m,f=o.a),m.prototype.onEditorBlur=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1},m.prototype.onEditorKeyDown=function(e){this._editor.getOption(24)&&(p(e)&&(this._modifierPressed=!0),this._mouseDown&&p(e)&&this._editor.updateOptions({mouseStyle:"copy"}))},m.prototype.onEditorKeyUp=function(e){this._editor.getOption(24)&&(p(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===m.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))},m.prototype._onEditorMouseDown=function(e){this._mouseDown=!0},m.prototype._onEditorMouseUp=function(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})},m.prototype._onEditorMouseDrag=function(e){var t=e.target;if(null===this._dragSelection){var n=(this._editor.getSelections()||[]).filter((function(e){return t.position&&e.containsPosition(t.position)}));if(1!==n.length)return;this._dragSelection=n[0]}p(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))},m.prototype._onEditorMouseDrop=function(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){var t=new a.a(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){var n=null;if(e.event.shiftKey){var o=this._editor.getSelection();if(o){var i=o.selectionStartLineNumber,r=o.selectionStartColumn;n=[new l.a(i,r,t.lineNumber,t.column)]}}else n=(this._editor.getSelections()||[]).map((function(e){return e.containsPosition(t)?new l.a(t.lineNumber,t.column,t.lineNumber,t.column):e}));this._editor.setSelections(n||[],"mouse")}else this._dragSelection.containsPosition(t)&&(!p(e.event)&&!this._modifierPressed||!this._dragSelection.getEndPosition().equals(t)&&!this._dragSelection.getStartPosition().equals(t))||(this._editor.pushUndoStop(),this._editor.executeCommand(m.ID,new c(this._dragSelection,t,p(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1},m.prototype.showAt=function(e){var t=[{range:new s.a(e.lineNumber,e.column,e.lineNumber,e.column),options:m._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,t),this._editor.revealPosition(e,1)},m.prototype._removeDecoration=function(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])},m.prototype._hitContent=function(e){return 6===e.type||7===e.type},m.prototype._hitMargin=function(e){return 2===e.type||3===e.type||4===e.type},m.prototype.dispose=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,f.prototype.dispose.call(this)},m.ID="editor.contrib.dragAndDrop",m.TRIGGER_KEY_VALUE=i.e?6:5,m._DECORATION_OPTIONS=h.a.register({className:"dnd-target"}),m);function m(e){var t=f.call(this)||this;return t._editor=e,t._register(t._editor.onMouseDown((function(e){return t._onEditorMouseDown(e)}))),t._register(t._editor.onMouseUp((function(e){return t._onEditorMouseUp(e)}))),t._register(t._editor.onMouseDrag((function(e){return t._onEditorMouseDrag(e)}))),t._register(t._editor.onMouseDrop((function(e){return t._onEditorMouseDrop(e)}))),t._register(t._editor.onKeyDown((function(e){return t.onEditorKeyDown(e)}))),t._register(t._editor.onKeyUp((function(e){return t.onEditorKeyUp(e)}))),t._register(t._editor.onDidBlurEditorWidget((function(){return t.onEditorBlur()}))),t._dndDecorationIds=[],t._mouseDown=!1,t._modifierPressed=!1,t._dragSelection=null,t}Object(r.h)(g.ID,g)},function(e,t,n){"use strict";n.r(t);var o=n(445),i=n(440),r=n(466),a=n(469),s=n(449),l=n(758),c=(u.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._editRange,this._text)},u.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new r.a(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new r.a(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)},u);function u(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}var d,h=n(761),p=n(451),f=n(572),g=n(495),m=n(453),v=n(446),y=(d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=(_.get=function(e){return e.getContribution(_.ID)},_.prototype.dispose=function(){},_.prototype.run=function(e,t){var n=this;this.currentRequest&&this.currentRequest.cancel();var o=this.editor.getSelection(),a=this.editor.getModel();if(a&&o){var s=o;if(s.startLineNumber===s.endLineNumber){var l=new h.a(this.editor,5),u=a.uri;return this.editorWorkerService.canNavigateValueSet(u)?(this.currentRequest=Object(m.f)((function(e){return n.editorWorkerService.navigateValueSet(u,s,t)})),this.currentRequest.then((function(t){if(t&&t.range&&t.value&&l.validate(n.editor)){var o=i.a.lift(t.range),a=t.range,u=t.value.length-(s.endColumn-s.startColumn);a={startLineNumber:a.startLineNumber,startColumn:a.startColumn,endLineNumber:a.endLineNumber,endColumn:a.startColumn+t.value.length},1<u&&(s=new r.a(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn+u-1));var d=new c(o,s,t.value);n.editor.pushUndoStop(),n.editor.executeCommand(e,d),n.editor.pushUndoStop(),n.decorationIds=n.editor.deltaDecorations(n.decorationIds,[{range:a,options:_.DECORATION}]),n.decorationRemover&&n.decorationRemover.cancel(),n.decorationRemover=Object(m.l)(350),n.decorationRemover.then((function(){return n.decorationIds=n.editor.deltaDecorations(n.decorationIds,[])})).catch(v.e)}})).catch(v.e)):Promise.resolve(void 0)}}},_.ID="editor.contrib.inPlaceReplaceController",_.DECORATION=g.a.register({className:"valueSetReplacement"}),_=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(1,l.a)],_));function _(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}var w,C=(y(S,w=s.b),S.prototype.run=function(e,t){var n=b.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)},S);function S(){return w.call(this,{id:"editor.action.inPlaceReplace.up",label:o.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:a.a.writable,kbOpts:{kbExpr:a.a.editorTextFocus,primary:3154,weight:100}})||this}var O,x=(y(E,O=s.b),E.prototype.run=function(e,t){var n=b.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)},E);function E(){return O.call(this,{id:"editor.action.inPlaceReplace.down",label:o.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:a.a.writable,kbOpts:{kbExpr:a.a.editorTextFocus,primary:3156,weight:100}})||this}Object(s.h)(b.ID,b),Object(s.f)(C),Object(s.f)(x),Object(p.e)((function(e,t){var n=e.getColor(f.d);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+n+"; }")}))},function(e,t,n){"use strict";n.r(t),n(1371);var o,i=n(445),r=n(453),a=n(484),s=n(446),l=n(795),c=n(439),u=n(452),d=n(449),h=n(495),p=n(454),f=n(1094),g=n(479),m=n(440),v=n(598),y=n(489),b=n(459),_=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},C=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},S=(O.prototype.toJSON=function(){return{range:this.range,url:this.url,tooltip:this.tooltip}},Object.defineProperty(O.prototype,"range",{get:function(){return this._link.range},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"url",{get:function(){return this._link.url},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"tooltip",{get:function(){return this._link.tooltip},enumerable:!0,configurable:!0}),O.prototype.resolve=function(e){return w(this,void 0,void 0,(function(){var t=this;return C(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"))]}))}))},O);function O(e,t){this._link=e,this._provider=t}var x,E=(_(k,x=c.a),k._union=function(e,t){var n,o,i,r,a=[];for(i=n=0,o=e.length,r=t.length;n<o&&i<r;){var s=e[n],l=t[i];m.a.areIntersectingOrTouching(s.range,l.range)?n++:m.a.compareRangesUsingStarts(s.range,l.range)<0?(a.push(s),n++):(a.push(l),i++)}for(;n<o;n++)a.push(e[n]);for(;i<r;i++)a.push(t[i]);return a},k);function k(e){for(var t=x.call(this)||this,n=[],o=function(e,t){var o=e.links.map((function(e){return new S(e,t)}));n=k._union(n,o),Object(c.g)(t)&&i._register(t)},i=this,r=0,a=e;r<a.length;r++){var s=a[r];o(s[0],s[1])}return t.links=n,t}function N(e,t){var n=[],o=p.s.ordered(e).reverse().map((function(o,i){return Promise.resolve(o.provideLinks(e,t)).then((function(e){e&&(n[i]=[e,o])}),s.f)}));return Promise.all(o).then((function(){var e=new E(Object(b.d)(n));return t.isCancellationRequested?(e.dispose(),new E([])):e}))}y.a.registerCommand("_executeLinkProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return w(void 0,void 0,void 0,(function(){var n,o,i,r;return C(this,(function(s){switch(s.label){case 0:return(n=t[0])instanceof g.a&&(o=e.get(v.a).getModel(n))?[4,N(o,a.a.None)]:[2,[]];case 1:return(i=s.sent())?(r=i.links.slice(0),i.dispose(),[2,r]):[2,[]]}}))}))}));var D,L=n(532),P=n(636),I=n(461),T=n(451),M=(D=function(e,t){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),j=function(){return(j=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},R=function(e,t){return function(n,o){t(n,o,e)}},A={general:h.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:h.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},F=(V.decoration=function(e,t){return{range:e.range,options:V._getOptions(e,t,!1)}},V._getOptions=function(e,t,n){var o,r,a,s,c,d=j({},n?A.active:A.general);return d.hoverMessage=(r=t,a=(o=e).url&&/^command:/i.test(o.url.toString()),s=o.tooltip?o.tooltip:a?i.a("links.navigate.executeCmd","Execute command"):i.a("links.navigate.follow","Follow link"),c=r?u.e?i.a("links.navigate.kb.meta.mac","cmd + click"):i.a("links.navigate.kb.meta","ctrl + click"):u.e?i.a("links.navigate.kb.alt.mac","option + click"):i.a("links.navigate.kb.alt","alt + click"),o.url?new l.a("",!0).appendMarkdown("["+s+"]("+o.url.toString()+") ("+c+")"):(new l.a).appendText(s+" ("+c+")")),d},V.prototype.activate=function(e,t){e.changeDecorationOptions(this.decorationId,V._getOptions(this.link,t,!0))},V.prototype.deactivate=function(e,t){e.changeDecorationOptions(this.decorationId,V._getOptions(this.link,t,!1))},V);function V(e,t){this.link=e,this.decorationId=t}var W=(B.get=function(e){return e.getContribution(B.ID)},B.prototype.onModelChanged=function(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()},B.prototype.onModelModeChanged=function(){this.stop(),this.beginCompute()},B.prototype.onChange=function(){var e=this;this.timeout.setIfNotSet((function(){return e.beginCompute()}),B.RECOMPUTE_TIME)},B.prototype.beginCompute=function(){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e,t,n;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(o){switch(o.label){case 0:if(!this.editor.hasModel()||!this.enabled)return[2];if(e=this.editor.getModel(),!p.s.has(e))return[2];this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=r.f((function(t){return N(e,t)})),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,(t=this).computePromise];case 2:return t.activeLinksList=o.sent(),this.updateDecorations(this.activeLinksList.links),[3,5];case 3:return n=o.sent(),Object(s.e)(n),[3,5];case 4:return this.computePromise=null,[7];case 5:return[2]}}))}))},B.prototype.updateDecorations=function(e){for(var t="altKey"===this.editor.getOption(59),n=[],o=Object.keys(this.currentOccurrences),i=0,r=o.length;i<r;i++){var a=o[i],s=this.currentOccurrences[a];n.push(s.decorationId)}var l=[];if(e)for(var c=0,u=e;c<u.length;c++){var d=u[c];l.push(F.decoration(d,t))}var h=this.editor.deltaDecorations(n,l);for(this.currentOccurrences={},this.activeLinkDecorationId=null,i=0,r=h.length;i<r;i++)s=new F(e[i],h[i]),this.currentOccurrences[s.decorationId]=s},B.prototype._onEditorMouseMove=function(e,t){var n=this,o="altKey"===this.editor.getOption(59);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();var i=this.getLinkOccurrence(e.target.position);i&&this.editor.changeDecorations((function(e){i.activate(e,o),n.activeLinkDecorationId=i.decorationId}))}else this.cleanUpActiveLinkDecoration()},B.prototype.cleanUpActiveLinkDecoration=function(){var e="altKey"===this.editor.getOption(59);if(this.activeLinkDecorationId){var t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((function(n){t.deactivate(n,e)})),this.activeLinkDecorationId=null}},B.prototype.onEditorMouseUp=function(e){if(this.isEnabled(e)){var t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}},B.prototype.openLinkOccurrence=function(e,t,n){var o=this;if(void 0===n&&(n=!1),this.openerService){var r=e.link;r.resolve(a.a.None).then((function(e){return o.openerService.open(e,{openToSide:t,fromUserGesture:n})}),(function(e){var t=e instanceof Error?e.message:e;"invalid"===t?o.notificationService.warn(i.a("invalid.url","Failed to open this link because it is not well-formed: {0}",r.url.toString())):"missing"===t?o.notificationService.warn(i.a("missing.url","Failed to open this link because its target is missing.")):Object(s.e)(e)}))}},B.prototype.getLinkOccurrence=function(e){if(!this.editor.hasModel()||!e)return null;for(var t=0,n=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);t<n.length;t++){var o=n[t],i=this.currentOccurrences[o.id];if(i)return i}return null},B.prototype.isEnabled=function(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))},B.prototype.stop=function(){this.timeout.cancel(),this.activeLinksList&&this.activeLinksList.dispose(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)},B.prototype.dispose=function(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()},B.ID="editor.linkDetector",B.RECOMPUTE_TIME=1e3,B=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([R(1,P.a),R(2,L.a)],B));function B(e,t,n){var o=this;this.listenersToRemove=new c.b,this.editor=e,this.openerService=t,this.notificationService=n;var i=new f.a(e);this.listenersToRemove.add(i),this.listenersToRemove.add(i.onMouseMoveOrRelevantKeyDown((function(e){var t=e[0],n=e[1];o._onEditorMouseMove(t,n)}))),this.listenersToRemove.add(i.onExecute((function(e){o.onEditorMouseUp(e)}))),this.listenersToRemove.add(i.onCancel((function(e){o.cleanUpActiveLinkDecoration()}))),this.enabled=e.getOption(52),this.listenersToRemove.add(e.onDidChangeConfiguration((function(t){var n=e.getOption(52);o.enabled!==n&&(o.enabled=n,o.updateDecorations([]),o.stop(),o.beginCompute())}))),this.listenersToRemove.add(e.onDidChangeModelContent((function(e){return o.onChange()}))),this.listenersToRemove.add(e.onDidChangeModel((function(e){return o.onModelChanged()}))),this.listenersToRemove.add(e.onDidChangeModelLanguage((function(e){return o.onModelModeChanged()}))),this.listenersToRemove.add(p.s.onDidChange((function(e){return o.onModelModeChanged()}))),this.timeout=new r.e,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}var H,z=(M(K,H=d.b),K.prototype.run=function(e,t){var n=W.get(t);if(n&&t.hasModel())for(var o=0,i=t.getSelections();o<i.length;o++){var r=i[o],a=n.getLinkOccurrence(r.getEndPosition());a&&n.openLinkOccurrence(a,!1)}},K);function K(){return H.call(this,{id:"editor.action.openLink",label:i.a("label","Open Link"),alias:"Open Link",precondition:void 0})||this}Object(d.h)(W.ID,W),Object(d.f)(z),Object(T.e)((function(e,t){var n=e.getColor(I.n);n&&t.addRule(".monaco-editor .detected-link-active { color: "+n+" !important; }")}))},function(e,t,n){"use strict";n.r(t);var o=n(445),i=n(446),r=n(456),a=n(774),s=n(449),l=n(469),c=(n(1378),n(439)),u=n(450),d=n(440),h=n(461),p=n(451),f=n(531),g=n(443),m=function(e,t){return function(n,o){t(n,o,e)}},v=new r.d("renameInputVisible",!1),y=(b.prototype.dispose=function(){this._disposables.dispose(),this._editor.removeContentWidget(this)},b.prototype.getId=function(){return"__renameInputWidget"},b.prototype.getDomNode=function(){var e=this;if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(o.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);var t=function(){var t,n,i=e._acceptKeybindings,r=i[0],a=i[1];e._keybindingService.lookupKeybinding(r),e._label.innerText=Object(o.a)("label","{0} to Rename, {1} to Preview",null===(t=e._keybindingService.lookupKeybinding(r))||void 0===t?void 0:t.getLabel(),null===(n=e._keybindingService.lookupKeybinding(a))||void 0===n?void 0:n.getLabel())};t(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(t)),this._updateFont(),this._updateStyles(this._themeService.getTheme())}return this._domNode},b.prototype._updateStyles=function(e){var t,n,o,i;if(this._input&&this._domNode){var r=e.getColor(h.hc);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(h.Q))&&void 0!==t?t:""),this._domNode.style.boxShadow=r?" 0 2px 8px "+r:"",this._domNode.style.color=String(null!==(n=e.getColor(h.bb))&&void 0!==n?n:""),this._input.style.backgroundColor=String(null!==(o=e.getColor(h.Z))&&void 0!==o?o:"");var a=e.getColor(h.ab);this._input.style.borderWidth=a?"1px":"0px",this._input.style.borderStyle=a?"solid":"none",this._input.style.borderColor=null!==(i=null==a?void 0:a.toString())&&void 0!==i?i:"none"}},b.prototype._updateFont=function(){if(this._input&&this._label){var e=this._editor.getOption(34);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=e.fontSize+"px",this._label.style.fontSize=.8*e.fontSize+"px"}},b.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null},b.prototype.acceptInput=function(e){this._currentAcceptInput&&this._currentAcceptInput(e)},b.prototype.cancelInput=function(e){this._currentCancelInput&&this._currentCancelInput(e)},b.prototype.getInput=function(e,t,n,o,i){var r=this;Object(g.Y)(this._domNode,"preview",i),this._position=new u.a(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",n.toString()),this._input.setAttribute("selectionEnd",o.toString()),this._input.size=Math.max(1.1*(e.endColumn-e.startColumn),20);var a=new c.b;return new Promise((function(n){r._currentCancelInput=function(e){return r._currentAcceptInput=void 0,r._currentCancelInput=void 0,n(e),!0},r._currentAcceptInput=function(e){0!==r._input.value.trim().length&&r._input.value!==t?(r._currentAcceptInput=void 0,r._currentCancelInput=void 0,n({newName:r._input.value,wantsPreview:i&&e})):r.cancelInput(!0)},a.add(r._editor.onDidChangeCursorSelection((function(){var t=r._editor.getPosition();t&&d.a.containsPosition(e,t)||r.cancelInput(!0)}))),a.add(r._editor.onDidBlurEditorWidget((function(){return r.cancelInput(!1)}))),r._show()})).finally((function(){a.dispose(),r._hide()}))},b.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._input.focus(),e._input.setSelectionRange(parseInt(e._input.getAttribute("selectionStart")),parseInt(e._input.getAttribute("selectionEnd")))}),100)},b.prototype._hide=function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)},b=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([m(2,p.c),m(3,f.a),m(4,r.c)],b));function b(e,t,n,o,i){var r=this;this._editor=e,this._acceptKeybindings=t,this._themeService=n,this._keybindingService=o,this._disposables=new c.b,this.allowEditorOverflow=!0,this._visibleContextKey=v.bindTo(i),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&r._updateFont()}))),this._disposables.add(n.onThemeChange(this._updateStyles,this))}var _=n(454),w=n(635),C=n(887),S=n(761),O=n(532),x=n(951),E=n(479),k=n(504),N=n(484),D=n(453),L=n(465),P=n(828),I=n(448),T=n(571),M=n(789),j=n(899);n.d(t,"rename",(function(){return z})),n.d(t,"RenameAction",(function(){return G}));var R,A=(R=function(e,t){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),F=function(e,t){return function(n,o){t(n,o,e)}},V=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},W=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},B=(H.prototype.hasProvider=function(){return 0<this._providers.length},H.prototype.resolveRenameLocation=function(e){return V(this,void 0,void 0,(function(){var t,n,o,i;return W(this,(function(r){switch(r.label){case 0:return(t=this._providers[0])?t.resolveRenameLocation?(o=L.n,[4,t.resolveRenameLocation(this.model,this.position,e)]):[3,2]:[2,void 0];case 1:n=o.apply(void 0,[r.sent()]),r.label=2;case 2:return!n&&(i=this.model.getWordAtPosition(this.position))?[2,{range:new d.a(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word}]:[2,n]}}))}))},H.prototype.provideRenameEdits=function(e,t,n,i){return V(this,void 0,void 0,(function(){var r,a;return W(this,(function(s){switch(s.label){case 0:return(r=this._providers[t])?[4,r.provideRenameEdits(this.model,this.position,e,i)]:[2,{edits:[],rejectReason:n.join("\n")}];case 1:return(a=s.sent())?a.rejectReason?[2,this.provideRenameEdits(e,t+1,n.concat(a.rejectReason),i)]:[2,a]:[2,this.provideRenameEdits(e,t+1,n.concat(o.a("no result","No result.")),i)]}}))}))},H);function H(e,t){this.model=e,this.position=t,this._providers=_.v.ordered(e)}function z(e,t,n){return V(this,void 0,void 0,(function(){return W(this,(function(o){return[2,new B(e,t).provideRenameEdits(n,0,[],N.a.None)]}))}))}var K=(U.get=function(e){return e.getContribution(U.ID)},U.prototype.dispose=function(){this._dispoableStore.dispose(),this._cts.dispose(!0)},U.prototype.run=function(){return V(this,void 0,void 0,(function(){var e,t,n,i,r,a,s,l,c,u,h,p=this;return W(this,(function(f){switch(f.label){case 0:if(this._cts.dispose(!0),!this.editor.hasModel())return[2,void 0];if(e=this.editor.getPosition(),!(t=new B(this.editor.getModel(),e)).hasProvider())return[2,void 0];this._cts=new S.b(this.editor,5),f.label=1;case 1:return f.trys.push([1,3,,4]),i=t.resolveRenameLocation(this._cts.token),this._progressService.showWhile(i,250),[4,i];case 2:return n=f.sent(),[3,4];case 3:return r=f.sent(),C.a.get(this.editor).showMessage(r||o.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),e),[2,void 0];case 4:return n?n.rejectReason?(C.a.get(this.editor).showMessage(n.rejectReason,e),[2,void 0]):this._cts.token.isCancellationRequested?[2,void 0]:(a=this.editor.getSelection(),s=0,l=n.text.length,d.a.isEmpty(a)||d.a.spansMultipleLines(a)||!d.a.containsRange(n.range,a)||(s=Math.max(0,a.startColumn-n.range.startColumn),l=Math.min(n.range.endColumn,a.endColumn)-n.range.startColumn),c=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),[4,this._renameInputField.getValue().getInput(n.range,n.text,s,l,c)]):[2,void 0];case 5:return"boolean"==typeof(u=f.sent())?(u&&this.editor.focus(),[2,void 0]):(this.editor.focus(),h=Object(D.j)(t.provideRenameEdits(u.newName,0,[],this._cts.token),this._cts.token).then((function(e){return V(p,void 0,void 0,(function(){var t=this;return W(this,(function(i){return e&&this.editor.hasModel()&&(e.rejectReason?this._notificationService.info(e.rejectReason):this._bulkEditService.apply(e,{editor:this.editor,showPreview:u.wantsPreview,label:o.a("label","Renaming '{0}'",null==n?void 0:n.text)}).then((function(e){e.ariaSummary&&Object(w.a)(o.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",n.text,u.newName,e.ariaSummary))})).catch((function(e){t._notificationService.error(o.a("rename.failedApply","Rename failed to apply edits")),t._logService.error(e)}))),[2]}))}))}),(function(e){p._notificationService.error(o.a("rename.failed","Rename failed to compute edits")),p._logService.error(e)})),this._progressService.showWhile(h,250),[2,h])}}))}))},U.prototype.acceptRenameInput=function(e){this._renameInputField.getValue().acceptInput(e)},U.prototype.cancelRenameInput=function(){this._renameInputField.getValue().cancelInput(!0)},U.ID="editor.contrib.renameController",U=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([F(1,I.a),F(2,O.a),F(3,x.a),F(4,a.a),F(5,P.a),F(6,j.a)],U));function U(e,t,n,o,i,r,a){var s=this;this.editor=e,this._instaService=t,this._notificationService=n,this._bulkEditService=o,this._progressService=i,this._logService=r,this._configService=a,this._dispoableStore=new c.b,this._cts=new N.b,this._renameInputField=this._dispoableStore.add(new D.b((function(){return s._dispoableStore.add(s._instaService.createInstance(y,s.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))})))}var q,G=(A(Y,q=s.b),Y.prototype.runCommand=function(e,t){var n=this,o=e.get(k.a),r=Array.isArray(t)&&t||[void 0,void 0],a=r[0],s=r[1];return E.a.isUri(a)&&u.a.isIPosition(s)?o.openCodeEditor({resource:a},o.getActiveCodeEditor()).then((function(e){e&&(e.setPosition(s),e.invokeWithinContext((function(t){return n.reportTelemetry(t,e),n.run(t,e)})))}),i.e):q.prototype.runCommand.call(this,e,t)},Y.prototype.run=function(e,t){var n=K.get(t);return n?n.run():Promise.resolve()},Y);function Y(){return q.call(this,{id:"editor.action.rename",label:o.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:r.a.and(l.a.writable,l.a.hasRenameProvider),kbOpts:{kbExpr:l.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})||this}Object(s.h)(K.ID,K),Object(s.f)(G);var Z=s.c.bindToContribution(K.get);Object(s.g)(new Z({id:"acceptRenameInput",precondition:v,handler:function(e){return e.acceptRenameInput(!1)},kbOpts:{weight:199,kbExpr:l.a.focus,primary:3}})),Object(s.g)(new Z({id:"acceptRenameInputWithPreview",precondition:r.a.and(v,r.a.has("config.editor.rename.enablePreview")),handler:function(e){return e.acceptRenameInput(!0)},kbOpts:{weight:199,kbExpr:l.a.focus,primary:1027}})),Object(s.g)(new Z({id:"cancelRenameInput",precondition:v,handler:function(e){return e.cancelRenameInput()},kbOpts:{weight:199,kbExpr:l.a.focus,primary:9,secondary:[1033]}})),Object(s.e)("_executeDocumentRenameProvider",(function(e,t,n){var o=n.newName;if("string"!=typeof o)throw Object(i.b)("newName");return z(e,t,o)})),T.a.as(M.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:o.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},function(e,t,n){"use strict";n.r(t);var o=n(459),i=n(484),r=n(449),a=n(450),s=n(440),l=n(466),c=n(469),u=n(454),d=n(445),h=n(439),p=n(444),f=(g.prototype.provideSelectionRanges=function(e,t){for(var n=[],o=0,i=t;o<i.length;o++){var r=i[o],a=[];n.push(a),this._addInWordRanges(a,e,r),this._addWordRanges(a,e,r),this._addWhitespaceLine(a,e,r),a.push({range:e.getFullModelRange()})}return n},g.prototype._addInWordRanges=function(e,t,n){var o=t.getWordAtPosition(n);if(o){for(var i=o.word,r=o.startColumn,a=n.column-r,l=a,c=a,u=0;0<=l&&95!==(d=i.charCodeAt(l))&&45!==d&&(!Object(p.B)(d)||!Object(p.C)(u));l--)u=d;for(l+=1;c<i.length;c++){var d=i.charCodeAt(c);if(Object(p.C)(d)&&Object(p.B)(u))break;if(95===d||45===d)break;u=d}l<c&&e.push({range:new s.a(n.lineNumber,r+l,n.lineNumber,r+c)})}},g.prototype._addWordRanges=function(e,t,n){var o=t.getWordAtPosition(n);o&&e.push({range:new s.a(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn)})},g.prototype._addWhitespaceLine=function(e,t,n){0<t.getLineLength(n.lineNumber)&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new s.a(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})},g);function g(){}var m=n(1099),v=n(489),y=n(446);n.d(t,"provideSelectionRanges",(function(){return M}));var b,_=(b=function(e,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=(C.prototype.mov=function(e){var t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;var n=new C(t,this.ranges);return n.ranges[t].equalsRange(this.ranges[this.index])?n.mov(e):n},C);function C(e,t){this.index=e,this.ranges=t}var S=(O.get=function(e){return e.getContribution(O.ID)},O.prototype.dispose=function(){Object(h.f)(this._selectionListener)},O.prototype.run=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getSelections(),r=this._editor.getModel();if(u.w.has(r)){var a=Promise.resolve(void 0);return this._state||(a=M(r,n.map((function(e){return e.getPosition()})),i.a.None).then((function(e){if(o.q(e)&&e.length===n.length&&t._editor.hasModel()&&o.g(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])},r=0;r<e.length;r++)i(r);t._state=e.map((function(e){return new w(0,e)})),Object(h.f)(t._selectionListener),t._selectionListener=t._editor.onDidChangeCursorPosition((function(){t._ignoreSelection||(Object(h.f)(t._selectionListener),t._state=void 0)}))}}))),a.then((function(){if(t._state){t._state=t._state.map((function(t){return t.mov(e)}));var n=t._state.map((function(e){return l.a.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())}));t._ignoreSelection=!0;try{t._editor.setSelections(n)}finally{t._ignoreSelection=!1}}}))}}},O.ID="editor.contrib.smartSelectController",O);function O(e){this._ignoreSelection=!1,this._editor=e}var x,E=(_(k,x=r.b),k.prototype.run=function(e,t){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(n){switch(n.label){case 0:return(e=S.get(t))?[4,e.run(this._forward)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},k);function k(e,t){var n=x.call(this,t)||this;return n._forward=e,n}var N,D=(_(L,N=E),L);function L(){return N.call(this,!0,{id:"editor.action.smartSelect.expand",label:d.a("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:c.a.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:d.a({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})||this}v.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");var P,I=(_(T,P=E),T);function T(){return P.call(this,!1,{id:"editor.action.smartSelect.shrink",label:d.a("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:c.a.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:d.a({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})||this}function M(e,t,n){var i=u.w.all(e);1===i.length&&i.unshift(new m.a);for(var r=[],l=[],c=0,d=i;c<d.length;c++){var h=d[c];r.push(Promise.resolve(h.provideSelectionRanges(e,t,n)).then((function(e){if(o.q(e)&&e.length===t.length)for(var n=0;n<t.length;n++){l[n]||(l[n]=[]);for(var i=0,r=e[n];i<r.length;i++){var a=r[i];s.a.isIRange(a.range)&&s.a.containsPosition(a.range,t[n])&&l[n].push(s.a.lift(a.range))}}}),y.f))}return Promise.all(r).then((function(){return l.map((function(t){if(0===t.length)return[];t.sort((function(e,t){return a.a.isBefore(e.getStartPosition(),t.getStartPosition())?1:a.a.isBefore(t.getStartPosition(),e.getStartPosition())||a.a.isBefore(e.getEndPosition(),t.getEndPosition())?-1:a.a.isBefore(t.getEndPosition(),e.getEndPosition())?1:0}));for(var n,o=[],i=0,r=t;i<r.length;i++){var l=r[i];n&&(!s.a.containsRange(l,n)||s.a.equalsRange(l,n))||(o.push(l),n=l)}for(var c=[o[0]],u=1;u<o.length;u++){var d=o[u-1],h=o[u];if(h.startLineNumber!==d.startLineNumber||h.endLineNumber!==d.endLineNumber){var p=new s.a(d.startLineNumber,e.getLineFirstNonWhitespaceColumn(d.startLineNumber),d.endLineNumber,e.getLineLastNonWhitespaceColumn(d.endLineNumber));p.containsRange(d)&&!p.equalsRange(d)&&h.containsRange(p)&&!h.equalsRange(p)&&c.push(p);var f=new s.a(d.startLineNumber,1,d.endLineNumber,e.getLineMaxColumn(d.endLineNumber));f.containsRange(d)&&!f.equalsRange(p)&&h.containsRange(f)&&!h.equalsRange(f)&&c.push(f)}c.push(h)}return c}))}))}Object(r.h)(S.ID,S),Object(r.f)(D),Object(r.f)(I),u.w.register("*",new f),Object(r.l)("_executeSelectionRangeProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return M(e,t[0],i.a.None)}))},function(e,t,n){"use strict";n.r(t),n(785),n.d(t,"LanguageServiceDefaultsImpl",(function(){return f}));var o,i,r,a,s,l,c,u,d,h,p=monaco.Emitter,f=(Object.defineProperty(g.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),g.prototype.getExtraLibs=function(){return this._extraLibs},g.prototype.addExtraLib=function(e,t){var n,o=this;if(n=void 0===t?"ts:extralib-"+Math.random().toString(36).substring(2,15):t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var i=1;return this._extraLibs[n]&&(i=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var e=o._extraLibs[n];e&&e.version===i&&(delete o._extraLibs[n],o._fireOnDidExtraLibsChangeSoon())}}},g.prototype.setExtraLibs=function(e){if(this._extraLibs=Object.create(null),e&&0<e.length)for(var t=0,n=e;t<n.length;t++){var o=n[t],i=o.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),r=o.content;this._extraLibs[i]={content:r,version:1}}this._fireOnDidExtraLibsChangeSoon()},g.prototype._fireOnDidExtraLibsChangeSoon=function(){var e=this;-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=setTimeout((function(){e._onDidExtraLibsChangeTimeout=-1,e._onDidExtraLibsChange.fire(void 0)}),0))},g.prototype.getCompilerOptions=function(){return this._compilerOptions},g.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},g.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},g.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)},g.prototype.setMaximumWorkerIdleTime=function(e){},g.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},g.prototype.getEagerModelSync=function(){return this._eagerModelSync},g);function g(e,t){this._onDidChange=new p,this._onDidExtraLibsChange=new p,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this._onDidExtraLibsChangeTimeout=-1}(i=o=o||{})[i.None=0]="None",i[i.CommonJS=1]="CommonJS",i[i.AMD=2]="AMD",i[i.UMD=3]="UMD",i[i.System=4]="System",i[i.ES2015=5]="ES2015",i[i.ESNext=99]="ESNext",(a=r=r||{})[a.None=0]="None",a[a.Preserve=1]="Preserve",a[a.React=2]="React",a[a.ReactNative=3]="ReactNative",(l=s=s||{})[l.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",l[l.LineFeed=1]="LineFeed",(u=c=c||{})[u.ES3=0]="ES3",u[u.ES5=1]="ES5",u[u.ES2015=2]="ES2015",u[u.ES2016=3]="ES2016",u[u.ES2017=4]="ES2017",u[u.ES2018=5]="ES2018",u[u.ES2019=6]="ES2019",u[u.ES2020=7]="ES2020",u[u.ESNext=99]="ESNext",u[u.JSON=100]="JSON",u[u.Latest=99]="Latest",(h=d=d||{})[h.Classic=1]="Classic",h[h.NodeJs=2]="NodeJs";var m=new f({allowNonTsExtensions:!0,target:c.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),v=new f({allowNonTsExtensions:!0,allowJs:!0,target:c.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function y(){return n.e(294).then(n.bind(null,2412))}monaco.languages.typescript={ModuleKind:o,JsxEmit:r,NewLineKind:s,ScriptTarget:c,ModuleResolutionKind:d,typescriptVersion:"3.7.5",typescriptDefaults:m,javascriptDefaults:v,getTypeScriptWorker:function(){return y().then((function(e){return e.getTypeScriptWorker()}))},getJavaScriptWorker:function(){return y().then((function(e){return e.getJavaScriptWorker()}))}},monaco.languages.onLanguage("typescript",(function(){return y().then((function(e){return e.setupTypeScript(m)}))})),monaco.languages.onLanguage("javascript",(function(){return y().then((function(e){return e.setupJavaScript(v)}))}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o,i,r=n(944),a=n(442),s=n(439),l=n(505),c=n(440),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},h=(u(p,i=s.a),p.prototype._init=function(){this._editor.getLineChanges()},p.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))},p.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 c.a(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})})):t.ranges.push({rhs:!0,range:new c.a(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)},p.prototype._initIdx=function(e){var t=!1,n=this._editor.getPosition();if(n){for(var o=0,i=this.ranges.length;o<i&&!t;o++){var r=this.ranges[o].range;n.isBeforeOrEqual(r.getStartPosition())&&(this.nextIdx=o+(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},p.prototype._move=function(e,t){if(r.a(!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,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var o=n.range.getStartPosition();this._editor.setPosition(o),this._editor.revealPositionInCenter(o,t)}finally{this.ignoreSelectionChange=!1}}},p.prototype.canNavigate=function(){return this.ranges&&0<this.ranges.length},p.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},p.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},p.prototype.dispose=function(){i.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},p);function p(e,t){void 0===t&&(t={});var n=i.call(this)||this;return n._onDidUpdate=n._register(new a.a),n._editor=e,n._options=l.g(t,d,!1),n.disposed=!1,n.nextIdx=-1,n.ranges=[],n.ignoreSelectionChange=!1,n.revealFirst=Boolean(n._options.alwaysRevealFirst),n._register(n._editor.onDidDispose((function(){return n.dispose()}))),n._register(n._editor.onDidUpdateDiff((function(){return n._onDiffUpdated()}))),n._options.followsCaret&&n._register(n._editor.getModifiedEditor().onDidChangeCursorPosition((function(e){n.ignoreSelectionChange||(n.nextIdx=-1)}))),n._options.alwaysRevealFirst&&n._register(n._editor.getModifiedEditor().onDidChangeModel((function(e){n.revealFirst=!0}))),n._init(),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"MonacoDiffEditor",{enumerable:!0,get:function(){return i.default}});var o=r(n(1412)),i=r(n(1413));function r(e){return e&&e.__esModule?e:{default:e}}},,,,,,function(e,t,n){"use strict";n(1386);var o,i=n(445),r=n(443),a=n(488),s=n(891),l=n(453),c=n(442),u=n(439),d=n(505),h=n(707),p=n(761),f=n(504),g=n(930),m=(n(1387),n(772)),v=n(688),y=n(703),b=n(449),_=n(530),w=n(824),C=n(450),S=n(572),O=n(893),x=n(777),E=n(456),k=n(461),N=n(451),D=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),L=(P.prototype.getType=function(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0},P);function P(e,t,n,o){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=o}var I,T=function(e){this.entries=e},M=(D(j,I=u.a),j.prototype.prev=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,o=this._diffs.length;n<o;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 C.a(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},j.prototype.next=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,o=this._diffs.length;n<o;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 C.a(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},j.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 C.a(e,1)),this._diffEditor.revealPosition(new C.a(e,1),1))},j.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},j.prototype._getPrevRow=function(){var e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()},j.prototype._getNextRow=function(){var e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()},j.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},j.prototype._getCurrentFocusedRow=function(){var e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null},j.prototype._goToRow=function(e){var t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()},j.prototype.isVisible=function(){return this._isVisible},j.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"))},j.prototype._compute=function(){var e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];var t=this._diffEditor.getOriginalEditor().getModel(),n=this._diffEditor.getModifiedEditor().getModel();return t&&n?j._mergeAdjacent(e,t.getLineCount(),n.getLineCount()):[]},j._mergeAdjacent=function(e,t,n){if(!e||0===e.length)return[];for(var o=[],i=0,r=0,a=e.length;r<a;r++){var s=e[r],l=s.originalStartLineNumber,c=s.originalEndLineNumber,u=s.modifiedStartLineNumber,d=s.modifiedEndLineNumber,h=[],p=0,f=0===c?l:l-1,g=0===d?u:u-1,m=1,v=1;if(0<r){var y=e[r-1];m=0===y.originalEndLineNumber?y.originalStartLineNumber+1:y.originalEndLineNumber+1,v=0===y.modifiedEndLineNumber?y.modifiedStartLineNumber+1:y.modifiedEndLineNumber+1}var b=f-3+1,_=g-3+1;b<m&&(b+=E=m-b,_+=E),_<v&&(b+=E=v-_,_+=E),h[p++]=new L(b,f,_,g),0!==c&&(h[p++]=new L(l,c,0,0)),0!==d&&(h[p++]=new L(0,0,u,d));var w=0===c?l+1:c+1,C=0===d?u+1:d+1,S=t,O=n;if(r+1<a){var x=e[r+1];S=0===x.originalEndLineNumber?x.originalStartLineNumber:x.originalStartLineNumber-1,O=0===x.modifiedEndLineNumber?x.modifiedStartLineNumber:x.modifiedStartLineNumber-1}var E,k=w+3-1,N=C+3-1;S<k&&(k+=E=S-k,N+=E),O<N&&(k+=E=O-N,N+=E),h[p++]=new L(w,k,C,N),o[i++]=new T(h)}var D=o[0].entries,P=[],I=0;for(r=1,a=o.length;r<a;r++){var M=o[r].entries,j=D[D.length-1],R=M[0];D=0===j.getType()&&0===R.getType()&&R.originalLineStart<=j.originalLineEnd?(D[D.length-1]=new L(j.originalLineStart,R.originalLineEnd,j.modifiedLineStart,R.modifiedLineEnd),D.concat(M.slice(1))):(P[I++]=new T(D),M)}return P[I++]=new T(D),P},j.prototype._findDiffIndex=function(e){for(var t=e.lineNumber,n=0,o=this._diffs.length;n<o;n++){var i=this._diffs[n].entries;if(t<=i[i.length-1].modifiedLineEnd)return n}return 0},j.prototype._render=function(){var e=this._diffEditor.getOriginalEditor().getOptions(),t=this._diffEditor.getModifiedEditor().getOptions(),n=this._diffEditor.getOriginalEditor().getModel(),o=this._diffEditor.getModifiedEditor().getModel(),a=n.getOptions(),s=o.getOptions();if(!this._isVisible||!n||!o)return r.t(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();var l=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[l]!==this._currentDiff){this._currentDiff=this._diffs[l];var c=this._diffs[l].entries,u=document.createElement("div");u.className="diff-review-table",u.setAttribute("role","list"),h.a.applyFontInfoSlow(u,t.get(34));for(var d=0,p=0,f=0,g=0,m=0,v=c.length;m<v;m++){var y=(L=c[m]).originalLineStart,b=L.originalLineEnd,_=L.modifiedLineStart,w=L.modifiedLineEnd;0!==y&&(0===d||y<d)&&(d=y),0!==b&&(0===p||p<b)&&(p=b),0!==_&&(0===f||_<f)&&(f=_),0!==w&&(0===g||g<w)&&(g=w)}var C=document.createElement("div");C.className="diff-review-row";var S=document.createElement("div");S.className="diff-review-cell diff-review-summary";var O=p-d+1,x=g-f+1;S.appendChild(document.createTextNode(l+1+"/"+this._diffs.length+": @@ -"+d+","+O+" +"+f+","+x+" @@")),C.setAttribute("data-line",String(f));var E=function(e){return 0===e?i.a("no_lines","no lines"):1===e?i.a("one_line","1 line"):i.a("more_lines","{0} lines",e)},k=E(O),N=E(x);C.setAttribute("aria-label",i.a({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}",l+1,this._diffs.length,d,k,f,N)),C.appendChild(S),C.setAttribute("role","listitem"),u.appendChild(C);var D=f;for(m=0,v=c.length;m<v;m++){var L=c[m];j._renderSection(u,L,D,this._width,e,n,a,t,o,s),0!==L.modifiedLineStart&&(D=L.modifiedLineEnd)}r.t(this._content.domNode),this._content.domNode.appendChild(u),this.scrollbar.scanDomNode()}},j._renderSection=function(e,t,n,o,r,a,s,l,c,u){var d=t.getType(),h="diff-review-row",p="",f="diff-review-spacer";switch(d){case 1:h="diff-review-row line-insert",p=" char-insert",f="diff-review-spacer insert-sign";break;case 2:h="diff-review-row line-delete",p=" char-delete",f="diff-review-spacer delete-sign"}for(var g=t.originalLineStart,m=t.originalLineEnd,v=t.modifiedLineStart,y=t.modifiedLineEnd,b=Math.max(y-v,m-g),_=r.get(107),w=_.glyphMarginWidth+_.lineNumbersWidth,C=l.get(107),S=10+C.glyphMarginWidth+C.lineNumbersWidth,O=0;O<=b;O++){var x=0===g?0:g+O,E=0===v?0:v+O,k=document.createElement("div");k.style.minWidth=o+"px",k.className=h,k.setAttribute("role","listitem"),0!==E&&(n=E),k.setAttribute("data-line",String(n));var N=document.createElement("div");N.className="diff-review-cell",k.appendChild(N);var D=document.createElement("span");D.style.width=w+"px",D.style.minWidth=w+"px",D.className="diff-review-line-number"+p,0!==x?D.appendChild(document.createTextNode(String(x))):D.innerHTML=" ",N.appendChild(D);var L=document.createElement("span");L.style.width=S+"px",L.style.minWidth=S+"px",L.style.paddingRight="10px",L.className="diff-review-line-number"+p,0!==E?L.appendChild(document.createTextNode(String(E))):L.innerHTML=" ",N.appendChild(L);var P=document.createElement("span");P.className=f,P.innerHTML="  ",N.appendChild(P);var I=void 0;0===(I=0!==E?(N.insertAdjacentHTML("beforeend",this._renderLine(c,l,u.tabSize,E)),c.getLineContent(E)):(N.insertAdjacentHTML("beforeend",this._renderLine(a,r,s.tabSize,x)),a.getLineContent(x))).length&&(I=i.a("blankLine","blank"));var T="";switch(d){case 0:T=i.a("equalLine","original {0}, modified {1}: {2}",x,E,I);break;case 1:T=i.a("insertLine","+ modified {0}: {1}",E,I);break;case 2:T=i.a("deleteLine","- original {0}: {1}",x,I)}k.setAttribute("aria-label",T),e.appendChild(k)}},j._renderLine=function(e,t,n,o){var i=e.getLineContent(o),r=t.get(34),a=new Uint32Array(2);a[0]=i.length,a[1]=16793600;var s=new w.a(a,i),l=x.d.isBasicASCII(i,e.mightContainNonBasicASCII()),c=x.d.containsRTL(i,l,e.mightContainRTL());return Object(O.e)(new O.c(r.isMonospace&&!t.get(23),r.canUseHalfwidthRightwardsArrow,i,!1,l,c,0,s,[],n,0,r.spaceWidth,r.middotWidth,t.get(88),t.get(74),t.get(69),t.get(35)!==_.d.OFF,null)).html},j);function j(e){var t=I.call(this)||this;return t._width=0,t._diffEditor=e,t._isVisible=!1,t.shadow=Object(a.b)(document.createElement("div")),t.shadow.setClassName("diff-review-shadow"),t.actionBarContainer=Object(a.b)(document.createElement("div")),t.actionBarContainer.setClassName("diff-review-actions"),t._actionBar=t._register(new m.a(t.actionBarContainer.domNode)),t._actionBar.push(new y.a("diffreview.close",i.a("label.close","Close"),"close-diff-review",!0,(function(){return t.hide(),Promise.resolve(null)})),{label:!1,icon:!0}),t.domNode=Object(a.b)(document.createElement("div")),t.domNode.setClassName("diff-review monaco-editor-background"),t._content=Object(a.b)(document.createElement("div")),t._content.setClassName("diff-review-content"),t.scrollbar=t._register(new v.a(t._content.domNode,{})),t.domNode.domNode.appendChild(t.scrollbar.getDomNode()),t._register(e.onDidUpdateDiff((function(){t._isVisible&&(t._diffs=t._compute(),t._render())}))),t._register(e.getModifiedEditor().onDidChangeCursorPosition((function(){t._isVisible&&t._render()}))),t._register(e.getOriginalEditor().onDidFocusEditorWidget((function(){t._isVisible&&t.hide()}))),t._register(e.getModifiedEditor().onDidFocusEditorWidget((function(){t._isVisible&&t.hide()}))),t._register(r.o(t.domNode.domNode,"click",(function(e){e.preventDefault();var n=r.x(e.target,"diff-review-row");n&&t._goToRow(n)}))),t._register(r.o(t.domNode.domNode,"keydown",(function(e){(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),t._goToRow(t._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),t._goToRow(t._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),t.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),t.accept())}))),t._diffs=[],t._currentDiff=null,t}Object(N.e)((function(e,t){var n=e.getColor(S.k);n&&t.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var o=e.getColor(k.Vb);o&&t.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+o+" 0 -6px 6px -6px inset; }")}));var R,A=(D(F,R=b.b),F.prototype.run=function(e,t){var n=H(e);n&&n.diffReviewNext()},F);function F(){return R.call(this,{id:"editor.action.diffReview.next",label:i.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:E.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}var V,W=(D(B,V=b.b),B.prototype.run=function(e,t){var n=H(e);n&&n.diffReviewPrev()},B);function B(){return V.call(this,{id:"editor.action.diffReview.prev",label:i.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:E.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this}function H(e){for(var t=e.get(f.a).listDiffEditors(),n=0,o=t.length;n<o;n++){var i=t[n];if(i.hasWidgetFocus())return i}return null}Object(b.f)(A),Object(b.f)(W);var z,K,U=n(440),q=n(894),G=n(776),Y=n(495),Z=n(758),$=n(1088),X=n(958),J=n(448),Q=n(895),ee=n(532),te=n(757),ne=(z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),oe=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},ie=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},re=(ne(ae,K=u.a),Object.defineProperty(ae.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}),ae.prototype._updateLightBulbPosition=function(e,t,n){var o=t-r.C(e).top,i=Math.floor(o/n),a=i*n;return this._diffActions.style.top=a+"px",i},ae);function ae(e,t,n,o,a,s){var l=K.call(this)||this;l._viewZoneId=e,l._marginDomNode=t,l.editor=n,l.diff=o,l._contextMenuService=a,l._clipboardService=s,l._visibility=!1,l._marginDomNode.style.zIndex="10",l._diffActions=document.createElement("div"),l._diffActions.className="codicon codicon-lightbulb lightbulb-glyph",l._diffActions.style.position="absolute";var c=n.getOption(49),u=n.getModel().getEOL();l._diffActions.style.right="0px",l._diffActions.style.visibility="hidden",l._diffActions.style.height=c+"px",l._diffActions.style.lineHeight=c+"px",l._marginDomNode.appendChild(l._diffActions);var d=[];d.push(new y.a("diff.clipboard.copyDeletedContent",o.originalEndLineNumber>o.modifiedStartLineNumber?i.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):i.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,(function(){return oe(l,void 0,void 0,(function(){return ie(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(o.originalContent.join(u)+u)];case 1:return e.sent(),[2]}}))}))})));var h=0,p=void 0;function f(e,t){l._contextMenuService.showContextMenu({getAnchor:function(){return{x:e,y:t}},getActions:function(){return p&&(p.label=i.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",o.originalStartLineNumber+h)),d},autoSelectFirstItem:!0})}return o.originalEndLineNumber>o.modifiedStartLineNumber&&(p=new y.a("diff.clipboard.copyDeletedLineContent",i.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",o.originalStartLineNumber),void 0,!0,(function(){return oe(l,void 0,void 0,(function(){return ie(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(o.originalContent[h])];case 1:return e.sent(),[2]}}))}))})),d.push(p)),n.getOption(68)||d.push(new y.a("diff.inline.revertChange",i.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,(function(){return oe(l,void 0,void 0,(function(){var e;return ie(this,(function(t){return 0===o.modifiedEndLineNumber?(e=n.getModel().getLineMaxColumn(o.modifiedStartLineNumber),n.executeEdits("diffEditor",[{range:new U.a(o.modifiedStartLineNumber,e,o.modifiedStartLineNumber,e),text:u+o.originalContent.join(u)}])):(e=n.getModel().getLineMaxColumn(o.modifiedEndLineNumber),n.executeEdits("diffEditor",[{range:new U.a(o.modifiedStartLineNumber,1,o.modifiedEndLineNumber,e),text:o.originalContent.join(u)}])),[2]}))}))}))),l._register(r.o(l._diffActions,"mousedown",(function(e){var t=r.C(l._diffActions),n=t.top,o=t.height,i=Math.floor(c/3);e.preventDefault(),f(e.posx,n+o+i)}))),l._register(n.onMouseMove((function(e){(8===e.target.type||5===e.target.type)&&e.target.detail.viewZoneId===l._viewZoneId?(l.visibility=!0,h=l._updateLightBulbPosition(l._marginDomNode,e.event.browserEvent.y,c)):l.visibility=!1}))),l._register(n.onMouseDown((function(e){e.event.rightButton&&(8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId===l._viewZoneId&&(e.event.preventDefault(),h=l._updateLightBulbPosition(l._marginDomNode,e.event.browserEvent.y,c),f(e.event.posx,e.event.posy+c)))}))),l}var se=n(446),le=n(774),ce=n(1087);n.d(t,"a",(function(){return ve}));var ue,de=(ue=function(e,t){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),he=function(e,t){return function(n,o){t(n,o,e)}},pe=(fe.prototype.getForeignViewZones=function(e){var t=this;return e.filter((function(e){return!t._zonesMap[String(e.id)]}))},fe.prototype.clean=function(e){var t=this;0<this._zones.length&&e.changeViewZones((function(e){for(var n=0,o=t._zones.length;n<o;n++)e.removeZone(t._zones[n])})),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])},fe.prototype.apply=function(e,t,n,o){var i=this,r=o?p.c.capture(e):null;e.changeViewZones((function(t){for(var o=0,r=i._zones.length;o<r;o++)t.removeZone(i._zones[o]);o=0;for(var a=i.inlineDiffMargins.length;o<a;o++)i.inlineDiffMargins[o].dispose();i._zones=[],i._zonesMap={},i.inlineDiffMargins=[],o=0;for(var s=n.zones.length;o<s;o++){var l=n.zones[o];l.suppressMouseDown=!0;var c=t.addZone(l);i._zones.push(c),i._zonesMap[String(c)]=!0,n.zones[o].diff&&l.marginDomNode&&i._clipboardService&&(l.suppressMouseDown=!1,i.inlineDiffMargins.push(new re(c,l.marginDomNode,e,n.zones[o].diff,i._contextMenuService,i._clipboardService)))}})),r&&r.restore(e),this._decorations=e.deltaDecorations(this._decorations,n.decorations),t&&t.setZones(n.overviewZones)},fe);function fe(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}var ge,me=0,ve=(de(ye,ge=u.a),ye.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)))},ye.prototype.hasWidgetFocus=function(){return r.K(document.activeElement,this._domElement)},ye.prototype.diffReviewNext=function(){this._reviewPane.next()},ye.prototype.diffReviewPrev=function(){this._reviewPane.prev()},ye._getClassName=function(e,t){var n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+Object(N.d)(e.type)},ye.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()},ye.prototype._createLeftHandSideEditor=function(e,t){var n=this,o=this._createInnerEditor(t,this._originalDomNode,this._adjustOptionsForLeftHandSide(e,this._originalIsEditable));return this._register(o.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(o.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(o.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),o},ye.prototype._createRightHandSideEditor=function(e,t){var n=this,o=this._createInnerEditor(t,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e));return this._register(o.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(o.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(o.onDidChangeConfiguration((function(e){e.hasChanged(34)&&o.getModel()&&n._onViewZonesChanged()}))),this._register(o.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),this._register(o.onDidChangeModelOptions((function(e){e.tabSize&&n._updateDecorationsRunner.schedule()}))),o},ye.prototype._createInnerEditor=function(e,t,n){return e.createInstance(g.a,t,n,{})},ye.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),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(),ge.prototype.dispose.call(this)},ye.prototype.getId=function(){return this.getEditorType()+":"+this.id},ye.prototype.getEditorType=function(){return G.a.IDiffEditor},ye.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},ye.prototype.getOriginalEditor=function(){return this.originalEditor},ye.prototype.getModifiedEditor=function(){return this.modifiedEditor},ye.prototype.updateOptions=function(e){var t=!1;void 0!==e.renderSideBySide&&this._renderSideBySide!==e.renderSideBySide&&(this._renderSideBySide=e.renderSideBySide,t=!0),void 0!==e.maxComputationTime&&(this._maxComputationTime=e.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());var n=!1;void 0!==e.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==e.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=e.ignoreTrimWhitespace,n=!0),void 0!==e.renderIndicators&&this._renderIndicators!==e.renderIndicators&&(this._renderIndicators=e.renderIndicators,n=!0),n&&this._beginUpdateDecorations(),void 0!==e.originalEditable&&(this._originalIsEditable=Boolean(e.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e,this._originalIsEditable)),void 0!==e.enableSplitViewResizing&&(this._enableSplitViewResizing=e.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),t&&(this._renderSideBySide?this._setStrategy(new De(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new je(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=ye._getClassName(this._themeService.getTheme(),this._renderSideBySide))},ye.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},ye.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()},ye.prototype.getDomNode=function(){return this._domElement},ye.prototype.getVisibleColumnFromPosition=function(e){return this.modifiedEditor.getVisibleColumnFromPosition(e)},ye.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},ye.prototype.setPosition=function(e){this.modifiedEditor.setPosition(e)},ye.prototype.revealLine=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLine(e,t)},ye.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenter(e,t)},ye.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)},ye.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPosition(e,t)},ye.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenter(e,t)},ye.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)},ye.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},ye.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},ye.prototype.setSelection=function(e){this.modifiedEditor.setSelection(e)},ye.prototype.setSelections=function(e){this.modifiedEditor.setSelections(e)},ye.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLines(e,t,n)},ye.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenter(e,t,n)},ye.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)},ye.prototype.revealRange=function(e,t,n,o){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===o&&(o=!0),this.modifiedEditor.revealRange(e,t,n,o)},ye.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenter(e,t)},ye.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)},ye.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeAtTop(e,t)},ye.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},ye.prototype.saveViewState=function(){return{original:this.originalEditor.saveViewState(),modified:this.modifiedEditor.saveViewState()}},ye.prototype.restoreViewState=function(e){if(e.original&&e.modified){var t=e;this.originalEditor.restoreViewState(t.original),this.modifiedEditor.restoreViewState(t.modified)}},ye.prototype.layout=function(e){this._elementSizeObserver.observe(e)},ye.prototype.focus=function(){this.modifiedEditor.focus()},ye.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},ye.prototype.trigger=function(e,t,n){this.modifiedEditor.trigger(e,t,n)},ye.prototype.changeDecorations=function(e){return this.modifiedEditor.changeDecorations(e)},ye.prototype._onDidContainerSizeChanged=function(){this._doLayout()},ye.prototype._getReviewHeight=function(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0},ye.prototype._layoutOverviewRulers=function(){if(this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=this._elementSizeObserver.getHeight(),t=this._getReviewHeight(),n=ye.ENTIRE_DIFF_OVERVIEW_WIDTH-2*ye.ONE_OVERVIEW_WIDTH;this.modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:ye.ONE_OVERVIEW_WIDTH,right:n+ye.ONE_OVERVIEW_WIDTH,height:e-t}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:ye.ONE_OVERVIEW_WIDTH,height:e-t}))}},ye.prototype._onViewZonesChanged=function(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()},ye.prototype._beginUpdateDecorationsSoon=function(){var e=this;-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout((function(){return e._beginUpdateDecorations()}),ye.UPDATE_DIFF_DECORATIONS_DELAY)},ye._equals=function(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()},ye.prototype._beginUpdateDecorations=function(){var e=this;this._beginUpdateDecorationsTimeout=-1;var t=this.originalEditor.getModel(),n=this.modifiedEditor.getModel();if(t&&n){this._diffComputationToken++;var o=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(t.uri,n.uri)?this._editorWorkerService.computeDiff(t.uri,n.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then((function(i){o===e._diffComputationToken&&t===e.originalEditor.getModel()&&n===e.modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=i,e._updateDecorationsRunner.schedule(),e._onDidUpdateDiff.fire())}),(function(i){o===e._diffComputationToken&&t===e.originalEditor.getModel()&&n===e.modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=null,e._updateDecorationsRunner.schedule())})):ye._equals(t.uri,this._lastOriginalWarning)&&ye._equals(n.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=n.uri,this._notificationService.warn(i.a("diff.tooLarge","Cannot compare files because one file is too large.")))}},ye.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},ye.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()),o=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,o.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,o.modified,!0)}finally{this._currentlyChangingViewZones=!1}}},ye.prototype._adjustOptionsForSubEditor=function(e){var t=d.c(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},ye.prototype._adjustOptionsForLeftHandSide=function(e,t){var n=this._adjustOptionsForSubEditor(e);return n.readOnly=!t,n.extraEditorClassName="original-in-monaco-diff-editor",n},ye.prototype._adjustOptionsForRightHandSide=function(e){var t=this._adjustOptionsForSubEditor(e);return t.revealHorizontalRightPadding=_.e.revealHorizontalRightPadding.defaultValue+ye.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",t},ye.prototype.doLayout=function(){this._elementSizeObserver.observe(),this._doLayout()},ye.prototype._doLayout=function(){var e=this._elementSizeObserver.getWidth(),t=this._elementSizeObserver.getHeight(),n=this._getReviewHeight(),o=this._strategy.layout();this._originalDomNode.style.width=o+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-o+"px",this._modifiedDomNode.style.left=o+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=t-n+"px",this._overviewDomElement.style.width=ye.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-ye.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(ye.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:o,height:t-n}),this.modifiedEditor.layout({width:e-o-ye.ENTIRE_DIFF_OVERVIEW_WIDTH,height:t-n}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(t-n,e,n),this._layoutOverviewViewport()},ye.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))},ye.prototype._computeOverviewViewport=function(){var e=this.modifiedEditor.getLayoutInfo();if(!e)return null;var t=this.modifiedEditor.getScrollTop(),n=this.modifiedEditor.getScrollHeight(),o=Math.max(0,e.height),i=Math.max(0,+o),r=0<n?i/n:0;return{height:Math.max(0,Math.floor(e.height*r)),top:Math.floor(t*r)}},ye.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._elementSizeObserver.getWidth()},getHeight:function(){return e._elementSizeObserver.getHeight()-e._getReviewHeight()},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},ye.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),(this._strategy=e).applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},ye.prototype._getLineChangeAtOrBeforeLineNumber=function(e,t){var n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;for(var o=0,i=n.length-1;o<i;){var r=Math.floor((o+i)/2),a=t(n[r]),s=r+1<=i?t(n[r+1]):1073741824;e<a?i=r-1:s<=e?o=r+1:i=o=r}return n[o]},ye.prototype._getEquivalentLineForOriginalLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.originalStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(0<t.originalEndLineNumber?-1:0),o=t.modifiedStartLineNumber+(0<t.modifiedEndLineNumber?-1:0),i=0<t.originalEndLineNumber?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=0<t.modifiedEndLineNumber?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-n;return a<=i?o+Math.min(a,r):o+r-i+a},ye.prototype._getEquivalentLineForModifiedLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.modifiedStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(0<t.originalEndLineNumber?-1:0),o=t.modifiedStartLineNumber+(0<t.modifiedEndLineNumber?-1:0),i=0<t.originalEndLineNumber?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=0<t.modifiedEndLineNumber?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-o;return a<=r?n+Math.min(a,i):n+i-r+a},ye.prototype.getDiffLineInformationForOriginal=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null},ye.prototype.getDiffLineInformationForModified=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null},ye.ONE_OVERVIEW_WIDTH=15,ye.ENTIRE_DIFF_OVERVIEW_WIDTH=30,ye.UPDATE_DIFF_DECORATIONS_DELAY=200,ye=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([he(3,Z.a),he(4,E.c),he(5,J.a),he(6,f.a),he(7,N.c),he(8,ee.a),he(9,te.a),he(10,le.a)],ye));function ye(e,t,n,o,i,s,u,d,h,p,f){var g=ge.call(this)||this;g._editorProgressService=f,g._onDidDispose=g._register(new c.a),g.onDidDispose=g._onDidDispose.event,g._onDidUpdateDiff=g._register(new c.a),g.onDidUpdateDiff=g._onDidUpdateDiff.event,g._lastOriginalWarning=null,g._lastModifiedWarning=null,g._editorWorkerService=o,g._codeEditorService=u,g._contextKeyService=g._register(i.createScoped(e)),g._contextKeyService.createKey("isInDiffEditor",!0),g._themeService=d,g._notificationService=h,g.id=++me,g._state=0,g._updatingDiffProgress=null,g._domElement=e,t=t||{},g._renderSideBySide=!0,void 0!==t.renderSideBySide&&(g._renderSideBySide=t.renderSideBySide),g._maxComputationTime=5e3,void 0!==t.maxComputationTime&&(g._maxComputationTime=t.maxComputationTime),g._ignoreTrimWhitespace=!0,void 0!==t.ignoreTrimWhitespace&&(g._ignoreTrimWhitespace=t.ignoreTrimWhitespace),g._renderIndicators=!0,void 0!==t.renderIndicators&&(g._renderIndicators=t.renderIndicators),g._originalIsEditable=!1,void 0!==t.originalEditable&&(g._originalIsEditable=Boolean(t.originalEditable)),g._updateDecorationsRunner=g._register(new l.d((function(){return g._updateDecorations()}),0)),g._containerDomElement=document.createElement("div"),g._containerDomElement.className=ye._getClassName(g._themeService.getTheme(),g._renderSideBySide),g._containerDomElement.style.position="relative",g._containerDomElement.style.height="100%",g._domElement.appendChild(g._containerDomElement),g._overviewViewportDomElement=Object(a.b)(document.createElement("div")),g._overviewViewportDomElement.setClassName("diffViewport"),g._overviewViewportDomElement.setPosition("absolute"),g._overviewDomElement=document.createElement("div"),g._overviewDomElement.className="diffOverview",g._overviewDomElement.style.position="absolute",g._overviewDomElement.appendChild(g._overviewViewportDomElement.domNode),g._register(r.o(g._overviewDomElement,"mousedown",(function(e){g.modifiedEditor.delegateVerticalScrollbarMouseDown(e)}))),g._containerDomElement.appendChild(g._overviewDomElement),g._originalDomNode=document.createElement("div"),g._originalDomNode.className="editor original",g._originalDomNode.style.position="absolute",g._originalDomNode.style.height="100%",g._containerDomElement.appendChild(g._originalDomNode),g._modifiedDomNode=document.createElement("div"),g._modifiedDomNode.className="editor modified",g._modifiedDomNode.style.position="absolute",g._modifiedDomNode.style.height="100%",g._containerDomElement.appendChild(g._modifiedDomNode),g._beginUpdateDecorationsTimeout=-1,g._currentlyChangingViewZones=!1,g._diffComputationToken=0,g._originalEditorState=new pe(p,n),g._modifiedEditorState=new pe(p,n),g._isVisible=!0,g._isHandlingScrollEvent=!1,g._elementSizeObserver=g._register(new ce.a(g._containerDomElement,void 0,(function(){return g._onDidContainerSizeChanged()}))),t.automaticLayout&&g._elementSizeObserver.startObserving(),g._diffComputationResult=null;var m=g._contextKeyService.createScoped();m.createKey("isInDiffLeftEditor",!0);var v=new Q.a;v.set(E.c,m);var y=s.createChild(v),_=g._contextKeyService.createScoped();_.createKey("isInDiffRightEditor",!0);var w=new Q.a;w.set(E.c,_);var C=s.createChild(w);g.originalEditor=g._createLeftHandSideEditor(t,y),g.modifiedEditor=g._createRightHandSideEditor(t,C),g._originalOverviewRuler=null,g._modifiedOverviewRuler=null,g._reviewPane=new M(g),g._containerDomElement.appendChild(g._reviewPane.domNode.domNode),g._containerDomElement.appendChild(g._reviewPane.shadow.domNode),g._containerDomElement.appendChild(g._reviewPane.actionBarContainer.domNode),g._enableSplitViewResizing=!0,void 0!==t.enableSplitViewResizing&&(g._enableSplitViewResizing=t.enableSplitViewResizing),g._renderSideBySide?g._setStrategy(new De(g._createDataSource(),g._enableSplitViewResizing)):g._setStrategy(new je(g._createDataSource(),g._enableSplitViewResizing)),g._register(d.onThemeChange((function(e){g._strategy&&g._strategy.applyColors(e)&&g._updateDecorationsRunner.schedule(),g._containerDomElement.className=ye._getClassName(g._themeService.getTheme(),g._renderSideBySide)})));for(var S=0,O=b.d.getDiffEditorContributions();S<O.length;S++){var x=O[S];try{g._register(s.createInstance(x.ctor,g))}catch(e){Object(se.e)(e)}}return g._codeEditorService.addDiffEditor(g),g}var be,_e=(de(we,be=u.a),we.prototype.applyColors=function(e){var t=(e.getColor(k.j)||k.g).transparent(2),n=(e.getColor(k.l)||k.h).transparent(2),o=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,o},we.prototype.getEditorsDiffDecorations=function(e,t,n,o,i,r,a){i=i.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber})),o=o.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber}));var s=this._getViewZones(e,o,i,r,a,n),l=this._getOriginalEditorDecorations(e,t,n,r,a),c=this._getModifiedEditorDecorations(e,t,n,r,a);return{original:{decorations:l.decorations,overviewZones:l.overviewZones,zones:s.original},modified:{decorations:c.decorations,overviewZones:c.overviewZones,zones:s.modified}}},we);function we(e){var t=be.call(this)||this;return t._dataSource=e,t._insertColor=null,t._removeColor=null,t}var Ce=(Se.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},Se);function Se(e){this._source=e,this._index=-1,this.current=null,this.advance()}var Oe=(xe.prototype.getViewZones=function(){for(var e=[],t=[],n=0,o=0,i=0,r=0,a=0,s=0,l=function(e,t){return e.afterLineNumber-t.afterLineNumber},c=function(e,t){if(null===t.domNode&&0<e.length){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},u=new Ce(this.modifiedForeignVZ),d=new Ce(this.originalForeignVZ),h=0,p=this.lineChanges.length;h<=p;h++){var f=h<p?this.lineChanges[h]:null;s=null!==f?(i=f.originalStartLineNumber+(0<f.originalEndLineNumber?-1:0),r=f.modifiedStartLineNumber+(0<f.modifiedEndLineNumber?-1:0),o=0<f.originalEndLineNumber?f.originalEndLineNumber-f.originalStartLineNumber+1:0,n=0<f.modifiedEndLineNumber?f.modifiedEndLineNumber-f.modifiedStartLineNumber+1:0,a=Math.max(f.originalStartLineNumber,f.originalEndLineNumber),Math.max(f.modifiedStartLineNumber,f.modifiedEndLineNumber)):(a=i+=1e7+o,r+=1e7+n);for(var g,m=[],v=[];u.current&&u.current.afterLineNumber<=s;){var y=void 0;y=u.current.afterLineNumber<=r?i-r+u.current.afterLineNumber:a;var b=null;f&&f.modifiedStartLineNumber<=u.current.afterLineNumber&&u.current.afterLineNumber<=f.modifiedEndLineNumber&&(b=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),m.push({afterLineNumber:y,heightInLines:u.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:b}),u.advance()}for(;d.current&&d.current.afterLineNumber<=a;)y=void 0,y=d.current.afterLineNumber<=i?r-i+d.current.afterLineNumber:s,v.push({afterLineNumber:y,heightInLines:d.current.height/this.originalLineHeight,domNode:null}),d.advance();null!==f&&We(f)&&(g=this._produceOriginalFromDiff(f,o,n))&&m.push(g),null!==f&&Be(f)&&(g=this._produceModifiedFromDiff(f,o,n))&&v.push(g);var _=0,w=0;for(m=m.sort(l),v=v.sort(l);_<m.length&&w<v.length;){var C=m[_],S=v[w],O=C.afterLineNumber-i,x=S.afterLineNumber-r;O<x?(c(e,C),_++):x<O?(c(t,S),w++):C.shouldNotShrink?(c(e,C),_++):S.shouldNotShrink?(c(t,S),w++):C.heightInLines>=S.heightInLines?(C.heightInLines-=S.heightInLines,w++):(S.heightInLines-=C.heightInLines,_++)}for(;_<m.length;)c(e,m[_]),_++;for(;w<v.length;)c(t,v[w]),w++}return{original:xe._ensureDomNodes(e),modified:xe._ensureDomNodes(t)}},xe._ensureDomNodes=function(e){return e.map((function(e){var t;return e.domNode||(e.domNode=((t=document.createElement("div")).className="diagonal-fill",t)),e}))},xe);function xe(e,t,n,o,i){this.lineChanges=e,this.originalForeignVZ=t,this.originalLineHeight=n,this.modifiedForeignVZ=o,this.modifiedLineHeight=i}function Ee(e,t,n,o,i){return{range:new U.a(e,t,n,o),options:i}}var ke,Ne={charDelete:Y.a.register({className:"char-delete"}),charDeleteWholeLine:Y.a.register({className:"char-delete",isWholeLine:!0}),charInsert:Y.a.register({className:"char-insert"}),charInsertWholeLine:Y.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:Y.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:Y.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign codicon codicon-add",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:Y.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:Y.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign codicon codicon-remove",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:Y.a.register({marginClassName:"line-delete"})},De=(de(Le,ke=_e),Le.prototype.setEnableSplitViewResizing=function(e){var t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)},Le.prototype.layout=function(e){void 0===e&&(e=this._sashRatio);var t=this._dataSource.getWidth()-ve.ENTIRE_DIFF_OVERVIEW_WIDTH,n=Math.floor((e||.5)*t),o=Math.floor(.5*t);return n=!this._disableSash&&n||o,2*Le.MINIMUM_EDITOR_WIDTH<t?(n<Le.MINIMUM_EDITOR_WIDTH&&(n=Le.MINIMUM_EDITOR_WIDTH),t-Le.MINIMUM_EDITOR_WIDTH<n&&(n=t-Le.MINIMUM_EDITOR_WIDTH)):n=o,this._sashPosition!==n&&(this._sashPosition=n,this._sash.layout()),this._sashPosition},Le.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},Le.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth()-ve.ENTIRE_DIFF_OVERVIEW_WIDTH,n=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=n/t,this._dataSource.relayoutEditors()},Le.prototype.onSashDragEnd=function(){this._sash.layout()},Le.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},Le.prototype.getVerticalSashTop=function(e){return 0},Le.prototype.getVerticalSashLeft=function(e){return this._sashPosition},Le.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()},Le.prototype._getViewZones=function(e,t,n,o,i){return new Ie(e,t,o.getOption(49),n,i.getOption(49)).getViewZones()},Le.prototype._getOriginalEditorDecorations=function(e,t,n,o,i){for(var r=String(this._removeColor),a={decorations:[],overviewZones:[]},s=o.getModel(),l=0,c=e.length;l<c;l++){var u=e[l];if(Be(u)&&(a.decorations.push({range:new U.a(u.originalStartLineNumber,1,u.originalEndLineNumber,1073741824),options:n?Ne.lineDeleteWithSign:Ne.lineDelete}),We(u)&&u.charChanges||a.decorations.push(Ee(u.originalStartLineNumber,1,u.originalEndLineNumber,1073741824,Ne.charDeleteWholeLine)),a.overviewZones.push(new $.a(u.originalStartLineNumber,u.originalEndLineNumber,r)),u.charChanges))for(var d=0,h=u.charChanges.length;d<h;d++){var p=u.charChanges[d];if(Be(p))if(t)for(var f=p.originalStartLineNumber;f<=p.originalEndLineNumber;f++){var g,m;g=f===p.originalStartLineNumber?p.originalStartColumn:s.getLineFirstNonWhitespaceColumn(f),m=f===p.originalEndLineNumber?p.originalEndColumn:s.getLineLastNonWhitespaceColumn(f),a.decorations.push(Ee(f,g,f,m,Ne.charDelete))}else a.decorations.push(Ee(p.originalStartLineNumber,p.originalStartColumn,p.originalEndLineNumber,p.originalEndColumn,Ne.charDelete))}}return a},Le.prototype._getModifiedEditorDecorations=function(e,t,n,o,i){for(var r=String(this._insertColor),a={decorations:[],overviewZones:[]},s=i.getModel(),l=0,c=e.length;l<c;l++){var u=e[l];if(We(u)&&(a.decorations.push({range:new U.a(u.modifiedStartLineNumber,1,u.modifiedEndLineNumber,1073741824),options:n?Ne.lineInsertWithSign:Ne.lineInsert}),Be(u)&&u.charChanges||a.decorations.push(Ee(u.modifiedStartLineNumber,1,u.modifiedEndLineNumber,1073741824,Ne.charInsertWholeLine)),a.overviewZones.push(new $.a(u.modifiedStartLineNumber,u.modifiedEndLineNumber,r)),u.charChanges))for(var d=0,h=u.charChanges.length;d<h;d++){var p=u.charChanges[d];if(We(p))if(t)for(var f=p.modifiedStartLineNumber;f<=p.modifiedEndLineNumber;f++){var g,m;g=f===p.modifiedStartLineNumber?p.modifiedStartColumn:s.getLineFirstNonWhitespaceColumn(f),m=f===p.modifiedEndLineNumber?p.modifiedEndColumn:s.getLineLastNonWhitespaceColumn(f),a.decorations.push(Ee(f,g,f,m,Ne.charInsert))}else a.decorations.push(Ee(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn,Ne.charInsert))}}return a},Le.MINIMUM_EDITOR_WIDTH=100,Le);function Le(e,t){var n=ke.call(this,e)||this;return n._disableSash=!1===t,n._sashRatio=null,n._sashPosition=null,n._startSashPosition=null,n._sash=n._register(new s.a(n._dataSource.getContainerDomNode(),n)),n._disableSash&&(n._sash.state=0),n._sash.onDidStart((function(){return n.onSashDragStart()})),n._sash.onDidChange((function(e){return n.onSashDrag(e)})),n._sash.onDidEnd((function(){return n.onSashDragEnd()})),n._sash.onDidReset((function(){return n.onSashReset()})),n}var Pe,Ie=(de(Te,Pe=Oe),Te.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},Te.prototype._produceOriginalFromDiff=function(e,t,n){return t<n?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null},Te.prototype._produceModifiedFromDiff=function(e,t,n){return n<t?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null},Te);function Te(e,t,n,o,i){return Pe.call(this,e,t,n,o,i)||this}var Me,je=(de(Re,Me=_e),Re.prototype.setEnableSplitViewResizing=function(e){},Re.prototype._getViewZones=function(e,t,n,o,i,r){return new Fe(e,t,n,o,i,r).getViewZones()},Re.prototype._getOriginalEditorDecorations=function(e,t,n,o,i){for(var r=String(this._removeColor),a={decorations:[],overviewZones:[]},s=0,l=e.length;s<l;s++){var c=e[s];Be(c)&&(a.decorations.push({range:new U.a(c.originalStartLineNumber,1,c.originalEndLineNumber,1073741824),options:Ne.lineDeleteMargin}),a.overviewZones.push(new $.a(c.originalStartLineNumber,c.originalEndLineNumber,r)))}return a},Re.prototype._getModifiedEditorDecorations=function(e,t,n,o,i){for(var r=String(this._insertColor),a={decorations:[],overviewZones:[]},s=i.getModel(),l=0,c=e.length;l<c;l++){var u=e[l];if(We(u))if(a.decorations.push({range:new U.a(u.modifiedStartLineNumber,1,u.modifiedEndLineNumber,1073741824),options:n?Ne.lineInsertWithSign:Ne.lineInsert}),a.overviewZones.push(new $.a(u.modifiedStartLineNumber,u.modifiedEndLineNumber,r)),u.charChanges)for(var d=0,h=u.charChanges.length;d<h;d++){var p=u.charChanges[d];if(We(p))if(t)for(var f=p.modifiedStartLineNumber;f<=p.modifiedEndLineNumber;f++){var g,m;g=f===p.modifiedStartLineNumber?p.modifiedStartColumn:s.getLineFirstNonWhitespaceColumn(f),m=f===p.modifiedEndLineNumber?p.modifiedEndColumn:s.getLineLastNonWhitespaceColumn(f),a.decorations.push(Ee(f,g,f,m,Ne.charInsert))}else a.decorations.push(Ee(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn,Ne.charInsert))}else a.decorations.push(Ee(u.modifiedStartLineNumber,1,u.modifiedEndLineNumber,1073741824,Ne.charInsertWholeLine))}return a},Re.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},Re);function Re(e,t){var n=Me.call(this,e)||this;return n.decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,n._register(e.getOriginalEditor().onDidLayoutChange((function(t){n.decorationsLeft!==t.decorationsLeft&&(n.decorationsLeft=t.decorationsLeft,e.relayoutEditors())}))),n}var Ae,Fe=(de(Ve,Ae=Oe),Ve.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var e=document.createElement("div");return e.className="inline-added-margin-view-zone",e},Ve.prototype._produceOriginalFromDiff=function(e,t,n){var o=document.createElement("div");return o.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:o}},Ve.prototype._produceModifiedFromDiff=function(e,t,n){var o=[];if(e.charChanges)for(var i=0,r=e.charChanges.length;i<r;i++){var a=e.charChanges[i];Be(a)&&o.push(new x.a(new U.a(a.originalStartLineNumber,a.originalStartColumn,a.originalEndLineNumber,a.originalEndColumn),"char-delete",0))}for(var s=Object(q.a)(1e4),l=[],c=this.modifiedEditorOptions.get(107),u=this.modifiedEditorOptions.get(34),d=c.decorationsWidth,p=this.modifiedEditorOptions.get(49),f=u.typicalHalfwidthCharacterWidth,g=0,m=[],v=e.originalStartLineNumber;v<=e.originalEndLineNumber;v++)if(g=Math.max(g,this._renderOriginalLine(v-e.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,v,o,s)),m.push(this.originalModel.getLineContent(v)),this.renderIndicators){var y=v-e.originalStartLineNumber;l=l.concat(['<div class="delete-sign codicon codicon-remove" style="position:absolute;top:'+y*p+"px;width:"+d+"px;height:"+p+'px;right:0;"></div>'])}g+=this.modifiedEditorOptions.get(79);var b=document.createElement("div");b.className="view-lines line-delete",b.innerHTML=s.build(),h.a.applyFontInfoSlow(b,u);var _=document.createElement("div");return _.className="inline-deleted-margin-view-zone",_.innerHTML=l.join(""),h.a.applyFontInfoSlow(_,u),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:g*f,domNode:b,marginDomNode:_,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalContent:m}}},Ve.prototype._renderOriginalLine=function(e,t,n,o,i,r,a){var s=t.getLineTokens(i),l=s.getLineContent(),c=n.get(34),u=X.a.filter(r,i,1,l.length+1);a.appendASCIIString('<div class="view-line'),0===r.length&&a.appendASCIIString(" char-delete"),a.appendASCIIString('" style="top:'),a.appendASCIIString(String(e*n.get(49))),a.appendASCIIString('px;width:1000000px;">');var d=x.d.isBasicASCII(l,t.mightContainNonBasicASCII()),h=x.d.containsRTL(l,d,t.mightContainRTL()),p=Object(O.d)(new O.c(c.isMonospace&&!n.get(23),c.canUseHalfwidthRightwardsArrow,l,!1,d,h,0,s,u,o,0,c.spaceWidth,c.middotWidth,n.get(88),n.get(74),n.get(69),n.get(35)!==_.d.OFF,null),a);a.appendASCIIString("</div>");var f=p.characterMapping.getAbsoluteOffsets();return 0<f.length?f[f.length-1]:0},Ve);function Ve(e,t,n,o,i,r){var a=Ae.call(this,e,t,o.getOption(49),n,i.getOption(49))||this;return a.originalModel=o.getModel(),a.modifiedEditorOptions=i.getOptions(),a.modifiedEditorTabSize=i.getModel().getOptions().tabSize,a.renderIndicators=r,a}function We(e){return 0<e.modifiedEndLineNumber}function Be(e){return 0<e.originalEndLineNumber}Object(N.e)((function(e,t){var n=e.getColor(k.j);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 o=e.getColor(k.l);o&&(t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+o+"; }"),t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+o+"; }"),t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+o+"; }"));var i=e.getColor(k.k);i&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+i+"; }");var r=e.getColor(k.m);r&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+r+"; }");var a=e.getColor(k.Vb);a&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+a+"; }");var s=e.getColor(k.i);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+s+"; }")}))},,,function(e,t,n){"use strict";var o=n(3),i=n(20),r=n(0),a=n.n(r),s=(n(1),n(61)),l=n(84),c=n(1277),u=a.a.forwardRef((function(e,t){var n=e.children,r=e.classes,l=e.className,u=e.disableTypography,d=void 0!==u&&u,h=Object(i.a)(e,["children","classes","className","disableTypography"]);return a.a.createElement("div",Object(o.a)({className:Object(s.a)(r.root,l),ref:t},h),d?n:a.a.createElement(c.a,{component:"h2",variant:"h6"},n))}));t.a=Object(l.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(u)},function(e,t,n){"use strict";var o=n(3),i=n(20),r=n(0),a=n.n(r),s=(n(1),n(61)),l=n(84),c=n(107),u={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},d=a.a.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,l=e.classes,d=e.className,h=e.color,p=void 0===h?"initial":h,f=e.component,g=e.display,m=void 0===g?"initial":g,v=e.gutterBottom,y=void 0!==v&&v,b=e.noWrap,_=void 0!==b&&b,w=e.paragraph,C=void 0!==w&&w,S=e.variant,O=void 0===S?"body1":S,x=e.variantMapping,E=void 0===x?u:x,k=Object(i.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),N=f||(C?"p":E[O]||u[O])||"span";return a.a.createElement(N,Object(o.a)({className:Object(s.a)(l.root,d,"inherit"!==O&&l[O],"initial"!==p&&l["color".concat(Object(c.a)(p))],_&&l.noWrap,y&&l.gutterBottom,C&&l.paragraph,"inherit"!==r&&l["align".concat(Object(c.a)(r))],"initial"!==m&&l["display".concat(Object(c.a)(m))]),ref:t},k))}));t.a=Object(l.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(d)},function(e,t,n){"use strict";var o=n(3),i=n(20),r=n(0),a=n.n(r),s=(n(1),n(61)),l=n(84),c=a.a.forwardRef((function(e,t){var n=e.classes,r=e.className,l=e.dividers,c=void 0!==l&&l,u=Object(i.a)(e,["classes","className","dividers"]);return a.a.createElement("div",Object(o.a)({className:Object(s.a)(n.root,r,c&&n.dividers),ref:t},u))}));t.a=Object(l.a)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(c)},function(e,t,n){"use strict";var o=n(3),i=n(0),r=n.n(i),a=(n(1),n(84)),s=n(1277),l=r.a.forwardRef((function(e,t){return r.a.createElement(s.a,Object(o.a)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));t.a=Object(a.a)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(l)},function(e,t,n){"use strict";var o=n(3),i=n(20),r=n(0),a=n.n(r),s=(n(1),n(61)),l=n(84),c=a.a.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,l=e.classes,c=e.className,u=Object(i.a)(e,["disableSpacing","classes","className"]);return a.a.createElement("div",Object(o.a)({className:Object(s.a)(l.root,c,!r&&l.spacing),ref:t},u))}));t.a=Object(l.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(c)},function(e,t,n){"use strict";var o=n(20),i=n(3),r=n(0),a=n.n(r),s=(n(1),n(61)),l=n(84),c=n(112),u=n(1402),d=n(107),h=a.a.forwardRef((function(e,t){var n=e.children,r=e.classes,l=e.className,c=e.color,h=void 0===c?"default":c,p=e.component,f=void 0===p?"button":p,g=e.disabled,m=void 0!==g&&g,v=e.disableElevation,y=void 0!==v&&v,b=e.disableFocusRipple,_=void 0!==b&&b,w=e.endIcon,C=e.focusVisibleClassName,S=e.fullWidth,O=void 0!==S&&S,x=e.size,E=void 0===x?"medium":x,k=e.startIcon,N=e.type,D=void 0===N?"button":N,L=e.variant,P=void 0===L?"text":L,I=Object(o.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),T=k&&a.a.createElement("span",{className:Object(s.a)(r.startIcon,r["iconSize".concat(Object(d.a)(E))])},k),M=w&&a.a.createElement("span",{className:Object(s.a)(r.endIcon,r["iconSize".concat(Object(d.a)(E))])},w);return a.a.createElement(u.a,Object(i.a)({className:Object(s.a)(r.root,r[P],l,"inherit"===h?r.colorInherit:"default"!==h&&r["".concat(P).concat(Object(d.a)(h))],"medium"!==E&&[r["".concat(P,"Size").concat(Object(d.a)(E))],r["size".concat(Object(d.a)(E))]],y&&r.disableElevation,m&&r.disabled,O&&r.fullWidth),component:f,disabled:m,focusRipple:!_,focusVisibleClassName:Object(s.a)(r.focusVisible,C),ref:t,type:D},I),a.a.createElement("span",{className:r.label},T,n,M))}));t.a=Object(l.a)((function(e){return{root:Object(i.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(c.c)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(c.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(c.c)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(c.c)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(c.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(c.c)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(c.c)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(h)},function(e,t,n){"use strict";var o=n(3),i=n(20),r=n(0),a=n.n(r),s=(n(1),n(418)),l=n(189),c=n(115),u=n(67);function d(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var h={entering:{opacity:1,transform:d(1)},entered:{opacity:1,transform:"none"}},p=a.a.forwardRef((function(e,t){var n=e.children,r=e.in,p=e.onEnter,f=e.onExit,g=e.style,m=e.timeout,v=void 0===m?"auto":m,y=Object(i.a)(e,["children","in","onEnter","onExit","style","timeout"]),b=a.a.useRef(),_=a.a.useRef(),w=Object(u.a)(n.ref,t),C=Object(l.a)();return a.a.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),a.a.createElement(s.a,Object(o.a)({appear:!0,in:r,onEnter:function(e,t){Object(c.b)(e);var n,o=Object(c.a)({style:g,timeout:v},{mode:"enter"}),i=o.duration,r=o.delay;"auto"===v?(n=C.transitions.getAutoHeightDuration(e.clientHeight),_.current=n):n=i,e.style.transition=[C.transitions.create("opacity",{duration:n,delay:r}),C.transitions.create("transform",{duration:.666*n,delay:r})].join(","),p&&p(e,t)},onExit:function(e){var t,n=Object(c.a)({style:g,timeout:v},{mode:"exit"}),o=n.duration,i=n.delay;"auto"===v?(t=C.transitions.getAutoHeightDuration(e.clientHeight),_.current=t):t=o,e.style.transition=[C.transitions.create("opacity",{duration:t,delay:i}),C.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=d(.75),f&&f(e)},addEndListener:function(e,t){"auto"===v&&(b.current=setTimeout(t,_.current||0))},timeout:"auto"===v?null:v},y),(function(e,t){return a.a.cloneElement(n,Object(o.a)({style:Object(o.a)({opacity:0,transform:d(.75),visibility:"exited"!==e||r?void 0:"hidden"},h[e],{},g,{},n.props.style),ref:w},t))}))}));p.muiSupportAuto=!0,t.a=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));var o=n(452),i=void 0===e?{cwd:function(){return"/"},env:Object.create(null),get platform(){return o.h?"win32":o.e?"darwin":"linux"},nextTick:function(e){return Object(o.i)(e)}}:e,r=i.cwd,a=i.env,s=i.platform}).call(this,n(114))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(e,t){!function(){"use strict";function n(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 o=setTimeout;function i(){}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 a(e,t){for(;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 o;try{o=n(e._value)}catch(n){return void l(t.promise,n)}s(t.promise,o)}else(1===e._state?s:l)(t.promise,e._value)}))):e._deferreds.push(t)}function s(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 c(e);if("function"===typeof n)return void d(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,c(e)}catch(t){l(e,t)}}function l(e,t){e._state=2,e._value=t,c(e)}function c(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++)a(e,e._deferreds[t]);e._deferreds=null}function u(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,s(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(i);return a(this,new u(e,t,n)),n},r.prototype.finally=n,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 o=Array.prototype.slice.call(e);if(0===o.length)return t([]);var i=o.length;function r(e,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(t){r(e,t)}),n)}o[e]=a,0===--i&&t(o)}catch(a){n(a)}}for(var a=0;a<o.length;a++)r(a,o[a])}))},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 o=0,i=e.length;o<i;o++)e[o].then(t,n)}))},r._immediateFn="function"===typeof e&&function(t){e(t)}||function(e){o(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 t)return t;throw new Error("unable to locate global object")}();"Promise"in h?h.Promise.prototype.finally||(h.Promise.prototype.finally=n):h.Promise=r}()}).call(this,n(1383).setImmediate,n(64))},function(e,t,n){(function(e){var o=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new r(i.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new r(i.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(1384),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(64))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var o,i,r,a,s=1,l={},c=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,o="[object process]"==={}.toString.call(e.process)?function(e){t.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){p(e.data)},function(e){r.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(i=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(p,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return l[s]=i,o(s),s++},d.clearImmediate=h}function h(e){delete l[e]}function p(e){if(c)setTimeout(p,0,e);else{var t=l[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),c=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(64),n(114))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var o=n(1915),i=n(1391),r=n(1916);e.exports=function(e){return(i(e)?r:o)(e)}},,,,,,,,,function(e,t,n){"use strict";n.r(t);var o,i,r,a,s,l,c,u,d,h,p,f,g,m,v,y,b,_,w,C,S,O,x,E,k,N,D,L,P,I,T,M,j,R,A,F,V,W,B,H,z,K,U,q,G,Y,Z,$,X,J,Q,ee,te,ne,oe,ie,re,ae,se,le,ce,ue,de,he,pe,fe,ge=n(530),me=(n(1382),n(484)),ve=n(442),ye=n(548),be=n(479),_e=n(450),we=n(440),Ce=n(466),Se=n(884);(i=o=o||{})[i.Unknown=0]="Unknown",i[i.Disabled=1]="Disabled",i[i.Enabled=2]="Enabled",(a=r=r||{})[a.KeepWhitespace=1]="KeepWhitespace",a[a.InsertAsSnippet=4]="InsertAsSnippet",(l=s=s||{})[l.Method=0]="Method",l[l.Function=1]="Function",l[l.Constructor=2]="Constructor",l[l.Field=3]="Field",l[l.Variable=4]="Variable",l[l.Class=5]="Class",l[l.Struct=6]="Struct",l[l.Interface=7]="Interface",l[l.Module=8]="Module",l[l.Property=9]="Property",l[l.Event=10]="Event",l[l.Operator=11]="Operator",l[l.Unit=12]="Unit",l[l.Value=13]="Value",l[l.Constant=14]="Constant",l[l.Enum=15]="Enum",l[l.EnumMember=16]="EnumMember",l[l.Keyword=17]="Keyword",l[l.Text=18]="Text",l[l.Color=19]="Color",l[l.File=20]="File",l[l.Reference=21]="Reference",l[l.Customcolor=22]="Customcolor",l[l.Folder=23]="Folder",l[l.TypeParameter=24]="TypeParameter",l[l.Snippet=25]="Snippet",(u=c=c||{})[u.Deprecated=1]="Deprecated",(h=d=d||{})[h.Invoke=0]="Invoke",h[h.TriggerCharacter=1]="TriggerCharacter",h[h.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(f=p=p||{})[f.EXACT=0]="EXACT",f[f.ABOVE=1]="ABOVE",f[f.BELOW=2]="BELOW",(m=g=g||{})[m.NotSet=0]="NotSet",m[m.ContentFlush=1]="ContentFlush",m[m.RecoverFromMarkers=2]="RecoverFromMarkers",m[m.Explicit=3]="Explicit",m[m.Paste=4]="Paste",m[m.Undo=5]="Undo",m[m.Redo=6]="Redo",(y=v=v||{})[y.LF=1]="LF",y[y.CRLF=2]="CRLF",(_=b=b||{})[_.Text=0]="Text",_[_.Read=1]="Read",_[_.Write=2]="Write",(C=w=w||{})[C.None=0]="None",C[C.Keep=1]="Keep",C[C.Brackets=2]="Brackets",C[C.Advanced=3]="Advanced",C[C.Full=4]="Full",(O=S=S||{})[O.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",O[O.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",O[O.accessibilitySupport=2]="accessibilitySupport",O[O.accessibilityPageSize=3]="accessibilityPageSize",O[O.ariaLabel=4]="ariaLabel",O[O.autoClosingBrackets=5]="autoClosingBrackets",O[O.autoClosingOvertype=6]="autoClosingOvertype",O[O.autoClosingQuotes=7]="autoClosingQuotes",O[O.autoIndent=8]="autoIndent",O[O.automaticLayout=9]="automaticLayout",O[O.autoSurround=10]="autoSurround",O[O.codeLens=11]="codeLens",O[O.colorDecorators=12]="colorDecorators",O[O.comments=13]="comments",O[O.contextmenu=14]="contextmenu",O[O.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",O[O.cursorBlinking=16]="cursorBlinking",O[O.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",O[O.cursorStyle=18]="cursorStyle",O[O.cursorSurroundingLines=19]="cursorSurroundingLines",O[O.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",O[O.cursorWidth=21]="cursorWidth",O[O.disableLayerHinting=22]="disableLayerHinting",O[O.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",O[O.dragAndDrop=24]="dragAndDrop",O[O.emptySelectionClipboard=25]="emptySelectionClipboard",O[O.extraEditorClassName=26]="extraEditorClassName",O[O.fastScrollSensitivity=27]="fastScrollSensitivity",O[O.find=28]="find",O[O.fixedOverflowWidgets=29]="fixedOverflowWidgets",O[O.folding=30]="folding",O[O.foldingStrategy=31]="foldingStrategy",O[O.foldingHighlight=32]="foldingHighlight",O[O.fontFamily=33]="fontFamily",O[O.fontInfo=34]="fontInfo",O[O.fontLigatures=35]="fontLigatures",O[O.fontSize=36]="fontSize",O[O.fontWeight=37]="fontWeight",O[O.formatOnPaste=38]="formatOnPaste",O[O.formatOnType=39]="formatOnType",O[O.glyphMargin=40]="glyphMargin",O[O.gotoLocation=41]="gotoLocation",O[O.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",O[O.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",O[O.hover=44]="hover",O[O.inDiffEditor=45]="inDiffEditor",O[O.letterSpacing=46]="letterSpacing",O[O.lightbulb=47]="lightbulb",O[O.lineDecorationsWidth=48]="lineDecorationsWidth",O[O.lineHeight=49]="lineHeight",O[O.lineNumbers=50]="lineNumbers",O[O.lineNumbersMinChars=51]="lineNumbersMinChars",O[O.links=52]="links",O[O.matchBrackets=53]="matchBrackets",O[O.minimap=54]="minimap",O[O.mouseStyle=55]="mouseStyle",O[O.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",O[O.mouseWheelZoom=57]="mouseWheelZoom",O[O.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",O[O.multiCursorModifier=59]="multiCursorModifier",O[O.multiCursorPaste=60]="multiCursorPaste",O[O.occurrencesHighlight=61]="occurrencesHighlight",O[O.overviewRulerBorder=62]="overviewRulerBorder",O[O.overviewRulerLanes=63]="overviewRulerLanes",O[O.parameterHints=64]="parameterHints",O[O.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",O[O.quickSuggestions=66]="quickSuggestions",O[O.quickSuggestionsDelay=67]="quickSuggestionsDelay",O[O.readOnly=68]="readOnly",O[O.renderControlCharacters=69]="renderControlCharacters",O[O.renderIndentGuides=70]="renderIndentGuides",O[O.renderFinalNewline=71]="renderFinalNewline",O[O.renderLineHighlight=72]="renderLineHighlight",O[O.renderValidationDecorations=73]="renderValidationDecorations",O[O.renderWhitespace=74]="renderWhitespace",O[O.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",O[O.roundedSelection=76]="roundedSelection",O[O.rulers=77]="rulers",O[O.scrollbar=78]="scrollbar",O[O.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",O[O.scrollBeyondLastLine=80]="scrollBeyondLastLine",O[O.selectionClipboard=81]="selectionClipboard",O[O.selectionHighlight=82]="selectionHighlight",O[O.selectOnLineNumbers=83]="selectOnLineNumbers",O[O.showFoldingControls=84]="showFoldingControls",O[O.showUnused=85]="showUnused",O[O.snippetSuggestions=86]="snippetSuggestions",O[O.smoothScrolling=87]="smoothScrolling",O[O.stopRenderingLineAfter=88]="stopRenderingLineAfter",O[O.suggest=89]="suggest",O[O.suggestFontSize=90]="suggestFontSize",O[O.suggestLineHeight=91]="suggestLineHeight",O[O.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",O[O.suggestSelection=93]="suggestSelection",O[O.tabCompletion=94]="tabCompletion",O[O.useTabStops=95]="useTabStops",O[O.wordSeparators=96]="wordSeparators",O[O.wordWrap=97]="wordWrap",O[O.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",O[O.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",O[O.wordWrapColumn=100]="wordWrapColumn",O[O.wordWrapMinified=101]="wordWrapMinified",O[O.wrappingIndent=102]="wrappingIndent",O[O.wrappingStrategy=103]="wrappingStrategy",O[O.editorClassName=104]="editorClassName",O[O.pixelRatio=105]="pixelRatio",O[O.tabFocusMode=106]="tabFocusMode",O[O.layoutInfo=107]="layoutInfo",O[O.wrappingInfo=108]="wrappingInfo",(E=x=x||{})[E.TextDefined=0]="TextDefined",E[E.LF=1]="LF",E[E.CRLF=2]="CRLF",(N=k=k||{})[N.LF=0]="LF",N[N.CRLF=1]="CRLF",(L=D=D||{})[L.None=0]="None",L[L.Indent=1]="Indent",L[L.IndentOutdent=2]="IndentOutdent",L[L.Outdent=3]="Outdent",(I=P=P||{})[I.Unknown=0]="Unknown",I[I.Backspace=1]="Backspace",I[I.Tab=2]="Tab",I[I.Enter=3]="Enter",I[I.Shift=4]="Shift",I[I.Ctrl=5]="Ctrl",I[I.Alt=6]="Alt",I[I.PauseBreak=7]="PauseBreak",I[I.CapsLock=8]="CapsLock",I[I.Escape=9]="Escape",I[I.Space=10]="Space",I[I.PageUp=11]="PageUp",I[I.PageDown=12]="PageDown",I[I.End=13]="End",I[I.Home=14]="Home",I[I.LeftArrow=15]="LeftArrow",I[I.UpArrow=16]="UpArrow",I[I.RightArrow=17]="RightArrow",I[I.DownArrow=18]="DownArrow",I[I.Insert=19]="Insert",I[I.Delete=20]="Delete",I[I.KEY_0=21]="KEY_0",I[I.KEY_1=22]="KEY_1",I[I.KEY_2=23]="KEY_2",I[I.KEY_3=24]="KEY_3",I[I.KEY_4=25]="KEY_4",I[I.KEY_5=26]="KEY_5",I[I.KEY_6=27]="KEY_6",I[I.KEY_7=28]="KEY_7",I[I.KEY_8=29]="KEY_8",I[I.KEY_9=30]="KEY_9",I[I.KEY_A=31]="KEY_A",I[I.KEY_B=32]="KEY_B",I[I.KEY_C=33]="KEY_C",I[I.KEY_D=34]="KEY_D",I[I.KEY_E=35]="KEY_E",I[I.KEY_F=36]="KEY_F",I[I.KEY_G=37]="KEY_G",I[I.KEY_H=38]="KEY_H",I[I.KEY_I=39]="KEY_I",I[I.KEY_J=40]="KEY_J",I[I.KEY_K=41]="KEY_K",I[I.KEY_L=42]="KEY_L",I[I.KEY_M=43]="KEY_M",I[I.KEY_N=44]="KEY_N",I[I.KEY_O=45]="KEY_O",I[I.KEY_P=46]="KEY_P",I[I.KEY_Q=47]="KEY_Q",I[I.KEY_R=48]="KEY_R",I[I.KEY_S=49]="KEY_S",I[I.KEY_T=50]="KEY_T",I[I.KEY_U=51]="KEY_U",I[I.KEY_V=52]="KEY_V",I[I.KEY_W=53]="KEY_W",I[I.KEY_X=54]="KEY_X",I[I.KEY_Y=55]="KEY_Y",I[I.KEY_Z=56]="KEY_Z",I[I.Meta=57]="Meta",I[I.ContextMenu=58]="ContextMenu",I[I.F1=59]="F1",I[I.F2=60]="F2",I[I.F3=61]="F3",I[I.F4=62]="F4",I[I.F5=63]="F5",I[I.F6=64]="F6",I[I.F7=65]="F7",I[I.F8=66]="F8",I[I.F9=67]="F9",I[I.F10=68]="F10",I[I.F11=69]="F11",I[I.F12=70]="F12",I[I.F13=71]="F13",I[I.F14=72]="F14",I[I.F15=73]="F15",I[I.F16=74]="F16",I[I.F17=75]="F17",I[I.F18=76]="F18",I[I.F19=77]="F19",I[I.NumLock=78]="NumLock",I[I.ScrollLock=79]="ScrollLock",I[I.US_SEMICOLON=80]="US_SEMICOLON",I[I.US_EQUAL=81]="US_EQUAL",I[I.US_COMMA=82]="US_COMMA",I[I.US_MINUS=83]="US_MINUS",I[I.US_DOT=84]="US_DOT",I[I.US_SLASH=85]="US_SLASH",I[I.US_BACKTICK=86]="US_BACKTICK",I[I.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",I[I.US_BACKSLASH=88]="US_BACKSLASH",I[I.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",I[I.US_QUOTE=90]="US_QUOTE",I[I.OEM_8=91]="OEM_8",I[I.OEM_102=92]="OEM_102",I[I.NUMPAD_0=93]="NUMPAD_0",I[I.NUMPAD_1=94]="NUMPAD_1",I[I.NUMPAD_2=95]="NUMPAD_2",I[I.NUMPAD_3=96]="NUMPAD_3",I[I.NUMPAD_4=97]="NUMPAD_4",I[I.NUMPAD_5=98]="NUMPAD_5",I[I.NUMPAD_6=99]="NUMPAD_6",I[I.NUMPAD_7=100]="NUMPAD_7",I[I.NUMPAD_8=101]="NUMPAD_8",I[I.NUMPAD_9=102]="NUMPAD_9",I[I.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",I[I.NUMPAD_ADD=104]="NUMPAD_ADD",I[I.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",I[I.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",I[I.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",I[I.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",I[I.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",I[I.ABNT_C1=110]="ABNT_C1",I[I.ABNT_C2=111]="ABNT_C2",I[I.MAX_VALUE=112]="MAX_VALUE",(M=T=T||{})[M.Hint=1]="Hint",M[M.Info=2]="Info",M[M.Warning=4]="Warning",M[M.Error=8]="Error",(R=j=j||{})[R.Unnecessary=1]="Unnecessary",R[R.Deprecated=2]="Deprecated",(F=A=A||{})[F.Inline=1]="Inline",F[F.Gutter=2]="Gutter",(W=V=V||{})[W.UNKNOWN=0]="UNKNOWN",W[W.TEXTAREA=1]="TEXTAREA",W[W.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",W[W.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",W[W.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",W[W.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",W[W.CONTENT_TEXT=6]="CONTENT_TEXT",W[W.CONTENT_EMPTY=7]="CONTENT_EMPTY",W[W.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",W[W.CONTENT_WIDGET=9]="CONTENT_WIDGET",W[W.OVERVIEW_RULER=10]="OVERVIEW_RULER",W[W.SCROLLBAR=11]="SCROLLBAR",W[W.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",W[W.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(H=B=B||{})[H.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",H[H.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",H[H.TOP_CENTER=2]="TOP_CENTER",(K=z=z||{})[K.Left=1]="Left",K[K.Center=2]="Center",K[K.Right=4]="Right",K[K.Full=7]="Full",(q=U=U||{})[q.Off=0]="Off",q[q.On=1]="On",q[q.Relative=2]="Relative",q[q.Interval=3]="Interval",q[q.Custom=4]="Custom",(Y=G=G||{})[Y.None=0]="None",Y[Y.Text=1]="Text",Y[Y.Blocks=2]="Blocks",($=Z=Z||{})[$.Smooth=0]="Smooth",$[$.Immediate=1]="Immediate",(J=X=X||{})[J.Auto=1]="Auto",J[J.Hidden=2]="Hidden",J[J.Visible=3]="Visible",(ee=Q=Q||{})[ee.LTR=0]="LTR",ee[ee.RTL=1]="RTL",(ne=te=te||{})[ne.Invoke=1]="Invoke",ne[ne.TriggerCharacter=2]="TriggerCharacter",ne[ne.ContentChange=3]="ContentChange",(ie=oe=oe||{})[ie.File=0]="File",ie[ie.Module=1]="Module",ie[ie.Namespace=2]="Namespace",ie[ie.Package=3]="Package",ie[ie.Class=4]="Class",ie[ie.Method=5]="Method",ie[ie.Property=6]="Property",ie[ie.Field=7]="Field",ie[ie.Constructor=8]="Constructor",ie[ie.Enum=9]="Enum",ie[ie.Interface=10]="Interface",ie[ie.Function=11]="Function",ie[ie.Variable=12]="Variable",ie[ie.Constant=13]="Constant",ie[ie.String=14]="String",ie[ie.Number=15]="Number",ie[ie.Boolean=16]="Boolean",ie[ie.Array=17]="Array",ie[ie.Object=18]="Object",ie[ie.Key=19]="Key",ie[ie.Null=20]="Null",ie[ie.EnumMember=21]="EnumMember",ie[ie.Struct=22]="Struct",ie[ie.Event=23]="Event",ie[ie.Operator=24]="Operator",ie[ie.TypeParameter=25]="TypeParameter",(ae=re=re||{})[ae.Deprecated=1]="Deprecated",(le=se=se||{})[le.Hidden=0]="Hidden",le[le.Blink=1]="Blink",le[le.Smooth=2]="Smooth",le[le.Phase=3]="Phase",le[le.Expand=4]="Expand",le[le.Solid=5]="Solid",(ue=ce=ce||{})[ue.Line=1]="Line",ue[ue.Block=2]="Block",ue[ue.Underline=3]="Underline",ue[ue.LineThin=4]="LineThin",ue[ue.BlockOutline=5]="BlockOutline",ue[ue.UnderlineThin=6]="UnderlineThin",(he=de=de||{})[he.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",he[he.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",he[he.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",he[he.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(fe=pe=pe||{})[fe.None=0]="None",fe[fe.Same=1]="Same",fe[fe.Indent=2]="Indent",fe[fe.DeepIndent=3]="DeepIndent";var Oe=(xe.chord=function(e,t){return Object(ye.a)(e,t)},xe.CtrlCmd=2048,xe.Shift=1024,xe.Alt=512,xe.WinCtrl=256,xe);function xe(){}function Ee(){return{editor:void 0,languages:void 0,CancellationTokenSource:me.b,Emitter:ve.a,KeyCode:P,KeyMod:Oe,Position:_e.a,Range:we.a,Selection:Ce.a,SelectionDirection:Q,MarkerSeverity:T,MarkerTag:j,Uri:be.a,Token:Se.a}}n(1385);var ke,Ne,De=n(504),Le=n(443),Pe=n(786),Ie=n(1095),Te=n(596),Me=n(554),je=n(489),Re=n(636);(Ne=ke=ke||{})[Ne.API=0]="API",Ne[Ne.USER=1]="USER";var Ae=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},Fe=function(e,t){return function(n,o){t(n,o,e)}},Ve=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},We=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},Be=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},He=(ze.prototype.open=function(e){return Ve(this,void 0,void 0,(function(){var t,n;return We(this,(function(o){switch(o.label){case 0:if(!Object(Re.c)(e,Te.b.command))return[2,!1];if("string"==typeof e&&(e=be.a.parse(e)),!je.a.getCommand(e.path))throw new Error("command '"+e.path+"' NOT known");t=[];try{t=Object(Ie.a)(decodeURIComponent(e.query))}catch(o){try{t=Object(Ie.a)(e.query)}catch(o){}}return Array.isArray(t)||(t=[t]),[4,(n=this._commandService).executeCommand.apply(n,Be([e.path],t))];case 1:return o.sent(),[2,!0]}}))}))},ze=Ae([Fe(0,je.b)],ze));function ze(e){this._commandService=e}var Ke=(Ue.prototype.open=function(e,t){return Ve(this,void 0,void 0,(function(){var n,o;return We(this,(function(i){switch(i.label){case 0:return"string"==typeof e&&(e=be.a.parse(e)),n=void 0,(o=/^L?(\d+)(?:,(\d+))?/.exec(e.fragment))&&(n={startLineNumber:parseInt(o[1]),startColumn:o[2]?parseInt(o[2]):1},e=e.with({fragment:""})),e.scheme===Te.b.file&&(e=Object(Me.g)(e)),[4,this._editorService.openCodeEditor({resource:e,options:{selection:n,context:null!=t&&t.fromUserGesture?ke.USER:ke.API}},this._editorService.getFocusedCodeEditor(),null==t?void 0:t.openToSide)];case 1:return i.sent(),[2,!0]}}))}))},Ue=Ae([Fe(0,De.a)],Ue));function Ue(e){this._editorService=e}var qe=(Ge.prototype.open=function(e,t){return Ve(this,void 0,void 0,(function(){var n,o,i,r;return We(this,(function(a){switch(a.label){case 0:n=0,o=this._validators.toArray(),a.label=1;case 1:return n<o.length?[4,o[n].shouldOpen(e)]:[3,4];case 2:if(!a.sent())return[2,!1];a.label=3;case 3:return n++,[3,1];case 4:i=0,r=this._openers.toArray(),a.label=5;case 5:return i<r.length?[4,r[i].open(e,t)]:[3,8];case 6:if(a.sent())return[2,!0];a.label=7;case 7:return i++,[3,5];case 8:return[2,!1]}}))}))},Ge.prototype.resolveExternalUri=function(e,t){return Ve(this,void 0,void 0,(function(){var n,o,i;return We(this,(function(r){switch(r.label){case 0:n=0,o=this._resolvers.toArray(),r.label=1;case 1:return n<o.length?[4,o[n].resolveExternalUri(e,t)]:[3,4];case 2:if(i=r.sent())return[2,i];r.label=3;case 3:return n++,[3,1];case 4:return[2,{resolved:e,dispose:function(){}}]}}))}))},Ge.prototype._doOpenExternal=function(e,t){return Ve(this,void 0,void 0,(function(){var n,o;return We(this,(function(i){switch(i.label){case 0:return n="string"==typeof e?be.a.parse(e):e,[4,this.resolveExternalUri(n,t)];case 1:return o=i.sent().resolved,"string"==typeof e&&n.toString()===o.toString()?[2,this._externalOpener.openExternal(e)]:[2,this._externalOpener.openExternal(encodeURI(o.toString(!0)))]}}))}))},Ge.prototype.dispose=function(){this._validators.clear()},Ge=Ae([Fe(0,De.a),Fe(1,je.b)],Ge));function Ge(e,t){var n=this;this._openers=new Pe.a,this._validators=new Pe.a,this._resolvers=new Pe.a,this._externalOpener={openExternal:function(e){return Le.ab(e),Promise.resolve(!0)}},this._openers.push({open:function(e,t){return Ve(n,void 0,void 0,(function(){return We(this,(function(n){switch(n.label){case 0:return null!=t&&t.openExternal||Object(Re.c)(e,Te.b.mailto)||Object(Re.c)(e,Te.b.http)||Object(Re.c)(e,Te.b.https)?[4,this._doOpenExternal(e,t)]:[3,2];case 1:return n.sent(),[2,!0];case 2:return[2,!1]}}))}))}}),this._openers.push(new He(t)),this._openers.push(new Ke(e))}var Ye,Ze=n(1266),$e=n(946),Xe=n(776),Je=n(599),Qe=n(454),et=n(756),tt=n(758),nt=n(787),ot=n(453),it=n(439),rt=n(446),at=n(452),st=n(465),lt="$initialize";function ct(){at.g}Ye=function(e,t){return(Ye=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)};var ut=(dt.prototype.setWorkerId=function(e){this._workerId=e},dt.prototype.sendMessage=function(e,t){var n=this,o=String(++this._lastSentReq);return new Promise((function(i,r){n._pendingReplies[o]={resolve:i,reject:r},n._send({vsWorker:n._workerId,req:o,method:e,args:t})}))},dt.prototype.handleMessage=function(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))},dt.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq])return;var o=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){var i=n.err;return n.err.$isError&&((i=new Error).name=n.err.name,i.message=n.err.message,i.stack=n.err.stack),void o.reject(i)}o.resolve(n.res)}else{var r=e.req;this._handler.handleMessage(e.method,e.args).then((function(e){t._send({vsWorker:t._workerId,seq:r,res:e,err:void 0})}),(function(e){e.detail instanceof Error&&(e.detail=Object(rt.g)(e.detail)),t._send({vsWorker:t._workerId,seq:r,res:void 0,err:Object(rt.g)(e)})}))}},dt.prototype._send=function(e){var t=[];if(e.req)for(var n=e,o=0;o<n.args.length;o++)n.args[o]instanceof ArrayBuffer&&t.push(n.args[o]);else(n=e).res instanceof ArrayBuffer&&t.push(n.res);this._handler.sendMessage(e,t)},dt);function dt(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}var ht,pt=(function(e,t){function n(){this.constructor=e}Ye(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(ft,ht=it.a),ft.prototype.getProxyObject=function(){return this._lazyProxy},ft.prototype._request=function(e,t){var n=this;return new Promise((function(o,i){n._onModuleLoaded.then((function(){n._protocol.sendMessage(e,t).then(o,i)}),i)}))},ft.prototype._onError=function(e,t){},ft);function ft(e,t,n){var o=ht.call(this)||this,i=null;o._worker=o._register(e.create("vs/base/common/worker/simpleWorker",(function(e){o._protocol.handleMessage(e)}),(function(e){i&&i(e)}))),o._protocol=new ut({sendMessage:function(e,t){o._worker.postMessage(e,t)},handleMessage:function(e,t){if("function"!=typeof n[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(n[e].apply(n,t))}catch(e){return Promise.reject(e)}}}),o._protocol.setWorkerId(o._worker.getId());var r=null;void 0!==self.require&&"function"==typeof self.require.getConfig?r=self.require.getConfig():void 0!==self.requirejs&&(r=self.requirejs.s.contexts._.config);var a=st.c(n);function s(e,t){return o._request(e,t)}return o._onModuleLoaded=o._protocol.sendMessage(lt,[o._worker.getId(),JSON.parse(JSON.stringify(r)),t,a]),o._lazyProxy=new Promise((function(e,n){i=n,o._onModuleLoaded.then((function(t){e(st.b(t,s))}),(function(e){n(e),o._onError("Worker failed to load "+t,e)}))})),o}function gt(e,t){var n=this;this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new ut({sendMessage:function(t,n){e(t,n)},handleMessage:function(e,t){return n._handleMessage(e,t)}})}gt.prototype.onmessage=function(e){this._protocol.handleMessage(e)},gt.prototype._handleMessage=function(e,t){if(e===lt)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(e){return Promise.reject(e)}},gt.prototype.initialize=function(e,t,n,o){var i=this;this._protocol.setWorkerId(e);var r=st.b(o,(function(e,t){return i._protocol.sendMessage(e,t)}));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(r),Promise.resolve(st.c(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,t.catchError=!0,self.require.config(t)),new Promise((function(e,t){self.require([n],(function(n){i._requestHandler=n.create(r),i._requestHandler?e(st.c(i._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))};var mt=(vt.prototype.getId=function(){return this.id},vt.prototype.postMessage=function(e,t){this.worker&&this.worker.then((function(n){return n.postMessage(e,t)}))},vt.prototype.dispose=function(){this.worker&&this.worker.then((function(e){return e.terminate()})),this.worker=null},vt);function vt(e,t,n,o,i){this.id=t;var r=function(e,t){if(at.b.MonacoEnvironment){if("function"==typeof at.b.MonacoEnvironment.getWorker)return at.b.MonacoEnvironment.getWorker(e,t);if("function"==typeof at.b.MonacoEnvironment.getWorkerUrl)return new Worker(at.b.MonacoEnvironment.getWorkerUrl(e,t))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",n);"function"==typeof r.then?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then((function(e){e.onmessage=function(e){o(e.data)},e.onmessageerror=i,"function"==typeof e.addEventListener&&e.addEventListener("error",i)}))}var yt=(bt.prototype.create=function(e,t,n){var o=this,i=++bt.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new mt(e,i,this._label||"anonymous"+i,t,(function(e){ct(),o._webWorkerFailedBeforeError=e,n(e)}))},bt.LAST_WORKER_ID=0,bt);function bt(e){this._label=e,this._webWorkerFailedBeforeError=!1}var _t=n(575),wt=n(459),Ct=n(977),St=n(700),Ot=n(444);function xt(e,t,n,o){return new Ct.a(e,t,n).ComputeDiff(o)}var Et=(kt.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},kt.prototype.getStartLineNumber=function(e){return e+1},kt.prototype.getEndLineNumber=function(e){return e+1},kt.prototype.createCharSequence=function(e,t,n){for(var o=[],i=[],r=[],a=0,s=t;s<=n;s++)for(var l=this.lines[s],c=e?this._startColumns[s]:1,u=e?this._endColumns[s]:l.length+1,d=c;d<u;d++)o[a]=l.charCodeAt(d-1),i[a]=s+1,r[a]=d,a++;return new Nt(o,i,r)},kt);function kt(e){for(var t=[],n=[],o=0,i=e.length;o<i;o++)t[o]=Rt(e[o],1),n[o]=At(e[o],1);this.lines=e,this._startColumns=t,this._endColumns=n}var Nt=(Dt.prototype.getElements=function(){return this._charCodes},Dt.prototype.getStartLineNumber=function(e){return this._lineNumbers[e]},Dt.prototype.getStartColumn=function(e){return this._columns[e]},Dt.prototype.getEndLineNumber=function(e){return this._lineNumbers[e]},Dt.prototype.getEndColumn=function(e){return this._columns[e]+1},Dt);function Dt(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}var Lt=(Pt.createFromDiffChange=function(e,t,n){var o,i,r,a,s,l,c,u;return a=0===e.originalLength?r=i=o=0:(o=t.getStartLineNumber(e.originalStart),i=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),t.getEndColumn(e.originalStart+e.originalLength-1)),u=0===e.modifiedLength?c=l=s=0:(s=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new Pt(o,i,r,a,s,l,c,u)},Pt);function Pt(e,t,n,o,i,r,a,s){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=o,this.modifiedStartLineNumber=i,this.modifiedStartColumn=r,this.modifiedEndLineNumber=a,this.modifiedEndColumn=s}var It=(Tt.createFromDiffResult=function(e,t,n,o,i,r,a){var s,l,c,u,d=void 0;if(l=0===t.originalLength?(s=n.getStartLineNumber(t.originalStart)-1,0):(s=n.getStartLineNumber(t.originalStart),n.getEndLineNumber(t.originalStart+t.originalLength-1)),u=0===t.modifiedLength?(c=o.getStartLineNumber(t.modifiedStart)-1,0):(c=o.getStartLineNumber(t.modifiedStart),o.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&0<t.originalLength&&t.originalLength<20&&0<t.modifiedLength&&t.modifiedLength<20&&i()){var h=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),p=o.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1),f=xt(h,p,i,!0).changes;a&&(f=function(e){if(e.length<=1)return e;for(var t=[e[0]],n=t[0],o=1,i=e.length;o<i;o++){var r=e[o],a=r.originalStart-(n.originalStart+n.originalLength),s=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,s)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(f)),d=[];for(var g=0,m=f.length;g<m;g++)d.push(Lt.createFromDiffChange(f[g],h,p))}return new Tt(s,l,c,u,d)},Tt);function Tt(e,t,n,o,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=o,this.charChanges=i}var Mt=(jt.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=xt(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var o=[],i=0,r=t.length;i<r;i++)o.push(It.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:o}}for(var a=[],s=0,l=0,c=(i=-1,t.length);i<c;i++){for(var u=i+1<c?t[i+1]:null,d=u?u.originalStart:this.originalLines.length,h=u?u.modifiedStart:this.modifiedLines.length;s<d&&l<h;){var p=this.originalLines[s],f=this.modifiedLines[l];if(p!==f){for(var g=Rt(p,1),m=Rt(f,1);1<g&&1<m&&p.charCodeAt(g-2)===f.charCodeAt(m-2);)g--,m--;(1<g||1<m)&&this._pushTrimWhitespaceCharChange(a,s+1,1,g,l+1,1,m);for(var v=At(p,1),y=At(f,1),b=p.length+1,_=f.length+1;v<b&&y<_&&p.charCodeAt(v-1)===p.charCodeAt(y-1);)v++,y++;(v<b||y<_)&&this._pushTrimWhitespaceCharChange(a,s+1,v,b,l+1,y,_)}s++,l++}u&&(a.push(It.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=u.originalLength,l+=u.modifiedLength)}return{quitEarly:n,changes:a}},jt.prototype._pushTrimWhitespaceCharChange=function(e,t,n,o,i,r,a){if(!this._mergeTrimWhitespaceCharChange(e,t,n,o,i,r,a)){var s=void 0;this.shouldComputeCharChanges&&(s=[new Lt(t,n,t,o,i,r,i,a)]),e.push(new It(t,t,i,i,s))}},jt.prototype._mergeTrimWhitespaceCharChange=function(e,t,n,o,i,r,a){var s=e.length;if(0===s)return!1;var l=e[s-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===i&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new Lt(t,n,t,o,i,r,i,a)),!0)},jt);function jt(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 Et(e),this.modified=new Et(t),this.continueLineDiff=Ft(n.maxComputationTime),this.continueCharDiff=Ft(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}function Rt(e,t){var n=Ot.q(e);return-1===n?t:n+1}function At(e,t){var n=Ot.D(e);return-1===n?t:n+2}function Ft(e){if(0===e)return function(){return!0};var t=Date.now();return function(){return Date.now()-t<e}}var Vt=n(1091),Wt=(Bt.prototype.dispose=function(){this._lines.length=0},Bt.prototype.getText=function(){return this._lines.join(this._eol)},Bt.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var t=0,n=e.changes;t<n.length;t++){var o=n[t];this._acceptDeleteRange(o.range),this._acceptInsertText(new _e.a(o.range.startLineNumber,o.range.startColumn),o.text)}this._versionId=e.versionId},Bt.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var e=this._eol.length,t=this._lines.length,n=new Uint32Array(t),o=0;o<t;o++)n[o]=this._lines[o].length+e;this._lineStarts=new Vt.a(n)}},Bt.prototype._setLineText=function(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)},Bt.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))}},Bt.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 o=new Uint32Array(n.length-1),i=1;i<n.length;i++)this._lines.splice(e.lineNumber+i-1,0,n[i]),o[i-1]=n[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,o)}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))}},Bt);function Bt(e,t,n,o){this._uri=e,this._lines=t,this._eol=n,this._versionId=o,this._lineStarts=null}var Ht=n(882),zt=n(790),Kt=(Ut.prototype.get=function(e,t){return this._data[e*this.cols+t]},Ut.prototype.set=function(e,t,n){this._data[e*this.cols+t]=n},Ut);function Ut(e,t,n){for(var o=new Uint8Array(e*t),i=0,r=e*t;i<r;i++)o[i]=n;this._data=o,this.rows=e,this.cols=t}var qt=(Gt.prototype.nextState=function(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)},Gt);function Gt(e){for(var t=0,n=0,o=0,i=e.length;o<i;o++){var r=e[o],a=r[0];t<(c=r[1])&&(t=c),n<a&&(n=a),n<(u=r[2])&&(n=u)}var s=new Kt(++n,++t,0);for(o=0,i=e.length;o<i;o++){var l=e[o],c=(a=l[0],l[1]),u=l[2];s.set(a,c,u)}this._states=s,this._maxCharCode=t}var Yt=null,Zt=null,$t=(Xt._createLink=function(e,t,n,o,i){var r=i-1;do{var a=t.charCodeAt(r);if(2!==e.get(a))break;r--}while(o<r);if(0<o){var s=t.charCodeAt(o-1),l=t.charCodeAt(r);(40===s&&41===l||91===s&&93===l||123===s&&125===l)&&r--}return{range:{startLineNumber:n,startColumn:o+1,endLineNumber:n,endColumn:r+2},url:t.substring(o,r+1)}},Xt.computeLinks=function(e,t){void 0===t&&(null===Yt&&(Yt=new qt([[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]])),t=Yt);for(var n=function(){if(null===Zt){Zt=new zt.a(0);for(var e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff20\uff03\uff04\uff05\uff06\uff0a\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u3011\u300f\u300d\u300b\u3009\u201d\u2019\uff40\uff5e\u2026",t=0;t<e.length;t++)Zt.set(e.charCodeAt(t),1);for(t=0;t<".,;".length;t++)Zt.set(".,;".charCodeAt(t),2)}return Zt}(),o=[],i=1,r=e.getLineCount();i<=r;i++){for(var a=e.getLineContent(i),s=a.length,l=0,c=0,u=0,d=1,h=!1,p=!1,f=!1;l<s;){var g=!1,m=a.charCodeAt(l);if(13===d){var v=void 0;switch(m){case 40:h=!0,v=0;break;case 41:v=h?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===u||96===u?0:1;break;case 34:v=39===u||96===u?0:1;break;case 96:v=39===u||34===u?0:1;break;case 42:v=42===u?1:0;break;case 124:v=124===u?1:0;break;default:v=n.get(m)}1===v&&(o.push(Xt._createLink(n,a,i,c,l)),g=!0)}else 12===d?(v=void 0,1===(v=91===m?(p=!0,0):n.get(m))?g=!0:d=13):0===(d=t.nextState(d,m))&&(g=!0);g&&(f=p=h=!(d=1),c=l+1,u=m),l++}13===d&&o.push(Xt._createLink(n,a,i,c,s))}return o},Xt);function Xt(){}var Jt=(Qt.prototype.navigateValueSet=function(e,t,n,o,i){var r;return e&&t&&(r=this.doNavigateValueSet(t,i))?{range:e,value:r}:n&&o&&(r=this.doNavigateValueSet(o,i))?{range:n,value:r}:null},Qt.prototype.doNavigateValueSet=function(e,t){var n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)},Qt.prototype.numberReplace=function(e,t){var n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),o=Number(e),i=parseFloat(e);return isNaN(o)||isNaN(i)||o!==i||0===o&&!t?null:(o=Math.floor(o*n),o+=t?n:-n,String(o/n))},Qt.prototype.textReplace=function(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)},Qt.prototype.valueSetsReplace=function(e,t,n){for(var o=null,i=0,r=e.length;null===o&&i<r;i++)o=this.valueSetReplace(e[i],t,n);return o},Qt.prototype.valueSetReplace=function(e,t,n){var o=e.indexOf(t);return 0<=o?((o+=n?1:-1)<0?o=e.length-1:o%=e.length,e[o]):null},Qt.INSTANCE=new Qt,Qt);function Qt(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}var en,tn,nn=(en=function(e,t){return(en=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}en(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),on=function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},rn=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},an=(nn(sn,tn=Wt),Object.defineProperty(sn.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(sn.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(sn.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),sn.prototype.getValue=function(){return this.getText()},sn.prototype.getLinesContent=function(){return this._lines.slice(0)},sn.prototype.getLineCount=function(){return this._lines.length},sn.prototype.getLineContent=function(e){return this._lines[e-1]},sn.prototype.getWordAtPosition=function(e,t){var n=Object(Ht.d)(e.column,Object(Ht.c)(t),this._lines[e.lineNumber-1],0);return n?new we.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},sn.prototype.createWordIterator=function(e){var t,n,o=this,i=0,r=0,a=[];return{next:function s(){if(r<a.length){var l=n.substring(a[r].start,a[r].end);return r+=1,t?t.value=l:t={done:!1,value:l},t}return i>=o._lines.length?St.c:(n=o._lines[i],a=o._wordenize(n,e),r=0,i+=1,s())}}},sn.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],o=[],i=0,r=this._wordenize(n,t);i<r.length;i++){var a=r[i];o.push({word:n.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1})}return o},sn.prototype._wordenize=function(e,t){var n,o=[];for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)o.push({start:n.index,end:n.index+n[0].length});return o},sn.prototype.getValueInRange=function(e){if((e=this._validateRange(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,o=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(var r=1+n;r<o;r++)i.push(this._lines[r]);return i.push(this._lines[o].substring(0,e.endColumn-1)),i.join(t)},sn.prototype.offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)},sn.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)}},sn.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},sn.prototype._validatePosition=function(e){if(!_e.a.isIPosition(e))throw new Error("bad position");var t=e.lineNumber,n=e.column,o=!1;if(t<1)n=t=1,o=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,o=!0;else{var i=this._lines[t-1].length+1;n<1?(n=1,o=!0):i<n&&(n=i,o=!0)}return o?{lineNumber:t,column:n}:e},sn);function sn(){return null!==tn&&tn.apply(this,arguments)||this}var ln=(cn.prototype.dispose=function(){this._models=Object.create(null)},cn.prototype._getModel=function(e){return this._models[e]},cn.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach((function(n){return t.push(e._models[n])})),t},cn.prototype.acceptNewModel=function(e){this._models[e.url]=new an(be.a.parse(e.url),e.lines,e.EOL,e.versionId)},cn.prototype.acceptModelChanged=function(e,t){this._models[e]&&this._models[e].onEvents(t)},cn.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},cn.prototype.computeDiff=function(e,t,n,o){return on(this,void 0,void 0,(function(){var i,r,a,s,l,c,u;return rn(this,(function(d){return i=this._getModel(e),r=this._getModel(t),i&&r?(a=i.getLinesContent(),s=r.getLinesContent(),l=new Mt(a,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:o}),c=l.computeDiff(),u=!(0<c.changes.length)&&this._modelsAreIdentical(i,r),[2,{quitEarly:c.quitEarly,identical:u,changes:c.changes}]):[2,null]}))}))},cn.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount();if(n!==t.getLineCount())return!1;for(var o=1;o<=n;o++)if(e.getLineContent(o)!==t.getLineContent(o))return!1;return!0},cn.prototype.computeMoreMinimalEdits=function(e,t){return on(this,void 0,void 0,(function(){var n,o,i,r,a,s,l,c,u,d,h,p,f,g,m,v,y,b;return rn(this,(function(_){if(!(n=this._getModel(e)))return[2,t];for(o=[],i=void 0,t=Object(wt.r)(t,(function(e,t){return e.range&&t.range?we.a.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)})),r=0,a=t;r<a.length;r++)if(s=a[r],l=s.range,c=s.text,"number"==typeof(u=s.eol)&&(i=u),(!we.a.isEmpty(l)||c)&&(d=n.getValueInRange(l),c=c.replace(/\r\n|\n|\r/g,n.eol),d!==c))if(Math.max(c.length,d.length)>cn._diffLimit)o.push({range:l,text:c});else for(h=Object(Ct.b)(d,c,!1),p=n.offsetAt(we.a.lift(l).getStartPosition()),f=0,g=h;f<g.length;f++)m=g[f],v=n.positionAt(p+m.originalStart),y=n.positionAt(p+m.originalStart+m.originalLength),b={text:c.substr(m.modifiedStart,m.modifiedLength),range:{startLineNumber:v.lineNumber,startColumn:v.column,endLineNumber:y.lineNumber,endColumn:y.column}},n.getValueInRange(b.range)!==b.text&&o.push(b);return"number"==typeof i&&o.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,o]}))}))},cn.prototype.computeLinks=function(e){return on(this,void 0,void 0,(function(){var t;return rn(this,(function(n){return(t=this._getModel(e))?[2,(o=t)&&"function"==typeof o.getLineCount&&"function"==typeof o.getLineContent?$t.computeLinks(o):[]]:[2,null];var o}))}))},cn.prototype.textualSuggest=function(e,t,n,o){return on(this,void 0,void 0,(function(){var i,r,a,s,l,c,u,d;return rn(this,(function(h){if(!(i=this._getModel(e)))return[2,null];for(r=[],a=new Set,s=new RegExp(n,o),(l=i.getWordAtPosition(t,s))&&a.add(i.getValueInRange(l)),c=i.createWordIterator(s),u=c.next();!u.done&&a.size<=cn._suggestionsLimit;u=c.next())d=u.value,a.has(d)||(a.add(d),isNaN(Number(d))&&r.push(d));return[2,r]}))}))},cn.prototype.computeWordRanges=function(e,t,n,o){return on(this,void 0,void 0,(function(){var i,r,a,s,l,c,u,d,h;return rn(this,(function(p){if(!(i=this._getModel(e)))return[2,Object.create(null)];for(r=new RegExp(n,o),a=Object.create(null),s=t.startLineNumber;s<t.endLineNumber;s++)for(l=i.getLineWords(s,r),c=0,u=l;c<u.length;c++)d=u[c],isNaN(Number(d.word))&&((h=a[d.word])||(h=[],a[d.word]=h),h.push({startLineNumber:s,startColumn:d.startColumn,endLineNumber:s,endColumn:d.endColumn}));return[2,a]}))}))},cn.prototype.navigateValueSet=function(e,t,n,o,i){return on(this,void 0,void 0,(function(){var r,a,s,l,c;return rn(this,(function(u){return(r=this._getModel(e))?(a=new RegExp(o,i),t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1}),s=r.getValueInRange(t),(l=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},a))?(c=r.getValueInRange(l),[2,Jt.INSTANCE.navigateValueSet(t,s,l,c,n)]):[2,null]):[2,null]}))}))},cn.prototype.loadForeignModule=function(e,t,n){var o=this,i={host:st.b(n,(function(e,t){return o._host.fhr(e,t)})),getMirrorModels:function(){return o._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve(st.c(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},cn.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(e){return Promise.reject(e)}},cn._diffLimit=1e5,cn._suggestionsLimit=1e4,cn);function cn(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}"function"==typeof importScripts&&(at.b.monaco=Ee());var un,dn=n(598),hn=n(899),pn=n(828),fn=n(1054),gn=(un=function(e,t){return(un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}un(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mn=function(e,t){return function(n,o){t(n,o,e)}};function vn(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}var yn,bn=(gn(_n,yn=it.a),_n.prototype.dispose=function(){yn.prototype.dispose.call(this)},_n.prototype.canComputeDiff=function(e,t){return vn(this._modelService,e)&&vn(this._modelService,t)},_n.prototype.computeDiff=function(e,t,n,o){return this._workerManager.withWorker().then((function(i){return i.computeDiff(e,t,n,o)}))},_n.prototype.computeMoreMinimalEdits=function(e,t){var n=this;if(Object(wt.q)(t)){if(!vn(this._modelService,e))return Promise.resolve(t);var o=fn.a.create(!0),i=this._workerManager.withWorker().then((function(n){return n.computeMoreMinimalEdits(e,t)}));return i.finally((function(){return n._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),o.elapsed())})),i}return Promise.resolve(void 0)},_n.prototype.canNavigateValueSet=function(e){return vn(this._modelService,e)},_n.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then((function(o){return o.navigateValueSet(e,t,n)}))},_n.prototype.canComputeWordRanges=function(e){return vn(this._modelService,e)},_n.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then((function(n){return n.computeWordRanges(e,t)}))},_n=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([mn(0,dn.a),mn(1,hn.a),mn(2,pn.a)],_n));function _n(e,t,n){var o=yn.call(this)||this;return o._modelService=e,o._workerManager=o._register(new On(o._modelService)),o._logService=n,o._register(Qe.s.register("*",{provideLinks:function(e){return vn(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(Qe.d.register("*",new wn(o._workerManager,t,o._modelService))),o}var wn=(Cn.prototype.provideCompletionItems=function(e,t){return function(e,t,n,o){return new(n=n||Promise)((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,o,i,r;return function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=0<(i=a.trys).length&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(a){switch(a.label){case 0:return this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions&&vn(this._modelService,e.uri)?(n=e.getWordAtPosition(t),o=n?new we.a(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn):we.a.fromPositions(t),i=o.setEndPosition(t.lineNumber,t.column),[4,this._workerManager.withWorker()]):[2,void 0];case 1:return[4,a.sent().textualSuggest(e.uri,t)];case 2:return(r=a.sent())?[2,{suggestions:r.map((function(e){return{kind:18,label:e,insertText:e,range:{insert:i,replace:o}}}))}]:[2,void 0]}}))}))},Cn);function Cn(e,t,n){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}var Sn,On=(gn(xn,Sn=it.a),xn.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),Sn.prototype.dispose.call(this)},xn.prototype._checkStopEmptyWorker=function(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},xn.prototype._checkStopIdleWorker=function(){this._editorWorkerClient&&3e5<(new Date).getTime()-this._lastWorkerUsedTime&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},xn.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new jn(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},xn);function xn(e){var t=Sn.call(this)||this;return t._modelService=e,t._editorWorkerClient=null,t._lastWorkerUsedTime=(new Date).getTime(),t._register(new ot.c).cancelAndSet((function(){return t._checkStopIdleWorker()}),Math.round(15e4)),t._register(t._modelService.onModelRemoved((function(e){return t._checkStopEmptyWorker()}))),t}var En,kn=(gn(Nn,En=it.a),Nn.prototype.dispose=function(){for(var e in this._syncedModels)Object(it.f)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),En.prototype.dispose.call(this)},Nn.prototype.ensureSyncedResources=function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t],i=o.toString();this._syncedModels[i]||this._beginModelSync(o),this._syncedModels[i]&&(this._syncedModelsLastUsedTime[i]=(new Date).getTime())}},Nn.prototype._checkStopModelSync=function(){var e=(new Date).getTime(),t=[];for(var n in this._syncedModelsLastUsedTime)6e4<e-this._syncedModelsLastUsedTime[n]&&t.push(n);for(var o=0,i=t;o<i.length;o++){var r=i[o];this._stopModelSync(r)}},Nn.prototype._beginModelSync=function(e){var t=this,n=this._modelService.getModel(e);if(n&&!n.isTooLargeForSyncing()){var o=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});var i=new it.b;i.add(n.onDidChangeContent((function(e){t._proxy.acceptModelChanged(o.toString(),e)}))),i.add(n.onWillDispose((function(){t._stopModelSync(o)}))),i.add(Object(it.h)((function(){t._proxy.acceptRemovedModel(o)}))),this._syncedModels[o]=i}},Nn.prototype._stopModelSync=function(e){var t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Object(it.f)(t)},Nn);function Nn(e,t,n){var o=En.call(this)||this;if(o._syncedModels=Object.create(null),o._syncedModelsLastUsedTime=Object.create(null),o._proxy=e,o._modelService=t,!n){var i=new ot.c;i.cancelAndSet((function(){return o._checkStopModelSync()}),Math.round(3e4)),o._register(i)}return o}var Dn=(Ln.prototype.dispose=function(){this._instance.dispose()},Ln.prototype.getProxyObject=function(){return this._proxyObj},Ln);function Ln(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}var Pn=(In.prototype.fhr=function(e,t){return this._workerClient.fhr(e,t)},In);function In(e){this._workerClient=e}var Tn,Mn,jn=(gn(Rn,Tn=it.a),Rn.prototype.fhr=function(e,t){throw new Error("Not implemented!")},Rn.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new pt(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Pn(this)))}catch(e){ct(),this._worker=new Dn(new ln(new Pn(this),null))}return this._worker},Rn.prototype._getProxy=function(){var e=this;return this._getOrCreateWorker().getProxyObject().then(void 0,(function(t){return ct(),e._worker=new Dn(new ln(new Pn(e),null)),e._getOrCreateWorker().getProxyObject()}))},Rn.prototype._getOrCreateModelManager=function(e){return this._modelManager||(this._modelManager=this._register(new kn(e,this._modelService,this._keepIdleModels))),this._modelManager},Rn.prototype._withSyncedResources=function(e){var t=this;return this._getProxy().then((function(n){return t._getOrCreateModelManager(n).ensureSyncedResources(e),n}))},Rn.prototype.computeDiff=function(e,t,n,o){return this._withSyncedResources([e,t]).then((function(i){return i.computeDiff(e.toString(),t.toString(),n,o)}))},Rn.prototype.computeMoreMinimalEdits=function(e,t){return this._withSyncedResources([e]).then((function(n){return n.computeMoreMinimalEdits(e.toString(),t)}))},Rn.prototype.computeLinks=function(e){return this._withSyncedResources([e]).then((function(t){return t.computeLinks(e.toString())}))},Rn.prototype.textualSuggest=function(e,t){var n=this;return this._withSyncedResources([e]).then((function(o){var i=n._modelService.getModel(e);if(!i)return null;var r=_t.a.getWordDefinition(i.getLanguageIdentifier().id),a=r.source,s=Object(Ot.H)(r);return o.textualSuggest(e.toString(),t,a,s)}))},Rn.prototype.computeWordRanges=function(e,t){var n=this;return this._withSyncedResources([e]).then((function(o){var i=n._modelService.getModel(e);if(!i)return Promise.resolve(null);var r=_t.a.getWordDefinition(i.getLanguageIdentifier().id),a=r.source,s=Object(Ot.H)(r);return o.computeWordRanges(e.toString(),t,a,s)}))},Rn.prototype.navigateValueSet=function(e,t,n){var o=this;return this._withSyncedResources([e]).then((function(i){var r=o._modelService.getModel(e);if(!r)return null;var a=_t.a.getWordDefinition(r.getLanguageIdentifier().id),s=a.source,l=Object(Ot.H)(a);return i.navigateValueSet(e.toString(),t,n,s,l)}))},Rn);function Rn(e,t,n){var o=Tn.call(this)||this;return o._modelService=e,o._keepIdleModels=t,o._workerFactory=new yt(n),o._worker=null,o._modelManager=null,o}var An,Fn=((Mn=function(e,t){return(Mn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Mn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Vn,An=jn),Vn.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(e){return Promise.reject(e)}},Vn.prototype._getForeignProxy=function(){var e=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then((function(t){var n=e._foreignModuleHost?st.c(e._foreignModuleHost):[];return t.loadForeignModule(e._foreignModuleId,e._foreignModuleCreateData,n).then((function(n){e._foreignModuleCreateData=null;for(var o=function(e,n){return t.fmr(e,n)},i=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},r={},a=0,s=n;a<s.length;a++){var l=s[a];r[l]=i(l,o)}return r}))}))),this._foreignProxy},Vn.prototype.getProxy=function(){return this._getForeignProxy()},Vn.prototype.withSyncedResources=function(e){var t=this;return this._withSyncedResources(e).then((function(e){return t.getProxy()}))},Vn);function Vn(e,t){var n=An.call(this,e,t.keepIdleModels||!1,t.label)||this;return n._foreignModuleId=t.moduleId,n._foreignModuleCreateData=t.createData||null,n._foreignModuleHost=t.host||null,n._foreignProxy=null,n}var Wn=n(824),Bn=n(893),Hn=n(777);function zn(e){return t=e,!Array.isArray(t);var t}function Kn(e){return"string"==typeof e}function Un(e){return!Kn(e)}function qn(e){return!e}function Gn(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function Yn(e){return e.replace(/[&<>'"_]/g,"-")}function Zn(e,t){return new Error(e.languageId+": "+t)}function $n(e,t,n,o,i){var r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,a,s,l,c,u,d,h,p){return qn(s)?qn(l)?!qn(c)&&c<o.length?Gn(e,o[c]):!qn(d)&&e&&"string"==typeof e[d]?e[d]:(null===r&&(r=i.split(".")).unshift(i),!qn(u)&&u<r.length?Gn(e,r[u]):""):Gn(e,n):"$"}))}function Xn(e,t){for(var n=t;n&&0<n.length;){var o=e.tokenizer[n];if(o)return o;var i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}return null}var Jn=(Qn.create=function(e,t){return this._INSTANCE.create(e,t)},Qn.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new eo(e,t);var n=eo.getStackElementId(e);0<n.length&&(n+="|"),n+=t;var o=this._entries[n];return o||(o=new eo(e,t),this._entries[n]=o)},Qn._INSTANCE=new Qn(5),Qn);function Qn(e){this._maxCacheDepth=e,this._entries=Object.create(null)}var eo=(to.getStackElementId=function(e){for(var t="";null!==e;)0<t.length&&(t+="|"),t+=e.state,e=e.parent;return t},to._equals=function(e,t){for(;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},to.prototype.equals=function(e){return to._equals(this,e)},to.prototype.push=function(e){return Jn.create(this,e)},to.prototype.pop=function(){return this.parent},to.prototype.popall=function(){for(var e=this;e.parent;)e=e.parent;return e},to.prototype.switchTo=function(e){return Jn.create(this.parent,e)},to);function to(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}var no=(oo.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},oo.prototype.clone=function(){return this.state.clone()===this.state?this:new oo(this.modeId,this.state)},oo);function oo(e,t){this.modeId=e,this.state=t}var io=(ro.create=function(e,t){return this._INSTANCE.create(e,t)},ro.prototype.create=function(e,t){if(null!==t)return new ao(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new ao(e,t);var n=eo.getStackElementId(e),o=this._entries[n];return o||(o=new ao(e,null),this._entries[n]=o)},ro._INSTANCE=new ro(5),ro);function ro(e){this._maxCacheDepth=e,this._entries=Object.create(null)}var ao=(so.prototype.clone=function(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:io.create(this.stack,this.embeddedModeData)},so.prototype.equals=function(e){return e instanceof so&&!!this.stack.equals(e.stack)&&(null===this.embeddedModeData&&null===e.embeddedModeData||null!==this.embeddedModeData&&null!==e.embeddedModeData&&this.embeddedModeData.equals(e.embeddedModeData))},so);function so(e,t){this.stack=e,this.embeddedModeData=t}var lo=(co.prototype.enterMode=function(e,t){this._language=t},co.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new Se.a(e,t,this._language)))},co.prototype.nestedModeTokenize=function(e,t,n){var o=t.modeId,i=t.state,r=Qe.B.get(o);if(!r)return this.enterMode(n,o),this.emit(n,""),i;var a=r.tokenize(e,i,n);return this._tokens=this._tokens.concat(a.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,a.endState},co.prototype.finalize=function(e){return new Se.b(this._tokens,e)},co);function co(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}var uo=(ho.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},ho.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))},ho._merge=function(e,t,n){var o=null!==e?e.length:0,i=t.length,r=null!==n?n.length:0;if(0===o&&0===i&&0===r)return new Uint32Array(0);if(0===o&&0===i)return n;if(0===i&&0===r)return e;var a=new Uint32Array(o+i+r);null!==e&&a.set(e);for(var s=0;s<i;s++)a[o+s]=t[s];return null!==n&&a.set(n,o+i),a},ho.prototype.nestedModeTokenize=function(e,t,n){var o=t.modeId,i=t.state,r=Qe.B.get(o);if(!r)return this.enterMode(n,o),this.emit(n,""),i;var a=r.tokenize2(e,i,n);return this._prependTokens=ho._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState},ho.prototype.finalize=function(e){return new Se.c(ho._merge(this._prependTokens,this._tokens,null),e)},ho);function ho(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}var po=(fo.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},fo.prototype.getLoadStatus=function(){var e=[];for(var t in this._embeddedModes){var n=Qe.B.get(t);if(n){if(n instanceof fo){var o=n.getLoadStatus();!1===o.loaded&&e.push(o.promise)}}else{var i=Qe.B.getPromise(t);i&&e.push(i)}}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((function(e){}))}},fo.prototype.getInitialState=function(){var e=Jn.create(null,this._lexer.start);return io.create(e,null)},fo.prototype.tokenize=function(e,t,n){var o=new lo,i=this._tokenize(e,t,n,o);return o.finalize(i)},fo.prototype.tokenize2=function(e,t,n){var o=new uo(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),i=this._tokenize(e,t,n,o);return o.finalize(i)},fo.prototype._tokenize=function(e,t,n,o){return t.embeddedModeData?this._nestedTokenize(e,t,n,o):this._myTokenize(e,t,n,o)},fo.prototype._findLeavingNestedModeOffset=function(e,t){var n=this._lexer.tokenizer[t.stack.state];if(!n&&!(n=Xn(this._lexer,t.stack.state)))throw Zn(this._lexer,"tokenizer state is not defined: "+t.stack.state);for(var o=-1,i=!1,r=0,a=n;r<a.length;r++){var s=a[r];if(Un(s.action)&&"@pop"===s.action.nextEmbedded){i=!0;var l=s.regex,c=s.regex.source;"^(?:"===c.substr(0,4)&&")"===c.substr(c.length-1,1)&&(l=new RegExp(c.substr(4,c.length-5),l.ignoreCase?"i":""));var u=e.search(l);-1===u||0!==u&&s.matchOnlyAtLineStart||(-1===o||u<o)&&(o=u)}}if(!i)throw Zn(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return o},fo.prototype._nestedTokenize=function(e,t,n,o){var i=this._findLeavingNestedModeOffset(e,t);if(-1===i){var r=o.nestedModeTokenize(e,t.embeddedModeData,n);return io.create(t.stack,new no(t.embeddedModeData.modeId,r))}var a=e.substring(0,i);0<a.length&&o.nestedModeTokenize(a,t.embeddedModeData,n);var s=e.substring(i);return this._myTokenize(s,t,n+i,o)},fo.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},fo.prototype._myTokenize=function(e,t,n,o){o.enterMode(n,this._modeId);for(var i=e.length,r=t.embeddedModeData,a=t.stack,s=0,l=null,c=!0;c||s<i;){var u=s,d=a.depth,h=l?l.groups.length:0,p=a.state,f=null,g=null,m=null,v=null,y=null;if(l){f=l.matches;var b=l.groups.shift();g=b.matched,m=b.action,v=l.rule,0===l.groups.length&&(l=null)}else{if(!c&&i<=s)break;c=!1;var _=this._lexer.tokenizer[p];if(!_&&!(_=Xn(this._lexer,p)))throw Zn(this._lexer,"tokenizer state is not defined: "+p);for(var w=e.substr(s),C=0,S=_;C<S.length;C++){var O=S[C];if((0===s||!O.matchOnlyAtLineStart)&&(f=w.match(O.regex))){g=f[0],m=O.action;break}}}if(f||(f=[""],g=""),m||(s<i&&(g=(f=[e.charAt(s)])[0]),m=this._lexer.defaultToken),null===g)break;for(s+=g.length;zn(m)&&Un(m)&&m.test;)m=m.test(g,f,p,s===i);var x=null;if("string"==typeof m||Array.isArray(m))x=m;else if(m.group)x=m.group;else if(null!==m.token&&void 0!==m.token){if(x=m.tokenSubst?$n(this._lexer,m.token,g,f,p):m.token,m.nextEmbedded)if("@pop"===m.nextEmbedded){if(!r)throw Zn(this._lexer,"cannot pop embedded mode if not inside one");r=null}else{if(r)throw Zn(this._lexer,"cannot enter embedded mode from within an embedded mode");y=$n(this._lexer,m.nextEmbedded,g,f,p)}if(m.goBack&&(s=Math.max(0,s-m.goBack)),m.switchTo&&"string"==typeof m.switchTo){if("@"===(E=$n(this._lexer,m.switchTo,g,f,p))[0]&&(E=E.substr(1)),!Xn(this._lexer,E))throw Zn(this._lexer,"trying to switch to a state '"+E+"' that is undefined in rule: "+this._safeRuleName(v));a=a.switchTo(E)}else{if(m.transform&&"function"==typeof m.transform)throw Zn(this._lexer,"action.transform not supported");if(m.next)if("@push"===m.next){if(a.depth>=this._lexer.maxStack)throw Zn(this._lexer,"maximum tokenizer stack size reached: ["+a.state+","+a.parent.state+",...]");a=a.push(p)}else if("@pop"===m.next){if(a.depth<=1)throw Zn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(v));a=a.pop()}else if("@popall"===m.next)a=a.popall();else{var E;if("@"===(E=$n(this._lexer,m.next,g,f,p))[0]&&(E=E.substr(1)),!Xn(this._lexer,E))throw Zn(this._lexer,"trying to set a next state '"+E+"' that is undefined in rule: "+this._safeRuleName(v));a=a.push(E)}}m.log&&"string"==typeof m.log&&(this._lexer,this._lexer.languageId,$n(this._lexer,m.log,g,f,p))}if(null===x)throw Zn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(v));if(Array.isArray(x)){if(l&&0<l.groups.length)throw Zn(this._lexer,"groups cannot be nested: "+this._safeRuleName(v));if(f.length!==x.length+1)throw Zn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(v));for(var k=0,N=1;N<f.length;N++)k+=f[N].length;if(k!==g.length)throw Zn(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(v));for(l={rule:v,matches:f,groups:[]},N=0;N<x.length;N++)l.groups[N]={action:x[N],matched:f[N+1]};s-=g.length}else{if("@rematch"===x&&(s-=g.length,f=null,x=g=""),0===g.length){if(0===i||d!==a.depth||p!==a.state||(l?l.groups.length:0)!==h)continue;throw Zn(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(v))}var D=null;if(Kn(x)&&0===x.indexOf("@brackets")){var L=x.substr("@brackets".length),P=go(this._lexer,g);if(!P)throw Zn(this._lexer,"@brackets token returned but no bracket defined as: "+g);D=Yn(P.token+L)}else D=Yn(""===x?"":x+this._lexer.tokenPostfix);if(o.emit(u+n,D),null!==y){var I=this._modeService.getModeIdForLanguageName(y);I&&(y=I);var T=this._getNestedEmbeddedModeData(y);return s<i?(w=e.substr(s),this._nestedTokenize(w,io.create(a,T),n+s,o)):io.create(a,T)}}}return io.create(a,r)},fo.prototype._getNestedEmbeddedModeData=function(e){var t=this._locateMode(e);if(t){var n=Qe.B.get(t);if(n)return new no(t,n.getInitialState())}return new no(t||et.b,et.c)},fo.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},fo);function fo(e,t,n,o){var i=this;this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=o,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var r=!1;this._tokenizationRegistryListener=Qe.B.onDidChange((function(e){if(!r){for(var t=!1,n=0,o=e.changedLanguages.length;n<o;n++){var a=e.changedLanguages[n];if(i._embeddedModes[a]){t=!0;break}}t&&(r=!0,Qe.B.fire([i._modeId]),r=!1)}}))}function go(e,t){if(!t)return null;t=Gn(e,t);for(var n=0,o=e.brackets;n<o.length;n++){var i=o[n];if(i.open===t)return{token:i.token,bracketType:1};if(i.close===t)return{token:i.token,bracketType:-1}}return null}var mo=(vo.colorizeElement=function(e,t,n,o){var i=(o=o||{}).theme||"vs",r=o.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!r)return Promise.resolve();e.setTheme(i);var a=n.firstChild?n.firstChild.nodeValue:"";return n.className+=" "+i,this.colorize(t,a||"",r,o).then((function(e){n.innerHTML=e}),(function(e){}))},vo.colorize=function(e,t,n,o){var i=4;o&&"number"==typeof o.tabSize&&(i=o.tabSize),Ot.P(t)&&(t=t.substr(1));var r=t.split(/\r\n|\r|\n/),a=e.getModeId(n);if(!a)return Promise.resolve(bo(r,i));e.triggerMode(a);var s=Qe.B.get(a);if(s)return yo(r,i,s);var l=Qe.B.getPromise(a);return new Promise(l?function(e,t){l.then((function(n){yo(r,i,n).then(e,t)}),t)}:function(e,t){function n(){o&&(o.dispose(),o=null),s&&(s.dispose(),s=null);var n=Qe.B.get(a);n?yo(r,i,n).then(e,t):e(bo(r,i))}var o=null,s=null;(s=new ot.e).cancelAndSet(n,500),o=Qe.B.onDidChange((function(e){0<=e.changedLanguages.indexOf(a)&&n()}))})},vo.colorizeLine=function(e,t,n,o,i){void 0===i&&(i=4);var r=Hn.d.isBasicASCII(e,t),a=Hn.d.containsRTL(e,r,n);return Object(Bn.e)(new Bn.c(!1,!0,e,!1,r,a,0,o,[],i,0,0,0,-1,"none",!1,!1,null)).html},vo.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var o=e.getLineContent(t);e.forceTokenization(t);var i=e.getLineTokens(t).inflate();return this.colorizeLine(o,e.mightContainNonBasicASCII(),e.mightContainRTL(),i,n)},vo);function vo(){}function yo(e,t,n){return new Promise((function(o,i){!function r(){var a=function(e,t,n){for(var o=[],i=n.getInitialState(),r=0,a=e.length;r<a;r++){var s=e[r],l=n.tokenize2(s,i,0);Wn.a.convertToEndOffset(l.tokens,s.length);var c=new Wn.a(l.tokens,s),u=Hn.d.isBasicASCII(s,!0),d=Hn.d.containsRTL(s,u,!0),h=Object(Bn.e)(new Bn.c(!1,!0,s,!1,u,d,0,c.inflate(),[],t,0,0,0,-1,"none",!1,!1,null));(o=o.concat(h.html)).push("<br/>"),i=l.endState}return o.join("")}(e,t,n);if(n instanceof po){var s=n.getLoadStatus();if(!1===s.loaded)return void s.promise.then(r,i)}o(a)}()}))}function bo(e,t){var n=[],o=new Uint32Array(2);o[0]=0,o[1]=16793600;for(var i=0,r=e.length;i<r;i++){var a=e[i];o[0]=a.length;var s=new Wn.a(o,a),l=Hn.d.isBasicASCII(a,!0),c=Hn.d.containsRTL(a,l,!0),u=Object(Bn.e)(new Bn.c(!1,!0,a,!1,l,c,0,s,[],t,0,0,0,-1,"none",!1,!1,null));(n=n.concat(u.html)).push("<br/>")}return n.join("")}var _o,wo=n(701),Co=n(889),So=n(892),Oo=n(945),xo=n(704),Eo=n(573),ko=n(553),No=n(505),Do=n(789),Lo=(_o=function(e,t){return(_o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}_o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Po=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},Io=(Object.defineProperty(To.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),To.prototype.isEmpty=function(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length},To.prototype.getValue=function(e){return e?Object(Eo.d)(this.contents,e):this.contents},To.prototype.getOverrideValue=function(e,t){var n=this.getContentsForOverrideIdentifer(t);return n?e?Object(Eo.d)(n,e):n:void 0},To.prototype.override=function(e){var t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;for(var n={},o=0,i=wt.e(Po(Object.keys(this.contents),Object.keys(t)));o<i.length;o++){var r=i[o],a=this.contents[r],s=t[r];s&&("object"==typeof a&&"object"==typeof s?(a=No.c(a),this.mergeContents(a,s)):a=s),n[r]=a}return new To(n,this.keys,this.overrides)},To.prototype.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=No.c(this.contents),o=No.c(this.overrides),i=Po(this.keys),r=0,a=e;r<a.length;r++){var s=a[r];this.mergeContents(n,s.contents);for(var l=function(e){var t=o.filter((function(t){return wt.g(t.identifiers,e.identifiers)}))[0];t?c.mergeContents(t.contents,e.contents):o.push(No.c(e))},c=this,u=0,d=s.overrides;u<d.length;u++)l(d[u]);for(var h=0,p=s.keys;h<p.length;h++){var f=p[h];-1===i.indexOf(f)&&i.push(f)}}return new To(n,i,o)},To.prototype.freeze=function(){return this.isFrozen=!0,this},To.prototype.mergeContents=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var i=o[n];i in e&&st.i(e[i])&&st.i(t[i])?this.mergeContents(e[i],t[i]):e[i]=No.c(t[i])}},To.prototype.checkAndFreeze=function(e){return this.isFrozen&&!Object.isFrozen(e)?No.d(e):e},To.prototype.getContentsForOverrideIdentifer=function(e){for(var t=0,n=this.overrides;t<n.length;t++){var o=n[t];if(-1!==o.identifiers.indexOf(e))return o.contents}return null},To.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},To.prototype.setValue=function(e,t){this.addKey(e),Object(Eo.b)(this.contents,e,t,(function(e){throw new Error(e)}))},To.prototype.removeValue=function(e){this.removeKey(e)&&Object(Eo.h)(this.contents,e)},To.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)},To.prototype.removeKey=function(e){var t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)},To);function To(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}var Mo,jo=(Lo(Ro,Mo=Io),Ro);function Ro(){for(var e=Object(Eo.e)(),t=Object(Eo.c)(),n=[],o=0,i=Object.keys(e);o<i.length;o++){var r=i[o];Do.b.test(r)&&n.push({identifiers:[Object(Eo.g)(r).trim()],keys:Object.keys(e[r]),contents:Object(Eo.i)(e[r],(function(e){}))})}return Mo.call(this,e,t,n)||this}var Ao=(Fo.prototype.getValue=function(e,t,n){return this.getConsolidateConfigurationModel(t,n).getValue(e)},Fo.prototype.updateValue=function(e,t,n){var o;void 0===n&&(n={}),n.resource?(o=this._memoryConfigurationByResource.get(n.resource))||(o=new Io,this._memoryConfigurationByResource.set(n.resource,o)):o=this._memoryConfiguration,void 0===t?o.removeValue(e):o.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)},Fo.prototype.inspect=function(e,t,n){var o=this.getConsolidateConfigurationModel(t,n),i=this.getFolderConfigurationModelForResource(t.resource,n),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,a=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),s=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.userConfiguration.freeze().getValue(e),l=t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.localUserConfiguration.freeze().getValue(e),c=t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.remoteUserConfiguration.freeze().getValue(e),u=n?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,d=i?t.overrideIdentifier?i.freeze().override(t.overrideIdentifier).getValue(e):i.freeze().getValue(e):void 0,h=t.overrideIdentifier?r.override(t.overrideIdentifier).getValue(e):r.getValue(e),p=o.getValue(e),f=wt.e(wt.m(o.overrides.map((function(e){return e.identifiers})))).filter((function(t){return void 0!==o.getOverrideValue(e,t)}));return{defaultValue:a,userValue:s,userLocalValue:l,userRemoteValue:c,workspaceValue:u,workspaceFolderValue:d,memoryValue:h,value:p,default:void 0!==a?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:void 0!==s?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:void 0!==l?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:void 0!==c?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:void 0!==u?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:void 0!==d?{value:null==i?void 0:i.freeze().getValue(e),override:t.overrideIdentifier&&null!=i?i.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:void 0!==h?{value:r.getValue(e),override:t.overrideIdentifier?r.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:f.length?f:void 0}},Object.defineProperty(Fo.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(Fo.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(Fo.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),Fo.prototype.getConsolidateConfigurationModel=function(e,t){var n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n},Fo.prototype.getConsolidatedConfigurationModelForResource=function(e,t){var n=e.resource,o=this.getWorkspaceConsolidatedConfiguration();if(t&&n){var i=t.getFolder(n);i&&(o=this.getFolderConsolidatedConfiguration(i.uri)||o);var r=this._memoryConfigurationByResource.get(n);r&&(o=o.merge(r))}return o},Fo.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},Fo.prototype.getFolderConsolidatedConfiguration=function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){var n=this.getWorkspaceConsolidatedConfiguration(),o=this._folderConfigurations.get(e);o?(t=n.merge(o),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t},Fo.prototype.getFolderConfigurationModelForResource=function(e,t){if(t&&e){var n=t.getFolder(e);if(n)return this._folderConfigurations.get(n.uri)}},Fo);function Fo(e,t,n,o,i,r,a,s){void 0===n&&(n=new Io),void 0===o&&(o=new Io),void 0===i&&(i=new ko.b),void 0===r&&(r=new Io),void 0===a&&(a=new ko.b),void 0===s&&(s=!0),this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=n,this._workspaceConfiguration=o,this._folderConfigurations=i,this._memoryConfiguration=r,this._memoryConfigurationByResource=a,this._freeze=s,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new ko.b,this._userConfiguration=null}var Vo,Wo,Bo=n(445),Ho=((Vo=function(e,t){return(Vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Vo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(zo,Wo=it.a),Object.defineProperty(zo.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:ve.b.None},enumerable:!0,configurable:!0}),zo.prototype.dispose=function(){Wo.prototype.dispose.call(this)},zo.prototype.getKeybindings=function(){return this._getResolver().getKeybindings()},zo.prototype.lookupKeybinding=function(e){var t=this._getResolver().lookupPrimaryKeybinding(e);if(t)return t.resolvedKeybinding},zo.prototype.softDispatch=function(e,t){var n=this.resolveKeyboardEvent(e);if(n.isChord())return null;var o=n.getDispatchParts()[0];if(null===o)return null;var i=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(i,r,o)},zo.prototype._enterChordMode=function(e,t){var n=this;this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(Bo.a("first.chord","({0}) was pressed. Waiting for second key of chord...",t));var o=Date.now();this._currentChordChecker.cancelAndSet((function(){(!n._documentHasFocus()||5e3<Date.now()-o)&&n._leaveChordMode()}),500)},zo.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},zo.prototype._dispatch=function(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)},zo.prototype._doDispatch=function(e,t){var n=this,o=!1;if(e.isChord())return!1;var i=e.getDispatchParts()[0];if(null===i)return o;var r=this._contextKeyService.getContext(t),a=this._currentChord?this._currentChord.keypress:null,s=e.getLabel(),l=this._getResolver().resolve(r,a,i);return l&&l.enterChord?(o=!0,this._enterChordMode(i,s)):(this._currentChord&&(l&&l.commandId||(this._notificationService.status(Bo.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,s),{hideAfter:1e4}),o=!0)),this._leaveChordMode(),l&&l.commandId&&(l.bubble||(o=!0),void 0===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"}))),o},zo.prototype.mightProducePrintableCharacter=function(e){return!e.ctrlKey&&!e.metaKey&&(31<=e.keyCode&&e.keyCode<=56||21<=e.keyCode&&e.keyCode<=30)},zo);function zo(e,t,n,o){var i=Wo.call(this)||this;return i._contextKeyService=e,i._commandService=t,i._telemetryService=n,i._notificationService=o,i._onDidUpdateKeybindings=i._register(new ve.a),i._currentChord=null,i._currentChordChecker=new ot.c,i._currentChordStatusMessage=null,i}var Ko=n(456),Uo=(qo._isTargetedForRemoval=function(e,t,n,o,i){if(e.command!==o)return!1;if(t&&e.keypressParts[0]!==t)return!1;if(n&&e.keypressParts[1]!==n)return!1;if(i){if(!e.when)return!1;if(!i.equals(e.when))return!1}return!0},qo.combine=function(e,t){e=e.slice(0);for(var n=[],o=0,i=t;o<i.length;o++){var r=i[o];if(r.command&&0!==r.command.length&&"-"===r.command.charAt(0))for(var a=r.command.substr(1),s=r.keypressParts[0],l=r.keypressParts[1],c=r.when,u=e.length-1;0<=u;u--)this._isTargetedForRemoval(e[u],s,l,a,c)&&e.splice(u,1);else n.push(r)}return e.concat(n)},qo.prototype._addKeyPress=function(e,t){var n=this._map.get(e);if(void 0===n)return this._map.set(e,[t]),void this._addToLookupMap(t);for(var o=n.length-1;0<=o;o--){var i=n[o];if(i.command!==t.command){var r=1<i.keypressParts.length,a=1<t.keypressParts.length;r&&a&&i.keypressParts[1]!==t.keypressParts[1]||qo.whenIsEntirelyIncluded(i.when,t.when)&&this._removeFromLookupMap(i)}}n.push(t),this._addToLookupMap(t)},qo.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);void 0===t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}},qo.prototype._removeFromLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);if(void 0!==t)for(var n=0,o=t.length;n<o;n++)if(t[n]===e)return void t.splice(n,1)}},qo.whenIsEntirelyIncluded=function(e,t){return!t||!!e&&this._implies(e,t)},qo._implies=function(e,t){for(var n=function(e){return e instanceof Ko.b?e.expr:[e]},o=n(e.negate()).concat(n(t)),i=0;i<o.length;i++)for(var r=o[i].negate(),a=i+1;a<o.length;a++){var s=o[a];if(r.equals(s))return!0}return!1},qo.prototype.getKeybindings=function(){return this._keybindings},qo.prototype.lookupPrimaryKeybinding=function(e){var t=this._lookupMap.get(e);return void 0===t||0===t.length?null:t[t.length-1]},qo.prototype.resolve=function(e,t,n){var o=null;if(null!==t){if(void 0===(s=this._map.get(t)))return null;o=[];for(var i=0,r=s.length;i<r;i++){var a=s[i];a.keypressParts[1]===n&&o.push(a)}}else{var s;if(void 0===(s=this._map.get(n)))return null;o=s}var l=this._findCommand(e,o);return l?null===t&&1<l.keypressParts.length&&null!==l.keypressParts[1]?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:l.command,commandArgs:l.commandArgs,bubble:l.bubble}:null},qo.prototype._findCommand=function(e,t){for(var n=t.length-1;0<=n;n--){var o=t[n];if(qo.contextMatchesRules(e,o.when))return o}return null},qo.contextMatchesRules=function(e,t){return!t||t.evaluate(e)},qo);function qo(e,t){this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(var n=0,o=e.length;n<o;n++){var i=e[n].command;i&&this._defaultBoundCommands.set(i,!0)}for(this._map=new Map,this._lookupMap=new Map,this._keybindings=qo.combine(e,t),n=0,o=this._keybindings.length;n<o;n++){var r=this._keybindings[n];0!==r.keypressParts.length&&this._addKeyPress(r.keypressParts[0],r)}}var Go,Yo,Zo=n(788),$o=function(e,t,n,o,i){this.resolvedKeybinding=e,this.keypressParts=e?function(e){for(var t=[],n=0,o=e.length;n<o;n++){var i=e[n];if(!i)return t;t.push(i)}return t}(e.getDispatchParts()):[],this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=o,this.isDefault=i},Xo=n(1092),Jo=((Go=function(e,t){return(Go=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Go(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Qo,Yo=ye.c),Qo.prototype.getLabel=function(){var e=this;return Xo.b.toLabel(this._os,this._parts,(function(t){return e._getLabel(t)}))},Qo.prototype.getAriaLabel=function(){var e=this;return Xo.a.toLabel(this._os,this._parts,(function(t){return e._getAriaLabel(t)}))},Qo.prototype.isChord=function(){return 1<this._parts.length},Qo.prototype.getParts=function(){var e=this;return this._parts.map((function(t){return e._getPart(t)}))},Qo.prototype._getPart=function(e){return new ye.d(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))},Qo.prototype.getDispatchParts=function(){var e=this;return this._parts.map((function(t){return e._getDispatchPart(t)}))},Qo);function Qo(e,t){var n=Yo.call(this)||this;if(0===t.length)throw Object(rt.b)("parts");return n._os=e,n._parts=t,n}var ei,ti,ni=((ei=function(e,t){return(ei=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ei(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(oi,ti=Jo),oi.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return ye.b.toString(e)},oi.prototype._getLabel=function(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)},oi.prototype._getAriaLabel=function(e){return e.isDuplicateModifierCase()?"":ye.b.toString(e.keyCode)},oi.prototype._getDispatchPart=function(e){return oi.getDispatchStr(e)},oi.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+ye.b.toString(e.keyCode)},oi);function oi(e,t){return ti.call(this,t,e.parts)||this}var ii,ri=n(532),ai=n(963),si=n(754),li=(ii=function(e,t){return(ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ii(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ci=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},ui=(Object.defineProperty(di.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),di.prototype.dispose=function(){this._onDispose.fire()},di);function di(e){this.model=e,this._onDispose=new ve.a}var hi=(pi.prototype.setEditor=function(e){this.editor=e},pi.prototype.createModelReference=function(e){var t,n,o,i=this,r=null;return this.editor&&(t=this.editor,n=function(t){return i.findModel(t,e)},o=function(t){return i.findModel(t.getOriginalEditor(),e)||i.findModel(t.getModifiedEditor(),e)},r=(Object(So.a)(t)?n:o)(t)),r?Promise.resolve(new it.c(new ui(r))):Promise.reject(new Error("Model not found"))},pi.prototype.findModel=function(e,t){var n=this.modelService?this.modelService.getModel(t):e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},pi);function pi(e){this.modelService=e}var fi=(gi.prototype.show=function(){return gi.NULL_PROGRESS_RUNNER},gi.prototype.showWhile=function(e,t){return Promise.resolve(void 0)},gi.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},gi);function gi(){}var mi=function(){},vi=(yi.prototype.info=function(e){return this.notify({severity:Co.a.Info,message:e})},yi.prototype.warn=function(e){return this.notify({severity:Co.a.Warning,message:e})},yi.prototype.error=function(e){return this.notify({severity:Co.a.Error,message:e})},yi.prototype.notify=function(e){switch(e.severity){case Co.a.Error:case Co.a.Warning:}return yi.NO_OP},yi.prototype.status=function(e,t){return it.a.None},yi.NO_OP=new ri.b,yi);function yi(){}var bi=(_i.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,Object(it.h)((function(){delete t._dynamicCommands[n]}))},_i.prototype.executeCommand=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=je.a.getCommand(e)||this._dynamicCommands[e];if(!o)return Promise.reject(new Error("command '"+e+"' not found"));try{this._onWillExecuteCommand.fire({commandId:e,args:t});var i=this._instantiationService.invokeFunction.apply(this._instantiationService,ci([o.handler],t));return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(i)}catch(e){return Promise.reject(e)}},_i);function _i(e){this._onWillExecuteCommand=new ve.a,this._onDidExecuteCommand=new ve.a,this._instantiationService=e,this._dynamicCommands=Object.create(null)}var wi,Ci=(li(Si,wi=Ho),Si.prototype.addDynamicKeybinding=function(e,t,n,o){var i=this,r=Object(ye.f)(t,at.a),a=new it.b;r&&(this._dynamicKeybindings.push({keybinding:r,command:e,when:o,weight1:1e3,weight2:0}),a.add(Object(it.h)((function(){for(var t=0;t<i._dynamicKeybindings.length;t++)if(i._dynamicKeybindings[t].command===e)return i._dynamicKeybindings.splice(t,1),void i.updateResolver({source:1})}))));var s=this._commandService;if(!(s instanceof bi))throw new Error("Unknown command service!");return a.add(s.addCommand({id:e,handler:n})),this.updateResolver({source:1}),a},Si.prototype.updateResolver=function(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e)},Si.prototype._getResolver=function(){if(!this._cachedResolver){var e=this._toNormalizedKeybindingItems(Zo.a.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Uo(e,t)}return this._cachedResolver},Si.prototype._documentHasFocus=function(){return document.hasFocus()},Si.prototype._toNormalizedKeybindingItems=function(e,t){for(var n=[],o=0,i=0,r=e;i<r.length;i++){var a=r[i],s=a.when||void 0,l=a.keybinding;if(l)for(var c=0,u=this.resolveKeybinding(l);c<u.length;c++){var d=u[c];n[o++]=new $o(d,a.command,a.commandArgs,s,t)}else n[o++]=new $o(void 0,a.command,a.commandArgs,s,t)}return n},Si.prototype.resolveKeybinding=function(e){return[new ni(e,at.a)]},Si.prototype.resolveKeyboardEvent=function(e){var t=new ye.e(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new ni(t,at.a)},Si);function Si(e,t,n,o,i){var r=wi.call(this,e,t,n,o)||this;return r._cachedResolver=null,r._dynamicKeybindings=[],r._register(Le.j(i,Le.d.KEY_DOWN,(function(e){var t=new wo.a(e);r._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),r}function Oi(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof be.a)}var xi=(Ei.prototype.configuration=function(){return this._configuration},Ei.prototype.getValue=function(e,t){var n="string"==typeof e?e:void 0,o=Oi(e)?e:Oi(t)?t:{};return this.configuration().getValue(n,o,void 0)},Ei.prototype.updateValue=function(e,t,n,o){return this.configuration().updateValue(e,t),Promise.resolve()},Ei.prototype.inspect=function(e,t){return void 0===t&&(t={}),this.configuration().inspect(e,t,void 0)},Ei);function Ei(){this._onDidChangeConfiguration=new ve.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Ao(new jo,new Io)}var ki=(Ni.prototype.getValue=function(e,t,n){var o=_e.a.isIPosition(t)&&t?"string"==typeof n?n:void 0:"string"==typeof t?t:void 0;return void 0===o?this.configurationService.getValue():this.configurationService.getValue(o)},Ni);function Ni(e){var t=this;this.configurationService=e,this._onDidChangeConfiguration=new ve.a,this.configurationService.onDidChangeConfiguration((function(e){t._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:function(t,n){return e.affectsConfiguration(n)}})}))}var Di=(Li.prototype.getEOL=function(e,t){var n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"auto"!==n?n:at.d||at.e?"\n":"\r\n"},Li=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(0,Eo.a)],Li));function Li(e){this.configurationService=e}var Pi=(Ii.prototype.publicLog=function(e,t){return Promise.resolve(void 0)},Ii.prototype.publicLog2=function(e,t){return this.publicLog(e,t)},Ii);function Ii(){}var Ti=(Mi.prototype.getWorkspace=function(){return this.workspace},Mi.prototype.getWorkspaceFolder=function(e){return e&&e.scheme===Mi.SCHEME?this.workspace.folders[0]:null},Mi.SCHEME="inmemory",Mi);function Mi(){var e=be.a.from({scheme:Mi.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new ai.b({uri:e,name:"",index:0})]}}function ji(e,t,n){t&&e instanceof xi&&Object.keys(t).forEach((function(o){Object(Oo.d)(o)&&e.updateValue("editor."+o,t[o]),n&&Object(Oo.c)(o)&&e.updateValue("diffEditor."+o,t[o])}))}var Ri=(Ai.prototype.hasPreviewHandler=function(){return!1},Ai.prototype.apply=function(e,t){var n=new Map;if(e.edits)for(var o=0,i=e.edits;o<i.length;o++){var r=i[o];if(!Qe.D.is(r))return Promise.reject(new Error("bad edit - only text edits are supported"));var a=this._modelService.getModel(r.resource);if(!a)return Promise.reject(new Error("bad edit - model not found"));var s=n.get(a);s||(s=[],n.set(a,s)),s.push(r.edit)}var l=0,c=0;return n.forEach((function(e,t){t.pushStackElement(),t.pushEditOperations([],e.map((function(e){return xo.a.replaceMove(we.a.lift(e.range),e.text)})),(function(){return[]})),t.pushStackElement(),c+=1,l+=e.length})),Promise.resolve({selection:void 0,ariaSummary:Ot.r(si.f.bulkEditServiceSummary,l,c)})},Ai);function Ai(e){this._modelService=e}var Fi=(Vi.prototype.getUriLabel=function(e,t){return"file"===e.scheme?e.fsPath:e.path},Vi);function Vi(){}var Wi=(Object.defineProperty(Bi.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),Bi);function Bi(e){this._container=e,this.onLayout=ve.b.None}var Hi,zi,Ki=n(478),Ui=n(635),qi=n(930),Gi=n(1273),Yi=n(1089),Zi=n(827),$i=n(755),Xi=n(757),Ji=n(448),Qi=n(531),er=n(451),tr=n(759),nr=n(955),or=n(774),ir=function(e,t){function n(){this.constructor=e}Hi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},rr=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},ar=function(e,t){return function(n,o){t(n,o,e)}},sr=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},lr=0,cr=!(Hi=function(e,t){return(Hi=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)}),ur=(ir(dr,zi=qi.a),dr.prototype.addCommand=function(e,t,n){if(!this._standaloneKeybindingService)return null;var o="DYNAMIC_"+ ++lr,i=Ko.a.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(o,e,t,i),o},dr.prototype.createContextKey=function(e,t){return this._contextKeyService.createKey(e,t)},dr.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 it.a.None;function n(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return Promise.resolve(e.run.apply(e,sr([t],o)))}var o=e.id,i=e.label,r=Ko.a.and(Ko.a.equals("editorId",this.getId()),Ko.a.deserialize(e.precondition)),a=e.keybindings,s=Ko.a.and(r,Ko.a.deserialize(e.keybindingContext)),l=e.contextMenuGroupId||null,c=e.contextMenuOrder||0,u=new it.b,d=this.getId()+":"+o;if(u.add(je.a.registerCommand(d,n)),l){var h={command:{id:d,title:i},when:r,group:l,order:c};u.add($i.c.appendMenuItem(7,h))}if(Array.isArray(a))for(var p=0,f=a;p<f.length;p++){var g=f[p];u.add(this._standaloneKeybindingService.addDynamicKeybinding(d,g,n,s))}var m=new Yi.a(d,i,i,r,n,this._contextKeyService);return this._actions[o]=m,u.add(Object(it.h)((function(){delete t._actions[o]}))),u},dr=rr([ar(2,Ji.a),ar(3,De.a),ar(4,je.b),ar(5,Ko.c),ar(6,Qi.a),ar(7,er.c),ar(8,ri.a),ar(9,tr.b)],dr));function dr(e,t,n,o,i,r,a,s,l,c){var u=this;return(t=t||{}).ariaLabel=t.ariaLabel||si.g.editorViewAccessibleLabel,t.ariaLabel=t.ariaLabel+";"+(Ki.i?si.g.accessibilityHelpMessageIE:si.g.accessibilityHelpMessage),(u=zi.call(this,e,t,{},n,o,i,r,s,l,c)||this)._standaloneKeybindingService=a instanceof Ci?a:null,cr||(cr=!0,Ui.b(document.body)),u}var hr,pr=(ir(fr,hr=ur),fr.prototype.dispose=function(){hr.prototype.dispose.call(this)},fr.prototype.updateOptions=function(e){ji(this._configurationService,e,!1),hr.prototype.updateOptions.call(this,e)},fr.prototype._attachModel=function(e){hr.prototype._attachModel.call(this,e),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},fr.prototype._postDetachModelCleanup=function(e){hr.prototype._postDetachModelCleanup.call(this,e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)},fr=rr([ar(3,Ji.a),ar(4,De.a),ar(5,je.b),ar(6,Ko.c),ar(7,Qi.a),ar(8,Xi.b),ar(9,Zi.a),ar(10,ri.a),ar(11,Eo.a),ar(12,tr.b)],fr));function fr(e,t,n,o,i,r,a,s,l,c,u,d,h){var p=this;ji(d,t,!1);var f=c.registerEditorContainer(e);"string"==typeof(t=t||{}).theme&&c.setTheme(t.theme);var g,m=t.model;if(delete t.model,(p=hr.call(this,e,t,o,i,r,a,s,c,u,h)||this)._contextViewService=l,p._configurationService=d,p._register(n),p._register(f),void 0===m?(g=self.monaco.editor.createModel(t.value||"",t.language||"text/plain"),p._ownsModel=!0):(g=m,p._ownsModel=!1),p._attachModel(g),g){var v={oldModelUrl:null,newModelUrl:g.uri};p._onDidChangeModel.fire(v)}return p}var gr,mr=(ir(vr,gr=Gi.a),vr.prototype.dispose=function(){gr.prototype.dispose.call(this)},vr.prototype.updateOptions=function(e){ji(this._configurationService,e,!0),gr.prototype.updateOptions.call(this,e)},vr.prototype._createInnerEditor=function(e,t,n){return e.createInstance(ur,t,n)},vr.prototype.getOriginalEditor=function(){return gr.prototype.getOriginalEditor.call(this)},vr.prototype.getModifiedEditor=function(){return gr.prototype.getModifiedEditor.call(this)},vr.prototype.addCommand=function(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)},vr.prototype.createContextKey=function(e,t){return this.getModifiedEditor().createContextKey(e,t)},vr.prototype.addAction=function(e){return this.getModifiedEditor().addAction(e)},vr=rr([ar(3,Ji.a),ar(4,Ko.c),ar(5,Qi.a),ar(6,Xi.b),ar(7,tt.a),ar(8,De.a),ar(9,Zi.a),ar(10,ri.a),ar(11,Eo.a),ar(12,Xi.a),ar(13,or.a),ar(14,Object(Ji.d)(nr.a))],vr));function vr(e,t,n,o,i,r,a,s,l,c,u,d,h,p,f){var g=this;ji(d,t,!0);var m=c.registerEditorContainer(e);return"string"==typeof(t=t||{}).theme&&(t.theme=c.setTheme(t.theme)),(g=gr.call(this,e,t,f,s,i,o,l,c,u,h,p)||this)._contextViewService=a,g._configurationService=d,g._register(n),g._register(m),g._contextViewService.setContainer(g._containerDomElement),g}var yr=n(951),br=n(778),_r=(wr.prototype.getId=function(){return this._languageIdentifier.language},wr);function wr(e){this._languageIdentifier=e}var Cr=n(791),Sr=n(1075),Or="text/plain",xr="application/unknown",Er=[],kr=[],Nr=[];function Dr(e,t){void 0===t&&(t=!1);var n,o={id:(n=e).id,mime:n.mime,filename:n.filename,extension:n.extension,filepattern:n.filepattern,firstline:n.firstline,userConfigured:n.userConfigured,filenameLowercase:n.filename?n.filename.toLowerCase():void 0,extensionLowercase:n.extension?n.extension.toLowerCase():void 0,filepatternLowercase:n.filepattern?n.filepattern.toLowerCase():void 0,filepatternOnPath:!!n.filepattern&&0<=n.filepattern.indexOf(Cr.posix.sep)};Er.push(o),o.userConfigured?Nr.push(o):kr.push(o),t&&!o.userConfigured&&Er.forEach((function(e){e.mime===o.mime||e.userConfigured||(o.extension&&e.extension,o.filename&&e.filename,o.filepattern&&e.filepattern,o.firstline&&e.firstline)}))}function Lr(e,t,n){for(var o=null,i=null,r=null,a=n.length-1;0<=a;a--){var s=n[a];if(t===s.filenameLowercase){o=s;break}if(s.filepattern&&(!i||s.filepattern.length>i.filepattern.length)){var l=s.filepatternOnPath?e:t;Object(Sr.a)(s.filepatternLowercase,l)&&(i=s)}s.extension&&(!r||s.extension.length>r.extension.length)&&Object(Ot.m)(t,s.extensionLowercase)&&(r=s)}return o?o.mime:i?i.mime:r?r.mime:null}var Pr,Ir,Tr=n(901),Mr=n(571),jr=(Pr=function(e,t){return(Pr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Pr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Rr=Object.prototype.hasOwnProperty,Ar=(jr(Fr,Ir=it.a),Fr.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=Tr.a.getLanguages();this._registerLanguages(e)},Fr.prototype._registerLanguages=function(e){for(var t=this,n=0,o=e;n<o.length;n++){var i=o[n];this._registerLanguage(i)}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}))})),Mr.a.as(Do.a.Configuration).registerOverrideIdentifiers(Tr.a.getLanguages().map((function(e){return e.id}))),this._onDidChange.fire()},Fr.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},Fr.prototype._registerLanguage=function(e){var t,n=e.id;if(Rr.call(this._languages,n))t=this._languages[n];else{var o=this._getLanguageId(n);t={identifier:new Qe.r(n,o),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[n]=t}this._mergeLanguage(t,e)},Fr.prototype._mergeLanguage=function(e,t){var n,o=t.id,i=null;if(Array.isArray(t.mimetypes)&&0<t.mimetypes.length&&((n=e.mimetypes).push.apply(n,t.mimetypes),i=t.mimetypes[0]),i||(i="text/x-"+o,e.mimetypes.push(i)),Array.isArray(t.extensions))for(var r=0,a=t.extensions;r<a.length;r++){var s=a[r];Dr({id:o,mime:i,extension:s},this._warnOnOverwrite),e.extensions.push(s)}if(Array.isArray(t.filenames))for(var l=0,c=t.filenames;l<c.length;l++){var u=c[l];Dr({id:o,mime:i,filename:u},this._warnOnOverwrite),e.filenames.push(u)}if(Array.isArray(t.filenamePatterns))for(var d=0,h=t.filenamePatterns;d<h.length;d++)Dr({id:o,mime:i,filepattern:h[d]},this._warnOnOverwrite);if("string"==typeof t.firstLine&&0<t.firstLine.length){var p=t.firstLine;"^"!==p.charAt(0)&&(p="^"+p);try{var f=new RegExp(p);Ot.I(f)||Dr({id:o,mime:i,firstline:f},this._warnOnOverwrite)}catch(e){Object(rt.e)(e)}}e.aliases.push(o);var g=null;if(void 0!==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 y=v[m];y&&0!==y.length&&e.aliases.push(y)}var b=null!==g&&0<g.length;if(!b||null!==g[0]){var _=(b?g[0]:null)||o;!b&&e.name||(e.name=_)}t.configuration&&e.configurationFiles.push(t.configuration)},Fr.prototype.isRegisteredMode=function(e){return!!Rr.call(this._mimeTypesMap,e)||Rr.call(this._languages,e)},Fr.prototype.getModeIdForLanguageNameLowercase=function(e){return Rr.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},Fr.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map((function(e){return e.trim()})).map((function(e){return Rr.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e})).filter((function(e){return Rr.call(t._languages,e)})):[]},Fr.prototype.getLanguageIdentifier=function(e){if(e===et.b||0===e)return et.a;var t;if("string"==typeof e)t=e;else if(!(t=this._languageIdToLanguage[e]))return null;return Rr.call(this._languages,t)?this._languages[t].identifier:null},Fr.prototype.getModeIdsFromFilepathOrFirstLine=function(e,t){if(!e&&!t)return[];var n=function(e,t){var n;if(e)switch(e.scheme){case Te.b.file:n=e.fsPath;break;case Te.b.data:n=Me.a.parseMetaData(e).get(Me.a.META_DATA_LABEL);break;default:n=e.path}if(!n)return[xr];n=n.toLowerCase();var o=Object(Cr.basename)(n),i=Lr(n,o,Nr);if(i)return[i,Or];var r=Lr(n,o,kr);if(r)return[r,Or];if(t){var a=function(e){if(Object(Ot.P)(e)&&(e=e.substr(1)),0<e.length)for(var t=Er.length-1;0<=t;t--){var n=Er[t];if(n.firstline){var o=e.match(n.firstline);if(o&&0<o.length)return n.mime}}return null}(t);if(a)return[a,Or]}return[xr]}(e,t);return this.extractModeIds(n.join(","))},Fr);function Fr(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=Ir.call(this)||this;return n._onDidChange=n._register(new ve.a),n.onDidChange=n._onDidChange.event,n._warnOnOverwrite=t,n._nextLanguageId2=1,n._languageIdToLanguage=[],n._languageToLanguageId=Object.create(null),n._languages={},n._mimeTypesMap={},n._nameMap={},n._lowercaseNameMap={},e&&(n._initializeFromRegistry(),n._register(Tr.a.onDidChangeLanguages((function(e){return n._initializeFromRegistry()})))),n}var Vr,Wr,Br=((Vr=function(e,t){return(Vr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Vr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Hr,Wr=it.a),Hr.prototype._evaluate=function(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))},Hr);function Hr(e,t){var n=Wr.call(this)||this;return n._onDidChange=n._register(new ve.a),n.onDidChange=n._onDidChange.event,n._selector=t,n.languageIdentifier=n._selector(),n._register(e((function(){return n._evaluate()}))),n}var zr=(Kr.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},Kr.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},Kr.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return Object(wt.l)(n,null)},Kr.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return Object(wt.l)(t,null)},Kr.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},Kr.prototype.create=function(e){var t=this;return new Br(this.onLanguagesMaybeChanged,(function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n)}))},Kr.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new Br(this.onLanguagesMaybeChanged,(function(){var o=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(o)}))},Kr.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||et.a;return this._getOrCreateMode(t.language),t},Kr.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},Kr.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||et.a;this._instantiatedModes[e]=new _r(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},Kr);function Kr(e){var t=this;void 0===e&&(e=!1),this._onDidCreateMode=new ve.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new ve.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Ar(!0,e),this._registry.onDidChange((function(){return t._onLanguagesMaybeChanged.fire()}))}var Ur,qr=n(495),Gr=n(948),Yr=(Ur=function(e,t){return(Ur=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ur(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zr=function(e,t){return function(n,o){t(n,o,e)}};function $r(e){return e.toString()}var Xr=(Jr.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},Jr.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},Jr.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)},Jr);function Jr(e,t,n){this._modelEventListeners=new it.b,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)})))}var Qr,ea=at.d||at.e?1:2,ta=(Yr(na,Qr=it.a),na._readModelOptions=function(e,t){var n=ge.c.tabSize;if(e.editor&&void 0!==e.editor.tabSize){var o=parseInt(e.editor.tabSize,10);isNaN(o)||(n=o),n<1&&(n=1)}var i=n;if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){var r=parseInt(e.editor.indentSize,10);isNaN(r)||(i=r),i<1&&(i=1)}var a=ge.c.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(a="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var s=ea,l=e.eol;"\r\n"===l?s=2:"\n"===l&&(s=1);var c=ge.c.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(c="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var u=ge.c.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(u="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var d=ge.c.largeFileOptimizations;return e.editor&&void 0!==e.editor.largeFileOptimizations&&(d="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:a,detectIndentation:u,defaultEOL:s,trimAutoWhitespace:c,largeFileOptimizations:d}},na.prototype.getCreationOptions=function(e,t,n){var o=this._modelCreationOptionsByLanguageAndResource[e+t];if(!o){var i=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:t}),r=this._resourcePropertiesService.getEOL(t,e);o=na._readModelOptions({editor:i,eol:r},n),this._modelCreationOptionsByLanguageAndResource[e+t]=o}return o},na.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var t=Object.keys(this._models),n=0,o=t.length;n<o;n++){var i=t[n],r=this._models[i],a=r.model.getLanguageIdentifier().language,s=r.model.uri,l=e[a+s],c=this.getCreationOptions(a,s,r.model.isForSimpleWidget);na._setModelOptionsForModel(r.model,c,l)}},na._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}))},na.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),Qr.prototype.dispose.call(this)},na.prototype._createModelData=function(e,t,n,o){var i=this,r=this.getCreationOptions(t.language,n,o),a=new qr.b(e,r,t,n),s=$r(a.uri);if(this._models[s])throw new Error("ModelService: Cannot add model because it already exists!");var l=new Xr(a,(function(e){return i._onWillDispose(e)}),(function(e,t){return i._onDidChangeLanguage(e,t)}));return this._models[s]=l},na.prototype.createModel=function(e,t,n,o){var i;return void 0===o&&(o=!1),t?(i=this._createModelData(e,t.languageIdentifier,n,o),this.setMode(i.model,t)):i=this._createModelData(e,Tr.b,n,o),this._onModelAdded.fire(i.model),i.model},na.prototype.setMode=function(e,t){if(t){var n=this._models[$r(e.uri)];n&&n.setLanguage(t)}},na.prototype.getModels=function(){for(var e=[],t=Object.keys(this._models),n=0,o=t.length;n<o;n++){var i=t[n];e.push(this._models[i].model)}return e},na.prototype.getModel=function(e){var t=$r(e),n=this._models[t];return n?n.model:null},na.prototype._onWillDispose=function(e){var t=$r(e.uri),n=this._models[t];delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri],this._onModelRemoved.fire(e)},na.prototype._onDidChangeLanguage=function(e,t){var n=t.oldLanguage,o=e.getLanguageIdentifier().language,i=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(o,e.uri,e.isForSimpleWidget);na._setModelOptionsForModel(e,r,i),this._onModelModeChanged.fire({model:e,oldModeId:n})},na=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([Zr(0,Eo.a),Zr(1,hn.b),Zr(2,er.c),Zr(3,pn.a)],na));function na(e,t,n,o){var i=Qr.call(this)||this;return i._onModelAdded=i._register(new ve.a),i.onModelAdded=i._onModelAdded.event,i._onModelRemoved=i._register(new ve.a),i.onModelRemoved=i._onModelRemoved.event,i._onModelModeChanged=i._register(new ve.a),i.onModelModeChanged=i._onModelModeChanged.event,i._configurationService=e,i._resourcePropertiesService=t,i._models={},i._modelCreationOptionsByLanguageAndResource=Object.create(null),i._configurationServiceSubscription=i._configurationService.onDidChangeConfiguration((function(e){return i._updateModelOptions()})),i._updateModelOptions(),i._register(new ia(i,n,e,o)),i}var oa,ia=(Yr(ra,oa=it.a),ra.SETTING_ID="editor.semanticHighlighting",ra);function ra(e,t,n,o){var i=oa.call(this)||this;function r(e){var t=n.getValue(ra.SETTING_ID,{overrideIdentifier:e.getLanguageIdentifier().language,resource:e.uri});return t&&t.enabled}function a(e){i._watchers[e.uri.toString()]=new va(e,t,i._semanticStyling)}function s(e,t){t.dispose(),delete i._watchers[e.uri.toString()]}return i._configurationService=n,i._watchers=Object.create(null),i._semanticStyling=i._register(new sa(t,o)),i._register(e.onModelAdded((function(e){r(e)&&a(e)}))),i._register(e.onModelRemoved((function(e){var t=i._watchers[e.uri.toString()];t&&s(e,t)}))),i._configurationService.onDidChangeConfiguration((function(t){if(t.affectsConfiguration(ra.SETTING_ID))for(var n=0,o=e.getModels();n<o.length;n++){var l=o[n],c=i._watchers[l.uri.toString()];r(l)?c||a(l):c&&s(l,c)}})),i}var aa,sa=(Yr(la,aa=it.a),la.prototype.get=function(e){return this._caches.has(e)||this._caches.set(e,new ha(e.getLegend(),this._themeService,this._logService)),this._caches.get(e)},la);function la(e,t){var n=aa.call(this)||this;return n._themeService=e,n._logService=t,n._caches=new WeakMap,n._themeService&&n._register(n._themeService.onThemeChange((function(){n._caches=new WeakMap}))),n}var ca=function(e,t,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.metadata=n,this.next=null},ua=(da._nullOutEntries=function(e,t){for(var n=0;n<t;n++)e[n]=null},da.prototype._hashFunc=function(e,t){return((e<<5)-e+t|0)%this._currentLength},da.prototype.get=function(e,t){for(var n=this._hashFunc(e,t),o=this._elements[n];o;){if(o.tokenTypeIndex===e&&o.tokenModifierSet===t)return o;o=o.next}return null},da.prototype.add=function(e,t,n){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){var o=this._elements;this._currentLengthIndex++,this._currentLength=da._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<da._SIZES.length?2/3*this._currentLength:0),this._elements=[],da._nullOutEntries(this._elements,this._currentLength);for(var i=0,r=o;i<r.length;i++)for(var a=r[i];a;){var s=a.next;a.next=null,this._add(a),a=s}}this._add(new ca(e,t,n))},da.prototype._add=function(e){var t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet);e.next=this._elements[t],this._elements[t]=e},da._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],da);function da(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=da._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<da._SIZES.length?2/3*this._currentLength:0),this._elements=[],da._nullOutEntries(this._elements,this._currentLength)}var ha=(pa.prototype.getMetadata=function(e,t){var n,o=this._hashTable.get(e,t);if(o)n=o.metadata;else{for(var i=this._legend.tokenTypes[e],r=[],a=t,s=0;0<a&&s<this._legend.tokenModifiers.length;s++)1&a&&r.push(this._legend.tokenModifiers[s]),a>>=1;var l=this._themeService.getTheme().getTokenStyleMetadata(i,r);void 0===l?n=2147483647:(void(n=0)!==l.italic&&(n|=1|(l.italic?1:0)<<11),void 0!==l.bold&&(n|=2|(l.bold?2:0)<<11),void 0!==l.underline&&(n|=4|(l.underline?4:0)<<11),l.foreground&&(n|=8|l.foreground<<14),0===n&&(n=2147483647)),this._hashTable.add(e,t,n)}if(this._logService.getLevel()===pn.b.Trace){var c=this._legend.tokenTypes[e],u=t?" "+this._legend.tokenModifiers.filter((function(e,n){return t&1<<n})).join(" "):"";this._logService.trace("tokenStyleMetadata "+(o?"[CACHED] ":"")+c+u+": foreground "+Qe.A.getForeground(n)+", fontStyle "+Qe.A.getFontStyle(n).toString(2))}return n},pa);function pa(e,t,n){this._legend=e,this._themeService=t,this._logService=n,this._hashTable=new ua}var fa=(ga.prototype.dispose=function(){this._provider.releaseDocumentSemanticTokens(this.resultId)},ga);function ga(e,t,n){this._provider=e,this.resultId=t,this.data=n}var ma,va=(Yr(ya,ma=it.a),ya.prototype.dispose=function(){this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._currentRequestCancellationTokenSource&&(this._currentRequestCancellationTokenSource.cancel(),this._currentRequestCancellationTokenSource=null),this._setSemanticTokens(null,null,null,[]),this._isDisposed=!0,ma.prototype.dispose.call(this)},ya.prototype._fetchSemanticTokensNow=function(){var e=this;if(!this._currentRequestCancellationTokenSource){var t=this._getSemanticColoringProvider();if(t){this._currentRequestCancellationTokenSource=new me.b;var n=[],o=this._model.onDidChangeContent((function(e){n.push(e)})),i=this._semanticStyling.get(t),r=this._currentResponse&&this._currentResponse.resultId||null;Promise.resolve(t.provideDocumentSemanticTokens(this._model,r,this._currentRequestCancellationTokenSource.token)).then((function(r){e._currentRequestCancellationTokenSource=null,o.dispose(),e._setSemanticTokens(t,r||null,i,n)}),(function(t){t&&"string"==typeof t.message&&-1!==t.message.indexOf("busy")||rt.e(t),e._currentRequestCancellationTokenSource=null,o.dispose(),0<n.length&&(e._fetchSemanticTokens.isScheduled()||e._fetchSemanticTokens.schedule())}))}}},ya._isSemanticTokens=function(e){return e&&!!e.data},ya._isSemanticTokensEdits=function(e){return e&&Array.isArray(e.edits)},ya._copy=function(e,t,n,o,i){for(var r=0;r<i;r++)n[o+r]=e[t+r]},ya.prototype._setSemanticTokens=function(e,t,n,o){var i=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&t&&n){if(ya._isSemanticTokensEdits(t)){if(!i)return void this._model.setSemanticTokens(null);if(0===t.edits.length)t={resultId:t.resultId,data:i.data};else{for(var r=0,a=0,s=t.edits;a<s.length;a++)r+=((p=s[a]).data?p.data.length:0)-p.deleteCount;for(var l=i.data,c=new Uint32Array(l.length+r),u=l.length,d=c.length,h=t.edits.length-1;0<=h;h--){var p,f=u-((p=t.edits[h]).start+p.deleteCount);0<f&&(ya._copy(l,u-f,c,d-f,f),d-=f),p.data&&(ya._copy(p.data,0,c,d-p.data.length,p.data.length),d-=p.data.length),u=p.start}0<u&&ya._copy(l,0,c,0,u),t={resultId:t.resultId,data:c}}}if(ya._isSemanticTokens(t)){this._currentResponse=new fa(e,t.resultId,t.data),l=t.data;for(var g=t.data.length/5|0,m=Math.max(Math.ceil(g/1024),400),v=[],y=0,b=1,_=0;y<g;){var w=y,C=Math.min(w+m,g);if(C<g){for(var S=C;w<S-1&&0===l[5*S];)S--;if(S-1===w){for(var O=C;O+1<g&&0===l[5*O];)O++;C=O}else C=S}c=new Uint32Array(4*(C-w));for(var x=0,E=0;y<C;){var k=5*y,N=l[k],D=l[1+k],L=b+N,P=0===N?_+D:D,I=l[2+k],T=l[3+k],M=l[4+k],j=n.getMetadata(T,M);2147483647!==j&&(0===E&&(E=L),c[x]=L-E,c[x+1]=P,c[x+2]=P+I,c[x+3]=j,x+=4),b=L,_=P,y++}x!==c.length&&(c=c.subarray(0,x));var R=new Gr.a(E,new Gr.c(c));v.push(R)}if(0<o.length){for(var A=0,F=o;A<F.length;A++)for(var V=F[A],W=0,B=v;W<B.length;W++)for(var H=B[W],z=0,K=V.changes;z<K.length;z++){var U=K[z];H.applyEdit(U.range,U.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(v)}else this._model.setSemanticTokens(null)}else this._model.setSemanticTokens(null)},ya.prototype._getSemanticColoringProvider=function(){var e=Qe.l.ordered(this._model);return 0<e.length?e[0]:null},ya);function ya(e,t,n){var o=ma.call(this)||this;return o._isDisposed=!1,o._model=e,o._semanticStyling=n,o._fetchSemanticTokens=o._register(new ot.d((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(Qe.l.onDidChange((function(e){return o._fetchSemanticTokens.schedule()}))),t&&o._register(t.onThemeChange((function(e){o._setSemanticTokens(null,null,null,[]),o._fetchSemanticTokens.schedule()}))),o._fetchSemanticTokens.schedule(0),o}var ba,_a,wa=((ba=function(e,t){return(ba=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ba(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ca,_a=it.a),Ca.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)},Ca.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)},Ca.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map((function(t){return e._codeEditors[t]}))},Ca.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)},Ca.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)},Ca.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map((function(t){return e._diffEditors[t]}))},Ca.prototype.getFocusedCodeEditor=function(){for(var e=null,t=0,n=this.listCodeEditors();t<n.length;t++){var o=n[t];if(o.hasTextFocus())return o;o.hasWidgetFocus()&&(e=o)}return e},Ca);function Ca(){var e=_a.call(this)||this;return e._onCodeEditorAdd=e._register(new ve.a),e.onCodeEditorAdd=e._onCodeEditorAdd.event,e._onCodeEditorRemove=e._register(new ve.a),e.onCodeEditorRemove=e._onCodeEditorRemove.event,e._onDiffEditorAdd=e._register(new ve.a),e._onDiffEditorRemove=e._register(new ve.a),e._codeEditors=Object.create(null),e._diffEditors=Object.create(null),e}var Sa,Oa=(Sa=function(e,t){return(Sa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Sa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),xa=(Ea.prototype.ref=function(){this._refCount++},Ea.prototype.unref=function(){var e;this._refCount--,0===this._refCount&&(null!==(e=this.styleSheet.parentNode)&&void 0!==e&&e.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},Ea);function Ea(e,t,n){this._parent=e,this._editorId=t,this.styleSheet=n,this._refCount=0}var ka=(Na.prototype.ref=function(){},Na.prototype.unref=function(){},Na);function Na(e){this.styleSheet=e}var Da,La=(Oa(Pa,Da=wa),Pa.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new ka(Le.w())),this._globalStyleSheet},Pa.prototype._getOrCreateStyleSheet=function(e){if(!e)return this._getOrCreateGlobalStyleSheet();var t=e.getContainerDomNode();if(!Le.N(t))return this._getOrCreateGlobalStyleSheet();var n=e.getId();if(!this._editorStyleSheets.has(n)){var o=new xa(this,n,Le.w(t));this._editorStyleSheets.set(n,o)}return this._editorStyleSheets.get(n)},Pa.prototype._removeEditorStyleSheets=function(e){this._editorStyleSheets.delete(e)},Pa.prototype.registerDecorationType=function(e,t,n,o){var i=this._decorationOptionProviders.get(e);if(!i){var r=this._getOrCreateStyleSheet(o),a={styleSheet:r.styleSheet,key:e,parentTypeKey:n,options:t||Object.create(null)};i=new(n?Ia:Ma)(this._themeService,r,a),this._decorationOptionProviders.set(e,i)}i.refCount++},Pa.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)}))))},Pa.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)},Pa=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(0,er.c)],Pa));function Pa(e,t){void 0===t&&(t=null);var n=Da.call(this)||this;return n._decorationOptionProviders=new Map,n._editorStyleSheets=new Map,n._globalStyleSheet=t?new ka(t):null,n._themeService=e,n}var Ia=(Ta.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},Ta.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},Ta);function Ta(e,t,n){this._styleSheet=t,this._styleSheet.ref(),this._parentTypeKey=n.parentTypeKey,this.refCount=0,this._beforeContentRules=new Aa(3,n,e),this._afterContentRules=new Aa(4,n,e)}var Ma=(ja.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},ja.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},ja);function ja(e,t,n){var o=this;function i(t){var i=new Aa(t,n,e);if(o._disposables.add(i),i.hasContent)return i.className}this._disposables=new it.b,this._styleSheet=t,this._styleSheet.ref(),this.refCount=0,this.className=i(0);var r,a=(r=new Aa(1,n,e),o._disposables.add(r),r.hasContent?{className:r.className,hasLetterSpacing:r.hasLetterSpacing}:null);a&&(this.inlineClassName=a.className,this.inlineClassNameAffectsLetterSpacing=a.hasLetterSpacing),this.beforeContentClassName=i(3),this.afterContentClassName=i(4),this.glyphMarginClassName=i(2);var s=n.options;this.isWholeLine=Boolean(s.isWholeLine),this.stickiness=s.rangeBehavior;var l=s.light&&s.light.overviewRulerColor||s.overviewRulerColor,c=s.dark&&s.dark.overviewRulerColor||s.overviewRulerColor;void 0===l&&void 0===c||(this.overviewRuler={color:l||c,darkColor:c||l,position:s.overviewRulerLane||Je.d.Center})}var Ra={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};"},Aa=(Fa.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(Fa.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(Fa.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(Fa.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),Fa.prototype._buildCSS=function(){var e,t,n,o=this._providerArgs.options;switch(this._ruleType){case 0:e=this.getCSSTextForModelDecorationClassName(o),t=this.getCSSTextForModelDecorationClassName(o.light),n=this.getCSSTextForModelDecorationClassName(o.dark);break;case 1:e=this.getCSSTextForModelDecorationInlineClassName(o),t=this.getCSSTextForModelDecorationInlineClassName(o.light),n=this.getCSSTextForModelDecorationInlineClassName(o.dark);break;case 2:e=this.getCSSTextForModelDecorationGlyphMarginClassName(o),t=this.getCSSTextForModelDecorationGlyphMarginClassName(o.light),n=this.getCSSTextForModelDecorationGlyphMarginClassName(o.dark);break;case 3:e=this.getCSSTextForModelDecorationContentClassName(o.before),t=this.getCSSTextForModelDecorationContentClassName(o.light&&o.light.before),n=this.getCSSTextForModelDecorationContentClassName(o.dark&&o.dark.before);break;case 4:e=this.getCSSTextForModelDecorationContentClassName(o.after),t=this.getCSSTextForModelDecorationContentClassName(o.light&&o.light.after),n=this.getCSSTextForModelDecorationContentClassName(o.dark&&o.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var i=this._providerArgs.styleSheet.sheet,r=!1;0<e.length&&(i.insertRule(this._unThemedSelector+" {"+e+"}",0),r=!0),0<t.length&&(i.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),r=!0),0<n.length&&(i.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),r=!0),this._hasContent=r},Fa.prototype._removeCSS=function(){Le.O(this._unThemedSelector,this._providerArgs.styleSheet)},Fa.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("")},Fa.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("")},Fa.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if(void 0!==e){if(this.collectBorderSettingsCSSText(e,t),void 0!==e.contentIconPath&&t.push(Ot.r(Ra.contentIconPath,Le.r(be.a.revive(e.contentIconPath)))),"string"==typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(Ot.r(Ra.contentText,n))}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("")},Fa.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return void 0!==e.gutterIconPath&&(t.push(Ot.r(Ra.gutterIconPath,Le.r(be.a.revive(e.gutterIconPath)))),void 0!==e.gutterIconSize&&t.push(Ot.r(Ra.gutterIconSize,e.gutterIconSize))),t.join("")},Fa.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(Ot.r("box-sizing: border-box;")),!0)},Fa.prototype.collectCSSText=function(e,t,n){for(var o=n.length,i=0,r=t;i<r.length;i++){var a=r[i],s=this.resolveValue(e[a]);"string"==typeof s&&n.push(Ot.r(Ra[a],s))}return n.length!==o},Fa.prototype.resolveValue=function(e){if(Object(Xe.c)(e)){this._usesThemeColors=!0;var t=this._theme.getColor(e.id);return t?t.toString():"transparent"}return e},Fa);function Fa(e,t,n){var o=this;this._theme=n.getTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var i=Va.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(i=i+" "+Va.getClassName(this._providerArgs.parentTypeKey,e)),this._className=i,this._unThemedSelector=Va.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onThemeChange((function(e){o._theme=n.getTheme(),o._removeCSS(),o._buildCSS()})):this._themeListener=null}var Va=(Wa.getClassName=function(e,t){return"ced-"+e+"-"+t},Wa.getSelector=function(e,t,n){var o=".monaco-editor ."+this.getClassName(e,n);return t&&(o=o+"."+this.getClassName(t,n)),3===n?o+="::before":4===n&&(o+="::after"),o},Wa);function Wa(){}var Ba,Ha,za=((Ba=function(e,t){return(Ba=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ba(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ka,Ha=La),Ka.prototype.getActiveCodeEditor=function(){return null},Ka.prototype.openCodeEditor=function(e,t,n){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)},Ka.prototype.doOpenEditor=function(e,t){if(!this.findModel(e,t.resource)){if(t.resource){var n=t.resource.scheme;if(n===Te.b.http||n===Te.b.https)return Object(Le.ab)(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 i={lineNumber:o.startLineNumber,column:o.startColumn};e.setPosition(i),e.revealPositionInCenter(i,1)}return e},Ka.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},Ka);function Ka(){return null!==Ha&&Ha.apply(this,arguments)||this}var Ua=n(490),qa=function(e,t,n,o,i){this.token=e,this.index=t,this.fontStyle=n,this.foreground=o,this.background=i};var Ga=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,Ya=(Za.prototype.getId=function(e){if(null===e)return 0;var t=e.match(Ga);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]=Ua.a.fromHex("#"+e),n)},Za.prototype.getColorMap=function(){return this._id2color.slice(0)},Za);function Za(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}var $a=(Xa.createFromRawTokenTheme=function(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];for(var t=[],n=0,o=0,i=e.length;o<i;o++){var r=e[o],a=-1;if("string"==typeof r.fontStyle){a=0;for(var s=r.fontStyle.split(" "),l=0,c=s.length;l<c;l++)switch(s[l]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4}}var u=null;"string"==typeof r.foreground&&(u=r.foreground);var d=null;"string"==typeof r.background&&(d=r.background),t[n++]=new qa(r.token||"",o,a,u,d)}return t}(e),t)},Xa.createFromParsedTokenTheme=function(e,t){return function(e,t){e.sort((function(e,t){var n=function(e,t){return e<t?-1:t<e?1:0}(e.token,t.token);return 0!==n?n:e.index-t.index}));for(var n=0,o="000000",i="ffffff";1<=e.length&&""===e[0].token;){var r=e.shift();-1!==r.fontStyle&&(n=r.fontStyle),null!==r.foreground&&(o=r.foreground),null!==r.background&&(i=r.background)}for(var a=new Ya,s=0,l=t;s<l.length;s++){var c=l[s];a.getId(c)}for(var u=a.getId(o),d=a.getId(i),h=new Qa(n,u,d),p=new ts(h),f=0,g=e.length;f<g;f++){var m=e[f];p.insert(m.token,m.fontStyle,a.getId(m.foreground),a.getId(m.background))}return new $a(a,p)}(e,t)},Xa.prototype.getColorMap=function(){return this._colorMap.getColorMap()},Xa.prototype._match=function(e){return this._root.match(e)},Xa.prototype.match=function(e,t){var n=this._cache.get(t);if(void 0===n){var o=this._match(t),i=function(e){var t=e.match(Ja);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}(t);n=(o.metadata|i<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0},Xa);function Xa(e,t){this._colorMap=e,this._root=t,this._cache=new Map}var Ja=/\b(comment|string|regex|regexp)\b/,Qa=(es.prototype.clone=function(){return new es(this._fontStyle,this._foreground,this._background)},es.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},es);function es(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}var ts=(ns.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,o=e.indexOf(".");n=-1===o?(t=e,""):(t=e.substring(0,o),e.substring(o+1));var i=this._children.get(t);return void 0!==i?i.match(n):this._mainRule},ns.prototype.insert=function(e,t,n,o){if(""!==e){var i,r,a=e.indexOf(".");r=-1===a?(i=e,""):(i=e.substring(0,a),e.substring(a+1));var s=this._children.get(i);void 0===s&&(s=new ns(this._mainRule.clone()),this._children.set(i,s)),s.insert(r,t,n,o)}else this._mainRule.acceptOverwrite(t,n,o)},ns);function ns(e){this._mainRule=e,this._children=new Map}var os,is,rs,as,ss=n(572),ls=n(461),cs={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:"098658"},{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:"098658"},{token:"attribute.value.unit",foreground:"098658"},{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:((os={})[ls.o]="#FFFFFE",os[ls.x]="#000000",os[ls.F]="#E5EBF1",os[ss.h]="#D3D3D3",os[ss.a]="#939393",os[ls.M]="#ADD6FF4D",os)},us={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:((is={})[ls.o]="#1E1E1E",is[ls.x]="#D4D4D4",is[ls.F]="#3A3D41",is[ss.h]="#404040",is[ss.a]="#707070",is[ls.M]="#ADD6FF26",is)},ds={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:((rs={})[ls.o]="#000000",rs[ls.x]="#FFFFFF",rs[ss.h]="#FFFFFF",rs[ss.a]="#FFFFFF",rs)},hs=(as=function(e,t){return(as=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}as(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ps="vs",fs="vs-dark",gs="hc-black",ms=Mr.a.as(ls.a.ColorContribution),vs=Mr.a.as(er.a.ThemingContribution),ys=(Object.defineProperty(bs.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),bs.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},bs.prototype.getColors=function(){if(!this.colors){var e=new Map;for(var t in this.themeData.colors)e.set(t,Ua.a.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var n=ws(this.themeData.base);for(var t in n.colors)e.has(t)||e.set(t,Ua.a.fromHex(n.colors[t]))}this.colors=e}return this.colors},bs.prototype.getColor=function(e,t){return this.getColors().get(e)||(!1!==t?this.getDefault(e):void 0)},bs.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=ms.resolveDefaultColor(e,this),this.defaultColors[e]=t)},bs.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(bs.prototype,"type",{get:function(){switch(this.base){case ps:return"light";case gs:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(bs.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=ws(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=$a.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),bs.prototype.getTokenStyleMetadata=function(e,t){},bs);function bs(e,t){var n=(this.themeData=t).base;0<e.length?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}function _s(e){return e===ps||e===fs||e===gs}function ws(e){switch(e){case ps:return cs;case fs:return us;case gs:return ds}}function Cs(e){var t=ws(e);return new ys(e,t)}var Ss,Os=(hs(xs,Ss=it.a),xs.prototype.registerEditorContainer=function(e){return Le.N(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()},xs.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=Le.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),it.a.None},xs.prototype._registerShadowDomContainer=function(e){var t=this,n=Le.w(e);return n.className="monaco-colors",n.innerHTML=this._css,this._styleElements.push(n),{dispose:function(){for(var e=0;e<t._styleElements.length;e++)if(t._styleElements[e]===n)return void t._styleElements.splice(e,1)}}},xs.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!_s(t.base)&&!_s(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new ys(e,t)),_s(e)&&this._knownThemes.forEach((function(t){t.base===e&&t.notifyBaseUpdated()})),this._theme&&this._theme.themeName===e&&this.setTheme(e)},xs.prototype.getTheme=function(){return this._theme},xs.prototype.setTheme=function(e){var t,n=this;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(ps),this._theme===t)return t.id;this._theme=t;var o=[],i={},r={addRule:function(e){i[e]||(o.push(e),i[e]=!0)}};vs.getThemingParticipants().forEach((function(e){return e(t,r,n._environment)}));var a=t.tokenTheme.getColorMap();return r.addRule(function(e){for(var t=[],n=1,o=e.length;n<o;n++){var i=e[n];t[n]=".mtk"+n+" { color: "+i+"; }"}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")}(a)),this._css=o.join("\n"),this._styleElements.forEach((function(e){return e.innerHTML=n._css})),Qe.B.setColorMap(a),this._onThemeChange.fire(t),t.id},xs.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},xs);function xs(){var e=Ss.call(this)||this;return e._onThemeChange=e._register(new ve.a),e.onThemeChange=e._onThemeChange.event,e._environment=Object.create(null),e._knownThemes=new Map,e._knownThemes.set(ps,Cs(ps)),e._knownThemes.set(fs,Cs(fs)),e._knownThemes.set(gs,Cs(gs)),e._css="",e._globalStyleElement=null,e._styleElements=[],e.setTheme(ps),e}var Es,ks=(Es=function(e,t){return(Es=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Es(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ns="data-keybinding-context",Ds=(Ls.prototype.setValue=function(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)},Ls.prototype.removeValue=function(e){return e in this._value&&(delete this._value[e],!0)},Ls.prototype.getValue=function(e){var t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t},Ls);function Ls(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}var Ps,Is=(ks(Ts,Ps=Ds),Ts.prototype.setValue=function(e,t){return!1},Ts.prototype.removeValue=function(e){return!1},Ts.prototype.getValue=function(e){},Ts.INSTANCE=new Ts,Ts);function Ts(){return Ps.call(this,-1,null)||this}var Ms,js=(ks(Rs,Ms=Ds),Rs.prototype.dispose=function(){this._listener.dispose()},Rs.prototype.getValue=function(e){if(0!==e.indexOf(Rs._keyPrefix))return Ms.prototype.getValue.call(this,e);if(this._values.has(e))return this._values.get(e);var t=e.substr(Rs._keyPrefix.length),n=this._configurationService.getValue(t),o=void 0;switch(typeof n){case"number":case"boolean":case"string":o=n}return this._values.set(e,o),o},Rs.prototype.setValue=function(e,t){return Ms.prototype.setValue.call(this,e,t)},Rs.prototype.removeValue=function(e){return Ms.prototype.removeValue.call(this,e)},Rs._keyPrefix="config.",Rs);function Rs(e,t,n){var o=Ms.call(this,e,null)||this;return o._configurationService=t,o._values=new Map,o._listener=o._configurationService.onDidChangeConfiguration((function(e){if(6===e.source){var t=Object(ko.d)(o._values);o._values.clear(),n.fire(new Bs(t))}else{for(var i=[],r=0,a=e.affectedKeys;r<a.length;r++){var s="config."+a[r];o._values.has(s)&&(o._values.delete(s),i.push(s))}n.fire(new Bs(i))}})),o}var As=(Fs.prototype.set=function(e){this._service.setContext(this._key,e)},Fs.prototype.reset=function(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},Fs.prototype.get=function(){return this._service.getContextKeyValue(this._key)},Fs);function Fs(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}var Vs=(Ws.prototype.affectsSome=function(e){return e.has(this.key)},Ws);function Ws(e){this.key=e}var Bs=(Hs.prototype.affectsSome=function(e){for(var t=0,n=this.keys;t<n.length;t++){var o=n[t];if(e.has(o))return!0}return!1},Hs);function Hs(e){this.keys=e}var zs=(Ks.prototype.affectsSome=function(e){for(var t=0,n=this.events;t<n.length;t++)if(n[t].affectsSome(e))return!0;return!1},Ks);function Ks(e){this.events=e}var Us=(qs.prototype.createKey=function(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new As(this,e,t)},Object.defineProperty(qs.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),qs.prototype.bufferChangeEvents=function(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}},qs.prototype.createScoped=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Xs(this,e)},qs.prototype.contextMatchesRules=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId);return Uo.contextMatchesRules(t,e)},qs.prototype.getContextKeyValue=function(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)},qs.prototype.setContext=function(e,t){if(!this._isDisposed){var n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new Vs(e))}},qs.prototype.removeContext=function(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Vs(e))},qs.prototype.getContext=function(e){return this._isDisposed?Is.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(Ns)){var t=e.getAttribute(Ns);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))},qs);function qs(e){this._onDidChangeContext=new ve.e({merge:function(e){return new zs(e)}}),this._isDisposed=!1,this._myContextId=e}var Gs,Ys=(ks(Zs,Gs=Us),Zs.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},Zs.prototype.getContextValuesContainer=function(e){return!this._isDisposed&&this._contexts.get(e)||Is.INSTANCE},Zs.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 Ds(t,this.getContextValuesContainer(e))),t},Zs.prototype.disposeContext=function(e){this._isDisposed||this._contexts.delete(e)},Zs=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(0,Eo.a)],Zs));function Zs(e){var t=Gs.call(this,0)||this;t._contexts=new Map,t._toDispose=new it.b,t._lastContextId=0;var n=new js(t._myContextId,e,t._onDidChangeContext);return t._contexts.set(t._myContextId,n),t._toDispose.add(n),t}var $s,Xs=(ks(Js,$s=Us),Js.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(Ns),this._domNode=void 0)},Object.defineProperty(Js.prototype,"onDidChangeContext",{get:function(){return ve.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),Js.prototype.getContextValuesContainer=function(e){return this._isDisposed?Is.INSTANCE:this._parent.getContextValuesContainer(e)},Js.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)},Js.prototype.disposeContext=function(e){this._isDisposed||this._parent.disposeContext(e)},Js);function Js(e,t){var n=$s.call(this,e.createChildContext())||this;return n._parent=e,t&&(n._domNode=t,n._domNode.setAttribute(Ns,String(n._myContextId))),n}je.a.registerCommand(Ko.e,(function(e,t,n){e.get(Ko.c).createKey(String(t),n)})),n(1388);var Qs=n(703),el=n(1081),tl=n(826),nl=n(686),ol=n(595),il=(rl.prototype.configure=function(e){this.options=e},rl.prototype.showContextMenu=function(e){var t,n=this,o=e.getActions();o.length&&(this.focusToReturn=document.activeElement,this.contextViewService.showContextView({getAnchor:function(){return e.getAnchor()},canRelayout:!1,anchorAlignment:e.anchorAlignment,render:function(i){var r=e.getMenuClassName?e.getMenuClassName():"";r&&(i.className+=" "+r),n.options.blockMouse&&(n.block=i.appendChild(Object(Le.a)(".context-view-block")));var a=new it.b,s=e.actionRunner||new Qs.b;return s.onDidBeforeRun(n.onActionRun,n,a),s.onDidRun(n.onDidActionRun,n,a),t=new el.a(i,o,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:s,getKeyBinding:e.getKeyBinding?e.getKeyBinding:function(e){return n.keybindingService.lookupKeybinding(e.id)}}),a.add(Object(tl.c)(t,n.themeService)),t.onDidCancel((function(){return n.contextViewService.hideContextView(!0)}),null,a),t.onDidBlur((function(){return n.contextViewService.hideContextView(!0)}),null,a),Object(nl.a)(window,Le.d.BLUR)((function(){n.contextViewService.hideContextView(!0)}),null,a),Object(nl.a)(window,Le.d.MOUSE_DOWN)((function(e){if(!e.defaultPrevented){var t=new ol.b(e),o=t.target;if(!t.rightButton){for(;o;){if(o===i)return;o=o.parentElement}n.contextViewService.hideContextView(!0)}}}),null,a),Object(it.e)(a,t)},focus:function(){t&&t.focus(!!e.autoSelectFirstItem)},onHide:function(t){e.onHide&&e.onHide(!!t),n.block&&(Object(Le.R)(n.block),n.block=null),n.focusToReturn&&n.focusToReturn.focus()}}))},rl.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()},rl.prototype.onDidActionRun=function(e){e.error&&this.notificationService&&this.notificationService.error(e.error)},rl);function rl(e,t,n,o,i){this.contextViewService=e,this.telemetryService=t,this.notificationService=n,this.keybindingService=o,this.themeService=i,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}var al,sl,ll=n(821),cl=function(e,t){return function(n,o){t(n,o,e)}},ul=((al=function(e,t){return(al=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}al(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(dl,sl=it.a),dl.prototype.configure=function(e){this.contextMenuHandler.configure(e)},dl.prototype.showContextMenu=function(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire()},dl=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([cl(0,ll.a),cl(1,ri.a),cl(2,Xi.b),cl(3,Qi.a),cl(4,er.c)],dl));function dl(e,t,n,o,i){var r=sl.call(this)||this;return r._onDidContextMenu=r._register(new ve.a),r.contextMenuHandler=new il(n,e,t,o,i),r}n(1389);var hl,pl=n(896),fl=n(820);function gl(e,t,n){var o=n.offset+n.size;return 0===n.position?t<=e-o?o:t<=n.offset?n.offset-t:Math.max(e-t,0):t<=n.offset?n.offset-t:t<=e-o?o:0}var ml,vl=((hl=function(e,t){return(hl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}hl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(yl,ml=it.a),yl.prototype.setContainer=function(e){var t=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 n=new it.b;yl.BUBBLE_UP_EVENTS.forEach((function(e){n.add(Le.o(t.container,e,(function(e){t.onDOMEvent(e,!1)})))})),yl.BUBBLE_DOWN_EVENTS.forEach((function(e){n.add(Le.o(t.container,e,(function(e){t.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=n}},yl.prototype.show=function(e){this.isVisible()&&this.hide(),Le.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",Le.X(this.view),this.toDisposeOnClean=e.render(this.view)||it.a.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()},yl.prototype.layout=function(){this.isVisible()&&(!1!==this.delegate.canRelayout||at.c&&fl.a.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())},yl.prototype.doLayout=function(){if(this.isVisible()){var e,t=this.delegate.getAnchor();if(Le.L(t)){var n=Le.C(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 o,i=Le.H(this.view),r=Le.G(this.view),a=this.delegate.anchorPosition||0,s=this.delegate.anchorAlignment||0,l={offset:e.top-window.pageYOffset,size:e.height,position:0===a?0:1};o=0===s?{offset:e.left,size:0,position:0}:{offset:e.left+e.width,size:0,position:1};var c=gl(window.innerHeight,r,l)+window.pageYOffset;pl.a.intersects({start:c,end:c+r},{start:l.offset,end:l.offset+l.size})&&(o.size=e.width,1===s&&(o.offset=e.left));var u=gl(window.innerWidth,i,o);Le.Q(this.view,"top","bottom","left","right"),Le.f(this.view,0===a?"bottom":"top"),Le.f(this.view,0===s?"left":"right");var d=Le.C(this.container);this.view.style.top=c-d.top+"px",this.view.style.left=u-d.left+"px",this.view.style.width="initial"}},yl.prototype.hide=function(e){var t=this.delegate;(this.delegate=null)!=t&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),Le.J(this.view)},yl.prototype.isVisible=function(){return!!this.delegate},yl.prototype.onDOMEvent=function(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Le.K(e.target,this.container)&&this.hide())},yl.prototype.dispose=function(){this.hide(),ml.prototype.dispose.call(this)},yl.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],yl.BUBBLE_DOWN_EVENTS=["click"],yl);function yl(e){var t=ml.call(this)||this;return t.container=null,t.delegate=null,t.toDisposeOnClean=it.a.None,t.toDisposeOnSetContainer=it.a.None,t.view=Le.a(".context-view"),Le.J(t.view),t.setContainer(e),t._register(Object(it.h)((function(){return t.setContainer(null)}))),t}var bl,_l,wl=Object(Ji.c)("layoutService"),Cl=((bl=function(e,t){return(bl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}bl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Sl,_l=it.a),Sl.prototype.setContainer=function(e){this.contextView.setContainer(e)},Sl.prototype.showContextView=function(e){this.contextView.show(e)},Sl.prototype.layout=function(){this.contextView.layout()},Sl.prototype.hideContextView=function(e){this.contextView.hide(e)},Sl=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([function(e,t){return function(n,o){t(n,o,e)}}(0,wl)],Sl));function Sl(e){var t=_l.call(this)||this;return t.layoutService=e,t.contextView=t._register(new vl(e.container)),t.layout(),t._register(e.onLayout((function(){return t.layout()}))),t}var Ol=Object(Ji.c)("dialogService"),xl=n(822),El=(kl.prototype.roots=function(){var e=[];return Object(xl.c)(this._nodes,(function(t){Object(st.f)(t.value.outgoing)&&e.push(t.value)})),e},kl.prototype.insertEdge=function(e,t){var n=this.lookupOrInsertNode(e),o=this.lookupOrInsertNode(t);(n.outgoing[this._hashFn(t)]=o).incoming[this._hashFn(e)]=n},kl.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t],Object(xl.c)(this._nodes,(function(e){delete e.value.outgoing[t],delete e.value.incoming[t]}))},kl.prototype.lookupOrInsertNode=function(e){var t=this._hashFn(e),n=this._nodes[t];return n||(n={data:e,incoming:Object.create(null),outgoing:Object.create(null)},this._nodes[t]=n),n},kl.prototype.isEmpty=function(){for(var e in this._nodes)return!1;return!0},kl.prototype.toString=function(){var e=[];return Object(xl.c)(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")},kl);function kl(e){this._hashFn=e,this._nodes=Object.create(null)}var Nl,Dl,Ll=n(1079),Pl=n(895),Il=function(e,t){function n(){this.constructor=e}Nl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Tl=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o},Ml=(Nl=function(e,t){return(Nl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},"function"==typeof Proxy),jl=(Il(Rl,Dl=Error),Rl);function Rl(e){var t=Dl.call(this,"cyclic dependency between services")||this;return t.message=e.toString(),t}var Al=(Fl.prototype.createChild=function(e){return new Fl(e,this._strict,this)},Fl.prototype.invokeFunction=function(e){for(var t=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=Wl.traceInvocation(e),r=!1;try{var a={get:function(e,n){if(r)throw Object(rt.c)("service accessor is only valid during the invocation of its target method");var o=t._getOrCreateServiceInstance(e,i);if(!o&&n!==Ji.d)throw new Error("[invokeFunction] unknown service '"+e+"'");return o}};return e.apply(void 0,Tl([a],n))}finally{r=!0,i.stop()}},Fl.prototype.createInstance=function(e){for(var t,n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return n=e instanceof Ll.a?(t=Wl.traceCreation(e.ctor),this._createInstance(e.ctor,e.staticArguments.concat(o),t)):(t=Wl.traceCreation(e),this._createInstance(e,o,t)),t.stop(),n},Fl.prototype._createInstance=function(e,t,n){void 0===t&&(t=[]);for(var o=Ji.b.getServiceDependencies(e).sort((function(e,t){return e.index-t.index})),i=[],r=0,a=o;r<a.length;r++){var s=a[r],l=this._getOrCreateServiceInstance(s.id,n);if(!l&&this._strict&&!s.optional)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+s.id+".");i.push(l)}var c=0<o.length?o[0].index:t.length;if(t.length!==c){var u=c-t.length;t=0<u?t.concat(new Array(u)):t.slice(0,c)}return new(e.bind.apply(e,Tl([void 0],Tl(t,i))))},Fl.prototype._setServiceInstance=function(e,t){if(this._services.get(e)instanceof Ll.a)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}},Fl.prototype._getServiceInstanceOrDescriptor=function(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t},Fl.prototype._getOrCreateServiceInstance=function(e,t){var n=this._getServiceInstanceOrDescriptor(e);return n instanceof Ll.a?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)},Fl.prototype._createAndCacheServiceInstance=function(e,t,n){for(var o=new El((function(e){return e.id.toString()})),i=0,r=[{id:e,desc:t,_trace:n}];r.length;){var a=r.pop();if(o.lookupOrInsertNode(a),150<i++)throw new jl(o);for(var s=0,l=Ji.b.getServiceDependencies(a.desc.ctor);s<l.length;s++){var c=l[s],u=this._getServiceInstanceOrDescriptor(c.id);if(u||c.optional,u instanceof Ll.a){var d={id:c.id,desc:u,_trace:a._trace.branch(c.id,!0)};o.insertEdge(a,d),r.push(d)}}}for(;;){var h=o.roots();if(0===h.length){if(!o.isEmpty())throw new jl(o);break}for(var p=0,f=h;p<f.length;p++){var g=f[p].data,m=this._createServiceInstanceWithOwner(g.id,g.desc.ctor,g.desc.staticArguments,g.desc.supportsDelayedInstantiation,g._trace);this._setServiceInstance(g.id,m),o.removeNode(g)}}return this._getServiceInstanceOrDescriptor(e)},Fl.prototype._createServiceInstanceWithOwner=function(e,t,n,o,i){if(void 0===n&&(n=[]),this._services.get(e)instanceof Ll.a)return this._createServiceInstance(t,n,o,i);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,o,i);throw new Error("illegalState - creating UNKNOWN service instance "+t.name)},Fl.prototype._createServiceInstance=function(e,t,n,o){var i=this;if(void 0===t&&(t=[]),n&&Ml){var r=new ot.b((function(){return i._createInstance(e,t,o)}));return new Proxy(Object.create(null),{get:function(e,t){if(t in e)return e[t];var n=r.getValue(),o=n[t];return"function"!=typeof o?o:(o=o.bind(n),e[t]=o)},set:function(e,t,n){return r.getValue()[t]=n,!0}})}return this._createInstance(e,t,o)},Fl);function Fl(e,t,n){void 0===e&&(e=new Pl.a),void 0===t&&(t=!1),this._services=e,this._strict=t,this._parent=n,this._services.set(Ji.a,this)}var Vl,Wl=(Bl.traceInvocation=function(e){return Bl._None},Bl.traceCreation=function(e){return Bl._None},Bl.prototype.branch=function(e,t){var n=new Bl(2,e.toString());return this._dep.push([e,t,n]),n},Bl.prototype.stop=function(){var e=Date.now()-this._start;Bl._totals+=e,this.type,this.name,function e(t,n){for(var o=[],i=new Array(t+1).join("\t"),r=0,a=n._dep;r<a.length;r++){var s=a[r],l=s[0],c=s[1],u=s[2];if(c&&u){o.push(i+"CREATES -> "+l);var d=e(t+1,u);d&&o.push(d)}else o.push(i+"uses -> "+l)}return o.join("\n")}(1,this),e.toFixed(2),Bl._totals.toFixed(2)},Bl._None=(Il(Hl,Vl=Bl),Hl.prototype.stop=function(){},Hl.prototype.branch=function(){return this},new Hl),Bl._totals=0,Bl);function Bl(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}function Hl(){return Vl.call(this,-1,null)||this}var zl,Kl,Ul=n(898),ql=n(969),Gl=n(773);(Kl=zl=zl||{}).get=function(e,t,n){if(e[t])return e[t][n]},Kl.set=function(e,t,n,o){e[t]||(e[t]=Object.create(null)),e[t][n]=o},Kl.remove=function(e,t,n){return!(!e[t]||!e[t][n])&&(delete e[t][n],Object(st.f)(e[t])&&delete e[t],!0)};var Yl=(Zl.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},Zl.prototype._update=function(e){if(this._data)for(var t=0,n=e;t<n.length;t++){var o=n[t],i=o.toString(),r=this._data[i];r&&this._substract(r);var a=this._resourceStats(o);this._add(a),this._data[i]=a}},Zl.prototype._resourceStats=function(e){var t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===Te.b.inMemory||e.scheme===Te.b.walkThrough||e.scheme===Te.b.walkThroughSnippet)return t;for(var n=0,o=this._service.read({resource:e});n<o.length;n++){var i=o[n].severity;i===Gl.c.Error?t.errors+=1:i===Gl.c.Warning?t.warnings+=1:i===Gl.c.Info?t.infos+=1:t.unknowns+=1}return t},Zl.prototype._substract=function(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns},Zl.prototype._add=function(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns},Zl);function Zl(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)}var $l=(Xl.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty(Xl.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),Xl.prototype.remove=function(e,t){for(var n=0,o=t||[];n<o.length;n++){var i=o[n];this.changeOne(e,i,[])}},Xl.prototype.changeOne=function(e,t,n){if(Object(wt.p)(n)){var o=zl.remove(this._byResource,t.toString(),e),i=zl.remove(this._byOwner,e,t.toString());if(o!==i)throw new Error("invalid marker service state");o&&i&&this._onMarkerChanged.fire([t])}else{for(var r=[],a=0,s=n;a<s.length;a++){var l=s[a],c=Xl._toMarker(e,t,l);c&&r.push(c)}zl.set(this._byResource,t.toString(),e,r),zl.set(this._byOwner,e,t.toString(),r),this._onMarkerChanged.fire([t])}},Xl._toMarker=function(e,t,n){var o=n.code,i=n.severity,r=n.message,a=n.source,s=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,u=n.endColumn,d=n.relatedInformation,h=n.tags;if(r)return{resource:t,owner:e,code:o,severity:i,message:r,source:a,startLineNumber:s=0<s?s:1,startColumn:l=0<l?l:1,endLineNumber:c=s<=c?c:s,endColumn:u=0<u?u:l,relatedInformation:d,tags:h}},Xl.prototype.read=function(e){void 0===e&&(e=Object.create(null));var t=e.owner,n=e.resource,o=e.severities,i=e.take;if((!i||i<0)&&(i=-1),t&&n){if(y=zl.get(this._byResource,n.toString(),t)){for(var r=[],a=0,s=y;a<s.length;a++){var l=s[a];if(Xl._accept(l,o)){var c=r.push(l);if(0<i&&c===i)break}}return r}return[]}if(t||n){var u=t?this._byOwner[t]:n?this._byResource[n.toString()]:void 0;if(!u)return[];for(var d in r=[],u)for(var h=0,p=u[d];h<p.length;h++)if(y=p[h],Xl._accept(y,o)&&(c=r.push(y),0<i&&c===i))return r;return r}r=[];for(var f in this._byResource)for(var g in this._byResource[f])for(var m=0,v=this._byResource[f][g];m<v.length;m++){var y=v[m];if(Xl._accept(y,o)){c=r.push(y);if(0<i&&c===i)return r}}return r},Xl._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity},Xl._debouncer=function(e,t){e||(Xl._dedupeMap=Object.create(null),e=[]);for(var n=0,o=t;n<o.length;n++){var i=o[n];void 0===Xl._dedupeMap[i.toString()]&&(Xl._dedupeMap[i.toString()]=!0,e.push(i))}return e},Xl);function Xl(){this._onMarkerChanged=new ve.a,this._onMarkerChangedEvent=ve.b.debounce(this._onMarkerChanged.event,Xl._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new Yl(this)}var Jl=n(775),Ql=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a},ec=function(e,t){return function(n,o){t(n,o,e)}},tc=(nc.prototype.createMenu=function(e,t){return new oc(e,this._commandService,t)},nc=Ql([ec(0,je.b)],nc));function nc(e){this._commandService=e}var oc=(ic.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},ic.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var e,t=$i.c.getMenuItems(this._id);t.sort(ic._compareMenuItems);for(var n=0,o=t;n<o.length;n++){var i=o[n],r=i.group||"";e&&e[0]===r||(e=[r,[]],this._menuGroups.push(e)),e[1].push(i),ic._fillInKbExprKeys(i.when,this._contextKeys),Object($i.e)(i)&&i.command.precondition&&ic._fillInKbExprKeys(i.command.precondition,this._contextKeys),Object($i.e)(i)&&i.command.toggled&&ic._fillInKbExprKeys(i.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},ic.prototype.getActions=function(e){for(var t=[],n=0,o=this._menuGroups;n<o.length;n++){for(var i=o[n],r=i[0],a=[],s=0,l=i[1];s<l.length;s++){var c=l[s];if(this._contextKeyService.contextMatchesRules(c.when)){var u=Object($i.e)(c)?new $i.b(c.command,c.alt,e,this._contextKeyService,this._commandService):new $i.d(c);a.push(u)}}0<a.length&&t.push([r,a])}return t},ic._fillInKbExprKeys=function(e,t){if(e)for(var n=0,o=e.keys();n<o.length;n++){var i=o[n];t.add(i)}},ic._compareMenuItems=function(e,t){var n=e.group,o=t.group;if(n!==o){if(!n)return 1;if(!o)return-1;if("navigation"===n)return-1;if("navigation"===o)return 1;var i=n.localeCompare(o);if(0!==i)return i}var r=e.order||0,a=t.order||0;return r<a?-1:a<r?1:ic._compareTitles(Object($i.e)(e)?e.command.title:e.title,Object($i.e)(t)?t.command.title:t.title)},ic._compareTitles=function(e,t){var n="string"==typeof e?e:e.value,o="string"==typeof t?t:t.value;return n.localeCompare(o)},ic=Ql([ec(1,je.b),ec(2,Ko.c)],ic));function ic(e,t,n){var o=this;this._id=e,this._commandService=t,this._contextKeyService=n,this._onDidChange=new ve.a,this._dispoables=new it.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(ve.b.debounce(ve.b.filter($i.c.onDidChangeMenu,(function(e){return e===o._id})),(function(){}),50)(this._build,this)),this._dispoables.add(ve.b.debounce(this._contextKeyService.onDidChangeContext,(function(e,t){return e||t.affectsSome(o._contextKeys)}),50)((function(e){return e&&o._onDidChange.fire(void 0)}),this))}var rc,ac=n(1096),sc=(rc=function(e,t){return(rc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}rc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),lc=function(e,t){return function(n,o){t(n,o,e)}};function cc(e){return e.toString()}var uc,dc=(sc(hc,uc=it.a),hc.prototype.update=function(e,t){var n=Object(ko.d)(this._markersData);this._markersData.clear();for(var o=this.model.deltaDecorations(n,t),i=0;i<o.length;i++)this._markersData.set(o[i],e[i])},hc.prototype.getMarker=function(e){return this._markersData.get(e.id)},hc);function hc(e){var t=uc.call(this)||this;return t.model=e,t._markersData=new Map,t._register(Object(it.h)((function(){t.model.deltaDecorations(Object(ko.d)(t._markersData),[]),t._markersData.clear()}))),t}var pc,fc=(sc(gc,pc=it.a),gc.prototype.dispose=function(){pc.prototype.dispose.call(this),this._markerDecorations.forEach((function(e){return e.dispose()})),this._markerDecorations.clear()},gc.prototype.getMarker=function(e,t){var n=this._markerDecorations.get(cc(e.uri));return n?Object(st.o)(n.getMarker(t)):null},gc.prototype._handleMarkerChange=function(e){var t=this;e.forEach((function(e){var n=t._markerDecorations.get(cc(e));n&&t._updateDecorations(n)}))},gc.prototype._onModelAdded=function(e){var t=new dc(e);this._markerDecorations.set(cc(e.uri),t),this._updateDecorations(t)},gc.prototype._onModelRemoved=function(e){var t=this,n=this._markerDecorations.get(cc(e.uri));n&&(n.dispose(),this._markerDecorations.delete(cc(e.uri))),e.uri.scheme!==Te.b.inMemory&&e.uri.scheme!==Te.b.internal&&e.uri.scheme!==Te.b.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])}))},gc.prototype._updateDecorations=function(e){var t=this,n=this._markerService.read({resource:e.model.uri,take:500}),o=n.map((function(n){return{range:t._createDecorationRange(e.model,n),options:t._createDecorationOption(n)}}));e.update(n,o),this._onDidChangeMarker.fire(e.model)},gc.prototype._createDecorationRange=function(e,t){var n=we.a.lift(t);if(t.severity!==Gl.c.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),(n=e.validateRange(n)).isEmpty()){var o=e.getWordAtPosition(n.getStartPosition());if(o)n=new we.a(n.startLineNumber,o.startColumn,n.endLineNumber,o.endColumn);else{var i=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===i||(n=n.endColumn>=i?new we.a(n.startLineNumber,i-1,n.endLineNumber,i):new we.a(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 we.a(n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r)}return n},gc.prototype._createDecorationOption=function(e){var t,n,o,i=void 0,r=void 0;switch(e.severity){case Gl.c.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case Gl.c.Warning:t="squiggly-warning",i=Object(er.f)(ss.r),n=20,o={color:Object(er.f)(ls.Jb),position:Je.c.Inline};break;case Gl.c.Info:t="squiggly-info",i=Object(er.f)(ss.q),n=10;break;case Gl.c.Error:default:t="squiggly-error",i=Object(er.f)(ss.p),n=30,o={color:Object(er.f)(ls.Gb),position:Je.c.Inline}}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:i,position:Je.d.Right},minimap:o,zIndex:n,inlineClassName:r}},gc.prototype._hasMarkerTag=function(e,t){return!!e.tags&&0<=e.tags.indexOf(t)},gc=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([lc(0,dn.a),lc(1,Gl.b)],gc));function gc(e,t){var n=pc.call(this)||this;return n._markerService=t,n._onDidChangeMarker=n._register(new ve.a),n._markerDecorations=new Map,e.getModels().forEach((function(e){return n._onModelAdded(e)})),n._register(e.onModelAdded(n._onModelAdded,n)),n._register(e.onModelRemoved(n._onModelRemoved,n)),n._register(n._markerService.onMarkerChanged(n._handleMarkerChange,n)),n}var mc,vc,yc=n(792),bc=function(e,t){return function(n,o){t(n,o,e)}},_c=((mc=function(e,t){return(mc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}mc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(wc,vc=it.a),Object.defineProperty(wc.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),wc.prototype.isScreenReaderOptimized=function(){var e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport},wc.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},wc=function(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(r<3?i(a):3<r?i(t,n,a):i(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([bc(0,Ko.c),bc(1,Eo.a)],wc));function wc(e,t){var n=vc.call(this)||this;function o(){return n._accessibilityModeEnabledContext.set(n.isScreenReaderOptimized())}return n._contextKeyService=e,n._configurationService=t,n._accessibilitySupport=0,n._onDidChangeScreenReaderOptimized=new ve.a,n._accessibilityModeEnabledContext=tr.a.bindTo(n._contextKeyService),n._register(n._configurationService.onDidChangeConfiguration((function(e){e.affectsConfiguration("editor.accessibilitySupport")&&(o(),n._onDidChangeScreenReaderOptimized.fire())}))),o(),n.onDidChangeScreenReaderOptimized((function(){return o()})),n}var Cc,Sc,Oc=(Cc=function(e,t){return(Cc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Cc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){var t=new Pl.a,n=(Object.defineProperty(o.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),o.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},o);function o(e,t){this._serviceId=e,this._factory=t,this._value=null}e.LazyStaticService=n;var i=[];function r(e,t){var o=new n(e,t);return i.push(o),o}e.init=function(e){for(var t=new Pl.a,n=0,o=Object(yc.a)();n<o.length;n++){var r=o[n],a=r[0],s=r[1];t.set(a,s)}for(var l in e)e.hasOwnProperty(l)&&t.set(Object(Ji.c)(l),e[l]);i.forEach((function(n){return t.set(n.id,n.get(e))}));var c=new Al(t,!0);return t.set(Ji.a,c),[t,c]},e.instantiationService=r(Ji.a,(function(){return new Al(t,!0)}));var a=new xi;e.configurationService=r(Eo.a,(function(){return a})),e.resourceConfigurationService=r(hn.a,(function(){return new ki(a)})),e.resourcePropertiesService=r(hn.b,(function(){return new Di(a)})),e.contextService=r(ai.a,(function(){return new Ti})),e.labelService=r(Ul.a,(function(){return new Fi})),e.telemetryService=r(ll.a,(function(){return new Pi})),e.dialogService=r(Ol,(function(){return new mi})),e.notificationService=r(ri.a,(function(){return new vi})),e.markerService=r(Gl.b,(function(){return new $l})),e.modeService=r(br.a,(function(e){return new zr})),e.standaloneThemeService=r(Zi.a,(function(){return new Os})),e.logService=r(pn.a,(function(){return new pn.c})),e.modelService=r(dn.a,(function(t){return new ta(e.configurationService.get(t),e.resourcePropertiesService.get(t),e.standaloneThemeService.get(t),e.logService.get(t))})),e.markerDecorationsService=r(ac.a,(function(t){return new fc(e.modelService.get(t),e.markerService.get(t))})),e.codeEditorService=r(De.a,(function(t){return new za(e.standaloneThemeService.get(t))})),e.editorProgressService=r(or.a,(function(){return new fi})),e.storageService=r(Jl.a,(function(){return new Jl.b})),e.editorWorkerService=r(tt.a,(function(t){return new bn(e.modelService.get(t),e.resourceConfigurationService.get(t),e.logService.get(t))}))}(Sc=Sc||{});var xc,Ec=(Oc(kc,xc=it.a),kc.prototype.get=function(e){var t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t},kc.prototype.set=function(e,t){this._serviceCollection.set(e,t)},kc.prototype.has=function(e){return this._serviceCollection.has(e)},kc);function kc(e,t){var n=xc.call(this)||this,o=Sc.init(t),i=o[0],r=o[1];function a(e,o){var i=null;return t&&(i=t[e.toString()]),i=i||o(),n._serviceCollection.set(e,i),i}n._serviceCollection=i,n._instantiationService=r;var s=n.get(Eo.a),l=n.get(ri.a),c=n.get(ll.a),u=n.get(er.c),d=a(Ko.c,(function(){return n._register(new Ys(s))}));a(tr.b,(function(){return new _c(d,s)})),a(ql.a,(function(){return new ql.b(u)}));var h=a(je.b,(function(){return new bi(n._instantiationService)})),p=a(Qi.a,(function(){return n._register(new Ci(d,h,c,l,e))})),f=a(wl,(function(){return new Wi(e)})),g=a(Xi.b,(function(){return n._register(new Cl(f))}));return a(Xi.a,(function(){var e=new ul(c,l,g,p,u);return e.configure({blockMouse:!1}),n._register(e)})),a($i.a,(function(){return new tc(h)})),a(yr.a,(function(){return new Ri(Sc.modelService.get(dn.a))})),n}var Nc=n(707);function Dc(e,t,n){var o=new Ec(e,t),i=null;o.has(nt.a)||(i=new hi(Sc.modelService.get()),o.set(nt.a,i)),o.has(Re.a)||o.set(Re.a,new qe(o.get(De.a),o.get(je.b)));var r=n(o);return i&&i.setEditor(r),r}function Lc(e,t,n){return Sc.modelService.get().createModel(e,t,n)}function Pc(e,t){return"boolean"==typeof e?e:t}function Ic(e,t){return"string"==typeof e?e:t}function Tc(e,t){void 0===t&&(t=!1),t&&(e=e.map((function(e){return e.toLowerCase()})));var n=function(e){for(var t={},n=0,o=e;n<o.length;n++)t[o[n]]=!0;return t}(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 Mc(e,t){for(var n=0;0<=t.indexOf("@")&&n<5;)n++,t=t.replace(/@(\w+)/g,(function(n,o){var i="";if("string"==typeof e[o])i=e[o];else{if(!(e[o]&&e[o]instanceof RegExp))throw void 0===e[o]?Zn(e,"language definition does not contain attribute '"+o+"', used at: "+t):Zn(e,"attribute reference '"+o+"' must be a string, used at: "+t);i=e[o].source}return qn(i)?"":"(?:"+i+")"}));return new RegExp(t,e.ignoreCase?"i":"")}function jc(e,t,n,o){var i=-1,r=n,a=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);a&&(a[3]&&(i=parseInt(a[3]),a[2]&&(i+=100)),r=a[4]);var s,l="~",c=r;if(r&&0!==r.length?/^\w*$/.test(c)?l="==":(a=r.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(l=a[1],c=a[2]):(l="!=",c=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(c))if("@"===l||"!@"===l){var u=e[c];if(!u)throw Zn(e,"the @ match target '"+c+"' is not defined, in rule: "+t);if(!function(e,t){if(t&&Array.isArray(t)){for(var n=0,o=t;n<o.length;n++)if(!e(o[n]))return;return 1}}((function(e){return"string"==typeof e}),u))throw Zn(e,"the @ match target '"+c+"' must be an array of strings, in rule: "+t);var d=Tc(u,e.ignoreCase);s=function(e){return"@"===l?d(e):!d(e)}}else if("~"===l||"!~"===l)if(c.indexOf("$")<0){var h=Mc(e,"^"+c+"$");s=function(e){return"~"===l?h.test(e):!h.test(e)}}else s=function(t,n,o,i){return Mc(e,"^"+$n(e,c,n,o,i)+"$").test(t)};else if(c.indexOf("$")<0){var p=Gn(e,c);s=function(e){return"=="===l?e===p:e!==p}}else{var f=Gn(e,c);s=function(t,n,o,i){var r=$n(e,f,n,o,i);return"=="===l?t===r:t!==r}}else{var g=Tc(c.split("|"),e.ignoreCase);s=function(e){return"~"===l?g(e):!g(e)}}return-1===i?{name:n,value:o,test:function(e,t,n,o){return s(e,e,t,n,o)}}:{name:n,value:o,test:function(e,t,n,o){var r=function(e,t,n,o){if(o<0)return e;if(o<t.length)return t[o];if(100<=o){o-=100;var i=n.split(".");if(i.unshift(n),o<i.length)return i[o]}return null}(e,t,n,i);return s(r||"",e,t,n,o)}}}var Rc=(Ac.prototype.setRegex=function(e,t){var n;if("string"==typeof t)n=t;else{if(!(t instanceof RegExp))throw Zn(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=0<n.length&&"^"===n[0],this.name=this.name+": "+n,this.regex=Mc(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")},Ac.prototype.setAction=function(e,t){this.action=function e(t,n,o){if(o){if("string"==typeof o)return o;if(o.token||""===o.token){if("string"!=typeof o.token)throw Zn(t,"a 'token' attribute must be of type string, in rule: "+n);var i={token:o.token};if(0<=o.token.indexOf("$")&&(i.tokenSubst=!0),"string"==typeof o.bracket)if("@open"===o.bracket)i.bracket=1;else{if("@close"!==o.bracket)throw Zn(t,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+n);i.bracket=-1}if(o.next){if("string"!=typeof o.next)throw Zn(t,"the next state must be a string value in rule: "+n);var r=o.next;if(!/^(@pop|@push|@popall)$/.test(r)&&("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&!function(e,t){for(var n=t;n&&0<n.length;){if(e.stateNames[n])return 1;var o=n.lastIndexOf(".");n=o<0?null:n.substr(0,o)}}(t,$n(t,r,"",[],""))))throw Zn(t,"the next state '"+o.next+"' is not defined in rule: "+n);i.next=r}return"number"==typeof o.goBack&&(i.goBack=o.goBack),"string"==typeof o.switchTo&&(i.switchTo=o.switchTo),"string"==typeof o.log&&(i.log=o.log),"string"==typeof o.nextEmbedded&&(i.nextEmbedded=o.nextEmbedded,t.usesEmbedded=!0),i}if(Array.isArray(o)){for(var a=[],s=0,l=o.length;s<l;s++)a[s]=e(t,n,o[s]);return{group:a}}if(o.cases){var c=[];for(var u in o.cases)if(o.cases.hasOwnProperty(u)){var d=e(t,n,o.cases[u]);"@default"===u||"@"===u||""===u?c.push({test:void 0,value:d,name:u}):"@eos"===u?c.push({test:function(e,t,n,o){return o},value:d,name:u}):c.push(jc(t,n,u,d))}var h=t.defaultToken;return{test:function(e,t,n,o){for(var i=0,r=c;i<r.length;i++){var a=r[i];if(!a.test||a.test(e,t,n,o))return a.value}return h}}}throw Zn(t,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+n)}return{token:""}}(e,this.name,t)},Ac);function Ac(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}var Fc=(Vc.prototype.getInitialState=function(){return this._actual.getInitialState()},Vc.prototype.tokenize=function(e,t,n){throw new Error("Not supported!")},Vc.prototype.tokenize2=function(e,t){var n=this._actual.tokenizeEncoded(e,t);return new Se.c(n.tokens,n.endState)},Vc);function Vc(e){this._actual=e}var Wc=(Bc.prototype.getInitialState=function(){return this._actual.getInitialState()},Bc.prototype._toClassicTokens=function(e,t,n){for(var o=[],i=0,r=0,a=e.length;r<a;r++){var s=e[r],l=s.startIndex;0===r?l=0:l<i&&(l=i),o[r]=new Se.a(l+n,s.scopes,t),i=l}return o},Bc.prototype.tokenize=function(e,t,n){var o,i=this._actual.tokenize(e,t),r=this._toClassicTokens(i.tokens,this._languageIdentifier.language,n);return o=i.endState.equals(t)?t:i.endState,new Se.b(r,o)},Bc.prototype._toBinaryTokens=function(e,t){for(var n=this._languageIdentifier.id,o=this._standaloneThemeService.getTheme().tokenTheme,i=[],r=0,a=0,s=0,l=e.length;s<l;s++){var c=e[s],u=o.match(n,c.scopes);if(!(0<r&&i[r-1]===u)){var d=c.startIndex;0===s?d=0:d<a&&(d=a),i[r++]=d+t,i[r++]=u,a=d}}var h=new Uint32Array(r);for(s=0;s<r;s++)h[s]=i[s];return h},Bc.prototype.tokenize2=function(e,t,n){var o,i=this._actual.tokenize(e,t),r=this._toBinaryTokens(i.tokens,n);return o=i.endState.equals(t)?t:i.endState,new Se.c(r,o)},Bc);function Bc(e,t,n){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=n}function Hc(e){return e&&"function"==typeof e.then}n.d(t,"CancellationTokenSource",(function(){return Uc})),n.d(t,"Emitter",(function(){return qc})),n.d(t,"KeyCode",(function(){return Gc})),n.d(t,"KeyMod",(function(){return Yc})),n.d(t,"Position",(function(){return Zc})),n.d(t,"Range",(function(){return $c})),n.d(t,"Selection",(function(){return Xc})),n.d(t,"SelectionDirection",(function(){return Jc})),n.d(t,"MarkerSeverity",(function(){return Qc})),n.d(t,"MarkerTag",(function(){return eu})),n.d(t,"Uri",(function(){return tu})),n.d(t,"Token",(function(){return nu})),n.d(t,"editor",(function(){return ou})),n.d(t,"languages",(function(){return iu}));var zc=self;ge.e.wrappingIndent.defaultValue=0,ge.e.glyphMargin.defaultValue=!1,ge.e.autoIndent.defaultValue=3,ge.e.overviewRulerLanes.defaultValue=2;var Kc=Ee();Kc.editor={create:function(e,t,n){return Dc(e,n||{},(function(n){return new pr(e,t,n,n.get(Ji.a),n.get(De.a),n.get(je.b),n.get(Ko.c),n.get(Qi.a),n.get(Xi.b),n.get(Zi.a),n.get(ri.a),n.get(Eo.a),n.get(tr.b))}))},onDidCreateEditor:function(e){return Sc.codeEditorService.get().onCodeEditorAdd((function(t){e(t)}))},createDiffEditor:function(e,t,n){return Dc(e,n||{},(function(n){return new mr(e,t,n,n.get(Ji.a),n.get(Ko.c),n.get(Qi.a),n.get(Xi.b),n.get(tt.a),n.get(De.a),n.get(Zi.a),n.get(ri.a),n.get(Eo.a),n.get(Xi.a),n.get(or.a),null)}))},createDiffNavigator:function(e,t){return new Ze.a(e,t)},createModel:function(e,t,n){if(e=e||"",t)return Lc(e,Sc.modeService.get().create(t),n);var o=e.indexOf("\n"),i=e;return-1!==o&&(i=e.substring(0,o)),Lc(e,Sc.modeService.get().createByFilepathOrFirstLine(n||null,i),n)},setModelLanguage:function(e,t){Sc.modelService.get().setMode(e,Sc.modeService.get().create(t))},setModelMarkers:function(e,t,n){e&&Sc.markerService.get().changeOne(t,e.uri,n)},getModelMarkers:function(e){return Sc.markerService.get().read(e)},getModels:function(){return Sc.modelService.get().getModels()},getModel:function(e){return Sc.modelService.get().getModel(e)},onDidCreateModel:function(e){return Sc.modelService.get().onModelAdded(e)},onWillDisposeModel:function(e){return Sc.modelService.get().onModelRemoved(e)},onDidChangeModelLanguage:function(e){return Sc.modelService.get().onModelModeChanged((function(t){e({model:t.model,oldLanguage:t.oldModeId})}))},createWebWorker:function(e){return t=Sc.modelService.get(),new Fn(t,e);var t},colorizeElement:function(e,t){return mo.colorizeElement(Sc.standaloneThemeService.get(),Sc.modeService.get(),e,t)},colorize:function(e,t,n){return mo.colorize(Sc.modeService.get(),e,t,n)},colorizeModelLine:function(e,t,n){return void 0===n&&(n=4),mo.colorizeModelLine(e,t,n)},tokenize:function(e,t){Sc.modeService.get().triggerMode(t);for(var n,o=(n=t,Qe.B.get(n)||{getInitialState:function(){return et.c},tokenize:function(e,t,o){return Object(et.d)(n,e,t,o)}}),i=e.split(/\r\n|\r|\n/),r=[],a=o.getInitialState(),s=0,l=i.length;s<l;s++){var c=i[s],u=o.tokenize(c,a,0);r[s]=u.tokens,a=u.endState}return r},defineTheme:function(e,t){Sc.standaloneThemeService.get().defineTheme(e,t)},setTheme:function(e){Sc.standaloneThemeService.get().setTheme(e)},remeasureFonts:function(){Object(Nc.b)()},AccessibilitySupport:o,ContentWidgetPositionPreference:p,CursorChangeReason:g,DefaultEndOfLine:v,EditorAutoIndentStrategy:w,EditorOption:S,EndOfLinePreference:x,EndOfLineSequence:k,MinimapPosition:A,MouseTargetType:V,OverlayWidgetPositionPreference:B,OverviewRulerLane:z,RenderLineNumbersType:U,RenderMinimap:G,ScrollbarVisibility:X,ScrollType:Z,TextEditorCursorBlinkingStyle:se,TextEditorCursorStyle:ce,TrackedRangeStickiness:de,WrappingIndent:pe,ConfigurationChangedEvent:ge.a,BareFontInfo:$e.a,FontInfo:$e.b,TextModelResolvedOptions:Je.e,FindMatch:Je.b,EditorType:Xe.a,EditorOptions:ge.e},Kc.languages={register:function(e){Tr.a.registerLanguage(e)},getLanguages:function(){var e=[];return e.concat(Tr.a.getLanguages())},onLanguage:function(e,t){var n=Sc.modeService.get().onDidCreateMode((function(o){o.getId()===e&&(n.dispose(),t())}));return n},getEncodedLanguageId:function(e){var t=Sc.modeService.get().getLanguageIdentifier(e);return t?t.id:0},setLanguageConfiguration:function(e,t){var n=Sc.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set configuration for unknown language "+e);return _t.a.register(n,t)},setTokensProvider:function(e,t){var n=Sc.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set tokens provider for unknown language "+e);function o(e){return"tokenizeEncoded"in e?new Fc(e):new Wc(Sc.standaloneThemeService.get(),n,e)}return Hc(t)?Qe.B.registerPromise(e,t.then((function(e){return o(e)}))):Qe.B.register(e,o(t))},setMonarchTokensProvider:function(e,t){function n(t){return n=Sc.modeService.get(),o=Sc.standaloneThemeService.get(),r=function(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=Pc(t.ignoreCase,!1),n.tokenPostfix=Ic(t.tokenPostfix,"."+n.languageId),n.defaultToken=Ic(t.defaultToken,"source"),n.usesEmbedded=!1;var o=t;function i(e,r,a){for(var s=0,l=a;s<l.length;s++){var c=l[s],u=c.include;if(u){if("string"!=typeof u)throw Zn(n,"an 'include' attribute must be a string at: "+e);if("@"===u[0]&&(u=u.substr(1)),!t.tokenizer[u])throw Zn(n,"include target '"+u+"' is not defined at: "+e);i(e+"."+u,r,t.tokenizer[u])}else{var d=new Rc(e);if(Array.isArray(c)&&1<=c.length&&c.length<=3)if(d.setRegex(o,c[0]),3<=c.length)if("string"==typeof c[1])d.setAction(o,{token:c[1],next:c[2]});else{if("object"!=typeof c[1])throw Zn(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=c[1];h.next=c[2],d.setAction(o,h)}else d.setAction(o,c[1]);else{if(!c.regex)throw Zn(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);c.name&&"string"==typeof c.name&&(d.name=c.name),c.matchOnlyAtStart&&(d.matchOnlyAtLineStart=Pc(c.matchOnlyAtLineStart,!1)),d.setRegex(o,c.regex),d.setAction(o,c.action)}r.push(d)}}}if(o.languageId=e,o.ignoreCase=n.ignoreCase,o.noThrow=n.noThrow,o.usesEmbedded=n.usesEmbedded,o.stateNames=t.tokenizer,o.defaultToken=n.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw Zn(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 a=t.tokenizer[r];n.tokenizer[r]=new Array,i("tokenizer."+r,n.tokenizer[r],a)}if(n.usesEmbedded=o.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw Zn(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 s=[],l=0,c=t.brackets;l<c.length;l++){var u=c[l];if(u&&Array.isArray(u)&&3===u.length&&(u={token:u[2],open:u[0],close:u[1]}),u.open===u.close)throw Zn(n,"open and close brackets in a 'brackets' attribute must be different: "+u.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof u.open||"string"!=typeof u.token||"string"!=typeof u.close)throw Zn(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");s.push({token:u.token+n.tokenPostfix,open:Gn(n,u.open),close:Gn(n,u.close)})}return n.brackets=s,n.noThrow=!0,n}(i=e,t),new po(n,o,i,r);var n,o,i,r}return Hc(t)?Qe.B.registerPromise(e,t.then((function(e){return n(e)}))):Qe.B.register(e,n(t))},registerReferenceProvider:function(e,t){return Qe.u.register(e,t)},registerRenameProvider:function(e,t){return Qe.v.register(e,t)},registerCompletionItemProvider:function(e,t){return Qe.d.register(e,t)},registerSignatureHelpProvider:function(e,t){return Qe.x.register(e,t)},registerHoverProvider:function(e,t){return Qe.p.register(e,{provideHover:function(e,n,o){var i=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,o)).then((function(e){if(e)return!e.range&&i&&(e.range=new we.a(n.lineNumber,i.startColumn,n.lineNumber,i.endColumn)),e.range||(e.range=new we.a(n.lineNumber,n.column,n.lineNumber,n.column)),e}))}})},registerDocumentSymbolProvider:function(e,t){return Qe.m.register(e,t)},registerDocumentHighlightProvider:function(e,t){return Qe.i.register(e,t)},registerDefinitionProvider:function(e,t){return Qe.f.register(e,t)},registerImplementationProvider:function(e,t){return Qe.q.register(e,t)},registerTypeDefinitionProvider:function(e,t){return Qe.C.register(e,t)},registerCodeLensProvider:function(e,t){return Qe.b.register(e,t)},registerCodeActionProvider:function(e,t){return Qe.a.register(e,{provideCodeActions:function(e,n,o,i){var r=Sc.markerService.get().read({resource:e.uri}).filter((function(e){return we.a.areIntersectingOrTouching(e,n)}));return t.provideCodeActions(e,n,{markers:r,only:o.only},i)}})},registerDocumentFormattingEditProvider:function(e,t){return Qe.g.register(e,t)},registerDocumentRangeFormattingEditProvider:function(e,t){return Qe.j.register(e,t)},registerOnTypeFormattingEditProvider:function(e,t){return Qe.t.register(e,t)},registerLinkProvider:function(e,t){return Qe.s.register(e,t)},registerColorProvider:function(e,t){return Qe.c.register(e,t)},registerFoldingRangeProvider:function(e,t){return Qe.o.register(e,t)},registerDeclarationProvider:function(e,t){return Qe.e.register(e,t)},registerSelectionRangeProvider:function(e,t){return Qe.w.register(e,t)},registerDocumentSemanticTokensProvider:function(e,t){return Qe.l.register(e,t)},registerDocumentRangeSemanticTokensProvider:function(e,t){return Qe.k.register(e,t)},DocumentHighlightKind:b,CompletionItemKind:s,CompletionItemTag:c,CompletionItemInsertTextRule:r,SymbolKind:oe,SymbolTag:re,IndentAction:D,CompletionTriggerKind:d,SignatureHelpTriggerKind:te,FoldingRangeKind:Qe.n};var Uc=Kc.CancellationTokenSource,qc=Kc.Emitter,Gc=Kc.KeyCode,Yc=Kc.KeyMod,Zc=Kc.Position,$c=Kc.Range,Xc=Kc.Selection,Jc=Kc.SelectionDirection,Qc=Kc.MarkerSeverity,eu=Kc.MarkerTag,tu=Kc.Uri,nu=Kc.Token,ou=Kc.editor,iu=Kc.languages;zc.monaco=Kc,void 0!==zc.require&&"function"==typeof zc.require.config&&zc.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"]})},function(e,t,n){"use strict";var o=n(3),i=n(20),r=n(0),a=n.n(r),s=(n(1),n(13)),l=n.n(s),c=n(61),u=n(67),d=n(138),h=n(84),p="undefined"!=typeof window?a.a.useLayoutEffect:a.a.useEffect;function f(e){var t=e.children,n=e.defer,o=void 0!==n&&n,i=e.fallback,r=void 0===i?null:i,s=a.a.useState(!1),l=s[0],c=s[1];return p((function(){o||c(!0)}),[o]),a.a.useEffect((function(){o&&c(!0)}),[o]),a.a.createElement(a.a.Fragment,null,l?t:r)}var g=n(816),m=n(38),v=n(41),y=n(36),b=n(35),_=n(116);function w(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){var o;n[e.key]=(o=e,t&&Object(r.isValidElement)(o)?t(o):o)})),n}function C(e,t,n){return null!=n[t]?n[t]:e.props[t]}function S(e,t,n){var o=w(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,i=Object.create(null),r=[];for(var a in e)a in t?r.length&&(i[a]=r,r=[]):r.push(a);var s={};for(var l in t){if(i[l])for(o=0;o<i[l].length;o++){var c=i[l][o];s[i[l][o]]=n(c)}s[l]=n(l)}for(o=0;o<r.length;o++)s[r[o]]=n(r[o]);return s}(t,o);return Object.keys(i).forEach((function(a){var s=i[a];if(Object(r.isValidElement)(s)){var l=a in t,c=a in o,u=t[a],d=Object(r.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&Object(r.isValidElement)(u)&&(i[a]=Object(r.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:C(s,"exit",e),enter:C(s,"enter",e)})):i[a]=Object(r.cloneElement)(s,{in:!1}):i[a]=Object(r.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:C(s,"exit",e),enter:C(s,"enter",e)})}})),i}var O=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},x=function(e){function t(t,n){var o,i=(o=e.call(this,t,n)||this).handleExited.bind(Object(b.a)(Object(b.a)(o)));return o.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},o}Object(y.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,i=t.children,a=t.handleExited;return{children:t.firstRender?(o=a,w((n=e).children,(function(e){return Object(r.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:C(e,"appear",n),enter:C(e,"enter",n),exit:C(e,"exit",n)})}))):S(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=w(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(o.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=Object(v.a)(e,["component","childFactory"]),i=this.state.contextValue,r=O(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?a.a.createElement(_.a.Provider,{value:i},r):a.a.createElement(_.a.Provider,{value:i},a.a.createElement(t,o,r))},t}(a.a.Component);x.propTypes={},x.defaultProps={component:"div",childFactory:function(e){return e}};var E=x,k="undefined"==typeof window?a.a.useEffect:a.a.useLayoutEffect;function N(e){var t=e.classes,n=e.pulsate,o=void 0!==n&&n,i=e.rippleX,r=e.rippleY,s=e.rippleSize,l=e.in,u=e.onExited,h=void 0===u?function(){}:u,p=e.timeout,f=a.a.useState(!1),g=f[0],m=f[1],v=Object(c.a)(t.ripple,t.rippleVisible,o&&t.ripplePulsate),y={width:s,height:s,top:-s/2+r,left:-s/2+i},b=Object(c.a)(t.child,g&&t.childLeaving,o&&t.childPulsate),_=Object(d.a)(h);return k((function(){if(!l){m(!0);var e=setTimeout(_,p);return function(){clearTimeout(e)}}}),[_,l,p]),a.a.createElement("span",{className:v,style:y},a.a.createElement("span",{className:b}))}var D=a.a.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,s=e.classes,l=e.className,u=Object(i.a)(e,["center","classes","className"]),d=a.a.useState([]),h=d[0],p=d[1],f=a.a.useRef(0),g=a.a.useRef(null);a.a.useEffect((function(){g.current&&(g.current(),g.current=null)}),[h]);var v=a.a.useRef(!1),y=a.a.useRef(null),b=a.a.useRef(null),_=a.a.useRef(null);a.a.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var w=a.a.useCallback((function(e){var t=e.pulsate,n=e.rippleX,o=e.rippleY,i=e.rippleSize,r=e.cb;p((function(e){return[].concat(Object(m.a)(e),[a.a.createElement(N,{key:f.current,classes:s,timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:i})])})),f.current+=1,g.current=r}),[s]),C=a.a.useCallback((function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&v.current)v.current=!1;else{"touchstart"===e.type&&(v.current=!0);var u,d,h,p=c?null:_.current,f=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(f.width/2),d=Math.round(f.height/2);else{var g=e.clientX?e.clientX:e.touches[0].clientX,m=e.clientY?e.clientY:e.touches[0].clientY;u=Math.round(g-f.left),d=Math.round(m-f.top)}if(s)(h=Math.sqrt((2*Math.pow(f.width,2)+Math.pow(f.height,2))/3))%2==0&&(h+=1);else{var C=2*Math.max(Math.abs((p?p.clientWidth:0)-u),u)+2,S=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;h=Math.sqrt(Math.pow(C,2)+Math.pow(S,2))}e.touches?null===b.current&&(b.current=function(){w({pulsate:i,rippleX:u,rippleY:d,rippleSize:h,cb:n})},y.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):w({pulsate:i,rippleX:u,rippleY:d,rippleSize:h,cb:n})}}),[r,w]),S=a.a.useCallback((function(){C({},{pulsate:!0})}),[C]),O=a.a.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(y.current=setTimeout((function(){O(e,t)})));b.current=null,p((function(e){return 0<e.length?e.slice(1):e})),g.current=t}),[]);return a.a.useImperativeHandle(t,(function(){return{pulsate:S,start:C,stop:O}}),[S,C,O]),a.a.createElement("span",Object(o.a)({className:Object(c.a)(s.root,l),ref:_},u),a.a.createElement(E,{component:null,exit:!0},h))})),L=Object(h.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(a.a.memo(D)),P=a.a.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,s=e.centerRipple,h=void 0!==s&&s,p=e.children,m=e.classes,v=e.className,y=e.component,b=void 0===y?"button":y,_=e.disabled,w=void 0!==_&&_,C=e.disableRipple,S=void 0!==C&&C,O=e.disableTouchRipple,x=void 0!==O&&O,E=e.focusRipple,k=void 0!==E&&E,N=e.focusVisibleClassName,D=e.onBlur,P=e.onClick,I=e.onFocus,T=e.onFocusVisible,M=e.onKeyDown,j=e.onKeyUp,R=e.onMouseDown,A=e.onMouseLeave,F=e.onMouseUp,V=e.onTouchEnd,W=e.onTouchMove,B=e.onTouchStart,H=e.onDragLeave,z=e.tabIndex,K=void 0===z?0:z,U=e.TouchRippleProps,q=e.type,G=void 0===q?"button":q,Y=Object(i.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Z=a.a.useRef(null),$=a.a.useRef(null),X=a.a.useState(!1),J=X[0],Q=X[1];w&&J&&Q(!1);var ee=Object(g.a)(),te=ee.isFocusVisible,ne=ee.onBlurVisible,oe=ee.ref;function ie(e,t,n){var o=2<arguments.length&&void 0!==n?n:x;return Object(d.a)((function(n){return t&&t(n),!o&&$.current&&$.current[e](n),!0}))}function re(){var e=l.a.findDOMNode(Z.current);return b&&"button"!==b&&!("A"===e.tagName&&e.href)}a.a.useImperativeHandle(n,(function(){return{focusVisible:function(){Q(!0),Z.current.focus()}}}),[]),a.a.useEffect((function(){J&&k&&!S&&$.current.pulsate()}),[S,k,J]);var ae=ie("start",R),se=ie("stop",H),le=ie("stop",F),ce=ie("stop",(function(e){J&&e.preventDefault(),A&&A(e)})),ue=ie("start",B),de=ie("stop",V),he=ie("stop",W),pe=ie("stop",(function(e){J&&(ne(e),Q(!1)),D&&D(e)}),!1),fe=Object(d.a)((function(e){w||(Z.current||(Z.current=e.currentTarget),te(e)&&(Q(!0),T&&T(e)),I&&I(e))})),ge=a.a.useRef(!1),me=Object(d.a)((function(e){k&&!ge.current&&J&&$.current&&" "===e.key&&(ge.current=!0,e.persist(),$.current.stop(e,(function(){$.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),M&&M(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&(e.preventDefault(),P&&P(e))})),ve=Object(d.a)((function(e){k&&" "===e.key&&$.current&&J&&!e.defaultPrevented&&(ge.current=!1,e.persist(),$.current.stop(e,(function(){$.current.pulsate(e)}))),j&&j(e),P&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&P(e)})),ye=b;"button"===ye&&Y.href&&(ye="a");var be={};"button"===ye?(be.type=G,be.disabled=w):("a"===ye&&Y.href||(be.role="button"),be["aria-disabled"]=w);var _e=Object(u.a)(r,t),we=Object(u.a)(oe,Z),Ce=Object(u.a)(_e,we);return a.a.createElement(ye,Object(o.a)({className:Object(c.a)(m.root,v,J&&[m.focusVisible,N],w&&m.disabled),onBlur:pe,onClick:P,onFocus:fe,onKeyDown:me,onKeyUp:ve,onMouseDown:ae,onMouseLeave:ce,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:he,onTouchStart:ue,ref:Ce,tabIndex:w?-1:K},be,Y),p,S||w?null:a.a.createElement(f,null,a.a.createElement(L,Object(o.a)({ref:$,center:h},U))))}));t.a=Object(h.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(P)},function(e,t,n){"use strict";var o=n(3),i=n(136),r=n(20),a=n(30),s=n(0),l=n.n(s),c=n(13),u=n.n(c),d=(n(1),n(61)),h=n(112),p=n(84),f=n(107),g=n(1282),m=n(941),v=n(417),y=n(436),b=n(139),_=n(86),w=n(67);function C(e){return"function"==typeof e?e():e}var S="undefined"!=typeof window?l.a.useLayoutEffect:l.a.useEffect,O={},x=l.a.forwardRef((function(e,t){var n=e.anchorEl,i=e.children,a=e.container,s=e.disablePortal,c=void 0!==s&&s,u=e.keepMounted,d=void 0!==u&&u,h=e.modifiers,p=e.open,f=e.placement,g=void 0===f?"bottom":f,x=e.popperOptions,E=void 0===x?O:x,k=e.popperRef,N=e.transition,D=void 0!==N&&N,L=Object(r.a)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition"]),P=l.a.useRef(null),I=Object(w.a)(P,t),T=l.a.useRef(null),M=Object(w.a)(T,k),j=l.a.useRef(M);S((function(){j.current=M}),[M]),l.a.useImperativeHandle(k,(function(){return T.current}),[]);var R=l.a.useState(!0),A=R[0],F=R[1],V=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(g,Object(v.a)()),W=l.a.useState(V),B=W[0],H=W[1];function z(){T.current&&(T.current.destroy(),j.current(null))}l.a.useEffect((function(){T.current&&T.current.update()}));var K=l.a.useCallback((function(){if(P.current&&n&&p){T.current&&(T.current.destroy(),j.current(null));var e=function(e){H(e.placement)},t=(C(n),new m.a(C(n),P.current,Object(o.a)({placement:V},E,{modifiers:Object(o.a)({},c?{}:{preventOverflow:{boundariesElement:"window"}},{},h,{},E.modifiers),onCreate:Object(b.a)(e,E.onCreate),onUpdate:Object(b.a)(e,E.onUpdate)})));j.current(t)}}),[n,c,h,p,V,E]),U=l.a.useCallback((function(e){Object(_.a)(I,e),K()}),[I,K]);if(l.a.useEffect((function(){K()}),[K]),l.a.useEffect((function(){return function(){z()}}),[]),l.a.useEffect((function(){p||D||z()}),[p,D]),!d&&!p&&(!D||A))return null;var q={placement:B};return D&&(q.TransitionProps={in:p,onEnter:function(){F(!1)},onExited:function(){F(!0),z()}}),l.a.createElement(y.a,{disablePortal:c,container:a},l.a.createElement("div",Object(o.a)({ref:U,role:"tooltip"},L,{style:Object(o.a)({position:"fixed",top:0,left:0},L.style)}),"function"==typeof i?i(q):i))})),E=n(816),k=n(929),N=n(189);function D(e){return Math.round(1e5*e)/1e5}var L=!1,P=null,I=l.a.forwardRef((function(e,t){var n=e.arrow,a=void 0!==n&&n,s=e.children,c=e.classes,h=e.disableFocusListener,p=void 0!==h&&h,m=e.disableHoverListener,v=void 0!==m&&m,y=e.disableTouchListener,b=void 0!==y&&y,C=e.enterDelay,S=void 0===C?200:C,O=e.enterNextDelay,D=void 0===O?0:O,I=e.enterTouchDelay,T=void 0===I?700:I,M=e.id,j=e.interactive,R=void 0!==j&&j,A=e.leaveDelay,F=void 0===A?0:A,V=e.leaveTouchDelay,W=void 0===V?1500:V,B=e.onClose,H=e.onOpen,z=e.open,K=e.placement,U=void 0===K?"bottom":K,q=e.PopperProps,G=e.title,Y=e.TransitionComponent,Z=void 0===Y?g.a:Y,$=e.TransitionProps,X=Object(r.a)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperProps","title","TransitionComponent","TransitionProps"]),J=Object(N.a)(),Q=l.a.useState(),ee=Q[0],te=Q[1],ne=l.a.useState(null),oe=ne[0],ie=ne[1],re=l.a.useRef(!1),ae=l.a.useRef(),se=l.a.useRef(),le=l.a.useRef(),ce=l.a.useRef(),ue=Object(k.a)({controlled:z,default:!1,name:"Tooltip"}),de=Object(i.a)(ue,2),he=de[0],pe=de[1],fe=he,ge=l.a.useState(),me=ge[0],ve=ge[1],ye=M||me;function be(e){clearTimeout(P),pe(L=!0),H&&H(e)}function _e(e){var t=s.props;"mouseover"===e.type&&t.onMouseOver&&e.currentTarget===ee&&t.onMouseOver(e),re.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),clearTimeout(se.current),clearTimeout(le.current),S||L&&D?(e.persist(),se.current=setTimeout((function(){be(e)}),L?D:S)):be(e))}function we(e){clearTimeout(P),P=setTimeout((function(){L=!1}),800+F),pe(!1),B&&B(e),clearTimeout(ae.current),ae.current=setTimeout((function(){re.current=!1}),J.transitions.duration.shortest)}function Ce(e){var t=s.props;"blur"===e.type&&(t.onBlur&&e.currentTarget===ee&&t.onBlur(e),Ne&&(De(!1),xe())),"mouseleave"===e.type&&t.onMouseLeave&&e.currentTarget===ee&&t.onMouseLeave(e),clearTimeout(se.current),clearTimeout(le.current),e.persist(),le.current=setTimeout((function(){we(e)}),F)}l.a.useEffect((function(){fe&&!me&&ve("mui-tooltip-".concat(Math.round(1e5*Math.random())))}),[fe,me]),l.a.useEffect((function(){return function(){clearTimeout(ae.current),clearTimeout(se.current),clearTimeout(le.current),clearTimeout(ce.current)}}),[]);var Se=Object(E.a)(),Oe=Se.isFocusVisible,xe=Se.onBlurVisible,Ee=Se.ref,ke=l.a.useState(!1),Ne=ke[0],De=ke[1],Le=Object(w.a)(te,t),Pe=Object(w.a)(Ee,Le),Ie=l.a.useCallback((function(e){Object(_.a)(Pe,u.a.findDOMNode(e))}),[Pe]),Te=Object(w.a)(s.ref,Ie);""===G&&(fe=!1);var Me=!fe&&!v,je=Object(o.a)({"aria-describedby":fe?ye:null,title:Me&&"string"==typeof G?G:null},X,{},s.props,{className:Object(d.a)(X.className,s.props.className)});b||(je.onTouchStart=function(e){re.current=!0;var t=s.props;t.onTouchStart&&t.onTouchStart(e),clearTimeout(le.current),clearTimeout(ae.current),clearTimeout(ce.current),e.persist(),ce.current=setTimeout((function(){_e(e)}),T)},je.onTouchEnd=function(e){s.props.onTouchEnd&&s.props.onTouchEnd(e),clearTimeout(ce.current),clearTimeout(le.current),e.persist(),le.current=setTimeout((function(){we(e)}),W)}),v||(je.onMouseOver=_e,je.onMouseLeave=Ce),p||(je.onFocus=function(e){ee||te(e.currentTarget),Oe(e)&&(De(!0),_e(e));var t=s.props;t.onFocus&&e.currentTarget===ee&&t.onFocus(e)},je.onBlur=Ce);var Re=R?{onMouseOver:je.onMouseOver,onMouseLeave:je.onMouseLeave,onFocus:je.onFocus,onBlur:je.onBlur}:{},Ae=l.a.useMemo((function(){return{modifiers:{arrow:{enabled:Boolean(oe),element:oe}}}}),[oe]);return l.a.createElement(l.a.Fragment,null,l.a.cloneElement(s,Object(o.a)({ref:Te},je)),l.a.createElement(x,Object(o.a)({className:Object(d.a)(c.popper,R&&c.popperInteractive,a&&c.popperArrow),placement:U,anchorEl:ee,open:!!ee&&fe,id:je["aria-describedby"],transition:!0,popperOptions:Ae},Re,q),(function(e){var t=e.placement,n=e.TransitionProps;return l.a.createElement(Z,Object(o.a)({timeout:J.transitions.duration.shorter},n,$),l.a.createElement("div",{className:Object(d.a)(c.tooltip,c["tooltipPlacement".concat(Object(f.a)(t.split("-")[0]))],re.current&&c.touch,a&&c.tooltipArrow)},G,a?l.a.createElement("span",{className:c.arrow,ref:ie}):null))})))}));t.a=Object(p.a)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none",flip:!1},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{flip:!1,top:0,left:0,marginTop:"-0.95em",marginLeft:4,marginRight:4,width:"2em",height:"1em","&::before":{flip:!1,borderWidth:"0 1em 1em 1em",borderColor:"transparent transparent currentcolor transparent"}},'&[x-placement*="top"] $arrow':{flip:!1,bottom:0,left:0,marginBottom:"-0.95em",marginLeft:4,marginRight:4,width:"2em",height:"1em","&::before":{flip:!1,borderWidth:"1em 1em 0 1em",borderColor:"currentcolor transparent transparent transparent"}},'&[x-placement*="right"] $arrow':{flip:!1,left:0,marginLeft:"-0.95em",marginTop:4,marginBottom:4,height:"2em",width:"1em","&::before":{flip:!1,borderWidth:"1em 1em 1em 0",borderColor:"transparent currentcolor transparent transparent"}},'&[x-placement*="left"] $arrow':{flip:!1,right:0,marginRight:"-0.95em",marginTop:4,marginBottom:4,height:"2em",width:"1em","&::before":{flip:!1,borderWidth:"1em 0 1em 1em",borderColor:"transparent transparent transparent currentcolor"}}},tooltip:{backgroundColor:Object(h.c)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(D(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{position:"absolute",fontSize:6,color:Object(h.c)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:0,height:0,borderStyle:"solid"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(D(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Object(a.a)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Object(a.a)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Object(a.a)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Object(a.a)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip"})(I)},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=l(n(0)),r=l(n(1)),a=(o=n(1987))&&o.__esModule?o:{default:o};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=o?Object.getOwnPropertyDescriptor(e,i):null;r&&(r.get||r.set)?Object.defineProperty(n,i,r):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,p(e).apply(this,arguments))}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(e,i.Component),t=e,(n=[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||a.default[t||"global"],o=this.context.antLocale,i=t&&o?o[t]:{};return u(u({},"function"==typeof n?n():n),i||{})}},{key:"getLocaleCode",value:function(){var e=this.context.antLocale,t=e&&e.locale;return e&&e.exist&&!t?a.default.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context.antLocale)}}])&&d(t.prototype,n),e}();(t.default=g).defaultProps={componentName:"global"},g.contextTypes={antLocale:r.object}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=o?Object.getOwnPropertyDescriptor(e,i):null;r&&(r.get||r.set)?Object.defineProperty(n,i,r):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(785)),i=s(n(1)),r=s(n(0)),a=n(1150);function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(){function e(t){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,o=d(e).call(this,t),n=!o||"object"!==l(o)&&"function"!=typeof o?h(this):o,f(h(n),"assignRef",(function(e){n.containerElement=e})),n.containerElement=void 0,n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(e,r.default.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.initMonaco()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,i=t.language,r=t.theme,a=t.height,s=t.options,l=t.width,c=this.editor,u=c.getModel();null!=this.props.value&&this.props.value!==u.getValue()&&(this.__prevent_trigger_change_event=!0,this.editor.pushUndoStop(),u.pushEditOperations([],[{range:u.getFullModelRange(),text:n}]),this.editor.pushUndoStop(),this.__prevent_trigger_change_event=!1),e.language!==i&&o.editor.setModelLanguage(u,i),e.theme!==r&&o.editor.setTheme(r),!c||l===e.width&&a===e.height||c.layout(),e.options!==s&&c.updateOptions(s)}},{key:"componentWillUnmount",value:function(){this.destroyMonaco()}},{key:"destroyMonaco",value:function(){if(this.editor){this.editor.dispose();var e=this.editor.getModel();e&&e.dispose()}this._subscription&&this._subscription.dispose()}},{key:"initMonaco",value:function(){var e=null!=this.props.value?this.props.value:this.props.defaultValue,t=this.props,n=t.language,i=t.theme,r=t.options,a=t.overrideServices;this.containerElement&&(Object.assign(r,this.editorWillMount()),this.editor=o.editor.create(this.containerElement,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:e,language:n},r,{},i?{theme:i}:{}),a),this.editorDidMount(this.editor))}},{key:"editorWillMount",value:function(){return(0,this.props.editorWillMount)(o)||{}}},{key:"editorDidMount",value:function(e){var t=this;this.props.editorDidMount(e,o),this._subscription=e.onDidChangeModelContent((function(n){t.__prevent_trigger_change_event||t.props.onChange(e.getValue(),n)}))}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,o={width:(0,a.processSize)(t),height:(0,a.processSize)(n)};return r.default.createElement("div",{ref:this.assignRef,style:o,className:"react-monaco-editor-container"})}}])&&u(t.prototype,n),e}();g.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),value:i.default.string,defaultValue:i.default.string,language:i.default.string,theme:i.default.string,options:i.default.object,overrideServices:i.default.object,editorDidMount:i.default.func,editorWillMount:i.default.func,onChange:i.default.func},g.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorDidMount:a.noop,editorWillMount:a.noop,onChange:a.noop};var m=g;t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=o?Object.getOwnPropertyDescriptor(e,i):null;r&&(r.get||r.set)?Object.defineProperty(n,i,r):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(785)),i=s(n(1)),r=s(n(0)),a=n(1150);function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(){function e(t){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,o=d(e).call(this,t),n=!o||"object"!==l(o)&&"function"!=typeof o?h(this):o,f(h(n),"assignRef",(function(e){n.containerElement=e})),n.containerElement=void 0,n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(e,r.default.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.initMonaco()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.language,i=t.theme,r=t.height,a=t.options,s=t.width,l=this.editor.getModel(),c=l.original,u=l.modified;this.props.original!==c.getValue()&&c.setValue(this.props.original),null!=this.props.value&&this.props.value!==u.getValue()&&(this.__prevent_trigger_change_event=!0,this.editor.modifiedEditor.pushUndoStop(),u.pushEditOperations([],[{range:u.getFullModelRange(),text:this.props.value}]),this.editor.modifiedEditor.pushUndoStop(),this.__prevent_trigger_change_event=!1),e.language!==n&&(o.editor.setModelLanguage(c,n),o.editor.setModelLanguage(u,n)),e.theme!==i&&o.editor.setTheme(i),!this.editor||s===e.width&&r===e.height||this.editor.layout(),e.options!==a&&this.editor.updateOptions(a)}},{key:"componentWillUnmount",value:function(){this.destroyMonaco()}},{key:"editorWillMount",value:function(){return(0,this.props.editorWillMount)(o)||{}}},{key:"editorDidMount",value:function(e){var t=this;this.props.editorDidMount(e,o);var n=e.getModel().modified;this._subscription=n.onDidChangeContent((function(e){t.__prevent_trigger_change_event||t.props.onChange(n.getValue(),e)}))}},{key:"initModels",value:function(e,t){var n=this.props.language,i=o.editor.createModel(t,n),r=o.editor.createModel(e,n);this.editor.setModel({original:i,modified:r})}},{key:"initMonaco",value:function(){var e=null!=this.props.value?this.props.value:this.props.defaultValue,t=this.props,n=t.original,i=t.theme,r=t.options,a=t.overrideServices;this.containerElement&&(this.editorWillMount(),this.editor=o.editor.createDiffEditor(this.containerElement,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{},i?{theme:i}:{}),a),this.initModels(e,n),this.editorDidMount(this.editor))}},{key:"destroyMonaco",value:function(){if(this.editor){this.editor.dispose();var e=this.editor.getModel(),t=e.original,n=e.modified;t&&t.dispose(),n&&n.dispose()}this._subscription&&this._subscription.dispose()}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,o={width:(0,a.processSize)(t),height:(0,a.processSize)(n)};return r.default.createElement("div",{ref:this.assignRef,style:o,className:"react-monaco-editor-container"})}}])&&u(t.prototype,n),e}();g.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),original:i.default.string,value:i.default.string,defaultValue:i.default.string,language:i.default.string,theme:i.default.string,options:i.default.object,overrideServices:i.default.object,editorDidMount:i.default.func,editorWillMount:i.default.func,onChange:i.default.func},g.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorDidMount:a.noop,editorWillMount:a.noop,onChange:a.noop};var m=g;t.default=m},,,,,,,,function(e,t,n){"use strict";n(46),n(1516),n(259)},function(e,t,n){"use strict";var o=n(0),i=n.n(o);t.a=function(){return i.a.createElement("div",{className:"loading"},"loading ...")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(0),i=n(1),r=n(1511),a=n(33),s=n(18),l=n(167),c=n(77);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},v=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=p(this,f(e).apply(this,arguments))).saveRate=function(e){t.rcRate=e},t.characterRender=function(e,n){var i=n.index,r=t.props.tooltips;return r?o.createElement(l.a,{title:r[i]},e):e},t.renderRate=function(e){var n=e.getPrefixCls,i=t.props,s=i.prefixCls,l=m(i,["prefixCls"]),c=Object(a.default)(l,["tooltips"]);return o.createElement(r.a,d({ref:t.saveRate,characterRender:t.characterRender},c,{prefixCls:n("rate",s)}))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(e,o.Component),t=e,(n=[{key:"focus",value:function(){this.rcRate.focus()}},{key:"blur",value:function(){this.rcRate.blur()}},{key:"render",value:function(){return o.createElement(c.a,null,this.renderRate)}}])&&h(t.prototype,n),e}();v.propTypes={prefixCls:i.string,character:i.node},v.defaultProps={character:o.createElement(s.a,{type:"star",theme:"filled"})}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var o=n(1912),i=n(811),r=n(1913),a=n(1391),s=n(1392),l=n(1917),c=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":i(t)).length;if(n<2)return n?o(t,e):t;var u=o(t,c(e/s(t)));return a(t)?r(l(u),0,e).join(""):u.slice(0,e)}},,,,,function(e,t,n){"use strict";var o=n(0),i=n.n(o),r=n(13),a=n.n(r),s=n(1),l=n.n(s),c=n(12),u=n.n(c),d=n(25),h=n(23);function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(){function e(){var t,n,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return o=this,i=(t=f(e)).call.apply(t,[this].concat(a)),n=!i||"object"!=typeof i&&"function"!=typeof i?g(o):i,v(g(n),"onHover",(function(e){var t=n.props;(0,t.onHover)(e,t.index)})),v(g(n),"onClick",(function(e){var t=n.props;(0,t.onClick)(e,t.index)})),v(g(n),"onKeyDown",(function(e){var t=n.props,o=t.onClick,i=t.index;13===e.keyCode&&o(e,i)})),n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(e,i.a.Component),t=e,(n=[{key:"getClassName",value:function(){var e=this.props,t=e.prefixCls,n=e.index,o=e.value,i=e.allowHalf,r=e.focused,a=n+1,s=t;return 0===o&&0===n&&r?s+=" ".concat(t,"-focused"):i&&o+.5===a?(s+=" ".concat(t,"-half ").concat(t,"-active"),r&&(s+=" ".concat(t,"-focused"))):(s+=" ".concat(t,a<=o?"-full":"-zero"),a===o&&r&&(s+=" ".concat(t,"-focused"))),s}},{key:"render",value:function(){var e=this.onHover,t=this.onClick,n=this.onKeyDown,o=this.props,r=o.disabled,a=o.prefixCls,s=o.character,l=o.characterRender,c=o.index,u=o.count,d=o.value,h=i.a.createElement("li",{className:this.getClassName()},i.a.createElement("div",{onClick:r?null:t,onKeyDown:r?null:n,onMouseMove:r?null:e,role:"radio","aria-checked":c<d?"true":"false","aria-posinset":c+1,"aria-setsize":u,tabIndex:0},i.a.createElement("div",{className:"".concat(a,"-first")},s),i.a.createElement("div",{className:"".concat(a,"-second")},s)));return l&&(h=l(h,this.props)),h}}])&&p(t.prototype,n),e}();function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(){}v(y,"propTypes",{value:l.a.number,index:l.a.number,prefixCls:l.a.string,allowHalf:l.a.bool,disabled:l.a.bool,onHover:l.a.func,onClick:l.a.func,character:l.a.node,characterRender:l.a.func,focused:l.a.bool,count:l.a.number});var E=function(){function e(t){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=w(e).call(this,t),n=!o||"object"!=typeof o&&"function"!=typeof o?C(this):o,O(C(n),"onHover",(function(e,t){var o=n.props.onHoverChange,i=n.getStarValue(t,e.pageX);i!==n.state.cleanedValue&&n.setState({hoverValue:i,cleanedValue:null}),o(i)})),O(C(n),"onMouseLeave",(function(){var e=n.props.onHoverChange;n.setState({hoverValue:void 0,cleanedValue:null}),e(void 0)})),O(C(n),"onClick",(function(e,t){var o=n.props.allowClear,i=n.state.value,r=n.getStarValue(t,e.pageX),a=!1;o&&(a=r===i),n.onMouseLeave(!0),n.changeValue(a?0:r),n.setState({cleanedValue:a?r:null})})),O(C(n),"onFocus",(function(){var e=n.props.onFocus;n.setState({focused:!0}),e&&e()})),O(C(n),"onBlur",(function(){var e=n.props.onBlur;n.setState({focused:!1}),e&&e()})),O(C(n),"onKeyDown",(function(e){var t=e.keyCode,o=n.props,i=o.count,r=o.allowHalf,a=o.onKeyDown,s=n.state.value;t===h.a.RIGHT&&s<i?(s+=r?.5:1,n.changeValue(s),e.preventDefault()):t===h.a.LEFT&&0<s&&(r?s-=.5:--s,n.changeValue(s),e.preventDefault()),a&&a(e)})),O(C(n),"saveRef",(function(e){return function(t){n.stars[e]=t}})),O(C(n),"saveRate",(function(e){n.rate=e}));var i=t.value;return void 0===i&&(i=t.defaultValue),n.stars={},n.state={value:i,focused:!1,cleanedValue:null},n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(e,i.a.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e,t){return"value"in e&&void 0!==e.value?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{value:e.value}):t}}],(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"getStarDOM",value:function(e){return a.a.findDOMNode(this.stars[e])}},{key:"getStarValue",value:function(e,t){var n=e+1;if(this.props.allowHalf){var o=this.getStarDOM(e);t-function(e){var t,n,o,i,r,a,s,l=(r=(i=(t=e).ownerDocument).body,a=i&&i.documentElement,n=(s=t.getBoundingClientRect()).left,o=s.top,{left:n-=a.clientLeft||r.clientLeft||0,top:o-=a.clientTop||r.clientTop||0}),c=e.ownerDocument,u=c.defaultView||c.parentWindow;return l.left+=function(e,t){var n=e.pageXOffset,o="scrollLeft";if("number"!=typeof n){var i=e.document;"number"!=typeof(n=i.documentElement[o])&&(n=i.body[o])}return n}(u),l.left}(o)<o.clientWidth/2&&(n-=.5)}return n}},{key:"focus",value:function(){this.props.disabled||this.rate.focus()}},{key:"blur",value:function(){this.props.disabled||this.rate.blur()}},{key:"changeValue",value:function(e){var t=this.props.onChange;"value"in this.props||this.setState({value:e}),t(e)}},{key:"render",value:function(){for(var e=this.props,t=e.count,n=e.allowHalf,o=e.style,r=e.prefixCls,a=e.disabled,s=e.className,l=e.character,c=e.characterRender,d=e.tabIndex,h=this.state,p=h.value,f=h.hoverValue,g=h.focused,m=[],v=a?"".concat(r,"-disabled"):"",b=0;b<t;b++)m.push(i.a.createElement(y,{ref:this.saveRef(b),index:b,count:t,disabled:a,prefixCls:"".concat(r,"-star"),allowHalf:n,value:void 0===f?p:f,onClick:this.onClick,onHover:this.onHover,key:b,character:l,characterRender:c,focused:g}));return i.a.createElement("ul",{className:u()(r,v,s),style:o,onMouseLeave:a?null:this.onMouseLeave,tabIndex:a?-1:d,onFocus:a?null:this.onFocus,onBlur:a?null:this.onBlur,onKeyDown:a?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},m)}}])&&_(t.prototype,n),o&&_(t,o),e}();O(E,"propTypes",{disabled:l.a.bool,value:l.a.number,defaultValue:l.a.number,count:l.a.number,allowHalf:l.a.bool,allowClear:l.a.bool,style:l.a.object,prefixCls:l.a.string,onChange:l.a.func,onHoverChange:l.a.func,className:l.a.string,character:l.a.node,characterRender:l.a.func,tabIndex:l.a.number,onFocus:l.a.func,onBlur:l.a.func,onKeyDown:l.a.func,autoFocus:l.a.bool}),O(E,"defaultProps",{defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:x,character:"\u2605",onHoverChange:x,tabIndex:0}),Object(d.polyfill)(E);var k=E;t.a=k},,,,,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=s(n(1984)),i=s(n(1905)),r=s(n(1906)),a=s(n(1986));function s(e){return e&&e.__esModule?e:{default:e}}var l={locale:"en",Pagination:o.default,DatePicker:i.default,TimePicker:r.default,Calendar:a.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",selectAll:"Select current page",selectInvert:"Invert current page",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}};t.default=l},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resetWarned",{enumerable:!0,get:function(){return i.resetWarned}}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(266));t.default=function(e,t,n){(0,i.default)(e,"[antd: ".concat(t,"] ").concat(n))}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=g(n(0)),r=p(n(12)),a=g(n(151)),s=p(n(276)),l=p(n(1993)),c=n(1994),u=p(n(1518)),d=p(n(1410)),h=n(1995);function p(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function g(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y;s.default.add.apply(s.default,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(y=Object.keys(a).map((function(e){return a[e]})))||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(y)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()),(0,h.setTwoToneColor)("#1890ff");function b(e){var t,n=e.className,o=e.type,a=e.component,l=e.viewBox,h=e.spin,p=e.rotate,f=e.tabIndex,g=e.onClick,y=e.children,b=e.theme,_=e.twoToneColor,w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(e,["className","type","component","viewBox","spin","rotate","tabIndex","onClick","children","theme","twoToneColor"]);(0,u.default)(Boolean(o||a||y),"Icon","Should have `type` prop or `component` prop or `children`.");var C=(0,r.default)((v(t={},"anticon",!0),v(t,"anticon-".concat(o),Boolean(o)),t),n),S=(0,r.default)(v({},"anticon-spin",!!h||"loading"===o)),O=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,x=m(m({},c.svgBaseProps),{className:S,style:O,viewBox:l});l||delete x.viewBox;var E=f;return void 0===E&&g&&(E=-1),i.createElement(d.default,{componentName:"Icon"},(function(e){return i.createElement("i",m({"aria-label":o&&"".concat(e.icon,": ").concat(o)},w,{tabIndex:E,onClick:g,className:C}),function(){if(a)return i.createElement(a,x,y);if(y)return(0,u.default)(Boolean(l)||1===i.Children.count(y)&&i.isValidElement(y)&&"use"===i.Children.only(y).type,"Icon","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),i.createElement("svg",m({},x,{viewBox:l}),y);if("string"==typeof o){var e=o;if(b){var t=(0,c.getThemeFromTypeName)(o);(0,u.default)(!t||b===t,"Icon","The icon name '".concat(o,"' already specify a theme '").concat(t,"',")+" the 'theme' prop '".concat(b,"' will be ignored."))}return e=(0,c.withThemeSuffix)((0,c.removeTypeTheme)((0,c.alias)(e)),b||"outlined"),i.createElement(s.default,{className:S,type:e,primaryColor:_,style:O})}}())}))}b.createFromIconfontCN=l.default,b.getTwoToneColor=h.getTwoToneColor,b.setTwoToneColor=h.setTwoToneColor;var _=b;t.default=_},,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1985)),i=r(n(1906));function r(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var s={lang:a({placeholder:"Select date",rangePlaceholder:["Start date","End date"]},o.default),timePickerLocale:a({},i.default)};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={placeholder:"Select time"}},,function(e,t,n){},function(e,t,n){"use strict";n(46),n(1910)},function(e,t,n){},function(e,t,n){var o=n(1506),i=n(1392),r=n(590),a=n(805);e.exports=function(e,t,n){e=a(e);var s=(t=r(t))?i(e):0;return t&&s<t?e+o(t-s,n):e}},function(e,t){var n=Math.floor;e.exports=function(e,t){var o="";if(!e||t<1||9007199254740991<t)return o;for(;t%2&&(o+=e),(t=n(t/2))&&(e+=e),t;);return o}},function(e,t,n){var o=n(1914);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&i<=n?e:o(e,t,n)}},function(e,t){e.exports=function(e,t,n){var o=-1,i=e.length;t<0&&(t=i<-t?0:i+t),(n=i<n?i:n)<0&&(n+=i),i=n<t?0:n-t>>>0,t>>>=0;for(var r=Array(i);++o<i;)r[o]=e[o+t];return r}},function(e,t,n){var o=n(627)("length");e.exports=o},function(e,t){var n="\\ud800-\\udfff",o="["+n+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",a="[^"+n+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+i+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",d=u+c+"(?:\\u200d(?:"+[a,s,l].join("|")+")"+u+c+")*",h="(?:"+[a+i+"?",i,s,l,o].join("|")+")",p=RegExp(r+"(?="+r+")|"+h+d,"g");e.exports=function(e){for(var t=p.lastIndex=0;p.test(e);)++t;return t}},function(e,t,n){var o=n(1918),i=n(1391),r=n(1919);e.exports=function(e){return(i(e)?r:o)(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="\\ud800-\\udfff",o="["+n+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",a="[^"+n+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+i+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",d=u+c+"(?:\\u200d(?:"+[a,s,l].join("|")+")"+u+c+")*",h="(?:"+[a+i+"?",i,s,l,o].join("|")+")",p=RegExp(r+"(?="+r+")|"+h+d,"g");e.exports=function(e){return e.match(p)||[]}},function(e,t,n){var o=n(1506),i=n(1392),r=n(590),a=n(805);e.exports=function(e,t,n){e=a(e);var s=(t=r(t))?i(e):0;return t&&s<t?o(t-s,n)+e:e}},function(e,t,n){"use strict";n(46),n(1922),n(273),n(104),n(498),n(589)},function(e,t,n){},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){var t,n=e.value,o=e.formatter,r=e.precision,a=e.decimalSeparator,s=e.groupSeparator,l=void 0===s?"":s,u=e.prefixCls;if("function"==typeof o)t=o(n);else{var d=String(n),h=d.match(/^(-?)(\d*)(\.(\d+))?$/);if(h){var p=h[1],f=h[2]||"0",g=h[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,l),"number"==typeof r&&(g=c()(g,r,"0").slice(0,r)),g=g&&"".concat(a).concat(g),t=[i.createElement("span",{key:"int",className:"".concat(u,"-content-value-int")},p,f),g&&i.createElement("span",{key:"decimal",className:"".concat(u,"-content-value-decimal")},g)]}else t=d}return i.createElement("span",{className:"".concat(u,"-content-value")},t)}var i=n(0),r=n(12),a=n.n(r),s=n(77),l=n(1911),c=n.n(l);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function d(e){var t=e.prefixCls,n=e.className,r=e.style,s=e.valueStyle,l=e.value,c=void 0===l?0:l,d=e.title,h=e.valueRender,p=e.prefix,f=e.suffix,g=i.createElement(o,u({},e,{value:c}));return h&&(g=h(g)),i.createElement("div",{className:a()(t,n),style:r},d&&i.createElement("div",{className:"".concat(t,"-title")},d),i.createElement("div",{style:s,className:"".concat(t,"-content")},p&&i.createElement("span",{className:"".concat(t,"-content-prefix")},p),g,f&&i.createElement("span",{className:"".concat(t,"-content-suffix")},f)))}d.defaultProps={decimalSeparator:".",groupSeparator:","};var h=Object(s.c)({prefixCls:"statistic"})(d),p=n(25),f=n(49),g=n(132),m=n(1920),v=n.n(m);var y=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function b(e,t){var n,o,i,r,a,s,l,c=t.format,u=void 0===c?"":c,d=Object(g.a)(f)(e).valueOf(),h=Object(g.a)(f)().valueOf(),p=Math.max(d-h,0);return o=p,i=/\[[^\]]*\]/g,r=((n=u).match(i)||[]).map((function(e){return e.slice(1,-1)})),a=n.replace(i,"[]"),s=y.reduce((function(e,t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(t,2),i=n[0],r=n[1];if(-1===e.indexOf(i))return e;var a=Math.floor(o/r);return o-=a*r,e.replace(new RegExp("".concat(i,"+"),"g"),(function(e){var t=e.length;return v()(a.toString(),t,"0")}))}),a),l=0,s.replace(i,(function(){var e=r[l];return l+=1,e}))}function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function C(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){return Object(g.a)(f)(e).valueOf()}var k=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=S(this,O(e).apply(this,arguments))).syncTimer=function(){E(t.props.value)>=Date.now()?t.startTimer():t.stopTimer()},t.startTimer=function(){t.countdownId||(t.countdownId=window.setInterval((function(){t.forceUpdate()}),1e3/30))},t.stopTimer=function(){var e=t.props,n=e.onFinish,o=e.value;if(t.countdownId){clearInterval(t.countdownId),t.countdownId=void 0;var i=E(o);n&&i<Date.now()&&n()}},t.formatCountdown=function(e,n){var o=t.props.format;return b(e,w(w({},n),{format:o}))},t.valueRender=function(e){return i.cloneElement(e,{title:void 0})},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(e,i.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return i.createElement(h,w({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}])&&C(t.prototype,n),e}();k.defaultProps={format:"HH:mm:ss"},Object(p.polyfill)(k);var N=k;h.Countdown=N,t.a=h},,function(e,t,n){"use strict";var o=n(0),i=n(1),r=n(12),a=n.n(r),s=n(33),l=n(60),c=n(77),u=n(499),d=n(709),h=n(708);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};function _(e,t){return e[t]&&Math.floor(24/e[t])}var w=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=g(this,m(e).apply(this,arguments))).renderItem=function(e){var n,i,r,s=e.getPrefixCls,l=t.context,c=l.grid,u=l.itemLayout,d=t.props,p=d.prefixCls,f=d.children,g=d.actions,m=d.extra,v=d.className,w=b(d,["prefixCls","children","actions","extra","className"]),C=s("list",p),S=g&&0<g.length&&o.createElement("ul",{className:"".concat(C,"-item-action"),key:"actions"},g.map((function(e,t){return o.createElement("li",{key:"".concat(C,"-item-action-").concat(t)},e,t!==g.length-1&&o.createElement("em",{className:"".concat(C,"-item-action-split")}))}))),O=c?"div":"li",x=o.createElement(O,y({},w,{className:a()("".concat(C,"-item"),v,(n={},i="".concat(C,"-item-no-flex"),r=!t.isFlexMode(),i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n))}),"vertical"===u&&m?[o.createElement("div",{className:"".concat(C,"-item-main"),key:"content"},f,S),o.createElement("div",{className:"".concat(C,"-item-extra"),key:"extra"},m)]:[f,S,function(e){if(!o.isValidElement(e))return e;for(var t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return o.cloneElement.apply(o,[e].concat(n))}(m,{key:"extra"})]);return c?o.createElement(h.a,{span:_(c,"column"),xs:_(c,"xs"),sm:_(c,"sm"),md:_(c,"md"),lg:_(c,"lg"),xl:_(c,"xl"),xxl:_(c,"xxl")},x):x},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(e,o.Component),t=e,(n=[{key:"isItemContainsTextNodeAndNotSingular",value:function(){var e,t=this.props.children;return o.Children.forEach(t,(function(t){"string"==typeof t&&(e=!0)})),e&&1<o.Children.count(t)}},{key:"isFlexMode",value:function(){var e=this.props.extra;return"vertical"===this.context.itemLayout?!!e:!this.isItemContainsTextNodeAndNotSingular()}},{key:"render",value:function(){return o.createElement(c.a,null,this.renderItem)}}])&&f(t.prototype,n),e}();function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}w.Meta=function(e){return o.createElement(c.a,null,(function(t){var n=t.getPrefixCls,i=e.prefixCls,r=e.className,s=e.avatar,l=e.title,c=e.description,u=b(e,["prefixCls","className","avatar","title","description"]),d=n("list",i),h=a()("".concat(d,"-item-meta"),r),p=o.createElement("div",{className:"".concat(d,"-item-meta-content")},l&&o.createElement("h4",{className:"".concat(d,"-item-meta-title")},l),c&&o.createElement("div",{className:"".concat(d,"-item-meta-description")},c));return o.createElement("div",y({},u,{className:h}),s&&o.createElement("div",{className:"".concat(d,"-item-meta-avatar")},s),(l||c)&&p)}))},w.contextTypes={grid:i.any,itemLayout:i.string},n.d(t,"a",(function(){return D}));var D=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,k(e).call(this,t))).defaultPaginationProps={current:1,total:0},n.keys={},n.onPaginationChange=n.triggerPaginationEvent("onChange"),n.onPaginationShowSizeChange=n.triggerPaginationEvent("onShowSizeChange"),n.renderItem=function(e,t){var o,i=n.props,r=i.renderItem,a=i.rowKey;return r?(o=(o="function"==typeof a?a(e):"string"==typeof a?e[a]:e.key)||"list-item-".concat(t),n.keys[t]=o,r(e,t)):null},n.renderEmpty=function(e,t){var i=n.props.locale;return o.createElement("div",{className:"".concat(e,"-empty-text")},i&&i.emptyText||t("List"))},n.renderList=function(e){var t,i=e.getPrefixCls,r=e.renderEmpty,c=n.state,h=c.paginationCurrent,p=c.paginationSize,f=n.props,g=f.prefixCls,m=f.bordered,v=f.split,y=f.className,b=f.children,_=f.itemLayout,w=f.loadMore,C=f.pagination,E=f.grid,k=f.dataSource,N=void 0===k?[]:k,D=f.size,L=f.header,P=f.footer,I=f.loading,T=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(f,["prefixCls","bordered","split","className","children","itemLayout","loadMore","pagination","grid","dataSource","size","header","footer","loading"]),M=i("list",g),j=I;"boolean"==typeof j&&(j={spinning:j});var R=j&&j.spinning,A="";switch(D){case"large":A="lg";break;case"small":A="sm"}var F=a()(M,y,(x(t={},"".concat(M,"-vertical"),"vertical"===_),x(t,"".concat(M,"-").concat(A),A),x(t,"".concat(M,"-split"),v),x(t,"".concat(M,"-bordered"),m),x(t,"".concat(M,"-loading"),R),x(t,"".concat(M,"-grid"),E),x(t,"".concat(M,"-something-after-last-item"),n.isSomethingAfterLastItem()),t)),V=O(O(O({},n.defaultPaginationProps),{total:N.length,current:h,pageSize:p}),C||{}),W=Math.ceil(V.total/V.pageSize);V.current>W&&(V.current=W);var B,H=C?o.createElement("div",{className:"".concat(M,"-pagination")},o.createElement(u.a,O({},V,{onChange:n.onPaginationChange,onShowSizeChange:n.onPaginationShowSizeChange}))):null,z=S(N);if(C&&N.length>(V.current-1)*V.pageSize&&(z=S(N).splice((V.current-1)*V.pageSize,V.pageSize)),B=R&&o.createElement("div",{style:{minHeight:53}}),0<z.length){var K=z.map((function(e,t){return n.renderItem(e,t)})),U=[];o.Children.forEach(K,(function(e,t){U.push(o.cloneElement(e,{key:n.keys[t]}))})),B=E?o.createElement(d.a,{gutter:E.gutter},U):o.createElement("ul",{className:"".concat(M,"-items")},U)}else b||R||(B=n.renderEmpty(M,r));var q=V.position||"bottom";return o.createElement("div",O({className:F},Object(s.default)(T,["rowKey","renderItem","locale"])),("top"===q||"both"===q)&&H,L&&o.createElement("div",{className:"".concat(M,"-header")},L),o.createElement(l.a,j,B,b),P&&o.createElement("div",{className:"".concat(M,"-footer")},P),w||("bottom"===q||"both"===q)&&H)};var i=t.pagination,r=i&&"object"===C(i)?i:{};return n.state={paginationCurrent:r.defaultCurrent||1,paginationSize:r.defaultPageSize||10},n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}(e,o.Component),t=e,(n=[{key:"getChildContext",value:function(){return{grid:this.props.grid,itemLayout:this.props.itemLayout}}},{key:"triggerPaginationEvent",value:function(e){var t=this;return function(n,o){var i=t.props.pagination;t.setState({paginationCurrent:n,paginationSize:o}),i&&i[e]&&i[e](n,o)}}},{key:"isSomethingAfterLastItem",value:function(){var e=this.props,t=e.loadMore,n=e.pagination,o=e.footer;return!!(t||n||o)}},{key:"render",value:function(){return o.createElement(c.a,null,this.renderList)}}])&&E(t.prototype,n),e}();D.Item=w,D.childContextTypes={grid:i.any,itemLayout:i.string},D.defaultProps={dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n(63);var o=n(21),i=n(8),r=n(7),a=n(10),s=n(9),l=n(35),c=n(11),u=n(0),d=n.n(u),h=n(6),p=n.n(h),f=n(592),g=n.n(f),m=n(203),v=window.$;function y(e){return function(t){function n(e){var t;return Object(i.a)(this,n),(t=Object(a.a)(this,Object(s.a)(n).call(this,e))).clearCommentsInState=function(){t.setState({comments:[]})},t.onImageLayerClose=function(){t.setState({showImage:!1,imageSrc:""})},t.showNotification=function(e){var t=2<arguments.length?arguments[2]:void 0,n={message:1<arguments.length&&void 0!==arguments[1]?arguments[1]:"\u63d0\u793a",description:e};t&&(n.icon=t),o.a.open(n)},t.createNewComment=t.createNewComment.bind(Object(l.a)(t)),t.fetchCommentIfNotFetched=t.fetchCommentIfNotFetched.bind(Object(l.a)(t)),t.replyComment=t.replyComment.bind(Object(l.a)(t)),t.deleteComment=t.deleteComment.bind(Object(l.a)(t)),t.commentPraise=t.commentPraise.bind(Object(l.a)(t)),t.hiddenComment=t.hiddenComment.bind(Object(l.a)(t)),t.rewardCode=t.rewardCode.bind(Object(l.a)(t)),t.showNewReply=t.showNewReply.bind(Object(l.a)(t)),t.newMessage=t.newMessage.bind(Object(l.a)(t)),t.onPaginationChange=t.onPaginationChange.bind(Object(l.a)(t)),t.state={comments:[],comment_count_without_reply:0,currentPage:1,loadingComments:!0,showImage:!1,imageSrc:""},t}return Object(c.a)(n,t),Object(r.a)(n,[{key:"onPaginationChange",value:function(e){this.fetchComment(e),this.setState({currentPage:e})}},{key:"handleComments",value:function(e,t){var n=this;e.forEach((function(e){e.children&&n.handleComments(e.children,t),e.admin=t.all,e.manager=e.manage,e.username=e.author.name,e.user_login=e.author.login,e.image_url=e.author.image_url,e.user_id=e.author.user_id}))}},{key:"responseDataParse",value:function(e){var t=e.data.comments;this.handleComments(t,e.data)}},{key:"fetchComment",value:function(e){var t=this,n=0<arguments.length&&void 0!==e?e:1,o=this.props,i=(o.challenge,o.shixun),r=o.match,a="/discusses.json?page=".concat(n-1,"&container_identifier=").concat(i&&i.identifier?i.identifier:r.params.shixunId,"&container_type=Shixun");this.setState({loadingComments:!0}),p.a.get(a,{}).then((function(e){e.data&&(t.responseDataParse(e),t.setState({comments:e.data.comments,comment_count_without_reply:e.data.disscuss_count,currentPage:n,loadingComments:!1},(function(){window.prettyPrint()})))})).catch((function(e){}))}},{key:"fetchCommentIfNotFetched",value:function(){this.state.comments&&this.state.comments.length||this.fetchComment()}},{key:"createNewComment",value:function(){var e=this,t=this.props,n=t.challenge,o=t.shixun,i=t.showSnackbar,r=window._commentInput.html();if(r&&0!==r.length){if(null!=r){var a=r.split("<img"),s=r.split("/>");if(""==a[0]&&""==s[1])return void window.notice_box("\u4e0d\u652f\u6301\u7eaf\u56fe\u7247\u8bc4\u8bba<br/>\u8bf7\u5728\u8bc4\u8bba\u4e2d\u589e\u52a0\u6587\u5b57\u4fe1\u606f")}return v("#new_message_submit_btn_"+this.props.challenge.shixun_id).hide(),r=r&&r.replace(/(\n<p>\n\t<br \/>\n<\/p>)*$/g,""),p.a.post("/discusses.json",{container_type:"Shixun",container_id:o.id,challenge_id:n.id,content:r,position:n.position},{}).then((function(t){t.data.discuss&&(window._commentInput.html(""),window._commentInput.afterBlur(),e.fetchComment())})).catch((function(e){})),!0}i("\u5fc5\u987b\u586b\u5199\u5185\u5bb9\uff01")}},{key:"_findCommentById",value:function(e,t){var n;n=t||this.state.comments;for(var o=0;o<n.length;o++)if(e===n[o].id)return o}},{key:"replyComment",value:function(e,t,n){var o=this,i=this.props,r=(i.challenge,i.shixun,i.user),a=i.showSnackbar,s=i.match;if(e&&0!==e.length){var l="/discusses/".concat(t,"/reply.json");if(e=e&&e.replace(/(\n<p>\n\t<br \/>\n<\/p>)*$/g,""),!r.login&&r.user_url){var c=r.user_url.split("/");r.login=c[c.length-1]}p.a.post(l,{content:e,container_id:s.params.shixunId,container_type:"Shixun"},{}).then((function(i){if(i.data.discuss){var a=i.data.discuss,s=o.state.comments,l=o._findCommentById(t),c=s[l];(c=Object.assign({},c)).children?c.children=c.children.slice(0):c.children=[],c.children.push({can_delete:!0,content:e,image_url:r.image_url,username:r.username,user_login:r.login,id:a.id,position:a.position,time:"1\u5206\u949f\u524d",praise_count:a.praise_count,user_id:a.user_id}),(s=s.slice(0))[l]=c,n.html&&n.html(""),n.setValue&&(n.setValue(""),(0,window.$)(".commentItemMDEditorView_".concat(t)).hide()),o.setState({comments:s},(function(){n.html&&window.prettyPrint()}))}})).catch((function(e){}))}else a("\u5fc5\u987b\u586b\u5199\u5185\u5bb9\uff01")}},{key:"hiddenComment",value:function(e,t){var n=this,o=e.id,i=this.props,r=(i.challenge,i.shixun),a=(i.user,i.showSnackbar),s=i.match,l="/discusses/".concat(o,"/hidden.json"),c=this._findCommentById(o),u=this.state.comments,d=Object.assign({},u[c]);p.a.post(l,{hidden:d.hidden?"0":"1",container_identifier:s.params.shixunId||r.identifier},{}).then((function(e){if(-1!==e.data.status){if(1===e.data.status)if(t){var o=n._findCommentById(t,u[c].children),i=u[c].children[o];i.hidden=!i.hidden,n.setState({comments:u})}else{d.hidden=!d.hidden;var r=n.state.comments.slice(0);r[c]=d,n.setState({comments:r})}}else a(e.data.message)})).catch((function(e){}))}},{key:"deleteComment",value:function(e,t){var n=this,o=this.props,i=(o.challenge,o.shixun,e.id);t&&(i=t);var r="/discusses/".concat(i,".json");p.a.delete(r,{}).then((function(o){if(o.data&&1===o.data.status){var i=n._findCommentById(e.id);if(t){var r=n.state.comments,a=Object.assign({},r),s=n._findCommentById(t,a[i].children);a[i].children=g()(a[i].children,{$splice:[[s,1]]}),n.setState({newComments:a})}else n.setState((function(e){return{comments:g()(e.comments,{$splice:[[i,1]]})}})),n.state.comments.length<=5&&n.fetchComment()}})).catch((function(e){}))}},{key:"rewardCode",value:function(e,t,n){var o=this,i=this.props,r=(i.challenge,i.shixun,i.showSnackbar),a=e;t&&(a=t);var s=a.id,l="/discusses/".concat(s,"/reward_code.json");p.a.post(l,{container_type:"Discusses",score:n,user_id:a.user_id},{}).then((function(n){if(n.data&&n.data.code){var i=o._findCommentById(e.id),r=o.state.comments.slice(0);if(t){var s=o._findCommentById(a.id,e.children),l=Object.assign({},t);l.reward=n.data.code,(e=Object.assign({},e)).children=e.children.slice(0),e.children[s]=l,r[i]=e}else{var c=Object.assign({},r[i]);c.reward=n.data.code,r[i]=c}o.setState({comments:r})}})).catch((function(e){r("\u5956\u52b1\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7cfb\u7edf\u7ba1\u7406\u5458\uff01")}))}},{key:"commentPraise",value:function(e){var t=this,n=this._findCommentById(e),o=this.state.comments,i=(this.props.challenge,"/discusses/".concat(e,"/plus.json"));p.a.post(i,{container_type:"Discuss",type:!0===o[n].user_praise?0:1},{}).then((function(e){if(0===e.data.praise_count||e.data.praise_count){var i=o.slice(0),r=Object.assign({},i[n]);r.user_praise=!r.user_praise,r.praise_count=e.data.praise_count,i[n]=r,t.setState({comments:i})}})).catch((function(e){}))}},{key:"newMessage",value:function(){}},{key:"showNewReply",value:function(){var e=this,t=this.props,n=t.shixun,o=t.myshixun,i="/api/v1/shixuns/".concat(n.id,"/anchor?container_type=Shixun&myshixun_id=").concat(o.id,"&discuss_id=").concat(929);this.setState({loadingComments:!0,gotNewReply:!1}),p.a.get(i,{}).then((function(t){var n=t.data;n.new_message,e.setState({comments:n.children_list,comment_count_without_reply:n.disscuss_count,currentPage:n.page,loadingComments:!1},(function(){if(t.data.find_status){var e=window.$("#reply_content_".concat(929));e.length&&(e[0].scrollIntoView(),e.parents(".comment_item_cont").css("border","1px solid #4CACFF"))}}))})).catch((function(e){}))}},{key:"componentDidMount",value:function(){var e=this;v(".commentsDelegateParent").delegate(".J_Comment_Reply .comment_content img, .J_Comment_Reply .childrenCommentsView img","click",(function(t){var n=t.target.src;-1===n.indexOf("/images/avatars/User")&&-1===n.indexOf("kindeditor/plugins/emoticons")&&e.setState({showImage:!0,imageSrc:n})}))}},{key:"render",value:function(){return d.a.createElement(d.a.Fragment,null,d.a.createElement(m.a,Object.assign({},this.state,{onImageLayerClose:this.onImageLayerClose})),d.a.createElement(e,Object.assign({},this.props,this.state,{createNewComment:this.createNewComment,fetchCommentIfNotFetched:this.fetchCommentIfNotFetched,clearCommentsInState:this.clearCommentsInState,replyComment:this.replyComment,deleteComment:this.deleteComment,commentPraise:this.commentPraise,hiddenComment:this.hiddenComment,rewardCode:this.rewardCode,onPaginationChange:this.onPaginationChange,showNotification:this.showNotification,newMessage:this.newMessage,showNewReply:this.showNewReply})))}}]),n}(d.a.Component)}},function(e,t,n){"use strict";n(1002),n(1973),n(1975)},function(e,t,n){"use strict";n(1002),n(1974)},function(e,t,n){},function(e,t,n){"use strict";n(1002),n(1976)},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=o?Object.getOwnPropertyDescriptor(e,i):null;r&&(r.get||r.set)?Object.defineProperty(n,i,r):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(0)),i=n(25),r=d(n(1978)),a=d(n(1519)),s=d(n(1996)),l=d(n(1410)),c=d(n(1517)),u=n(1127);function d(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(){function e(t){var n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,i=g(e).call(this,t),(n=!i||"object"!==h(i)&&"function"!=typeof i?m(this):i).onConfirm=function(e){n.setVisible(!1,e);var t=n.props.onConfirm;t&&t.call(m(n),e)},n.onCancel=function(e){n.setVisible(!1,e);var t=n.props.onCancel;t&&t.call(m(n),e)},n.onVisibleChange=function(e){n.props.disabled||n.setVisible(e)},n.saveTooltip=function(e){n.tooltip=e},n.renderOverlay=function(e,t){var i=n.props,r=i.okButtonProps,a=i.cancelButtonProps,l=i.title,c=i.cancelText,u=i.okText,d=i.okType,h=i.icon;return o.createElement("div",null,o.createElement("div",{className:"".concat(e,"-inner-content")},o.createElement("div",{className:"".concat(e,"-message")},h,o.createElement("div",{className:"".concat(e,"-message-title")},l)),o.createElement("div",{className:"".concat(e,"-buttons")},o.createElement(s.default,p({onClick:n.onCancel,size:"small"},a),c||t.cancelText),o.createElement(s.default,p({onClick:n.onConfirm,type:d,size:"small"},r),u||t.okText))))},n.renderConfirm=function(e){var t=e.getPrefixCls,i=n.props,a=i.prefixCls,s=i.placement,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(i,["prefixCls","placement"]),d=t("popover",a),h=o.createElement(l.default,{componentName:"Popconfirm",defaultLocale:c.default.Popconfirm},(function(e){return n.renderOverlay(d,e)}));return o.createElement(r.default,p({},u,{prefixCls:d,placement:s,onVisibleChange:n.onVisibleChange,visible:n.state.visible,overlay:h,ref:n.saveTooltip}))},n.state={visible:t.visible},n}var t,n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(e,o.Component),t=e,i=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:"defaultVisible"in e?{visible:e.defaultVisible}:null}}],(n=[{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"setVisible",value:function(e,t){var n=this.props;"visible"in n||this.setState({visible:e});var o=n.onVisibleChange;o&&o(e,t)}},{key:"render",value:function(){return o.createElement(u.ConfigConsumer,null,this.renderConfirm)}}])&&f(t.prototype,n),i&&f(t,i),e}();y.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:o.createElement(a.default,{type:"exclamation-circle",theme:"filled"}),disabled:!1},(0,i.polyfill)(y);var b=y;t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=o?Object.getOwnPropertyDescriptor(e,i):null;r&&(r.get||r.set)?Object.defineProperty(n,i,r):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(0)),i=n(25),r=c(n(208)),a=c(n(12)),s=c(n(1979)),l=n(1127);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var m=function(){function e(t){var n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,i=h(e).call(this,t),(n=!i||"object"!==u(i)&&"function"!=typeof i?p(this):i).onVisibleChange=function(e){var t=n.props.onVisibleChange;"visible"in n.props||n.setState({visible:!n.isNoTitle()&&e}),t&&!n.isNoTitle()&&t(e)},n.saveTooltip=function(e){n.tooltip=e},n.onPopupAlign=function(e,t){var o=n.getPlacements(),i=Object.keys(o).filter((function(e){return o[e].points[0]===t.points[0]&&o[e].points[1]===t.points[1]}))[0];if(i){var r=e.getBoundingClientRect(),a={top:"50%",left:"50%"};0<=i.indexOf("top")||0<=i.indexOf("Bottom")?a.top="".concat(r.height-t.offset[1],"px"):(0<=i.indexOf("Top")||0<=i.indexOf("bottom"))&&(a.top="".concat(-t.offset[1],"px")),0<=i.indexOf("left")||0<=i.indexOf("Right")?a.left="".concat(r.width-t.offset[0],"px"):(0<=i.indexOf("right")||0<=i.indexOf("Left"))&&(a.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(a.left," ").concat(a.top)}},n.renderTooltip=function(e){var t=e.getPopupContainer,i=e.getPrefixCls,s=p(n),l=s.props,c=s.state,u=l.prefixCls,d=l.openClassName,h=l.getPopupContainer,f=l.getTooltipContainer,m=l.children,v=i("tooltip",u),y=c.visible;"visible"in l||!n.isNoTitle()||(y=!1);var b,_,w=function(e){var t=e.type;if(!0!==t.__ANT_BUTTON&&!0!==t.__ANT_SWITCH&&!0!==t.__ANT_CHECKBOX&&"button"!==e.type||!e.props.disabled)return e;var n=function(e,t){var n={},o=g({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=n.picked,r=n.omitted,a=g(g({display:"inline-block"},i),{cursor:"not-allowed",width:e.props.block?"100%":null}),s=g(g({},r),{pointerEvents:"none"}),l=o.cloneElement(e,{style:s,className:null});return o.createElement("span",{style:a,className:e.props.className},l)}(o.isValidElement(m)?m:o.createElement("span",null,m)),C=w.props,S=(0,a.default)(C.className,(b={},!0,(_=d||"".concat(v,"-open"))in b?Object.defineProperty(b,_,{value:!0,enumerable:!0,configurable:!0,writable:!0}):b[_]=!0,b));return o.createElement(r.default,g({},n.props,{prefixCls:v,getTooltipContainer:h||f||t,ref:n.saveTooltip,builtinPlacements:n.getPlacements(),overlay:n.getOverlay(),visible:y,onVisibleChange:n.onVisibleChange,onPopupAlign:n.onPopupAlign}),y?o.cloneElement(w,{className:S}):w)},n.state={visible:!!t.visible||!!t.defaultVisible},n}var t,n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(e,o.Component),t=e,i=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:null}}],(n=[{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"getPlacements",value:function(){var e=this.props,t=e.builtinPlacements,n=e.arrowPointAtCenter,o=e.autoAdjustOverflow;return t||(0,s.default)({arrowPointAtCenter:n,verticalArrowShift:8,autoAdjustOverflow:o})}},{key:"isNoTitle",value:function(){var e=this.props,t=e.title,n=e.overlay;return!t&&!n&&0!==t}},{key:"getOverlay",value:function(){var e=this.props,t=e.title,n=e.overlay;return 0===t?t:n||t||""}},{key:"render",value:function(){return o.createElement(l.ConfigConsumer,null,this.renderTooltip)}}])&&d(t.prototype,n),i&&d(t,i),e}();m.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0},(0,i.polyfill)(m);var v=m;t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOverflowOptions=l,t.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.arrowWidth,n=void 0===t?5:t,r=e.horizontalArrowShift,a=void 0===r?16:r,c=e.verticalArrowShift,u=void 0===c?12:c,d=e.autoAdjustOverflow,h=void 0===d||d,p={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(u+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(u+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,u+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,u+n]}};return Object.keys(p).forEach((function(t){p[t]=e.arrowPointAtCenter?i(i({},p[t]),{overflow:l(h),targetOffset:s}):i(i({},o.placements[t]),{overflow:l(h)}),p[t].ignoreShake=!0})),p};var o=n(1980);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var r={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},s=[0,0];function l(e){return"boolean"==typeof e?e?r:a:i(i({},a),e)}},function(e,t,n){"use strict";t.__esModule=!0;var o={adjustX:1,adjustY:1},i=[0,0],r=t.placements={left:{points:["cr","cl"],overflow:o,offset:[-4,0],targetOffset:i},right:{points:["cl","cr"],overflow:o,offset:[4,0],targetOffset:i},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:i},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:i},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:i},leftTop:{points:["tr","tl"],overflow:o,offset:[-4,0],targetOffset:i},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:i},rightTop:{points:["tl","tr"],overflow:o,offset:[4,0],targetOffset:i},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:i},rightBottom:{points:["bl","br"],overflow:o,offset:[4,0],targetOffset:i},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:i},leftBottom:{points:["br","bl"],overflow:o,offset:[-4,0],targetOffset:i}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ANT_MARK=void 0;var o=d(n(0)),i=d(n(1)),r=d(n(49)),a=c(n(1982)),s=n(1983),l=c(n(1518));function c(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=o?Object.getOwnPropertyDescriptor(e,i):null;r&&(r.get||r.set)?Object.defineProperty(n,i,r):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v="internalMark";function y(e){e&&e.locale?(0,a.default)(r).locale(e.locale):(0,a.default)(r).locale("en")}t.ANT_MARK=v;var b=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,g(e).call(this,t)),y(t.locale),(0,s.changeConfirmLocale)(t.locale&&t.locale.Modal),(0,l.default)(t._ANT_MARK__===v,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(e,o.Component),t=e,(n=[{key:"getChildContext",value:function(){return{antLocale:p(p({},this.props.locale),{exist:!0})}}},{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&(y(t),(0,s.changeConfirmLocale)(t&&t.Modal))}},{key:"componentWillUnmount",value:function(){(0,s.changeConfirmLocale)()}},{key:"render",value:function(){return this.props.children}}])&&f(t.prototype,n),e}();(t.default=b).propTypes={locale:i.object},b.defaultProps={locale:{}},b.childContextTypes={antLocale:i.object}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.default||e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeConfirmLocale=function(e){a=e?r(r({},a),e):r({},i.default.Modal)},t.getConfirmLocale=function(){return a};var o,i=(o=n(1517))&&o.__esModule?o:{default:o};function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var a=r({},i.default.Modal)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},e.exports=t.default},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=((o=n(1905))&&o.__esModule?o:{default:o}).default;t.default=i},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=((o=n(1517))&&o.__esModule?o:{default:o}).default;t.default=i},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.withConfigConsumer=function(e){return function(t){function n(n){return i.createElement(u,null,(function(o){var r=e.prefixCls,a=(0,o.getPrefixCls)(r,n.prefixCls);return i.createElement(t,l({},o,n,{prefixCls:a}))}))}var o=t.constructor,r=o&&o.displayName||t.name||"Component";return n.displayName="withConfigConsumer(".concat(r,")"),n}},t.ConfigConsumer=t.ConfigContext=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=s(n(169)),a=s(n(1989));function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var c=(0,r.default)({getPrefixCls:function(e,t){return t||"ant-".concat(e)},renderEmpty:a.default}),u=(t.ConfigContext=c).Consumer;t.ConfigConsumer=u},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),a=(i=n(1990))&&i.__esModule?i:{default:i},s=n(1127);t.default=function(e){return r.createElement(s.ConfigConsumer,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return r.createElement(a.default,{image:a.default.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(a.default,{image:a.default.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return r.createElement(a.default,null)}}))}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=u(n(12)),a=n(1127),s=u(n(1410)),l=u(n(1991)),c=u(n(1992));function u(e){return e&&e.__esModule?e:{default:e}}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function h(e){return i.createElement(a.ConfigConsumer,null,(function(t){var n=t.getPrefixCls,o=e.className,a=e.prefixCls,l=e.image,c=void 0===l?f:l,u=e.description,h=e.children,m=e.imageStyle,v=p(e,["className","prefixCls","image","description","children","imageStyle"]);return i.createElement(s.default,{componentName:"Empty"},(function(e){var t,s,l,p,f=n("empty",a),y=void 0!==u?u:e.description,b="string"==typeof y?y:"empty";return p="string"==typeof c?i.createElement("img",{alt:b,src:c}):c,i.createElement("div",d({className:(0,r.default)(f,(t={},s="".concat(f,"-normal"),l=c===g,s in t?Object.defineProperty(t,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[s]=l,t),o)},v),i.createElement("div",{className:"".concat(f,"-image"),style:m},p),y&&i.createElement("p",{className:"".concat(f,"-description")},y),h&&i.createElement("div",{className:"".concat(f,"-footer")},h))}))}))}var p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},f=i.createElement(l.default,null),g=i.createElement(c.default,null);h.PRESENTED_IMAGE_DEFAULT=f,h.PRESENTED_IMAGE_SIMPLE=g;var m=h;t.default=m},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0));t.default=function(){return i.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0));t.default=function(){return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:"#D9D9D9"},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA"}))))}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,o=void 0===n?{}:n;if("undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&"string"==typeof t&&t.length&&!c.has(t)){var i=document.createElement("script");i.setAttribute("src",t),i.setAttribute("data-namespace",t),c.add(t),document.body.appendChild(i)}function u(e){var t=e.type,n=e.children,i=l(e,["type","children"]),c=null;return e.type&&(c=r.createElement("use",{xlinkHref:"#".concat(t)})),n&&(c=n),r.createElement(a.default,s({},o,i),c)}return u.displayName="Iconfont",u};var i,r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),a=(i=n(1519))&&i.__esModule?i:{default:i};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},c=new Set},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getThemeFromTypeName=function(e){var t=null;return r.test(e)?t="filled":a.test(e)?t="outlined":s.test(e)&&(t="twoTone"),t},t.removeTypeTheme=function(e){return e.replace(r,"").replace(a,"").replace(s,"")},t.withThemeSuffix=function(e,t){var n=e;return"filled"===t?n+="-fill":"outlined"===t?n+="-o":"twoTone"===t?n+="-twotone":(0,i.default)(!1,"Icon","This icon '".concat(e,"' has unknown theme '").concat(t,"'")),n},t.alias=function(e){var t=e;switch(e){case"cross":t="close";break;case"interation":t="interaction";break;case"canlendar":t="calendar";break;case"colum-height":t="column-height"}return(0,i.default)(t===e,"Icon","Icon '".concat(e,"' was a typo and is now deprecated, please use '").concat(t,"' instead.")),t},t.svgBaseProps=void 0;var o,i=(o=n(1518))&&o.__esModule?o:{default:o};t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":!0,focusable:"false"};var r=/-fill$/,a=/-o$/,s=/-twotone$/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setTwoToneColor=function(e){return i.default.setTwoToneColors({primaryColor:e})},t.getTwoToneColor=function(){return i.default.getTwoToneColors().primaryColor};var o,i=(o=n(276))&&o.__esModule?o:{default:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1997)),i=r(n(2002));function r(e){return e&&e.__esModule?e:{default:e}}o.default.Group=i.default;var a=o.default;t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=f(n(0)),i=f(n(1)),r=h(n(12)),a=n(25),s=h(n(33)),l=h(n(1519)),c=n(1127),u=h(n(1998)),d=n(2001);function h(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=o?Object.getOwnPropertyDescriptor(e,i):null;r&&(r.get||r.set)?Object.defineProperty(n,i,r):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n},C=/^[\u4e00-\u9fa5]{2}$/,S=C.test.bind(C);function O(e,t){var n=!1,i=[];return o.Children.forEach(e,(function(e){var t=_(e),o="string"===t||"number"===t;if(n&&o){var r=i.length-1,a=i[r];i[r]="".concat(a).concat(e)}else i.push(e);n=o})),o.Children.map(i,(function(e){return function(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&S(e.props.children)?o.cloneElement(e,{},e.props.children.split("").join(n)):"string"==typeof e?(S(e)&&(e=e.split("").join(n)),o.createElement("span",null,e)):e}}(e,t)}))}(0,d.tuple)("default","primary","ghost","dashed","danger","link");var x=(0,d.tuple)("circle","circle-outline","round"),E=(0,d.tuple)("large","default","small"),k=(0,d.tuple)("submit","button","reset"),N=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,y(e).call(this,t))).saveButtonRef=function(e){n.buttonNode=e},n.handleClick=function(e){var t=n.state.loading,o=n.props.onClick;t||o&&o(e)},n.renderButton=function(e){var t,i=e.getPrefixCls,a=e.autoInsertSpaceInButton,c=n.props,d=c.prefixCls,h=c.type,p=c.shape,f=c.size,v=c.className,y=c.children,b=c.icon,_=c.ghost,C=c.block,S=w(c,["prefixCls","type","shape","size","className","children","icon","ghost","block"]),x=n.state,E=x.loading,k=x.hasTwoCNChar,N=i("btn",d),D=!1!==a,L="";switch(f){case"large":L="lg";break;case"small":L="sm"}var P=E?"loading":b,I=(0,r.default)(N,v,(m(t={},"".concat(N,"-").concat(h),h),m(t,"".concat(N,"-").concat(p),p),m(t,"".concat(N,"-").concat(L),L),m(t,"".concat(N,"-icon-only"),!y&&0!==y&&P),m(t,"".concat(N,"-loading"),!!E),m(t,"".concat(N,"-background-ghost"),_),m(t,"".concat(N,"-two-chinese-chars"),k&&D),m(t,"".concat(N,"-block"),C),t)),T=P?o.createElement(l.default,{type:P}):null,M=y||0===y?O(y,n.isNeedInserted()&&D):null,j=(0,s.default)(S,["htmlType","loading"]);if(void 0!==j.href)return o.createElement("a",g({},j,{className:I,onClick:n.handleClick,ref:n.saveButtonRef}),T,M);var R=S.htmlType,A=w(S,["htmlType"]),F=o.createElement("button",g({},(0,s.default)(A,["loading"]),{type:R,className:I,onClick:n.handleClick,ref:n.saveButtonRef}),T,M);return"link"===h?F:o.createElement(u.default,null,F)},n.state={loading:t.loading,hasTwoCNChar:!1},n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(e,o.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.fixTwoCNChar()}},{key:"componentDidUpdate",value:function(e){var t=this;this.fixTwoCNChar(),e.loading&&"boolean"!=typeof e.loading&&clearTimeout(this.delayTimeout);var n=this.props.loading;n&&"boolean"!=typeof n&&n.delay?this.delayTimeout=window.setTimeout((function(){t.setState({loading:n})}),n.delay):e.loading!==n&&this.setState({loading:n})}},{key:"componentWillUnmount",value:function(){this.delayTimeout&&clearTimeout(this.delayTimeout)}},{key:"fixTwoCNChar",value:function(){if(this.buttonNode){var e=this.buttonNode.textContent||this.buttonNode.innerText;this.isNeedInserted()&&S(e)?this.state.hasTwoCNChar||this.setState({hasTwoCNChar:!0}):this.state.hasTwoCNChar&&this.setState({hasTwoCNChar:!1})}}},{key:"isNeedInserted",value:function(){var e=this.props,t=e.icon,n=e.children,i=e.type;return 1===o.Children.count(n)&&!t&&"link"!==i}},{key:"render",value:function(){return o.createElement(c.ConfigConsumer,null,this.renderButton)}}])&&v(t.prototype,n),e}();N.__ANT_BUTTON=!0,N.defaultProps={loading:!1,ghost:!1,block:!1,htmlType:"button"},N.propTypes={type:i.string,shape:i.oneOf(x),size:i.oneOf(E),htmlType:i.oneOf(k),onClick:i.func,loading:i.oneOfType([i.bool,i.object]),className:i.string,icon:i.string,block:i.bool,title:i.string},(0,a.polyfill)(N);var D=N;t.default=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=o?Object.getOwnPropertyDescriptor(e,i):null;r&&(r.get||r.set)?Object.defineProperty(n,i,r):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(0)),r=n(13),a=c(n(1999)),s=c(n(2e3)),l=n(1127);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){return!e||null===e.offsetParent}var m=function(){function e(){var t,n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,i=h(e).apply(this,arguments),(t=!i||"object"!==u(i)&&"function"!=typeof i?p(n):i).animationStart=!1,t.destroy=!1,t.onClick=function(e,n){if(!(!e||g(e)||0<=e.className.indexOf("-leave"))){var i=t.props.insertExtraNode;t.extraNode=document.createElement("div");var r=p(t).extraNode;r.className="ant-click-animating-node";var s,l=t.getAttributeName();e.setAttribute(l,"true"),o=o||document.createElement("style"),!n||"#ffffff"===n||"rgb(255, 255, 255)"===n||(s=(n||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/))&&s[1]&&s[2]&&s[3]&&s[1]===s[2]&&s[2]===s[3]||/rgba\(\d*, \d*, \d*, 0\)/.test(n)||"transparent"===n||(t.csp&&t.csp.nonce&&(o.nonce=t.csp.nonce),r.style.borderColor=n,o.innerHTML="\n [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {\n --antd-wave-shadow-color: ".concat(n,";\n }"),document.body.contains(o)||document.body.appendChild(o)),i&&e.appendChild(r),a.default.addStartEventListener(e,t.onTransitionStart),a.default.addEndEventListener(e,t.onTransitionEnd)}},t.onTransitionStart=function(e){if(!t.destroy){var n=(0,r.findDOMNode)(p(t));e&&e.target===n&&(t.animationStart||t.resetEffect(n))}},t.onTransitionEnd=function(e){e&&"fadeEffect"===e.animationName&&t.resetEffect(e.target)},t.bindAnimationEvent=function(e){if(e&&e.getAttribute&&!e.getAttribute("disabled")&&!(0<=e.className.indexOf("disabled"))){var n=function(n){if("INPUT"!==n.target.tagName&&!g(n.target)){t.resetEffect(e);var o=getComputedStyle(e).getPropertyValue("border-top-color")||getComputedStyle(e).getPropertyValue("border-color")||getComputedStyle(e).getPropertyValue("background-color");t.clickWaveTimeoutId=window.setTimeout((function(){return t.onClick(e,o)}),0),s.default.cancel(t.animationStartId),t.animationStart=!0,t.animationStartId=(0,s.default)((function(){t.animationStart=!1}),10)}};return e.addEventListener("click",n,!0),{cancel:function(){e.removeEventListener("click",n,!0)}}}},t.renderWave=function(e){var n=e.csp,o=t.props.children;return t.csp=n,o},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(e,i.Component),t=e,(n=[{key:"componentDidMount",value:function(){var e=(0,r.findDOMNode)(this);e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroy=!0}},{key:"getAttributeName",value:function(){return this.props.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}},{key:"resetEffect",value:function(e){if(e&&e!==this.extraNode&&e instanceof Element){var t=this.props.insertExtraNode,n=this.getAttributeName();e.setAttribute(n,"false"),o&&(o.innerHTML=""),t&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),a.default.removeStartEventListener(e,this.onTransitionStart),a.default.removeEndEventListener(e,this.onTransitionEnd)}}},{key:"render",value:function(){return i.createElement(l.ConfigConsumer,null,this.renderWave)}}])&&d(t.prototype,n),e}();t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},r={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},a=[],s=[];function l(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];for(var r in i)if(r in o){t.push(i[r]);break}}}function c(e,t,n){e.addEventListener(t,n,!1)}function u(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&(o=document.createElement("div").style,"AnimationEvent"in window||(delete i.animationstart.animation,delete r.animationend.animation),"TransitionEvent"in window||(delete i.transitionstart.transition,delete r.transitionend.transition),l(i,a),l(r,s));var d={startEvents:a,addStartEventListener:function(e,t){0!==a.length?a.forEach((function(n){c(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==a.length&&a.forEach((function(n){u(e,n,t)}))},endEvents:s,addEndEventListener:function(e,t){0!==s.length?s.forEach((function(n){c(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==s.length&&s.forEach((function(n){u(e,n,t)}))}};t.default=d,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var o,i=(o=n(106))&&o.__esModule?o:{default:o},r=0,a={};function s(e){var t=r++,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return a[t]=(0,i.default)((function o(){--n<=0?(e(),delete a[t]):a[t]=(0,i.default)(o)})),t}s.cancel=function(e){void 0!==e&&(i.default.cancel(a[e]),delete a[e])},s.ids=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tupleNum=t.tuple=void 0,t.tuple=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},t.tupleNum=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}(n(0)),a=(i=n(12))&&i.__esModule?i:{default:i},s=n(1127);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};t.default=function(e){return r.createElement(s.ConfigConsumer,null,(function(t){var n=t.getPrefixCls,o=e.prefixCls,i=e.size,s=e.className,u=c(e,["prefixCls","size","className"]),d=n("btn-group",o),h="";switch(i){case"large":h="lg";break;case"small":h="sm"}var p,f,g,m=(0,a.default)(d,(p={},g=h,(f="".concat(d,"-").concat(h))in p?Object.defineProperty(p,f,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[f]=g,p),s);return r.createElement("div",l({},u,{className:m}))}))}},,function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n(873);var o=n(875),i=(n(874),n(876)),r=(n(513),n(507)),a=n(8),s=n(7),l=n(10),c=n(9),u=n(11),d=n(0),h=n.n(d),p=n(74),f=n(66),g=n(14),m=n(15),v=n.n(m),y=n(695),b=n(28),_=(n(498),n(499)),w=(n(131),n(39)),C=(n(104),n(60)),S=(n(50),n(29)),O=(n(259),n(167)),x=(n(813),n(902)),E=(n(691),n(694)),k=(n(1421),n(1423)),N=n(20),D=(n(170),n(18)),L=(n(268),n(95)),P=(n(470),n(462)),I=(n(103),n(47)),T=n(176),M=(n(1540),n(6)),j=n.n(M),R=n(93),A=(n(2154),I.a.Search),F=P.a.Group,V=I.a.TextArea,W=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).IEVersion=function(){var e=navigator.userAgent,t=-1<e.indexOf("compatible")&&-1<e.indexOf("MSIE"),n=-1<e.indexOf("Edge")&&!t,o=-1<e.indexOf("Trident")&&-1<e.indexOf("rv:11.0");if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);var i=parseFloat(RegExp.$1);return 7==i?7:8==i?8:9==i?9:10==i?10:6}return n?"edge":o?11:-1},n.openknow=function(){var e=window.localStorage;n.setState({openknow:!1});var t=n.props.user&&n.props.user.user_id+"shixunopenprocess";e.setItem(t,!0)},n.openshowpublic=function(){var e=window.localStorage;n.setState({openshowpublictype:!1});var t=n.props.user&&n.props.user.user_id+"openopenpublictype";e.setItem(t,!0)},n.copyForkvisible=function(){var e=n.props.shixunsDetails;null===e.can_fork?n.setState({Forkvisible:!0}):n.setState({Forkvisible:!1,Forkauthentication:!0,can_fork:e.can_fork.can_fork,certi_url:e.can_fork.certi_url})},n.hideForkvisible=function(){n.setState({Forkvisible:!1,Forkauthentication:!1})},n.changeTextArea=function(e){n.setState({TextArea:e.target.value})},n.addForkvisible=function(){var e;switch(n.state.Radiovalue){case 1:e="Shixun";break;case 2:e="Course";break;case 3:e="Subject";break;case 4:e=n.state.TextArea}if(4!==n.state.Radiovalue||null!==n.state.TextArea&&void 0!==n.state.TextArea&&""!==n.state.TextArea){n.setState({Forkvisibletype:!0});var t="/shixuns/"+n.props.match.params.shixunId+"/copy.json";j.a.post(t,{reason:e}).then((function(e){401===e.data.status||(n.setState({Forkvisible:!1,Forkauthentication:!1}),window.location.href="/shixuns/"+e.data.shixun+"/challenges")})).catch((function(e){}))}else n.setState({TextAreaintshow:!0})},n.Senttothe=function(){if(!1!==n.props.checkIfLogin()){var e="/shixuns/"+n.props.match.params.shixunId+"/search_user_courses.json";n.setState({Senttothetype:!0}),j.a.get(e,{params:{page:1,limit:10}}).then((function(e){n.setState({courses_count:e.data.courses_count,course_list:e.data.course_list})})).catch((function(e){}))}else n.props.showLoginDialog()},n.SenttotheSearch=function(e){var t="/shixuns/"+n.props.match.params.shixunId+"/search_user_courses.json?search="+e;j.a.get(encodeURI(t),{params:{page:1,limit:10}}).then((function(t){n.setState({courses_count:t.data.courses_count,course_list:t.data.course_list,pages:1,Searchvalue:e})})).catch((function(e){}))},n.onChangeSenttothevcalue=function(e){n.setState({Senttothevcalue:e.target.value})},n.onChangesendeSenttothe=function(e){var t=n.state.Searchvalue,o="/shixuns/"+n.props.match.params.shixunId+"/search_user_courses.json?search="+t;j.a.get(o,{params:{page:e,limit:10}}).then((function(t){n.setState({courses_count:t.data.courses_count,course_list:t.data.course_list,pagenum:e,pages:e})})).catch((function(e){}))},n.sendeSenttothevcalue=function(){var e=n.state.Senttothevcalue;if(void 0!==e){var t="/shixuns/"+n.props.match.params.shixunId+"/send_to_course.json";j.a.post(t,{course_id:e}).then((function(e){n.props.showSnackbar(e.data.message),n.setState({Senttothetype:!1,Searchvalue:"",pages:1}),n.props.history.replace(e.data.first_category_url)})).catch((function(e){}))}else n.setState({Senttothevcaluetype:!0})},n.hideSenttothevcalue=function(){n.setState({Senttothetype:!1,Searchvalue:"",pages:1})},n.ModalCancel=function(){n.setState({Modalstype:!1,Modalstopval:"",modalsMidval:void 0,ModalsBottomval:"",modalstyles:""})},n.ModalSave=function(){var e="/shixuns/"+n.props.match.params.shixunId+"/cancel_publish.json";j.a.get(e).then((function(e){n.props.showSnackbar(e.data.message),window.location.reload()})).catch((function(e){}))},n.cancel_publish=function(){n.setState({Modalstype:!0,Modalstopval:"\u662f\u5426\u786e\u8ba4\u64a4\u9500\u53d1\u5e03\uff1f",modalsMidval:"\u64a4\u9500\u53d1\u5e03\u540e\uff0c\u5b66\u5458\u5c06\u65e0\u6cd5\u8fdb\u884c\u7ec3\u4e60\uff0c\u82e5\u60a8\u65b0\u589e\u5173",ModalsBottomval:"\u5361\uff0c\u5b66\u5458\u9700\u8981\u91cd\u65b0\u4f53\u9a8c\u5b9e\u8bad",ModalCancel:n.ModalCancel,ModalSave:n.ModalSave,modalstyles:"848282"})},n.ModalSaveopenpublic=function(){n.setState({Modalstype:!0,Modalstopval:"\u516c\u5f00\u7533\u8bf7\u5df2\u63d0\u4ea4\uff0c\u8bf7\u7b49\u5f85\u7ba1\u7406\u5458\u7684\u5ba1\u6838",modalsMidval:"\u2022 \u6211\u4eec\u5c06\u57281-2\u4e2a\u5de5\u4f5c\u65e5\u5185\u5b8c\u6210\u5ba1\u6838",ModalCancel:n.eopenpublicupdatadata,ModalSave:n.eopenpublicupdatadata,Loadtype:!0,modalstyles:"848282"})},n.eopenpublicupdatadata=function(){window.location.reload()},n.openpublic=function(){var e=n.props.match.params.shixunId,t="/shixuns/".concat(e,"/apply_public.json");j.a.get(t).then((function(e){0===e.data.status&&n.ModalSaveopenpublic()})).catch((function(e){}))},n.ModalhidenpublicSave=function(){var e=n.props.match.params.shixunId,t="/shixuns/".concat(e,"/cancel_apply_public.json");j.a.get(t).then((function(e){0===e.data.status&&window.location.reload()})).catch((function(e){}))},n.hidenpublic=function(){n.setState({Modalstype:!0,Modalstopval:"\u662f\u5426\u786e\u8ba4\u64a4\u9500\u7533\u8bf7\u516c\u5f00\uff1f",modalsMidval:" ",ModalsBottomval:" ",ModalCancel:n.ModalCancel,ModalSave:n.ModalhidenpublicSave})},n.applyrelease=function(){var e="/shixuns/"+n.props.match.params.shixunId+"/publish.json";j.a.get(e).then((function(e){var t;t=null===e.data.evaluation_set_position?[]:e.data.evaluation_set_position,0===e.data.status?window.location.reload():n.setState({Issuevisible:!0,tag_position:e.data.tag_position,evaluation_set_position:t,publishboxstatus:e.data.status})})).catch((function(e){}))},n.hiddenIssuevisible=function(e){n.setState({Issuevisible:!1}),0!==e&&1!==e||window.location.reload()},n.hidestartshixunsreplace=function(e){n.setState({isSpin:!0}),j.a.get(e).then((function(e){200===e.status&&(L.a.success("\u91cd\u7f6e\u6210\u529f\uff0c\u6b63\u5728\u8fdb\u5165\u5b9e\u8bad\uff01"),n.startshixunCombat(e.data.shixun_identifier,1),n.setState({shixunsreplace:!1,isSpin:!1}))})).catch((function(e){n.setState({startbtn:!1,shixunsreplace:!1,isSpin:!1})}))},n.startshixunCombat=function(e,t){if(n.props.shixunsDetails&&!0===n.props.shixunsDetails.is_jupyter){if(!1===n.props.checkIfLogin())return void n.props.showLoginDialog();if(!1===n.props.checkIfProfileCompleted())return void n.setState({AccountProfiletype:!0});1<n.props.shixunsDetails.shixun_status?n.setState({startbtn:!0,hidestartshixunsreplacevalue:""}):n.setState({hidestartshixunsreplacevalue:""});var o="/shixuns/"+e+"/jupyter_exec.json";t&&(o+="?reset="+t),j.a.get(o).then((function(e){200===e.status&&(-2===e.data.status?n.setState({startbtn:!1,shixunsreplace:!0,hidestartshixunsreplacevalue:e.data.message+".json"}):-1===e.data.status||(-3===e.data.status?n.setState({shixunsmessage:e.data.message,startshixunCombattype:!0,startbtn:!1}):401!=e.data.status&&(window.location.href="/tasks/"+e.data.identifier+"/jupyter")))})).catch((function(e){n.setState({startbtn:!1})}))}else{if(!1===n.props.checkIfLogin())return void n.props.showLoginDialog();if(!1===n.props.checkIfProfileCompleted())return void n.setState({AccountProfiletype:!0});1<n.props.shixunsDetails.shixun_status?n.setState({startbtn:!0,hidestartshixunsreplacevalue:""}):n.setState({hidestartshixunsreplacevalue:""});var i="/shixuns/"+e+"/shixun_exec.json";t&&(i+="?reset="+t),j.a.get(i).then((function(e){200===e.status&&(-2===e.data.status?n.setState({startbtn:!1,shixunsreplace:!0,hidestartshixunsreplacevalue:e.data.message+".json"}):-1===e.data.status||(-3===e.data.status?n.setState({shixunsmessage:e.data.message,startshixunCombattype:!0,startbtn:!1}):401!=e.data.status&&(window.location.href="/tasks/"+e.data.game_identifier)))})).catch((function(e){n.setState({startbtn:!1})}))}},n.tocertification=function(){var e=n.state.certi_url;n.setState({Forkauthentication:!1}),window.location.href=e},n.SenttotheValue=function(e){n.setState({Searchvalue:e.target.value})},n.hidestartshixunCombattype=function(){n.setState({startshixunCombattype:!1})},n.hideAccountProfile=function(){n.setState({AccountProfiletype:!1})},n.onChangeRadiovalue=function(e){n.setState({Radiovalue:e.target.value}),4!=e.target.value&&n.setState({TextAreaintshow:!1})},n.state={Forkvisible:!1,Senttothetype:!1,Senttothevcalue:void 0,courses_count:1,course_list:[],pagenum:1,publishbox:"",publishboxstatus:0,pages:1,Issuevisible:!1,evaluation_set_position:[],tag_position:[],Forkauthentication:!1,can_fork:void 0,certi_url:void 0,showradios:!1,startbtn:!1,Searchvalue:"",startshixunCombattype:!1,shixunsmessage:"",shixunsreplace:!1,hidestartshixunsreplacevalue:"",isIE:!1,Forkvisibletype:!1,isSpin:!1,Senttothevcaluetype:!1,jupyterbool:!1,openknow:!1,openshowpublictype:!1,Radiovalue:1,TextAreaintshow:!1},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this;if(e!=this.props){e.user!=this.props.user&&(this.props.user&&!0===this.props.user.admin||this.props.user&&!0===this.props.user.business)&&this.setState({TextArea:"\u4e91\u4e0a\u5b9e\u9a8c\u5ba4\u4f7f\u7528"});var n=this.props.user&&this.props.user.user_id+"shixunopenprocess",o=this.props.user&&this.props.user.user_id+"openopenpublictype",i=window.localStorage.getItem(n),r=window.localStorage.getItem(o);0===this.props.status&&!1===this.props.openknows?this.props.shixunsDetails&&0===this.props.shixunsDetails.shixun_status&&this.props.identity<5&&this.props.user&&this.props.user.user_id&&(void 0===i||!1===i||null===i?(this.setState({openknow:!0}),setTimeout((function(){t.openknow(),t.setState({openknow:!1})}),1e4)):this.setState({openknow:!1})):this.setState({openknow:!1}),0===this.props.public&&1<this.props.status&&!1===this.props.openknows?this.props.shixunsDetails&&2===this.props.shixunsDetails.shixun_status&&this.props.shixunsDetails&&0===this.props.shixunsDetails.public&&this.props.identity<5&&this.props.user&&this.props.user.user_id&&(void 0===r||!1===r||null===r?(this.setState({openshowpublictype:!0}),setTimeout((function(){t.openshowpublic(),t.setState({openshowpublictype:!1})}),1e4)):this.setState({openshowpublictype:!1})):this.setState({openshowpublictype:!1})}}},{key:"componentDidMount",value:function(){-1!=this.IEVersion()?this.setState({isIE:!0}):this.setState({isIE:!1}),(this.props.user&&!0===this.props.user.admin||this.props.user&&!0===this.props.user.business)&&this.setState({TextArea:"\u4e91\u4e0a\u5b9e\u9a8c\u5ba4\u4f7f\u7528"})}},{key:"render",value:function(){function e(e){var t=e.defaultValue,n=Object(N.a)(e,["defaultValue"]),o=t;return h.a.createElement(k.a,Object.assign({},n,{value:o}))}var t=this,n=this.state,o=n.Forkvisible,i=n.Senttothetype,r=n.Senttothevcalue,a=n.evaluation_set_position,s=n.Forkauthentication,l=n.can_fork,c=(n.certi_url,n.tag_position),u=n.courses_count,d=n.course_list,f=n.Issuevisible,g=n.publishboxstatus,m=(n.showradios,n.startbtn),v=n.Searchvalue,y=n.startshixunCombattype,b=n.shixunsmessage,L=n.pages,I=n.shixunsreplace,M=n.hidestartshixunsreplacevalue,j=n.Forkvisibletype,W=n.AccountProfiletype,B=(n.isIE,this.props),H=B.shixunsDetails,z=B.shixunId,K=B.star_info,U=B.star_infos,q={display:"block",height:"30px",lineHeight:"30px"},G=h.a.createElement(D.a,{type:"loading",style:{fontSize:24},spin:!0});return void 0===H?"":h.a.createElement("div",{className:"shixunDetail",id:"shixunDetail"},h.a.createElement("style",null,"\n .shixunDetail_top{\n height: 180px !important;\n padding-top:50px !important;\n }\n .ant-popover{\n z-index:1000 !important;\n }\n "),h.a.createElement("div",{className:"shixunDetail_top"},!0===W?h.a.createElement(T.a,Object.assign({hideAccountProfile:function(){return t.hideAccountProfile()}},this.props,this.state)):"",!0===this.state.Modalstype?h.a.createElement(R.a,{modalsType:this.state.Modalstype,modalsTopval:this.state.Modalstopval,modalCancel:this.state.ModalCancel,modalSave:this.state.ModalSave,modalsBottomval:this.state.ModalsBottomval,modalsMidval:this.state.modalsMidval,loadtype:this.state.Loadtype,modalstyles:this.state.modalstyles}):"",h.a.createElement("div",{className:"educontent clearfix"},h.a.createElement("p",{className:"clearfix"},h.a.createElement("a",{href:"/shixuns/"+H.identifier+"/challenges",className:"font-28 color-white mr10 fl"},H.name),void 0===H.fork_from||null===H.fork_from?"":h.a.createElement("a",{href:"/shixuns/"+H.fork_from.fork_identifier+"/challenges",className:"fl mt5",target:"_blank","data-tip-right":"forked from "+H.fork_from.username+" / "+H.fork_from.name},h.a.createElement("i",{className:"iconfont icon-fork color-grey-74 font-20 fl"}))),h.a.createElement("div",{className:"clearfix mt10"},h.a.createElement("ul",{className:"fl color-grey-c pathInfo mt20"},H&&0===H.stu_num?"":h.a.createElement("li",null,h.a.createElement("span",null,"\u5b66\u4e60\u4eba\u6570"),h.a.createElement("span",{className:"mt3"},H.stu_num)),h.a.createElement("li",null,h.a.createElement("span",null,"\u96be\u5ea6\u7ea7\u522b"),h.a.createElement("span",{className:"shixunsdiffcult mt3"},H.diffcult))),!0===this.props.is_jupyter?"":h.a.createElement(x.a,{placement:"right",content:h.a.createElement("div",{style:{width:"530px"}},h.a.createElement("div",{className:"pr"},h.a.createElement("span",{className:"rateTrangle"}),h.a.createElement("div",{className:"pr clearfix",style:{height:"177px"}},h.a.createElement("div",{className:"fl totalScore ml10"},h.a.createElement("div",null,h.a.createElement("span",{className:"font-24 color-yellow-ff lineh-20 mb10 mlbanner36"},U[0],"\u5206"),h.a.createElement("span",{className:"displayblock mt20"},"\u603b\u8bc4\u5206"),h.a.createElement("div",{className:"rateYo"},h.a.createElement(e,{allowHalf:!0,defaultValue:K[0],disabled:!0})))),h.a.createElement("div",{className:"fr mt20 mr20",style:{width:"375px"}},h.a.createElement("div",{className:"clearfix"},h.a.createElement("div",{className:"rateYo fl mt3"},h.a.createElement(e,{allowHalf:!0,defaultValue:5,disabled:!0})),h.a.createElement(E.a,{percent:U[1],showInfo:!1}),h.a.createElement("span",{className:"fr ml10 color-grey-6 font-12 mt4"},U[1],"%")),h.a.createElement("div",{className:"clearfix"},h.a.createElement("div",{className:"rateYo fl mt3"},h.a.createElement(e,{allowHalf:!0,defaultValue:4,disabled:!0})),h.a.createElement(E.a,{percent:U[2],showInfo:!1}),h.a.createElement("span",{className:"fr ml10 color-grey-6 font-12 mt4"},U[2],"%")),h.a.createElement("div",{className:"clearfix"},h.a.createElement("div",{className:"rateYo fl mt3"},h.a.createElement(e,{allowHalf:!0,defaultValue:3,disabled:!0})),h.a.createElement(E.a,{percent:U[3],showInfo:!1}),h.a.createElement("span",{className:"fr ml10 color-grey-6 font-12 mt4"},U[3],"%")),h.a.createElement("div",{className:"clearfix"},h.a.createElement("div",{className:"rateYo fl mt3"},h.a.createElement(e,{allowHalf:!0,defaultValue:2,disabled:!0})),h.a.createElement(E.a,{percent:U[4],showInfo:!1}),h.a.createElement("span",{className:"fr ml10 color-grey-6 font-12 mt4"},U[4],"%")),h.a.createElement("div",{className:"clearfix"},h.a.createElement("div",{className:"rateYo fl mt3"},h.a.createElement(e,{allowHalf:!0,defaultValue:1,disabled:!0})),h.a.createElement(E.a,{percent:U[5],showInfo:!1}),h.a.createElement("span",{className:"fr ml10 color-grey-6 font-12 mt4"},U[5],"%"))))))},h.a.createElement("div",{className:"pr fl mt15",id:"commentsStar"},h.a.createElement("div",{className:"color-grey-c ml15",style:{color:"#fff",textAlign:"center"}},"\u5b66\u5458\u8bc4\u5206"),h.a.createElement("div",{className:"rateYo"},h.a.createElement(e,{allowHalf:!0,defaultValue:K[0],disabled:!0})))),!1===m&&-1!=H.shixun_status?h.a.createElement(O.a,{placement:"bottom",title:void 0===H.task_operation?"":"\u5f00\u59cb\u5b9e\u6218"===H.task_operation[0]?"\u5f00\u59cb\u5b66\u4e60\u5e76\u5b8c\u6210\u5b9e\u6218\u4efb\u52a1":"\u7ee7\u7eed\u6311\u6218"===H.task_operation[0]?"\u7ee7\u7eed\u5b8c\u6210\u540e\u7eed\u5b66\u4e60\u548c\u5b9e\u6218\u4efb\u52a1":"\u67e5\u770b\u5b9e\u6218"===H.task_operation[0]?"\u67e5\u770b\u6211\u7684\u5b9e\u6218\u5149\u8f89\u5386\u53f2":"\u6a21\u62df\u5b9e\u6218"===H.task_operation[0]?"\u6a21\u62df\u5b8c\u6210\u5b9e\u6218\u4efb\u52a1":"\u5f00\u542f\u6311\u6218"===H.task_operation[0]?"\u5f00\u59cb\u5b66\u4e60\u5e76\u5b8c\u6210\u5b9e\u6218\u4efb\u52a1":""},h.a.createElement("a",{onClick:function(){return t.startshixunCombat(t.props.match.params.shixunId)},className:"fr user_default_btn task-btn-orange font-18",id:"shixun_operation","data-remote":"true"},void 0===H.task_operation?"":1<H.shixun_status?H.task_operation[0]:"\u6a21\u62df\u5b9e\u6218")):"",h.a.createElement(S.a,{keyboard:!1,title:"\u63d0\u793a",visible:y,closable:!1,footer:null},h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16 pb20"},"\u76ee\u524d\u8be5\u5b9e\u8bad\u9879\u76ee\u5c1a\u5728\u5185\u6d4b\u4e2d\uff0c\u5c06\u4e8e",b,"\u4e4b\u540e\u5f00\u653e\uff0c\u8c22\u8c22\uff01")),h.a.createElement("div",{className:"task-popup-submit clearfix"},h.a.createElement("a",{className:"task-btn task-btn-orange fr mr51",onClick:this.hidestartshixunCombattype},"\u77e5\u9053\u5566"))),h.a.createElement(S.a,{keyboard:!1,title:"\u63d0\u793a",visible:I,closable:!1,footer:null},h.a.createElement(C.a,{indicator:G,spinning:this.state.isSpin},h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16 pb20"},"\u5b9e\u8bad\u5df2\u7ecf\u66f4\u65b0\u4e86\uff0c\u6b63\u5728\u4e3a\u60a8\u91cd\u7f6e!")),h.a.createElement("div",{className:"task-popup-submit clearfix"},h.a.createElement("a",{className:"task-btn task-btn-orange fr mr51",onClick:function(){return t.hidestartshixunsreplace(M)}},"\u77e5\u9053\u4e86")))),h.a.createElement(S.a,{keyboard:!1,visible:m,closable:!1,footer:null,className:"startbtnModal"},h.a.createElement(C.a,{size:"large"})),!0===m?h.a.createElement("a",{className:"fr kaike kkbths mr15 font-18"},"\u5f00\u542f\u4e2d"):"",0===H.shixun_status&&this.props.identity<5?h.a.createElement(x.a,{content:h.a.createElement("pre",{className:"bannerpd201"},h.a.createElement("div",null,"\u70b9\u51fb\u53d1\u5e03\u540e\uff0c\u53ef\u4ee5\u9a6c\u4e0a\u5e94\u7528\u5230\u81ea"),h.a.createElement("div",{className:"wechatcenter mt10"},"\u5df1\u7684\u8bfe\u5802\u548c\u8bfe\u7a0b"),h.a.createElement("div",{className:"wechatcenter mt15"},h.a.createElement(w.a,{type:"primary",onClick:this.openknow},"\u6211\u77e5\u9053\u4e86"))),trigger:"click",placement:"bottom",visible:this.state.openknow},h.a.createElement(O.a,{placement:"bottom",title:"\u53d1\u5e03\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u5230\u81ea\u5df1\u7684\u8bfe\u5802\u548c\u8bfe\u7a0b"},h.a.createElement("a",{onClick:this.applyrelease,className:"fr kaike kkbths mr20 font-18 height39",id:"challenge_begin"},"\u53d1\u5e03"))):"",h.a.createElement(S.a,{keyboard:!1,title:"\u63d0\u793a",visible:f,closable:!1,footer:null},0===g?h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16 mt10 mb10"},"\u53d1\u5e03\u7533\u8bf7\u5df2\u63d0\u4ea4\uff0c\u8bf7\u7b49\u5f85\u7ba1\u7406\u5458\u7684\u5ba1\u6838",h.a.createElement("br",null))):1===g?h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16 mt10 mb10"},"\u53d1\u5e03\u7533\u8bf7\u5df2\u63d0\u4ea4\uff0c\u8bf7\u7b49\u5f85\u7ba1\u7406\u5458\u7684\u5ba1\u6838",h.a.createElement("br",null),h.a.createElement("span",{className:"font-12 color-grey-8"}," \u2022 \u6211\u4eec\u5c06\u57281-2\u4e2a\u5de5\u4f5c\u65e5\u5185\u5b8c\u6210\u5ba1\u6838"))):2===g?h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16 mt10 mb10"},"\u7b2c",a.map((function(e,t){return h.a.createElement("span",{key:t},e,h.a.createElement("span",{style:{display:t!=a.length-1?"inline-block":"none"}},","))})),"\u5173\u8bc4\u6d4b\u8bbe\u7f6e\u5c1a\u672a\u5b8c\u6210\uff0c\u65e0\u6cd5\u7533\u8bf7\u53d1\u5e03")):3===g?h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16 mt10 mb10"},"\u6bcf\u4e00\u4e2a\u5173\u5361\u81f3\u5c11\u9700\u8981\u4e00\u4e2a\u6280\u80fd\u6807\u7b7e",h.a.createElement("br",null),"\u7b2c",c.map((function(e,t){return h.a.createElement("span",{key:t},e,h.a.createElement("span",{style:{display:t!=c.length-1?"inline-block":"none"}},","))})),"\u5173\u5c1a\u672a\u8bbe\u7f6e\u6280\u80fd\u6807\u7b7e\uff0c\u8bf7\u8865\u5145")):h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16 mt10 mb10"},"\u5c1a\u672a\u521b\u5efa\u4efb\u52a1\u7684\u5b9e\u8bad\uff0c\u4e0d\u80fd\u7533\u8bf7\u53d1\u5e03")),h.a.createElement("div",{className:"mb15 clearfix edu-txt-center"},h.a.createElement("a",{onClick:function(){return t.hiddenIssuevisible(g)},className:"task-btn task-btn-orange pop_close"},"\u77e5\u9053\u5566"))),2===H.shixun_status&&0===H.public&&this.props.identity<5?h.a.createElement(x.a,{content:h.a.createElement("pre",{className:"bannerpd201"},h.a.createElement("div",null,"\u5e73\u53f0\u5ba1\u6838\u5b8c\u6210\u540e\uff0c\u60a8\u7684\u5b9e\u8bad\u5c06\u4f1a\u5f55\u5165\u5230\u5e73\u53f0\u7684\u516c\u5171\u5b9e\u8bad\u9879\u76ee\u5217\u8868"),h.a.createElement("div",{className:"wechatcenter mt10"},"\u60a8\u5c06\u83b7\u5f97\u5b9e\u8bad",h.a.createElement("span",{className:"FF6802"},"\u5bf9\u5e94\u7684\u7ecf\u9a8c\u503c\u548c\u91d1\u5e01"),"\uff5e "),h.a.createElement("div",{className:"wechatcenter mt15"},h.a.createElement(w.a,{type:"primary",onClick:this.openshowpublic},"\u6211\u77e5\u9053\u4e86"))),trigger:"click",placement:"bottom",visible:this.state.openshowpublictype},h.a.createElement(O.a,{placement:"bottom",title:"\u5ba1\u6838\u901a\u8fc7\u540e\uff0c\u5e73\u53f0\u7528\u6237\u53ef\u4ee5\u67e5\u770b\u5b9e\u8bad"},h.a.createElement(w.a,{type:"primary",ghost:!0,id:"challenge_begin",onClick:this.openpublic,className:"fr kaike kkbths mr20 font-18 height39"},"\u7533\u8bf7\u516c\u5f00"))):"",2===H.shixun_status&&1===H.public&&this.props.identity<5?h.a.createElement(O.a,{placement:"bottom",title:"\u64a4\u9500\u540e\uff0c\u4ec5\u53ef\u4ee5\u4f7f\u7528\u5230\u81ea\u5df1\u7684\u8bfe\u5802\u548c\u8bfe\u7a0b"},h.a.createElement(w.a,{type:"primary",ghost:!0,id:"challenge_begin",onClick:this.hidenpublic,className:"fr kaike kkbths mr20 font-18 height39",style:{width:"140px"}},"\u64a4\u9500\u7533\u8bf7\u516c\u5f00")):"",2===H.shixun_status&&0===H.public&&this.props.identity<5?h.a.createElement(O.a,{placement:"bottom",title:"\u64a4\u9500\u53d1\u5e03\u540e\uff0c\u5b66\u5458\u5c06\u65e0\u6cd5\u8fdb\u884c\u7ec3\u4e60"},h.a.createElement("a",{onClick:this.cancel_publish,className:"fr kaike kkbths mr20 font-18 height39",id:"challenge_begin"},"\u64a4\u9500\u53d1\u5e03")):"",this.props.shixunsDetails&&!0===this.props.shixunsDetails.is_jupyter?"":h.a.createElement("a",{onClick:this.Senttothe,className:"fr kaike kkbths mr20 font-18","data-tip-down":"",style:{display:0===H.shixun_status||3===H.shixun_status||1===H.shixun_status||-1===H.shixun_status?"none":"block"},"data-remote":"true"},h.a.createElement(O.a,{placement:"bottom",title:"\u4ee5\u5b9e\u8bad\u4f5c\u4e1a\u7684\u5f62\u5f0f\u53d1\u9001\u5230\u6211\u7684\u8bfe\u5802"},"\u53d1\u9001\u81f3")),h.a.createElement(S.a,{keyboard:!1,title:"\u53d1\u9001\u5b9e\u8bad",visible:i,closable:!1,footer:null},h.a.createElement("div",{className:""},h.a.createElement("div",{className:"newupload_conbox"},h.a.createElement("div",{className:"mb15 font-14 edu-txt-center color-orange-tip"},"\u9009\u62e9\u7684\u5b9e\u8bad\u5c06\u4f1a\u53d1\u9001\u5230\u6307\u5b9a\u8bfe\u5802"),h.a.createElement("div",{className:"mb10 edu-position"},h.a.createElement(A,{placeholder:"\u8f93\u5165\u8bfe\u5802\u540d\u79f0\u7684\u5173\u952e\u5b57\u8fdb\u884c\u641c\u7d22",value:v,onInput:this.SenttotheValue,onSearch:function(e){return t.SenttotheSearch(e)},style:{width:"100%"}})),h.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.edu-h270{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t height:270px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t overflow-y: auto;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"),h.a.createElement("div",{id:"search_course_list",className:"cdefault "},h.a.createElement("div",{className:"clearfix mb20 edu-bg-light-blue edu-h270"},h.a.createElement("ul",null,h.a.createElement(F,{onChange:this.onChangeSenttothevcalue,value:r},void 0===d?"":d.map((function(e,t){return h.a.createElement(P.a,{style:q,value:e.course_id,key:t},e.name)})))))),!0===this.state.Senttothevcaluetype?h.a.createElement("div",{className:"color-red"},"\u8bf7\u9009\u62e9\u4f60\u8981\u53d1\u9001\u7684\u8bfe\u5802"):"",h.a.createElement("div",{className:"mt10 marginauto",style:{display:12<u?"block":"none"}},h.a.createElement(_.a,{size:"small",className:"mb20",showQuickJumper:!0,defaultCurrent:1,current:L,pageSize:10,total:u,onChange:this.onChangesendeSenttothe})),h.a.createElement("div",{className:"mt10 marginauto flexbannerright"},h.a.createElement("div",{className:"-flex"}),h.a.createElement("div",{className:"-flex"}),h.a.createElement("div",{className:"-flex"},h.a.createElement("a",{onClick:this.hideSenttothevcalue,className:"pop_close task-btn mr10 ml25 margin-tp26"},"\u53d6\u6d88"),h.a.createElement("a",{className:"task-btn task-btn-orange margin-tp26",onClick:this.sendeSenttothevcalue,id:"submit_send_shixun"},"\u786e\u5b9a")))))),3===H.shixun_status&&h.a.createElement("a",{className:"fr kaike kkbths mr15 font-18"},"\u5df2\u5173\u95ed"),-1===H.shixun_status&&h.a.createElement("a",{className:"fr kaike kkbths mr15 font-18"},"\u5df2\u5220\u9664"),this.props.identity<8&&-1!=H.shixun_status&&0!=H.shixun_status?h.a.createElement("div",{className:"fr kaike kkbth mr20",style:{display:!1===H.can_copy||null===H.can_copy?"none":"flex"}},h.a.createElement(O.a,{placement:"bottom",title:"\u57fa\u4e8e\u8fd9\u4e2a\u5b9e\u8bad\u4fee\u6539\u5f62\u6210\u65b0\u7684\u5b9e\u8bad"},h.a.createElement("span",{className:"flex1 edu-txt-center fl font-18",onClick:this.copyForkvisible,style:{display:!1===H.can_copy||null===H.can_copy?"none":"inline-block"}},"Fork")),!0===o?h.a.createElement("style",null,"\n .ant-modal-body{ \n padding: 10px;\n }\n "):"",!0===this.state.TextAreaintshow?h.a.createElement("style",null,"\n .ant-input:hover {\n border: 1px solid red !important;\n }\n .ant-input:focus {\n border: 1px solid red !important;\n }\n "):"",!0===o?h.a.createElement(S.a,{keyboard:!1,title:"Fork\u539f\u56e0",visible:o,closable:!1,footer:null},!0===j?h.a.createElement(C.a,{tip:"\u8bf7\u7b49\u5f85\u6b63\u5728\u590d\u5236\u4e2d...",style:{marginLeft:"38%"}}):h.a.createElement("div",null,h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("div",{className:"forkfactors"},"\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\uff0c\u586b\u5199fork\u672c\u5b9e\u8bad\u7684\u539f\u56e0"),h.a.createElement(P.a.Group,{onChange:this.onChangeRadiovalue,value:this.state.Radiovalue,className:"ml20 mt20 mb20",style:{width:"100%"}},h.a.createElement(P.a,{style:q,value:1},"\u5b9e\u8bad\u5185\u5bb9\u5347\u7ea7"),h.a.createElement(P.a,{style:q,value:2},"\u8bfe\u5802\u6559\u5b66\u4f7f\u7528"),h.a.createElement(P.a,{style:q,value:3},"\u5b9e\u8df5\u8bfe\u7a0b\u4f7f\u7528"),h.a.createElement(P.a,{style:q,value:4},"\u5176\u5b83\u539f\u56e0"),4===this.state.Radiovalue?h.a.createElement(V,{className:!0===this.state.TextAreaintshow?"bor-red mt10":"mt10",placeholder:"\u8bf7\u586b\u5199fork\u539f\u56e0\uff0860\u5b57\u4ee5\u5185)",value:this.state.TextArea,rows:4,style:{width:"85%",marginLeft:"30px"},onInput:this.changeTextArea,maxlength:60}):null,!0===this.state.TextAreaintshow?h.a.createElement("div",{className:"color-red ml30"},"\u4e0d\u80fd\u4e3a\u7a7a"):"")),h.a.createElement("div",{className:"task-popup-submit clearfix"},h.a.createElement("a",{onClick:this.hideForkvisible,className:"task-btn fl"},"\u53d6\u6d88"),h.a.createElement("a",{className:"task-btn task-btn-orange fr",onClick:this.addForkvisible},"\u786e\u5b9a")))):"",h.a.createElement(S.a,{keyboard:!1,title:"\u63d0\u793a",visible:s,closable:!1,footer:null},h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16 pb20"},l,h.a.createElement("br",null),"\u8bf7\u95ee\u662f\u5426\u524d\u5f80\u8fdb\u884c\u8ba4\u8bc1\uff1f")),h.a.createElement("div",{className:"task-popup-submit clearfix"},h.a.createElement("a",{onClick:this.hideForkvisible,className:"task-btn fl"},"\u53d6\u6d88"),h.a.createElement("a",{className:"task-btn task-btn-orange fr",onClick:this.tocertification},"\u786e\u5b9a"))),!!H.fork_num&&h.a.createElement(p.b,{to:"/shixuns/"+z+"/fork_list",className:"forkNumst","data-tip-down":"Fork\u5b9e\u8bad\u5217\u8868"},H.fork_num)):""))),h.a.createElement("div",{className:"alert alert-orange mb15 mt15 clearfix",style:{display:1===H.shixun_status?"block":"none"}},"\u6b63\u5728\u7b49\u5f85\u7ba1\u7406\u5458\u7684\u5ba1\u6838\u3002\u5728\u5ba1\u6838\u901a\u8fc7\u524d\uff0c\u53ef\u4ee5\u968f\u65f6\u64a4\u9500\u53d1\u5e03"))}}]),t}(d.Component),B=(n(1541),n(2155),function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).clickNewsubscript=function(e){0===e?n.setState({TPMRightSection:!0,clickNewsubscripttype:!0}):n.setState({TPMRightSection:!1,clickNewsubscripttype:!1})},n.state={TPMRightSection:!1,clickNewsubscripttype:!1},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e,t=this,n=this.state,o=n.TPMRightSection,i=n.clickNewsubscripttype,r=this.props.TPMRightSectionData;return r&&null!=r.complete_count&&(e=parseInt(r&&r.complete_count)/parseInt(r&&r.challenge_count)*100),h.a.createElement("div",null,h.a.createElement("style",null,"\n .altimgs{\n border-radius: 4px;\n width: 100px;\n height: 60px;\n }\n \n "),void 0===r?"":h.a.createElement("div",null,h.a.createElement("div",{className:"edu-back-white pd302020zuoze mb10"},h.a.createElement("p",{className:"font-16 mb20"},h.a.createElement("i",{className:"iconfont icon-chuangjianzhe1 audit_situationactive font-14"})," \u521b\u5efa\u8005"),h.a.createElement("div",{className:"df"},h.a.createElement("a",{href:void 0===r||void 0===r.creator?"":"/users/".concat(r.creator.login,"/courses")},h.a.createElement("img",{alt:"\u5934\u50cf",className:"radius mr10",height:"36",src:Object(b.L)(void 0===r||void 0===r.creator?"":"images/"+r.creator.image_url+"?1532489442"),width:"36"})),h.a.createElement("div",{className:"flex1"},h.a.createElement("div",{className:"creatorname sortinxdirection space-between"},h.a.createElement("div",{className:"creatornamelist color-grey-3"},void 0===r||void 0===r.creator?"":r.creator.name),h.a.createElement("div",{className:"creatornamelist width80center"},h.a.createElement("span",{className:"color888hezuo font-14"},"\u5171\u53d1\u5e03\u5b9e\u8bad")," ",h.a.createElement("span",{className:"color-grey-3"},r.user_shixuns_count)," ",h.a.createElement("span",{className:"color888hezuo"},"\u4e2a")))))),(!this.props||!0!==this.props.is_jupyter)&&this.props&&1<this.props.status?h.a.createElement("div",{className:"edu-back-white padd252020px relative borderbottomf4"},h.a.createElement("div",{className:"font-16 mb5"},h.a.createElement("span",null,h.a.createElement("i",{className:"iconfont icon-jilu1 audit_situationactive font-14"})," \u5b66\u4e60\u7edf\u8ba1"),h.a.createElement("span",{className:"sortinxdirection space-between fr"},h.a.createElement("span",{className:"color888hezuo font-14"},"\u5df2\u5b8c\u6210 ",r&&null===r.complete_count?0:r&&r.complete_count," \u5173 / \u5171 ",r&&r.challenge_count," \u5173"))),h.a.createElement(E.a,{percent:e,showInfo:!1,status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}})):"",void 0===r||void 0===r.tags||0===r.tags.length?"":h.a.createElement("div",{className:"edu-back-white padd252020px mb10 relative"},h.a.createElement("p",{className:"font-16 mb20"},h.a.createElement("span",null,h.a.createElement("i",{className:"iconfont icon-biaoqian2 audit_situationactive font-14"})," \u6280\u80fd\u6807\u7b7e"),h.a.createElement("span",{className:"sortinxdirection space-between fr"},h.a.createElement("span",{className:"color888hezuo font-14"},"\u5df2\u83b7\u5f97 ",r&&r.user_tag_count," \u4e2a / \u5171 ",r&&r.tag_count," \u4e2a"))),h.a.createElement("div",{className:!1===o?"newedbox newedboxheight":"newedbox newminheight"},h.a.createElement("div",{className:"clearfix",id:"boxheight"},r.tags.map((function(e,t){return h.a.createElement("span",{className:!1===e.status?"newedu-filter-btn fl":"edu-filter-btn29BD8B fl",style:{display:" "===e.tag_name||""===e.tag_name?"none":""},key:t},e.tag_name)})))),h.a.createElement("div",{className:15<r.tags.length&&!1===i?"textcenter color-grey-9 mt20 rightjinengs":"none",onClick:function(){return t.clickNewsubscript(0)}},h.a.createElement("span",{className:"mr8"},h.a.createElement("div",null,h.a.createElement("p",{className:"font-12"},"\u5c55\u5f00\u5168\u90e8"),h.a.createElement("p",{className:"font-12"},h.a.createElement("i",{className:"iconfont icon-jiantou9 font-12"}))))),h.a.createElement("div",{className:!1===i?"none":"textcenter mt20 color-grey-9 rightjinengs",onClick:function(){return t.clickNewsubscript(1)}},h.a.createElement("span",{className:"mr8"},h.a.createElement("div",null,h.a.createElement("p",{className:"font-12"},h.a.createElement("i",{className:"iconfont icon-changyongtubiao-xianxingdaochu-zhuanqu- font-12"})),h.a.createElement("p",{className:"font-12"},"\u6536\u8d77\u5168\u90e8"))))),h.a.createElement("div",{className:"padding20 edu-back-white mb10 mt10",style:{display:void 0===r?"none":void 0===r.paths?"":0===r.paths.length?"none":"block"}},h.a.createElement("p",{className:"mb20 font-16 clearfix"},h.a.createElement("i",{className:"iconfont icon-shu1 audit_situationactive font-14"})," \u6240\u5c5e\u8bfe\u7a0b"),h.a.createElement("div",{className:"recommend-list"},void 0===r||void 0===r.paths?"":r.paths.map((function(e,t){if(!(2<t))return h.a.createElement("div",{className:"recomments clearfix df",key:t},h.a.createElement("a",{href:"/paths/"+e.id,height:"96",width:"128",target:"_blank"},h.a.createElement("img",{alt:"\u5b9e\u8bad",height:"96",src:"/"+e.image_url,width:"128",className:"altimgs"})),h.a.createElement("div",{className:"ml10 flex1"},h.a.createElement("a",{href:"/paths/"+e.id,target:"_blank","data-tip-down":e.name,className:"color-grey-6 task-hide mb12 recomment-name"},e.name),h.a.createElement("p",{className:"clearfix mt8 font-12 color-grey-B4"},h.a.createElement(O.a,{placement:"bottom",title:"\u7ae0\u8282"},h.a.createElement("span",{className:"mr10 fl squareIconSpan"},h.a.createElement("i",{className:"iconfont icon-shixun fl mr3"}),e.stages_count)),h.a.createElement(O.a,{placement:"bottom",title:"\u5b66\u4e60\u4eba\u6570"},h.a.createElement("span",{className:"mr10 fl squareIconSpan"},h.a.createElement("i",{className:"iconfont icon-chengyuan fl mr3"}),e.members_count)))))})))),void 0!==r&&void 0!==r.paths&&0!==r.paths.length&&this.props.user&&!0===this.props.user.main_site?h.a.createElement("div",{className:"padding20 edu-back-white",style:{display:void 0===r||void 0===r.recommands||0===r.recommands.length?"none":"block"}},h.a.createElement("p",{className:"mb20 font-16 clearfix"},h.a.createElement("i",{className:"iconfont icon-tuijian audit_situationactive font-14"})," \u63a8\u8350\u5b9e\u8bad"),h.a.createElement("div",{className:"recommend-list"},void 0===r||void 0===r.recommands?"":r.recommands.map((function(e,t){if(!(2<t))return h.a.createElement("div",{className:"recomments clearfix df",key:t},h.a.createElement("a",{href:"/shixuns/"+e.identifier+"/challenges",target:"_blank"},h.a.createElement("img",{alt:"69?1526971094",height:"96",src:"/"+e.pic,width:"128",className:"altimgs"})),h.a.createElement("div",{className:"ml10 flex1"},h.a.createElement(O.a,{placement:"bottom",title:e.name},h.a.createElement("a",{href:"/shixuns/"+e.identifier+"/challenges",target:"_blank",className:"color-grey-6 task-hide mb12 recomment-name"},e.name)),h.a.createElement("p",{className:"clearfix mt8 font-12 color-grey-B4"},h.a.createElement("span",{className:"fl"},e.stu_num," \u4eba\u5b66\u4e60"),h.a.createElement("span",{className:"fr color-orange pr10"},e.level))))})))):""))}}]),t}(d.Component)),H=function(e){function t(){return Object(a.a)(this,t),Object(l.a)(this,Object(c.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.user,n=e.match;e.shixun,e.secret_repository,e.is_jupyter,t&&(t.admin||t.manager);var o=n.params.shixunId;return"/shixuns/".concat(o,"/challenges"),this.props&&this.props.current_user&&this.props.current_user.is_teacher&&this.props.current_user.is_teacher,""}}]),t}(d.Component),z=n(971),K=n(1971),U=n(1422),q=function(e){function t(e){return Object(a.a)(this,t),Object(l.a)(this,Object(c.a)(t).call(this,e))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentWillReceiveProps",value:function(){}},{key:"componentDidMount",value:function(){this.props.fetchCommentIfNotFetched&&this.props.fetchCommentIfNotFetched()}},{key:"render",value:function(){var e=this.props,t=e.loadingContent,n=(e.creator,e.shixun),o=(e.myshixun,e.recommend_shixuns,e.current_user,e.watched,e.aboutFocus,e.user),i=e.match;return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"tpmComment educontent clearfix mt30 mb80"},h.a.createElement("div",{className:"with65 fl edu-back-white commentsDelegateParent"},h.a.createElement(H,Object.assign({match:i,user:o,shixun:n},this.props,{is_jupyter:this.props.is_jupyter})),t?h.a.createElement(U.a,null):h.a.createElement(z.a,Object.assign({},this.props,{user:o,showHiddenButton:!0}))),h.a.createElement("div",{className:"with35 fr pl20"},h.a.createElement(B,this.props))))}}]),t}(d.Component),G=Object(K.a)(q),Y=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).state={},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentWillReceiveProps",value:function(){}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this.props.tpmLoading,t=this.props.current_user;return h.a.createElement(h.a.Fragment,null,e?h.a.createElement("div",{style:{minHeight:"886px"}}):h.a.createElement(G,Object.assign({},this.props,this.state,{user:t,aboutFocus:this.props.aboutFocus,is_jupyter:this.props.is_jupyter})))}}]),t}(d.Component),Z=n(4),$=(n(12),window.$,function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).state={},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this,t=this.props,n=t.match,o=t.pathArray,i=t.fetchRepo;return this.state.RepositoryList,h.a.createElement(h.a.Fragment,null,0!==o.length&&h.a.createElement("div",{className:"bor-bottom-greyE padding5-10 font-14 "},h.a.createElement("a",{className:"color-blue",onClick:function(){return i(0)}},n.params.shixunId),h.a.createElement("span",{className:"ml3 mr3"},"/"),o.map((function(t,n){return h.a.createElement(h.a.Fragment,null,"tree"===e.props.nameTypeMap[t]||-1===t.indexOf(".")?h.a.createElement("a",{onClick:function(){return i(n+1)},className:"color-blue"},t):h.a.createElement("a",null,t),n!==o.length-1&&h.a.createElement("span",{className:"ml3 mr3"},"/"))}))))}}]),t}(d.Component)),X=(window.$,function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).onSave=function(){var e=n.props,t=e.shixunId,o=(e.pathArray,"/shixuns/".concat(t,"/set_secret_dir.json"));n.setState({codeSaving:!0}),j.a.post(o,{secret_dir_path:n.state.value}).then((function(e){e.data&&(L.a.success("\u4fdd\u5b58\u6210\u529f"),n.setState({isEdit:!1}))}))},n.onChange=function(e){var t=e.target.value;n.setState({value:t})},n.onEdit=function(){n.setState({isEdit:!0},(function(){window.$(".combinePathEditRow input")[0].focus()}))},n.state={value:n.props.secret_dir_path||"",isEdit:!1},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=(e.fileContent,e.match,e.saveCode,this.state),n=t.isEdit,o=t.value;return h.a.createElement("div",{className:"df combinePathEditRow"},h.a.createElement("style",null,"\n .combinePathEditRow {\n margin: 4px 0;\n }\n .combinePathEditRow input {\n flex: 0 0 300px;\n border: none;\n }\n .combinePathEditRow .wordsBtn {\n margin-left: 24px;\n }\n "),h.a.createElement("span",null,"\u7b2c\u4e00\u7248\u672c\u5e93\u5408\u5e76\u8def\u5f84\uff1a"),h.a.createElement(I.a,{disabled:!n,value:o,onChange:this.onChange}),!n&&h.a.createElement(b.A,{className:"wordsBtn",onClick:this.onEdit,style:"blue"},"\u4fee\u6539"),n&&h.a.createElement(b.A,{className:"wordsBtn",onClick:this.onSave,style:"blue"},"\u4fdd\u5b58"))}}]),t}(d.Component)),J=window.$,Q=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).onRepoFileClick=function(e){n.props.fetchRepo(e)},n.state={},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this,t=this.props,n=t.match,o=t.author,i=t.git_url,r=(t.lastest_commit,t.repositoryLoading),a=t.commits,s=t.trees,l=(t.pathArray,t.TPMRightSectionData);o=o||{};var c=!1;return null!=this.props.author&&(c=""===this.props.author.login||""===this.props.author.user_id||null===this.props.author.login||null===this.props.author.user_id),h.a.createElement(h.a.Fragment,null,r?h.a.createElement("div",{style:{minHeight:"500px"}}):h.a.createElement("div",{className:"",id:"collaborators_list_info"},h.a.createElement("div",{className:"clearfix edu-back-white"},h.a.createElement("div",{className:"padding30-20 clearfix"},h.a.createElement("div",{className:"fl1 clearfix1 mr201"},h.a.createElement("div",{className:"repositorytitle"},h.a.createElement("a",{href:"/forums/2784",target:"_blank",className:" guideBtn"},"Git\u4f7f\u7528\u6307\u5357"),this.props.current_user&&(1==this.props.current_user.admin||l&&l.creator&&l.creator.login==this.props.current_user.login)?!this.props.secret_repository_tab&&h.a.createElement(b.a,{style:"orangeLine",className:"ml20",to:"/shixuns/".concat(n.params.shixunId,"/repository/add_file")},"+\u6dfb\u52a0\u6587\u4ef6"):"",h.a.createElement("div",{className:"fr font-12 color-grey-9 pr"},h.a.createElement("label",{className:"fl mt2"},"\u7f51\u5740\u514b\u9686\uff1a"),h.a.createElement("input",{type:"text",id:"copy_rep_content",className:"fl url-input mt2",defaultValue:i,style:{width:313}}),h.a.createElement("a",{onClick:function(){document.getElementById("copy_rep_content").select(),document.execCommand("Copy")},"data-tip-down":"\u70b9\u51fb\u590d\u5236\u7248\u672c\u5e93\u5730\u5740",className:"fl ml5"},h.a.createElement("i",{className:"iconfont icon-wangzhikelong color-orange-tip",style:{lineHeight:"18px"}})),h.a.createElement("style",null,"\n .top-black-trangle {\n right: 68px;\n\n }\n a.guideBtn {\n color: #4CACFF !important;\n margin-left: 4px;\n }\n a.guideBtn:hover {\n text-decoration: underline;\n }\n\n #repository_url_tip {\n\t\t\t\t\t\t\t\t\t\t\ttop: 30px !important;\n\t\t\t\t\t\t\t\t\t\t left:132px !important;\n\t\t\t\t\t\t\t\t\t\t\twidth: 292px !important;\n }\n "),h.a.createElement("a",{onClick:function(){"none"===J("#repository_url_tip").css("display")?J("#repository_url_tip").show():J("#repository_url_tip").hide()},className:"fl ml6 mt1"},h.a.createElement("img",{src:Object(b.L)("images/educoder/problem.png")}),h.a.createElement("div",{className:"invite-tip clearfix none",id:"repository_url_tip",style:{top:"33px",right:"-10px",width:"300px",display:"none"}},h.a.createElement("span",{className:"top-black-trangle",style:{right:"9px"}}),h.a.createElement("div",{className:"padding20 invitecontent clearfix"},h.a.createElement("p",{className:"font-12 edu-txt-left"},"\u8bf7\u4e0a\u4f20\u5f53\u524d\u5b9e\u8bad\u4e2d\u5404\u4e2a\u5173\u5361\u6d89\u53ca\u7684\u6240\u6709\u6587\u4ef6",h.a.createElement("br",null),"\u5305\u62ec\u4efb\u52a1\u6587\u4ef6\u3001\u6267\u884c\u6587\u4ef6\uff0c\u4ee5\u53ca\u5176\u4ed6\u7684\u5fc5\u987b\u6587\u4ef6",h.a.createElement("br",null),h.a.createElement("br",null),"\u63d0\u4ea4\u4ee3\u7801\u7684\u65b9\u6cd5\uff1a",h.a.createElement("br",null),"1\u3001\u5728\u7535\u8111\u4e0a\u5b89\u88c5Git tortoise\u5ba2\u6237\u7aef\uff0c",h.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0\u6216\u8005\u5176\u5b83\u719f\u6089\u7684Git\u5ba2\u6237\u7aef",h.a.createElement("br",null),"2\u3001\u5728Git\u5ba2\u6237\u7aef\u4e0a\u5411\u5de6\u4fa7\u7684\u5730\u5740\u63d0\u4ea4\u4ee3\u7801",h.a.createElement("br",null),h.a.createElement("br",null),"\u6ce8\u610f\uff1a",h.a.createElement("br",null),"\u8bf7\u5728Git\u5ba2\u6237\u7aef\u8981\u6c42\u586b\u5199\u65f6\uff0c\u6309\u7167\u5982\u4e0b\u8bf4\u660e\u586b\u5199\uff1a",h.a.createElement("br",null),"* \u7528\u6237\u540d\uff1a\u4f7f\u7528\u60a8\u5728\u672c\u5e73\u53f0\u7ed1\u5b9a\u7684\u90ae\u7bb1",h.a.createElement("br",null),"* \u53e3\u4ee4\uff1a\u4f7f\u7528\u60a8\u5728\u672c\u5e73\u53f0\u7684\u767b\u5f55\u53e3\u4ee4")),h.a.createElement("p",{className:"inviteTipbtn with100"},h.a.createElement("a",{onClick:function(){J("#repository_url_tip").css("display")}},"\u77e5\u9053\u4e86")))))),this.props.secret_repository_tab&&h.a.createElement(X,this.props))),h.a.createElement("style",null,"\n .va_sub {\n vertical-align: sub;\n }\n "),null==s||0===s.length?h.a.createElement(b.u,null):h.a.createElement("div",null,null==a||0===a.length?"":h.a.createElement("div",{className:"edu-back-skyblue padding10-20 clearfix"},h.a.createElement("img",{alt:o.name,className:"radius fl mr10",height:"30",src:Object(b.L)("images/"+a[0].author.image_url),style:{display:!0===c?"none":"block"},width:"30"}),h.a.createElement("a",{href:o.user_url,className:"mr5 va_sub",target:"_blank"},a[0].author.name),h.a.createElement("span",{className:"color-grey-6 va_sub"},"\u63d0\u4ea4\u4e8e",h.a.createElement("acronym",{title:a[0].time},void 0===a?"":a[0].time)," \uff1a",void 0===a?"":a[0].title),h.a.createElement("a",{href:"/shixuns/".concat(n.params.shixunId,"/").concat(this.props.secret_repository_tab?"secret_repository":"repository","/").concat(n.params.shixunId,"/commits"),className:"color-grey-6 fr font-16 "},h.a.createElement("i",{className:"iconfont icon-tijiaojilu font-18 fl mr5"}),h.a.createElement("span",{className:"fl mt2"},"\u63d0\u4ea4\u8bb0\u5f55"))),h.a.createElement("div",{className:"padding20",style:{minHeight:"372px"}},h.a.createElement("div",{className:"bor-grey-e"},h.a.createElement($,this.props),h.a.createElement("div",{className:"versionFileList"},null==s||0===s.length?"":s.map((function(t,n){return h.a.createElement("li",{id:"file".concat(n),key:n,className:" file padding5-10"},h.a.createElement("span",{style:{marginLeft:"0px"},className:"task-hide"},h.a.createElement("i",{className:"".concat("tree"===t.type?"icon-wenjianjia":"icon-zuoye","\n iconfont color-blue")}),h.a.createElement("a",{onClick:function(){return e.onRepoFileClick(t)}},"\xa0",t.name)))})))))))))}}]),t}(d.Component),ee=function(e){function t(e){return Object(a.a)(this,t),Object(l.a)(this,Object(c.a)(t).call(this,e))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.loadingContent,n=e.shixun,o=e.user,i=e.match,r=e.isContentWidth100;return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"tpmComment educontent clearfix mt30 mb80"},h.a.createElement("div",{className:"".concat(r?"width100":"with65"," fl edu-back-white"),style:{background:"transparent"}},h.a.createElement(H,Object.assign({match:i,user:o,shixun:n},this.props,{is_jupyter:this.props.is_jupyter})),t?h.a.createElement(U.a,null):h.a.createElement(Q,this.props)),!r&&h.a.createElement("div",{className:"with35 fr pl20"},h.a.createElement(B,this.props))))}}]),t}(d.Component),te=n(1977),ne=n.n(te);n(1972);var oe={"Alt-/":"autocomplete"};var ie={JFinal:"text/x-java",Java:"text/x-java",Kotlin:"text/x-kotlin","C/C++":"text/x-c++src",MachineLearning:{name:"python",version:3,singleLineStringErrors:!1},"Python2.7":{name:"python",version:3,singleLineStringErrors:!1},"Python3.6":{name:"python",version:3,singleLineStringErrors:!1}},re=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).componentDidUpdate=function(e,t){n.props.fileContent&&n.props.fileContent!=e.fileContent&&n.extend_editor.setValue(n.props.fileContent)},n.saveCode=function(){var e=n.props,t=e.shixunId,o=e.pathArray,i="/shixuns/".concat(t,"/update_file.json"),r=o.join("/");n.setState({codeSaving:!0}),j.a.post(i,{secret_repository:n.props.secret_repository_tab,content:n.extend_editor.getValue(),path:r}).then((function(e){e.data.content&&(L.a.success("\u4fdd\u5b58\u6210\u529f"),n.setState({codeSaving:!1}))}))},n.state={codeSaving:!1},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=function(e){return{lineNumbers:!0,mode:function(e){var t="javascript";if(e&&e.length)for(var n=0;n<e.length;n++){var o=ie[e[n]];if(o){t=o;break}}return t}(e),theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:oe,autofocus:!0,styleActiveLine:!0,lint:!0,gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}}(this.props.mirror_name),t=window.CodeMirror.fromTextArea(window.$("#codemirror-file-edit")[0],e);t.setValue(""),t.refresh(),window.editor_tempCodeMirror=t,this.extend_editor=t}},{key:"render",value:function(){var e=this,t=this.props,n=t.fileContent,o=(t.match,t.saveCode,this.state.codeSaving);return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"tpmComment educontent clearfix mt30"},h.a.createElement($,this.props),h.a.createElement("div",{className:"edu-back-skyblue padding5-10 clearfix"},h.a.createElement("div",{className:"fl"}),h.a.createElement("div",{id:"file_action",className:"recordBanner fr"},o?h.a.createElement("a",{href:"javascript:void(0);",className:"fr mt12 mr20 color-grey"},"\u4fdd\u5b58\u4e2d..."):h.a.createElement(ne.a,{title:"\u786e\u5b9a\u8981\u4fdd\u5b58\u4fee\u6539\u540e\u7684\u4ee3\u7801\u5417?",placement:"bottom",onConfirm:function(){return e.saveCode(e.extend_editor.getValue())},okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88"},h.a.createElement("a",{href:"javascript:void(0);",className:"fr mt12 mr20 color-blue"},"\u4fdd\u5b58"))),h.a.createElement("div",{className:"cl"})),h.a.createElement("style",null,"\n .repoCMWrapper .CodeMirror {\n height: 500px;\n }\n "),h.a.createElement("div",{className:"padding10-20 repoCMWrapper"},h.a.createElement("textarea",{className:"",id:"codemirror-file-edit",style:{display:"none"},name:"content"},n))))}}]),t}(d.Component),ae=function(e){function t(e){var n;Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).componentDidMount=function(){n.fetchRepo()},n.setContentWidth100=function(e){var t=!1===e?"":n.state.fileContent;n.setState({isContentWidth100:e,fileContent:t})},n.saveCode=function(e){var t=n.state.pathArray.join("/"),o=n.props.match.params.shixunId,i="/shixuns/".concat(o,"/update_file.json");j.a.post(i,{path:t,content:e}).then((function(e){200===e.status&&n.setState({fileContent:e.data.content,repositoryLoading:!1}),Object(b.ib)("tpm save code res: ",e),n.props.showSnackbar("\u6587\u4ef6\u4fdd\u5b58\u6210\u529f")})).catch((function(e){}))},n.fetchCode=function(e){var t=e.join("/");n.setContentWidth100(!0),n.setState({repositoryLoading:!0,pathArray:e});var o=n.props.match.params.shixunId,i="/shixuns/".concat(o,"/file_content.json");j.a.post(i,{path:t,secret_repository:n.props.secret_repository_tab}).then((function(t){Object(b.ib)("repository res: ",t),-1!=t.data.status?200===t.status&&(n.setState({fileContent:t.data.content,repositoryLoading:!1}),n.props.history.replace("".concat(n.props.match.url,"/master/shixun_show/").concat(e.join("/")))):n.props.showSnackbar("\u65e0\u6cd5\u627e\u5230\u5bf9\u5e94\u7684\u8d44\u6e90\uff0c\u8bf7\u53d8\u66f4\u5730\u5740\u6216\u8054\u7cfb\u7ba1\u7406\u5458\uff01")})).catch((function(e){n.props.showSnackbar("\u65e0\u6cd5\u627e\u5230\u5bf9\u5e94\u7684\u8d44\u6e90\uff0c\u8bf7\u53d8\u66f4\u5730\u5740\u6216\u8054\u7cfb\u7ba1\u7406\u5458\uff01")}))},n._isFileName=function(e){return-1!==e.indexOf(".")},n._isFileInPathArray=function(e){return!(!e||0===e.length)&&"tree"!==n.nameTypeMap[e[e.length-1]]&&n._isFileName(e[e.length-1])},n.fetchRepo=function(e){var t=n.state.pathArray.slice(0);if(0===e||e)if(n.setContentWidth100(!1),n.nameTypeMap[e.name]=e.type,"number"==typeof e)t=t.slice(0,e);else if("tree"===e.type)t.push(e.name);else if("blob"===e.type)return t.push(e.name),n.setState({pathArray:t}),void n.fetchCode(t);n.setState({repositoryLoading:!0,pathArray:t});var o=t,i=!1;t.length&&(i=n.nameTypeMap[t[t.length-1]]?"tree"!==n.nameTypeMap[t[t.length-1]]:e?"tree"!==e.type:n._isFileName(t[t.length-1]))&&(o=t.slice(0,t.length-1));var r=o.join("/"),a=n.props.match.params.shixunId,s="/shixuns/".concat(a,"/").concat(n.props.secret_repository_tab?"secret_repository":"repository",".json");j.a.post(s,{path:r||""}).then((function(e){var o=e.data.trees,r={};o&&Array.isArray(o)&&o.forEach((function(e){r[e.name]="blob"==e.type})),200===e.status&&(n.setState(Object(Z.a)({treeIsFileMap:r},e.data,{repositoryLoading:!1})),n.props.history.replace("".concat(n.props.match.url)+(t.length?"/master/shixun_show/".concat(t.join("/")):""))),i&&n.fetchCode(t),Object(b.ib)("repository res: ",e)})).catch((function(e){}))},n.nameTypeMap={};var o=[],i=window.location.pathname.split("shixun_show/");return i[1]&&""==(o=i[1].split("/"))[o.length-1]&&(o.length=o.length-1),n.state={repositoryLoading:!0,pathArray:o,isContentWidth100:n._isFileInPathArray(o)},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidUpdate",value:function(e){this.props.secret_repository_tab!=e.secret_repository_tab&&this.fetchRepo()}},{key:"render",value:function(){var e=this.state.isContentWidth100;return h.a.createElement(h.a.Fragment,null,e?h.a.createElement("div",{className:"tpmComment educontent clearfix mt30 mb80"},h.a.createElement("div",{className:"width100 fl edu-back-white",style:{background:"transparent"}},h.a.createElement(re,Object.assign({},this.state,this.props,{fetchRepo:this.fetchRepo,saveCode:this.saveCode,nameTypeMap:this.nameTypeMap})))):h.a.createElement(ee,Object.assign({},this.props,this.state,{nameTypeMap:this.nameTypeMap,fetchRepo:this.fetchRepo,is_jupyter:this.props.is_jupyter})))}}]),t}(d.Component),se=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).state={RepositoryList:void 0},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this,t="/shixuns/"+this.props.match.params.shixunId+"/commits.json";j.a.post(t,{secret_repository:this.props.secret_repository_tab}).then((function(t){200===t.status&&e.setState({RepositoryList:t.data}),Object(b.ib)("repo commits res",t.data)})).catch((function(e){}))}},{key:"render",value:function(){var e=this.props,t=e.loadingContent,n=(e.creator,e.shixun),o=(e.myshixun,e.recommend_shixuns,e.current_user,e.watched,e.aboutFocus,e.user),i=e.match,r=this.state.RepositoryList;return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"tpmComment educontent clearfix mt30 mb80"},h.a.createElement("div",{className:"with65 fl edu-back-white commentsDelegateParent",style:{background:"transparent"}},h.a.createElement(H,Object.assign({match:i,user:o,shixun:n},this.props,{is_jupyter:this.props.is_jupyter})),t?h.a.createElement(U.a,null):h.a.createElement("div",{className:""},h.a.createElement("div",{className:"edu-back-white font-16 mb10 clearfix padding20"},h.a.createElement("span",{className:"fl"},h.a.createElement("i",{className:"iconfont icon-tijiaojilu mr5"}),"\u63d0\u4ea4\u8bb0\u5f55"),h.a.createElement("span",{className:"color-grey-9 fr"},h.a.createElement(p.b,{to:"/shixuns/".concat(i.params.shixunId,"/repository/").concat(i.params.repoId),className:"font-14 color-grey-9"},"\u8fd4\u56de"))),h.a.createElement("style",null,"\n a.pullreques_name:hover {\n color: #666 !important\n }\n "),h.a.createElement("div",{className:"edu-back-white font-16 mb10 clearfix padding20"},h.a.createElement("ul",{className:"pullreques_pull_list"},void 0===r?"":r.commits.map((function(e,t){return h.a.createElement("li",{className:"clear",key:t},h.a.createElement("a",{style:{cursor:"inherit"},className:"fl color-grey-6 font-16 pullreques_name task-hide",target:"_blank"},e.email),h.a.createElement("p",{className:"pullreques_pull_txt ml10 fl",style:{lineHeight:"32px"}},e.title),h.a.createElement("a",{style:{cursor:"inherit"},className:"fr mr15 color-blue"},e.time),h.a.createElement("div",{className:"cl"}))})))))),h.a.createElement("div",{className:"with35 fr pl20"},h.a.createElement(B,this.props))))}}]),t}(d.Component),le=(n(868),n(871)),ce=(n(1908),n(560),n(561)),ue=(n(260),n(92)),de=(n(500),n(501)),he=n(30),pe=(n(472),n(471)),fe=n(1267),ge=n.n(fe),me=n(174),ve=n(998),ye=(n(983),pe.a.Option),be=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).getshixunmemoMDvalue=function(e,t){n.setState({shixunmemoMDvalue:e})},n.testscripttip=function(e){0===e?n.setState({testscripttiptype:!0}):1===e&&n.setState({testscripttiptype:!1})},n.post_apply=function(){n.setState({postapplyvisible:!0})},n.sendhideModaly=function(){n.setState({postapplyvisible:!1}),n.state.file,n.setState({file:void 0,deleteisnot:!0,language:"",runtime:"",run_method:"",fileList:[]})},n.sendsure_apply=function(){var e=n.state,t=e.language,o=e.runtime,i=e.run_method;if(t&&""!==t)if(o&&""!==o)if(i&&""!==i){var r=void 0;if(n.state.fileList&&(r=n.state.fileList.map((function(e){return e.response?e.response.id:e.id}))),void 0!==r&&0!==r.length){var a={language:t,runtime:o,run_method:i,attachment_id:r[0]};j.a.post("/shixuns/apply_shixun_mirror.json",a).then((function(e){try{e.data&&(n.state.file,n.setState({file:void 0,deleteisnot:!0,language:"",runtime:"",run_method:"",fileList:[]}),n.props.showNotification("\u63d0\u4ea4\u6210\u529f"),n.sendhideModaly())}catch(e){}}))}else n.setState({attachmentidstype:!0})}else n.setState({testcoderunmodetype:!0});else n.setState({systemenvironmenttype:!0});else n.setState({languagewritetype:!0})},n.setlanguage=function(e){n.setState({language:e.target.value}),e.target.value&&n.setState({languagewritetype:!1})},n.setruntime=function(e){n.setState({runtime:e.target.value}),e.target.value&&n.setState({systemenvironmenttype:!1})},n.setrun_method=function(e){n.setState({run_method:e.target.value}),e.target.value&&n.setState({testcoderunmodetype:!1})},n.handleChange=function(e){if(("uploading"===e.file.status||"done"===e.file.status||"removed"===e.file.status)&&(n.state.fileList,"uploading"===e.file.status||"done"===e.file.status||"removed"===e.file.status)){var t=e.fileList;n.setState({fileList:t,deleteisnot:!1})}},n.onAttachmentRemove=function(e){if(!e.percent||100==e.percent)return S.a.confirm({title:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u4e2a\u9644\u4ef6\u5417?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:function(){n.deleteAttachment(e)},onCancel:function(){}}),!1},n.deleteAttachment=function(e){var t=null==e.response?e.id:e.response.id,o="/attachments/".concat(t,".json");j.a.delete(o,{}).then((function(t){t.data&&0==t.data.status&&n.setState((function(t){var n=t.fileList.indexOf(e),o=t.fileList.slice();return o.splice(n,1),{fileList:o,deleteisnot:!0}}))})).catch((function(e){}))},n.bigClass=function(e,t){n.setState({mainvalues:t.props.name});var o=[];o.push(n.state.choice_main_type),n.state.choice_small_type.map((function(e,t){o.push(e)}));var i=n.state.shixun_service_configs,r=[];i.map((function(e,t){o.map((function(t,n){e.mirror_repository_id===t&&r.push(e)}))})),n.props.data.shixun.main_type.some((function(t,n){if(t.id===e)return r[0]={mirror_repository_id:e,name:t.type_name,cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,request_limit:10},!0})),n.props.form.setFieldsValue({selectleft:e});var a="/shixuns/get_mirror_script.json?mirror_id="+e;j.a.get(a).then((function(o){200===o.status&&(n.setState({choice_standard_scripts:{id:o.data[0].id,value:""},choice_standard_scriptssum:o.data[0].id}),n.props.form.setFieldsValue({selectscripts:o.data[0].id}),n.get_mirror_script(o.data[0].id),null===t.props.mirror_name?n.setState({choice_main_type:e,standard_scripts:o.data}):n.setState({choice_main_type:e,standard_scripts:o.data,shixun_service_configs:r,shixun_service_configlist:r}))})).catch((function(e){}))},n.Deselectlittle=function(e,t){var o=n.state,i=o.shixun_service_configs,r=o.choice_small_type,a=i,s=r;a.some((function(t,n){if(t.mirror_repository_id===e)return a.splice(n,1),!0})),s.some((function(t,n){if(t===e)return s.splice(n,1),!0})),n.setState({choice_small_type:s,shixun_service_configs:a,shixun_service_configlist:a})},n.showlittleClass=function(e,t){var o="";t.map((function(e,t){""!=e.props.name&&(o+="".concat(e.props.name))})),n.setState({subvalues:o}),n.props.form.setFieldsValue({selectright:e})},n.littleClass=function(e,t){var o=n.state.shixun_service_configs,i=n.state.choice_small_type,r=[];r.push(n.state.choice_main_type),i.map((function(e,t){r.push(e)}));var a=[];o.map((function(e,t){r.map((function(t,n){e.mirror_repository_id===t&&a.push(e)}))})),n.props.data.shixun.small_type.some((function(t,n){if(t.id===e)return a.push({mirror_repository_id:e,name:t.type_name,cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,request_limit:10}),!0})),i.push(e),null===t.props.mirror_name?n.setState({choice_small_type:i}):n.setState({choice_small_type:i,shixun_service_configs:a,shixun_service_configlist:a})},n.SelectScput=function(e,t){n.setState({choice_standard_scriptssum:e,language:t.props.name,choice_standard_scripts:{id:t.props.value,value:""},standard_scriptsModal:!0})},n.hidestandard_scriptsModal=function(){n.setState({standard_scriptsModal:!1,standard_scriptsModals:!1})},n.get_mirror_script=function(e){var t=n.state.choice_standard_scriptssum,o=n.props.match.params.shixunId,i="/shixuns/".concat(o,"/get_script_contents.json");j.a.get(i,{params:{script_id:e||t}}).then((function(t){200===t.status&&(null==e&&n.setState({standard_scriptsModal:!1,standard_scriptsModals:!0}),n.setState({shixunmemoMDvalue:t.data.content}))})).catch((function(e){}))},n.simionChange=function(e){n.setState({simichecked:e.target.checked})},n.showModal=function(){n.setState({visibleTemplate:!0})},n.handleCancelTemplate=function(e){n.setState({Executiveordervalue:"",Compilecommandvalue:"",visibleTemplate:!1})},n.hideModalTemplate=function(e){var t=n.props.match.params.shixunId,o=n.state,i=o.Executiveordervalue,r=o.Compilecommandvalue;if(""!==i&&void 0!==i){var a="/shixuns/".concat(t,"/get_custom_script.json?compile=").concat(i,"&excutive=").concat(r);j.a.get(a).then((function(e){n.setState({shixunmemoMDvalue:e.data.shixun_script})})).catch((function(e){})),n.setState({visibleTemplate:!1})}else n.setState({Executivetyoe:!0})},n.Executiveorder=function(e){n.setState({Executiveordervalue:e.target.value})},n.Compilecommand=function(e){n.setState({Compilecommandvalue:e.target.value})},n.setConfigsInputs=function(e,t,o){var i=n.state.shixun_service_configs;i.map((function(n,i){if(i===t)switch(o){case 1:n.cpu_limit=e.target.value;break;case 2:n.lower_cpu_limit=e.target.value;break;case 3:n.memory_limit=e.target.value;break;case 4:n.request_limit=e.target.value}})),n.setState({shixun_service_configs:i,shixun_service_configlist:i})},n.scrollToAnchor=function(e){if(e){var t=document.getElementById(e);t&&t.scrollIntoView()}},n.onSubmits=function(){n.setState({loading:!0});var e=n.contentMdRef.current.getValue().trim(),t=n.state;t.choice_standard_scriptssum,t.choice_standard_scripts,n.props.form.validateFieldsAndScroll((function(t,o){if(t)n.setState({loading:!1});else{var i="/shixuns/".concat(n.props.match.params.shixunId,".json"),r=n.state.shixun_service_configlist.map((function(e){var t=Object.assign({},e);return delete t.name,t})),a={main_type:n.state.choice_main_type,sub_type:n.state.choice_small_type,is_secret_repository:n.state.simichecked,shixun:{name:o.name,trainee:n.state.trainee,is_jupyter:n.props.shixunsDetails.is_jupyter,mirror_script_id:!0===n.props.shixunsDetails.is_jupyter?null:void 0===n.state.choice_standard_scriptssum?n.state.choice_standard_scripts:n.state.choice_standard_scriptssum},shixun_info:{description:e,evaluate_script:!0===n.props.shixunsDetails.is_jupyter?"":n.state.shixunmemoMDvalue},shixun_service_configs:r};j.a.put(i,a).then((function(e){e&&e.data&&(n.props.getdatas(),e.data.shixun_identifier&&(n.props.showNotification("\u57fa\u672c\u4fe1\u606f\u66f4\u65b0\u6210\u529f!"),n.scrollToAnchor("head-navpre1"),n.setState({loading:!1})))})).catch((function(e){n.setState({loading:!1})}))}}))},n.Selectthestudent=function(e){n.setState({trainee:e})},n.contentMdRef=h.a.createRef(),n.state={NAME_COUNT:60,shixunmemoMDvalue:"",testscripttiptype:!1,shixunName:"",trainee:void 0,choice_small_type:[],simichecked:!1,Executivetyoe:!1,Executiveordervalue:"",Compilecommandvalue:"",shixun_service_configs:void 0,fileList:[],loading:!1},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){"1"===this.props.location.search.split("?edit=")[1]&&document.getElementById("newcourseContentMD")&&this.scrollToAnchor("newcourseContentMD")}},{key:"componentDidUpdate",value:function(e){var t=this;if(e.data!=this.props.data&&this.props.data&&this.props.data.shixun){this.setState({shixunName:this.props.data&&this.props.data.shixun.name,trainee:this.props.data&&this.props.data.shixun.trainee,choice_main_type:this.props.data&&this.props.data.shixun.choice_main_type,choice_small_type:this.props.data&&this.props.data.shixun.choice_small_type,choice_standard_scripts:this.props.data&&this.props.data.shixun.choice_standard_scripts,shixunmemoMDvalue:this.props.data&&this.props.data.shixun.evaluate_script,simichecked:this.props.data&&this.props.data.shixun.is_secret_repository,shixun_service_configs:this.props.data&&this.props.data.shixun.shixun_service_configs,standard_scripts:this.props.data&&this.props.data.shixun.standard_scripts,shixun_service_configlist:this.props.data&&this.props.data.shixun.shixun_service_configs}),this.props.data&&null===this.props.data.shixun.choice_standard_scripts?(this.setState({choice_standard_scripts:{id:this.props.data&&this.props.data.shixun.standard_scripts[0].id,value:""},choice_standard_scriptssum:this.props.data&&this.props.data.shixun.standard_scripts[0].id}),this.props.form.setFieldsValue({selectscripts:this.props.data&&this.props.data.shixun.standard_scripts[0].id}),this.get_mirror_script(this.props.data&&this.props.data.shixun.standard_scripts[0].id)):this.props.form.setFieldsValue({selectscripts:this.props.data&&this.props.data.shixun.choice_standard_scripts});var n="";this.props.data&&this.props.data.shixun.choice_small_type.map((function(e,o){t.props.data&&t.props.data.shixun.small_type.map((function(t,o){e===t.id&&(n+="".concat(t.description))}))})),this.setState({subvalues:n}),this.props.data&&this.props.data.shixun.main_type.map((function(e,n){e.id===t.props.data&&t.props.data.shixun.choice_main_type&&t.setState({mainvalues:e.description})})),this.props.form.setFieldsValue({name:this.props.data&&this.props.data.shixun.name,trainee:this.props.data&&this.props.data.shixun.trainee,selectleft:this.props.data&&this.props.data.shixun.choice_main_type,selectright:this.props.data&&this.props.data.shixun.choice_small_type}),this.contentMdRef.current.setValue(this.props.data&&this.props.data.shixun.description)}}},{key:"render",value:function(){var e=this,t=this.props.form.getFieldDecorator,n=this.state,o=n.fileList,i=n.choice_standard_scripts,r=n.postapplyvisible,a=n.shixunmemoMDvalue,s={width:600,fileList:o,multiple:!0,action:"".concat(Object(b.Q)()),onChange:this.handleChange,onRemove:this.onAttachmentRemove,beforeUpload:function(t){if(1<=e.state.fileList.length)return!1;var n=t.size/1024/1024<50;return n||e.props.showNotification("\u6587\u4ef6\u5927\u5c0f\u5fc5\u987b\u5c0f\u4e8e50MB"),e.state.file,e.setState({file:t}),n}},l=1===this.props.identity||!!(this.props.identity<5&&this.props.data&&0==this.props.data.shixun.status);return h.a.createElement("div",null,h.a.createElement("div",{className:"educontent mb50 edu-back-white padding10-20"},h.a.createElement(de.a,null,h.a.createElement(de.a.Item,{label:"\u540d\u79f0",style:{borderBottom:"none"},className:"mt15"},t("name",{rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u9009\u9898\u540d\u79f0"},{max:60,message:"\u8bf7\u8f93\u5165\u540d\u79f0\uff0c\u6700\u5927\u9650\u523660\u4e2a\u5b57\u7b26"},{whitespace:!0,message:"\u8bf7\u52ff\u8f93\u5165\u7a7a\u683c"}]})(h.a.createElement(I.a,Object(he.a)({placeholder:"\u8bf7\u8f93\u5165\u540d\u79f0\uff0c\u6700\u5927\u9650\u523660\u4e2a\u5b57\u7b26",className:"input-100-45 greyInput",onInput:this.shixunNameInput,autoComplete:"off",addonAfter:"".concat(String(this.state.shixunName?this.state.shixunName.length:0),"/").concat(this.state.NAME_COUNT)},"className","newViewAfter")))),h.a.createElement("span",{id:"newcourseContentMD"}),h.a.createElement(de.a.Item,{label:"\u7b80\u4ecb",style:{borderBottom:"none",marginBottom:"0px"},className:"chooseDes pr"},h.a.createElement(me.a,{ref:this.contentMdRef,placeholder:"\u8bf7\u8f93\u5165\u7b80\u4ecb",mdID:"courseContentMD",refreshTimeout:1500,className:"courseMessageMD"})),h.a.createElement(de.a.Item,{label:"\u96be\u6613\u5ea6",style:{borderBottom:"none"},className:"chooseDes pr"},t("trainee",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u96be\u6613\u5ea6"}]})(h.a.createElement("div",{className:"with15 fl pr"},h.a.createElement(pe.a,{placeholder:"\u8bf7\u9009\u62e9\u96be\u6613\u5ea6",style:{width:180},onChange:this.Selectthestudent,value:this.state.trainee},h.a.createElement(ye,{value:1},"\u521d\u7ea7"),h.a.createElement(ye,{value:2},"\u4e2d\u7ea7"),h.a.createElement(ye,{value:3},"\u4e2d\u9ad8\u7ea7"),h.a.createElement(ye,{value:4},"\u9ad8\u7ea7")))),h.a.createElement("span",{className:"fl ml20 color-grey"},"\uff08\u5b9e\u8bad\u7684\u96be\u6613\u7a0b\u5ea6\uff09")),h.a.createElement(de.a.Item,{label:"\u5b9e\u9a8c\u73af\u5883",style:{borderBottom:"none",width:"18%",float:"left"},className:"chooseDes pr"},h.a.createElement("div",null,t("selectleft",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u4e3b\u7c7b\u522b"}]})(h.a.createElement("div",{className:"width100 fl mr20"},h.a.createElement(pe.a,{placeholder:"\u8bf7\u9009\u62e9\u4e3b\u7c7b\u522b",value:""===this.state.choice_main_type?void 0:this.state.choice_main_type,style:{width:180},onChange:l?this.bigClass:"",optionFilterProp:"children",filterOption:function(e,t){return 0<=t.props.children.toLowerCase().indexOf(e.toLowerCase())}},void 0!==this.props.data&&this.props.shixunsDetails&&!0===this.props.shixunsDetails.is_jupyter?this.props.data.shixun&&this.props.data.shixun.main_type.map((function(e,t){if(-1<e.type_name.toLowerCase().indexOf("jupyter".toLowerCase()))return h.a.createElement(ye,{value:e.id,key:t,name:e.description,mirror_name:e.mirror_name},h.a.createElement(O.a,{placement:"right",title:""===e.description?"\u65e0\u63cf\u8ff0":e.description},e.type_name))})):"",void 0!==this.props.data&&this.props.shixunsDetails&&!1===this.props.shixunsDetails.is_jupyter?this.props.data.shixun&&this.props.data.shixun.main_type.map((function(e,t){if(-1===e.type_name.toLowerCase().indexOf("jupyter".toLowerCase()))return h.a.createElement(ye,{value:e.id,key:t,name:e.description},h.a.createElement(O.a,{placement:"right",title:""===e.description?"\u65e0\u63cf\u8ff0":e.description},e.type_name))})):""))))),h.a.createElement(de.a.Item,{style:{borderBottom:"none",width:"81%",float:"left",marginTop:"40px"},className:"chooseDes pr"},h.a.createElement("div",{className:" fl pr mr20"},t("selectright",{rules:[{required:!1,message:"\u8bf7\u9009\u62e9\u5c0f\u7c7b\u522b"}]})(h.a.createElement("div",{className:" fl pr mr20"},h.a.createElement(pe.a,{placeholder:"\u8bf7\u9009\u62e9\u5c0f\u7c7b\u522b",mode:"multiple",value:this.state.choice_small_type&&0!==this.state.choice_small_type.length&&""!==this.state.choice_small_type[0]&&this.state.choice_small_type!==[]?this.state.choice_small_type:void 0,style:{width:200},disabled:!l,onDeselect:l?this.Deselectlittle:"",onSelect:l?this.littleClass:"",onChange:this.showlittleClass,defaultOpen:!1},void 0===this.props.data?"":this.props.data.shixun&&this.props.data.shixun.small_type.map((function(e,t){return h.a.createElement(ye,{value:e.id,key:t,name:e.description,mirror_name:e.mirror_name},h.a.createElement(O.a,{placement:"right",title:""===e.description?"\u65e0\u63cf\u8ff0":e.description},e.type_name))}))))),h.a.createElement("span",{className:"fl ml20 color-grey lineh-20"},h.a.createElement("div",null,void 0===this.state.mainvalues&&void 0===this.state.subvalues||""===this.state.mainvalues&&""===this.state.subvalues?"":h.a.createElement("div",{className:"font-12",style:{"max-width":"600px"}},"".concat(void 0===this.state.mainvalues||""===this.state.mainvalues?"":this.state.mainvalues),"".concat(void 0===this.state.subvalues||""===this.state.subvalues?"":(void 0===this.state.mainvalues||this.state.mainvalues,this.state.subvalues)),"".concat(void 0===this.state.mainvalues||""===this.state.mainvalues?"":this.state.mainvalues).concat(void 0===this.state.subvalues||""===this.state.subvalues?"":(void 0===this.state.mainvalues||this.state.mainvalues,this.state.subvalues))))))),h.a.createElement("div",{className:"both"}),h.a.createElement("div",{className:" color-grey lineh-20 mb20"},"\u6ca1\u6709\u5b9e\u9a8c\u73af\u5883\uff1f",h.a.createElement("a",{className:"color-blue",onClick:this.post_apply}," \u7533\u8bf7\u65b0\u5efa")),this.props.shixunsDetails&&!0===this.props.shixunsDetails.is_jupyter?"":h.a.createElement(de.a.Item,{label:"\u8bc4\u6d4b\u811a\u672c",style:{borderBottom:"none"},className:"chooseDes pr"},t("selectscripts",{rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bc4\u6d4b\u811a\u672c"}]})(h.a.createElement("div",{className:"with15 fl pr"},h.a.createElement(pe.a,{placeholder:"\u8bf7\u9009\u62e9\u9009\u62e9\u811a\u672c",style:{width:180},className:"fl",disabled:!l,value:null==i?void 0:void 0===i.id?i:i.id,onChange:l?this.SelectScput:""},void 0===this.state.standard_scripts?"":this.state.standard_scripts.map((function(e,t){return h.a.createElement(ye,{value:parseInt(e.id),name:e.scptname,key:t},e.scptname)}))))),h.a.createElement("span",{className:"fl ml20 color-blue",style:{"line-height":"30px"}},h.a.createElement("span",{onClick:function(){return e.showModal()}},"\u4f7f\u7528\u81ea\u5b9a\u4e49\u811a\u672c"),h.a.createElement("span",{className:"color-grey ml10",onClick:function(){return e.testscripttip(0)}},h.a.createElement(D.a,{type:"exclamation-circle"})),h.a.createElement("div",{className:"invite-tip clearfix none ",id:"test_script_tip",style:{top:"33px",left:"-15px",width:"450px",zIndex:"10",display:!0===this.state.testscripttiptype?"block":"none"}},h.a.createElement("style",null,"\n .top-black-trangle{\n right: auto;\n left: 0px;\n }\n "),h.a.createElement("span",{className:"top-black-trangle"}),h.a.createElement("div",{className:"padding20 invitecontent clearfix"},h.a.createElement("p",{className:"font-12 edu-txt-left"},"\u4f7f\u7528\u81ea\u5b9a\u4e49\u6a21\u677f\uff0c\u5e73\u53f0\u65e0\u6cd5\u81ea\u52a8\u66f4\u65b0\u811a\u672c\uff0c\u8bf7\u5728\u5173\u5361\u521b\u5efa\u5b8c\u540e\u624b\u52a8\u66f4\u65b0\u811a\u672c\u4e2d\u7684\u5fc5\u586b\u53c2",h.a.createElement("br",null),"\u6570\u548c\u4ee5\u4e0b2\u4e2a\u6570\u7ec4\u5143\u7d20\uff1a",h.a.createElement("br",null),"challengeProgramNames",h.a.createElement("br",null),"sourceClassNames",h.a.createElement("br",null),h.a.createElement("br",null),"\u793a\u4f8b\uff1a\u67092\u4e2a\u5173\u5361\u7684\u5b9e\u8bad",h.a.createElement("br",null),h.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5f85\u7f16\u8bd1\u6587\u4ef6\u4e3a\uff1a",h.a.createElement("br",null),"src/step1/HelloWorld.java",h.a.createElement("br",null),"src/step2/Other.java",h.a.createElement("br",null),h.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7f16\u8bd1\u540e\u751f\u6210\u7684\u6267\u884c\u6587\u4ef6\u4e3a\uff1a",h.a.createElement("br",null),"step1.HelloWorld",h.a.createElement("br",null),"step2.Other",h.a.createElement("br",null),h.a.createElement("br",null),"\u5219\u6570\u7ec4\u5143\u7d20\u66f4\u65b0\u5982\u4e0b\uff1a",h.a.createElement("br",null),'challengeProgramNames=("src/step1/',h.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',h.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',h.a.createElement("br",null),'" "step2.Other")',h.a.createElement("br",null),h.a.createElement("br",null),"\u5176\u5b83\u53c2\u6570\u53ef\u6309\u5b9e\u9645\u9700\u6c42\u5b9a\u5236")),h.a.createElement("p",{className:"inviteTipbtn with100 fl"},h.a.createElement("a",{onClick:function(){return e.testscripttip(1)}},"\u77e5\u9053\u4e86"))))),this.props.shixunsDetails&&!0===this.props.shixunsDetails.is_jupyter?"":h.a.createElement("div",{className:"mt30 clearfix df"},h.a.createElement("div",{className:0==l?"nonemodel":""}),h.a.createElement("div",{className:"flex1"},h.a.createElement("div",{className:"fl",style:{border:"1px solid #ccc"}},h.a.createElement(ge.a,{height:"450",width:"1150",value:a,options:{selectOnLineNumbers:!0},onChange:this.getshixunmemoMDvalue}))))),this.props.shixunsDetails&&!0===this.props.shixunsDetails.is_jupyter?"":h.a.createElement("span",{className:"ant-form-text mt20"},"\u79c1\u5bc6\u7248\u672c\u5e93\uff1a",h.a.createElement(ue.a,{onChange:this.simionChange,checked:this.state.simichecked},!1===this.state.simichecked?"\uff08\u82e5\u9700\u8981\u5bf9\u5b66\u5458\u9690\u85cf\u90e8\u5206\u7248\u672c\u5e93\u5185\u5bb9\u65f6\uff0c\u8bf7\u9009\u4e2d\uff1b\u9009\u4e2d\u4fdd\u5b58\u540e\u8868\u793a\u542f\u7528\u79c1\u5bc6\u7248\u672c\u5e93\uff0c\u8bf7\u5c06\u9700\u8981\u5bf9\u5b66\u5458\u9690\u85cf\u7684\u6587\u4ef6\u5b58\u50a8\u5728\u79c1\u5bc6\u7248\u672c\u5e93\uff09":"\u5df2\u521b\u5efa\u7684\u79c1\u5bc6\u7248\u672c\u5e93\u53ca\u5176\u5185\u5bb9\uff0c\u5c06\u5728\u201c\u4fdd\u5b58\u201d\u65f6\u88ab\u5220\u9664")),this.props.identity<3?h.a.createElement("div",{className:"edu-back-white padding40-20 mb20"},h.a.createElement("p",{className:"color-grey-6 font-16 mb30"},"\u670d\u52a1\u914d\u7f6e"),this.state.shixun_service_configs&&this.state.shixun_service_configs.map((function(t,n){return h.a.createElement("div",{key:n},h.a.createElement("div",{id:"5"},h.a.createElement("div",{className:"color-grey-6 font-16 mt30 mb20",id:"shixun_scenario_type_name"},h.a.createElement("span",{className:"fl"},t.name)),h.a.createElement("div",{className:"clearfix mb5"},h.a.createElement("label",{className:"panel-form-label fl"},"CPU(\u6838)\uff1a"),h.a.createElement("div",{className:"pr fl with80 status_con"},h.a.createElement("input",{type:"text",value:t.cpu_limit,onInput:function(t){return e.setConfigsInputs(t,n,1)},className:"panel-box-sizing task-form-100 task-height-40",placeholder:"\u8bf7\u8f93\u5165\u7c7b\u522b\u540d\u79f0"})),h.a.createElement("div",{className:"cl"})),h.a.createElement("div",{className:"clearfix mb5"},h.a.createElement("label",{className:"panel-form-label fl"},"\u6700\u4f4eCPU(\u6838)\uff1a"),h.a.createElement("div",{className:"pr fl with80 status_con"},h.a.createElement("input",{type:"text",value:t.lower_cpu_limit,onInput:function(t){return e.setConfigsInputs(t,n,2)},className:"panel-box-sizing task-form-100 task-height-40",placeholder:"\u8bf7\u8f93\u5165\u7c7b\u522b\u540d\u79f0"})),h.a.createElement("div",{className:"cl"})),h.a.createElement("div",{className:"clearfix mb5"},h.a.createElement("label",{className:"panel-form-label fl"},"\u5185\u5b58\u9650\u5236(M)\uff1a"),h.a.createElement("div",{className:"pr fl with80 status_con"},h.a.createElement("input",{type:"text",value:t.memory_limit,onInput:function(t){return e.setConfigsInputs(t,n,3)},className:"panel-box-sizing task-form-100 task-height-40",placeholder:"\u8bf7\u8f93\u5165\u7c7b\u522b\u540d\u79f0"})),h.a.createElement("div",{className:"cl"})),h.a.createElement("div",{className:"clearfix mb5"},h.a.createElement("label",{className:"panel-form-label fl"},"\u5185\u5b58\u8981\u6c42(M)\uff1a"),h.a.createElement("div",{className:"pr fl with20 status_con"},h.a.createElement("input",{type:"text",value:t.request_limit,onInput:function(t){return e.setConfigsInputs(t,n,4)},className:"panel-box-sizing task-form-100 task-height-40",placeholder:"\u8bf7\u8f93\u5165\u7c7b\u522b\u540d\u79f0"})),h.a.createElement("label",{className:"panel-form-label fl",style:{width:"48%"}},"\u6e29\u99a8\u63d0\u793a\uff1a\u7eaf\u7f16\u7a0b\u7c7b\u578b\u5b9e\u8bad\u5efa\u8bae\u4f7f\u7528\u9ed8\u8ba4\u503c\uff0c\u5bf9\u4e8e\u5927\u6570\u636e\u7b49\u5efa\u8bae\u4f7f\u7528\u6700\u5927\u5185\u5b58\u768430%"),h.a.createElement("div",{className:"cl"}))))}))):"",!0===r?h.a.createElement("style",null,"\n body{\n overflow: hidden !important;\n }\n "):"",h.a.createElement(S.a,{keyboard:!1,title:"\u63d0\u793a",visible:this.state.standard_scriptsModal,closable:!1,footer:null},h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16"},"\u539f\u6709\u811a\u672c\u5c06\u88ab\u65b0\u7684\u811a\u672c\u8986\u76d6\uff0c\u65e0\u6cd5\u64a4\u9500"),h.a.createElement("p",{className:"task-popup-text-center font-16"},"\u662f\u5426\u786e\u8ba4\u6267\u884c\u8986\u76d6\u64cd\u4f5c")),h.a.createElement("div",{className:"task-popup-submit clearfix mt10"},h.a.createElement("a",{onClick:function(){return e.hidestandard_scriptsModal()},className:"task-btn fl"},"\u53d6\u6d88"),h.a.createElement("a",{className:"task-btn task-btn-orange fr",onClick:function(){return e.get_mirror_script()}},"\u786e\u5b9a"))),h.a.createElement(S.a,{keyboard:!1,title:"\u63d0\u793a",visible:this.state.standard_scriptsModals,closable:!1,footer:null},h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16"},"\u8bc4\u6d4b\u811a\u672c\u751f\u6210\u6210\u529f\uff01")),h.a.createElement("div",{className:"task-popup-sure clearfix"},h.a.createElement("a",{className:"task-btn task-btn-orange",onClick:function(){return e.hidestandard_scriptsModal()}},"\u786e\u5b9a"))),h.a.createElement(S.a,{keyboard:!1,title:"\u81ea\u5b9a\u4e49\u6a21\u677f",visible:this.state.visibleTemplate,onCancel:this.handleCancelTemplate,onOk:this.hideModalTemplate,okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88"},h.a.createElement("div",null,h.a.createElement("li",{className:"clearfix mb15"},h.a.createElement("label",{className:"panel-form-label fl"},h.a.createElement("span",{className:"color-orange mr5"},"*"),"\u6267\u884c\u547d\u4ee4\uff1a"),h.a.createElement("textarea",{className:"task-form-80 task-height-150 panel-box-sizing fl mt10",onInput:this.Executiveorder,value:this.state.Executiveordervalue,style:{width:"100%"},id:"executive_command"}),h.a.createElement("p",{className:"-text-danger fl mt5",id:"executive_command_notice",style:{display:!1===this.state.Executivetyoe?"none":"block"}},"\u6267\u884c\u547d\u4ee4\u4e0d\u80fd\u4e3a\u7a7a")),h.a.createElement("li",{className:"clearfix mb15"},h.a.createElement("label",{className:"panel-form-label fl"},"\u7f16\u8bd1\u547d\u4ee4\uff1a"),h.a.createElement("textarea",{className:"task-form-80 task-height-150 panel-box-sizing fl mt10",value:this.state.Compilecommandvalue,onInput:this.Compilecommand,id:"compile_command",style:{width:"100%"}})))),h.a.createElement(S.a,{keyboard:!1,title:"\u7533\u8bf7\u65b0\u5efa",visible:r,closable:!1,footer:null,width:850,heigth:720},h.a.createElement("div",null,h.a.createElement("li",{className:"clearfix ml82"},h.a.createElement("label",{className:"fl mt10 "},h.a.createElement("span",{className:"color-red fl mt3"},"*"),"\u8bed\u8a00\uff1a\xa0\xa0"),h.a.createElement("textarea",{className:!0===this.state.languagewritetype?"fl task-form-80 task-height-150 bor-reds":"fl task-form-80 task-height-150",style:{width:"89%",height:"100px"},onInput:this.setlanguage,value:this.state.language,placeholder:"\u8bf7\u586b\u5199\u8be5\u955c\u50cf\u662f\u57fa\u4e8e\u4ec0\u4e48\u8bed\u8a00\uff1a\u793a\u4f8b\uff1aPython",id:"demand_info"})),h.a.createElement("div",{className:"color-red shixunspanred"},!0===this.state.languagewritetype?"\u8bf7\u586b\u5199\u8be5\u955c\u50cf\u8bed\u8a00":""),h.a.createElement("li",{className:"clearfix ml1"},h.a.createElement("label",{className:"panel-form-label fl ml50"},h.a.createElement("span",{className:"color-red fl mt3"},"*"),"\u7cfb\u7edf\u73af\u5883\uff1a\xa0\xa0"),h.a.createElement("textarea",{className:!0===this.state.systemenvironmenttype?"fl task-form-80 task-height-150 bor-reds":"fl task-form-80 task-height-150",onInput:this.setruntime,style:{height:"100px"},value:this.state.runtime,placeholder:"\u8bf7\u586b\u5199\u8be5\u955c\u50cf\u662f\u57fa\u4e8e\u4ec0\u4e48linux\u7cfb\u7edf\u73af\u5883,\u4ee3\u7801\u8fd0\u884c\u73af\u5883",id:"demand_info"})),h.a.createElement("div",{className:"color-red shixunspanred"},!0===this.state.systemenvironmenttype?"\u8bf7\u586b\u5199\u8be5\u955c\u50cf\u8bed\u8a00\u7cfb\u7edf\u73af\u5883":""),h.a.createElement("li",{className:"clearfix"},h.a.createElement("label",{className:"fl mt10"},h.a.createElement("span",{className:"color-red fl mt3"},"*"),"\u6d4b\u8bd5\u4ee3\u7801\u8fd0\u884c\u65b9\u5f0f\uff1a\xa0\xa0"),h.a.createElement("textarea",{className:!0===this.state.testcoderunmodetype?"fl task-form-80 task-height-150 bor-reds":"fl task-form-80 task-height-150",onInput:this.setrun_method,value:this.state.run_method,style:{height:"100px"},placeholder:"\u8bf7\u586b\u5199\u8be5\u955c\u50cf\u4e2d\u6d4b\u8bd5\u4ee3\u7801\u8fd0\u884c\u65b9\u5f0f",id:"demand_info"})),h.a.createElement("div",{className:"color-red shixunspanred"},!0===this.state.testcoderunmodetype?"\u8bf7\u586b\u5199\u8be5\u955c\u50cf\u6d4b\u8bd5\u4ee3\u7801\u8fd0\u884c\u65b9\u5f0f":""),h.a.createElement("li",{className:"clearfix ml50"},h.a.createElement("label",{className:"panel-form-label fl mt-5"},h.a.createElement("span",{className:"color-red fl"},"*"),"\u6d4b\u8bd5\u4ee3\u7801\uff1a\xa0\xa0"),h.a.createElement("div",{className:"mt10",style:{display:"inline-block"}},h.a.createElement(ce.a,s,h.a.createElement(D.a,{type:"upload",className:"fl mt3"}," "),h.a.createElement("span",{className:"color-blue fl cdefault"},"\u4e0a\u4f20\u9644\u4ef6"),h.a.createElement("span",{className:"color-grey-c fl ml10 "},"(\u5355\u4e2a\u6587\u4ef650M\u4ee5\u5185)")))),h.a.createElement("div",{className:"color-red shixunspanred"},!0===this.state.attachmentidstype?"\u8bf7\u4e0a\u4f20\u9644\u4ef6":""),h.a.createElement("li",{className:"edu-txt-center clearfix "},h.a.createElement("a",{className:"pop_close task-btn mr30",onClick:function(){return e.sendhideModaly()}},"\u53d6\u6d88"),h.a.createElement(w.a,{type:"primary",onClick:function(){return e.sendsure_apply()},className:"task-btn task-btn-orange"},"\u786e\u5b9a")),h.a.createElement("div",{className:"cl"})))),this.props.identity<5?h.a.createElement(ve.a,Object.assign({},this.props,this.state,{url:"/shixuns/".concat(this.props.match.params.shixunId,"/challenges"),onSubmits:this.onSubmits,loadings:this.state.loading})):"")}}]),t}(d.Component),_e=de.a.create({name:"newshixun"})(be),we=(n(546),n(545)),Ce=(n(1151),n(1157)),Se=n(172),Oe=n.n(Se),xe=n(49),Ee=n.n(xe);n(779),n(780),n(63),n(21),Object(b.T)(),Object(b.T)("/editormd/lib/"),window.$,pe.a.Option,P.a.Group,S.a.confirm;function ke(e){if(!e)return e;var t=e.split(":");if("00"==t[1]||"30"==t[1])return e;var n=parseInt(t[1]);if(n<30||60==n)return[t[0],"30"].join(":");if(n<60){var o=[t[0],"00"].join(":"),i="YYYY-MM-DD HH:mm",r=Ee()(o,i);return r.add(1,"hours"),r.format(i)}return e}d.Component,window.$;var Ne,De,Le=pe.a.Option,Pe=P.a.Group;function Ie(e,t){for(var n=[],o=e;o<t;o++)n.push(o);return n}function Te(){return{disabledMinutes:function(){return Ie(1,30).concat(Ie(31,60))}}}function Me(e){return e&&e<Ee()().endOf("day").subtract(1,"days")}var je=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).onChangeTimePicker=function(e,t){n.setState({opening_time:""===t?"":ke(t),opening_timetype:!1,loading:!1})},n.onSubmits=function(){var e=n.state,t=e.can_copy,o=e.use_scope,i=e.scope_partment,r=e.opening_time,a=e.oldscope_partment;if(!0!==n.state.opentime||null!==r){if(1===o&&0===a.length&&0===i.length)return n.setState({scope_partmenttype:!0}),void n.props.showNotification("\u8bf7\u9009\u62e9\u6307\u5b9a\u5355\u4f4d\u516c\u5f00");var s=[];i.map((function(e,t){s.push(e)})),a.map((function(e,t){s.push(e)}));var l=n.props.match.params.shixunId,c="/shixuns/".concat(l,"/update_permission_setting.json");j.a.post(c,{scope_partment:0===o?void 0:s,shixun:{can_copy:t,use_scope:o,opening_time:r}}).then((function(e){-1===e.data.status||(n.props.showNotification("\u6743\u9650\u914d\u7f6e\u4fdd\u5b58\u6210\u529f!"),n.setState({loading:!1,scope_partment:[],oldscope_partment:s}),n.props.getdatas("3"))})).catch((function(e){}))}else n.setState({opening_timetype:!0})},n.CheckboxonChange=function(e){n.setState({can_copy:e.target.checked})},n.SelectOpenpublic=function(e){n.setState({use_scope:e.target.value})},n.shixunScopeInput=function(e){var t=n.state,o=t.scope_partment,i=t.oldscope_partment,r=o;void 0===r&&(r=[]);var a=!1;0<o.length&&o.map((function(t,n){t===e&&(a=!0)})),0<i.length&&i.map((function(t,n){t===e&&(a=!0)})),!1===a?(r.push(e),n.setState({scope_partment:r,scope_partmenttype:!1})):n.props.showNotification("\u8bf7\u52ff\u6307\u5b9a\u76f8\u540c\u7684\u5355\u4f4d")},n.shixunsfetch=function(e,t){Ne&&(clearTimeout(Ne),Ne=null),De=e,Ne=setTimeout((function(){var e="/shixuns/departments.json?q="+De;j.a.get(e).then((function(e){t(e.data.shools_name)})).catch((function(e){}))}),300)},n.shixunHandleSearch=function(e){n.shixunsfetch(e,(function(e){return n.setState({departmentslist:e})}))},n.deleteScopeInput=function(e){var t=n.state.scope_partment;t.splice(e,1),n.setState({scope_partment:t})},n.setopentime=function(e){!1===e.target.checked&&n.setState({opening_time:null}),n.setState({opentime:e.target.checked})},n.state={can_copy:!1,use_scope:0,opening_time:null,opentime:!1,oldscope_partment:[],scope_partment:[],loading:!1,opening_timetype:!1,use_scope_type:!1,scope_partmenttype:!1},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;if(this.props.data&&this.props.data.shixun){var t;t=!(!this.props.data||!this.props.data.shixun.opening_time),this.setState({use_scope_type:!!(this.props&&1<this.props.status&&this.props.data&&0===this.props.data.shixun.use_scope&&this.props&&2<this.props.identity||this.props&&2===this.props.public&&this.props.data&&0===this.props.data.shixun.use_scope&&this.props&&2<this.props.identity),can_copy:(!this.props.data||void 0!==this.props.data.shixun.can_copy)&&this.props.data&&this.props.data.shixun.can_copy,use_scope:this.props.data&&this.props.data.shixun.use_scope,opening_time:this.props.data&&this.props.data.shixun.opening_time,opentime:t,oldscope_partment:this.props.data&&this.props.data.shixun.scope_partment})}j.a.get("/shixuns/departments.json").then((function(t){200===t.status&&void 0===t.data.message&&e.setState({departmentslist:t.data.shools_name})})).catch((function(e){}))}},{key:"componentDidUpdate",value:function(e){if(e.data!=this.props.data&&this.props.data&&this.props.data.shixun){var t;t=!(!this.props.data||!this.props.data.shixun.opening_time),this.setState({use_scope_type:!!(this.props&&1<this.props.status&&this.props.data&&0===this.props.data.shixun.use_scope&&this.props&&2<this.props.identity||this.props&&2===this.props.public&&this.props.data&&0===this.props.data.shixun.use_scope&&this.props&&2<this.props.identity),can_copy:(!this.props.data||void 0!==this.props.data.shixun.can_copy)&&this.props.data&&this.props.data.shixun.can_copy,use_scope:this.props.data&&this.props.data.shixun.use_scope,opening_time:this.props.data&&this.props.data.shixun.opening_time,opentime:t,oldscope_partment:this.props.data&&this.props.data.shixun.scope_partment})}}},{key:"render",value:function(){var e,t=this;return null!=this.state.departmentslist&&(e=this.state.departmentslist.map((function(e,t){return h.a.createElement(Le,{key:e,id:t},e)}))),h.a.createElement("div",null,h.a.createElement("div",{className:"educontent mb200 edu-back-white padding10-20 pdb30 mb50"},this.props&&!0===this.props.is_jupyter?"":h.a.createElement("div",{className:"clearfix ml40"},h.a.createElement("span",{className:"color-grey-6 mt5 fl font-16 ml20",style:{minWidth:"45px"}},"\u590d\u5236:"),h.a.createElement("span",{className:"fl mt8 ml13"},h.a.createElement(ue.a,{checked:this.state.can_copy,onChange:this.CheckboxonChange}),h.a.createElement("label",{style:{top:"6px"},className:"color-grey-9 ml10"},"\uff08\u9009\u4e2d\u5219\u5141\u8bb8\u5df2\u804c\u4e1a\u8ba4\u8bc1\u7684\u6559\u5e08\u590d\u5236\u8be5\u5b9e\u8bad\uff09"))),h.a.createElement("div",{className:"edu-back-white mb10 ml30 mt20"},this.props&&1<this.props.status&&0===this.state.use_scope&&this.props&&2<this.props.identity&&!0===this.state.use_scope_type||this.props&&2===this.props.public&&0===this.state.use_scope&&this.props&&2<this.props.identity&&!0===this.state.use_scope_type?"":h.a.createElement("div",null,h.a.createElement("span",{className:"color-grey-6 mt5 fl font-16",style:{minWidth:"45px"}},"\u516c\u5f00\u7a0b\u5ea6:"),h.a.createElement("span",{className:"fl mt8 ml20"},h.a.createElement(Pe,{onChange:this.SelectOpenpublic,value:this.state.use_scope},h.a.createElement(P.a,{className:"radioStyle",value:0},h.a.createElement("span",null,"\u5bf9\u6240\u6709\u5355\u4f4d\u516c\u5f00")," ",h.a.createElement("span",{className:"color-grey-9"},"\uff08\u5b9e\u8bad\u53d1\u5e03\u540e\uff0c\u6240\u6709\u7528\u6237\u53ef\u89c1\uff09")),h.a.createElement(P.a,{className:"radioStyle",value:1},h.a.createElement("span",null,"\u5bf9\u6307\u5b9a\u5355\u4f4d\u516c\u5f00")," ",h.a.createElement("span",{className:"color-grey-9"},"\uff08\u5b9e\u8bad\u53d1\u5e03\u540e\uff0c\u4ec5\u5bf9\u4e0b\u65b9\u6307\u5b9a\u5355\u4f4d\u7684\u7528\u6237\u53ef\u89c1\uff09"))),h.a.createElement("div",{className:"clearfix",id:"unit-all",style:{display:0===this.state.use_scope?"none":"block"}},h.a.createElement("div",{className:"fl ml25"},h.a.createElement("div",{className:"fl",id:"unit-input-part",style:{width:"100%"}},h.a.createElement("div",{id:"person-unit",className:"fl pr mr10"},h.a.createElement("div",{className:"shixunScopeInput fl"},h.a.createElement(pe.a,{style:{width:"200px"},placeholder:"\u8bf7\u8f93\u5165\u5e76\u9009\u62e9\u5355\u4f4d\u540d\u79f0",onChange:function(e){return t.shixunScopeInput(e)},onSearch:this.shixunHandleSearch,showSearch:!0,value:this.state.scope_partment,defaultActiveFirstOption:!1,showArrow:!1,filterOption:!1,notFoundContent:null,className:!0===this.props.scope_partmenttype?"bor-red":""},e)),h.a.createElement("span",{className:"color-grey-9 openrenyuan"},"\uff08\u8bf7\u901a\u8fc7\u641c\u7d22\u5e76\u9009\u4e2d\u5355\u4f4d\u540d\u79f0\u8fdb\u884c\u6dfb\u52a0\uff09"))),h.a.createElement("div",{style:{width:"100%"}},h.a.createElement("div",{className:"mt20 clearfix",id:"task_tag_content"},this.state.oldscope_partment.map((function(e,t){return h.a.createElement("li",{key:t,className:"fl mr20"},h.a.createElement(w.a,{type:"primary",ghost:!0,className:"Permanentban "},e))})),void 0===this.state.scope_partment?"":this.state.scope_partment.map((function(e,n){return h.a.createElement("li",{key:n,className:"fl mr20"},h.a.createElement(Ce.a,{count:"x",onClick:function(e){return t.deleteScopeInput(e)}},h.a.createElement(w.a,{type:"primary",ghost:!0,className:"Permanentban "},e)))})))),h.a.createElement("span",{className:!0===this.props.scope_partmenttype?"color-orange ml20 fl":"color-orange ml20 fl none",id:"public_unit_notice"},h.a.createElement("i",{className:"fa fa-exclamation-circle mr3"}),"\u8bf7\u9009\u62e9\u9700\u8981\u516c\u5f00\u7684\u5355\u4f4d"))))),h.a.createElement("div",{className:"clearfix mt20"},h.a.createElement("span",{className:"color-grey-6 mt5 fl font-16",style:{minWidth:"45px"}},"\u5f00\u542f\u65f6\u95f4:"),h.a.createElement("span",{className:"fl mt8 ml20"},h.a.createElement(ue.a,{checked:void 0!==this.state.opentime&&this.state.opentime,onChange:this.setopentime}),h.a.createElement("label",{style:{top:"6px"},className:"color-grey-9 ml10"},"\uff08\u9009\u4e2d\u5219\u5b66\u5458\u5728\u6307\u5b9a\u7684\u5f00\u542f\u65f6\u95f4\u540e\uff0c\u624d\u80fd\u5f00\u542f\u5b66\u4e60\uff1b\u4e0d\u9009\u4e2d\u5219\u5b66\u5458\u5728\u5b9e\u8bad\u53d1\u5e03\u540e\uff0c\u80fd\u7acb\u5373\u5f00\u542f\u5b66\u4e60\uff09"),h.a.createElement("div",{className:"both"}),!1===this.state.opentime?"":h.a.createElement("div",{className:"mt20 ml25"},h.a.createElement(we.a,{className:!0===this.state.opening_timetype?"bor-red":"",showToday:!1,showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",width:178,locale:Oe.a,disabledTime:Te,disabledDate:Me,placeholder:"\u8bf7\u8f93\u5165\u5f00\u542f\u65f6\u95f4",value:null===this.state.opening_time||""===this.state.opening_time?"":Ee()(this.state.opening_time,"YYYY-MM-DD HH:mm"),onChange:this.onChangeTimePicker,dropdownClassName:"hideDisable"})),h.a.createElement("div",{className:!0===this.state.opening_timetype?"color-red mt10 ml20":"none"},"\u8bf7\u9009\u62e9\u5f00\u542f\u65f6\u95f4"))))),this.props.identity<5?h.a.createElement(ve.a,Object.assign({},this.props,this.state,{url:"/shixuns/".concat(this.props.match.params.shixunId,"/challenges"),onSubmits:this.onSubmits,loadings:this.state.loading})):"")}}]),t}(d.Component),Re=P.a.Group,Ae=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).onSubmits=function(){n.setState({loading:!0});var e=n.props.match.params.shixunId,t="/shixuns/".concat(e,"/update_learn_setting.json");j.a.post(t,{shixun:{code_hidden:n.state.code_hidden,forbid_copy:n.state.forbid_copy,hide_code:n.state.hide_code,multi_webssh:n.state.multi_webssh,task_pass:n.state.task_pass,test_set_permission:n.state.test_set_permission,vnc:n.state.vnc,webssh:!1===n.state.websshshow?0:n.state.opensshRadio,code_edit_permission:n.state.code_edit_permission}}).then((function(e){-1===e.data.status||(n.props.getdatas(),n.props.showNotification("\u5b66\u4e60\u9875\u9762\u8bbe\u7f6e\u4fdd\u5b58\u6210\u529f!"),n.setState({loading:!1}))})).catch((function(e){n.setState({loading:!1})}))},n.Checkvnc=function(){!1===n.state.vnc&&n.setState({hide_code:!1,code_edit_permission:!1,code_hidden:!1,forbid_copy:!1,multi_webssh:!1,websshshow:!1}),n.setState({vnc:!n.state.vnc})},n.Checkhide_code=function(){!1===n.state.hide_code&&n.setState({code_edit_permission:!1}),n.setState({hide_code:!n.state.hide_code})},n.Checkis_secret_repository=function(){n.setState({code_edit_permission:!n.state.code_edit_permission})},n.Checkcode_hidden=function(){n.setState({code_hidden:!n.state.code_hidden})},n.Checkforbid_copy=function(){n.setState({forbid_copy:!n.state.forbid_copy})},n.Checktask_pass=function(){n.setState({task_pass:!n.state.task_pass})},n.Checktest_set_permission=function(){n.setState({test_set_permission:!n.state.test_set_permission})},n.Checkwebsshshow=function(){!1===n.state.websshshow?n.setState({vnc:!1,opensshRadio:1}):n.setState({multi_webssh:!1,opensshRadio:null,hide_code:!1}),n.setState({websshshow:!n.state.websshshow})},n.Checkmulti_webssh=function(){n.setState({multi_webssh:!n.state.multi_webssh})},n.opensshRadio=function(e){1===e.target.value&&n.setState({multi_webssh:!1}),n.setState({opensshRadio:e.target.value})},n.state={vnc:!1,hide_code:!1,code_edit_permission:!1,code_hidden:!1,forbid_copy:!1,test_set_permission:!0,task_pass:!0,websshshow:!1,multi_webssh:!1,opensshRadio:null,loading:!1},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.props.data&&this.props.data.shixun&&this.setState({vnc:this.props.data&&this.props.data.shixun.vnc,code_hidden:this.props.data&&this.props.data.shixun.code_hidden,forbid_copy:this.props.data&&this.props.data.shixun.forbid_copy,hide_code:this.props.data&&this.props.data.shixun.hide_code,task_pass:this.props.data&&this.props.data.shixun.task_pass,test_set_permission:this.props.data&&this.props.data.shixun.test_set_permission,code_edit_permission:this.props.data&&this.props.data.shixun.code_edit_permission,websshshow:!this.props.data||0!==this.props.data.shixun.webssh,multi_webssh:this.props.data&&this.props.data.shixun.multi_webssh,opensshRadio:this.props.data&&0===this.props.data.shixun.webssh?null:this.props.data&&this.props.data.shixun.webssh})}},{key:"componentDidUpdate",value:function(e){e.data!=this.props.data&&this.props.data&&this.props.data.shixun&&this.setState({vnc:this.props.data&&this.props.data.shixun.vnc,code_hidden:this.props.data&&this.props.data.shixun.code_hidden,forbid_copy:this.props.data&&this.props.data.shixun.forbid_copy,hide_code:this.props.data&&this.props.data.shixun.hide_code,task_pass:this.props.data&&this.props.data.shixun.task_pass,test_set_permission:this.props.data&&this.props.data.shixun.test_set_permission,code_edit_permission:this.props.data&&this.props.data.shixun.code_edit_permission,websshshow:!this.props.data||0!==this.props.data.shixun.webssh,multi_webssh:this.props.data&&this.props.data.shixun.multi_webssh,opensshRadio:this.props.data&&0===this.props.data.shixun.webssh?null:this.props.data&&this.props.data.shixun.webssh})}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{className:"educontent mb200 edu-back-white padding10-20 pdb30 mb50"},!0===this.state.websshshow?"":h.a.createElement("div",{className:"clearfix mb20"},h.a.createElement("span",{className:"color-grey-6 mt5 fl font-16",style:{minWidth:"45px"}},"\u5f00\u542f\u56fe\u5f62\u5316\u754c\u9762\uff1a"),h.a.createElement("span",{className:"fl mt8"},h.a.createElement(ue.a,{checked:this.state.vnc,onChange:this.Checkvnc}),h.a.createElement("label",{style:{top:"6px"},className:"color-grey-9 ml10"},"\uff08\u9009\u4e2d\u5219\u7ed9\u5b66\u5458\u7684\u5b9e\u8df5\u4efb\u52a1\u542f\u52a8Ubuntu\u7cfb\u7edf\u7684\u56fe\u5f62\u5316\u754c\u9762\uff09"))),!0===this.state.vnc?"":h.a.createElement("div",{className:"clearfix mb20"},h.a.createElement("span",{className:"color-grey-6 mt5 fl font-16 ml64",style:{minWidth:"45px"}},"\u547d\u4ee4\u884c\uff1a"),h.a.createElement("span",{className:"fl mt8"},h.a.createElement(ue.a,{checked:this.state.websshshow,onChange:this.Checkwebsshshow}),h.a.createElement("label",{style:{top:"6px"},className:"color-grey-9 ml10"},"\uff08\u9009\u4e2d\u5219\u7ed9\u5b66\u5458\u7684\u5b9e\u8df5\u4efb\u52a1\u63d0\u4f9b\u547d\u4ee4\u884c\u7a97\u53e3\uff09"))),!0!==this.state.vnc&&!0===this.state.websshshow?h.a.createElement("div",null,h.a.createElement("span",{className:"fl ml160"},h.a.createElement(Re,{onChange:this.opensshRadio,value:this.state.opensshRadio},h.a.createElement(P.a,{className:"radioStyle font-14",value:1},h.a.createElement("span",null,"\u547d\u4ee4\u884c\u7ec3\u4e60\u7a97\u53e3")," ",h.a.createElement("span",{className:"color-grey-9"},"\uff08\u9009\u4e2d\u5219\u7ed9\u5b66\u5458\u63d0\u4f9b\u7528\u4e8e\u7ec3\u4e60\u64cd\u4f5c\u7684\u547d\u4ee4\u884c\uff0c\u547d\u4ee4\u884c\u7684\u64cd\u4f5c\u4e0d\u4f1a\u5bf9\u5b66\u751f\u7684\u5b9e\u9a8c\u73af\u5883\u9020\u6210\u5f71\u54cd\uff09")),h.a.createElement(P.a,{className:"radioStyle font-14",value:2},h.a.createElement("span",null,"\u547d\u4ee4\u884c\u8bc4\u6d4b\u7a97\u53e3")," ",h.a.createElement("span",{className:"color-grey-9"},"\uff08\u9009\u4e2d\u5219\u7ed9\u5b66\u5458\u63d0\u4f9b\u7528\u4e8e\u8bc4\u6d4b\u64cd\u4f5c\u7684\u547d\u4ee4\u884c\uff0c\u547d\u4ee4\u884c\u7684\u64cd\u4f5c\u53ef\u4ee5\u5bf9\u5b66\u751f\u7684\u5b9e\u9a8c\u73af\u5883\u4ea7\u751f\u5f71\u54cd\uff09")))),2===this.state.opensshRadio?h.a.createElement("span",{className:"fl ml180"},h.a.createElement("div",{className:"clearfix mb20"},h.a.createElement("span",{className:"fl mt8 ml5"},h.a.createElement(ue.a,{checked:this.state.multi_webssh,onChange:this.Checkmulti_webssh}),h.a.createElement("label",{style:{top:"6px"},className:"color-grey-9 ml10"},h.a.createElement("span",{className:"color-grey-6 font-14",style:{minWidth:"45px"}},"\u591a\u4e2a\u547d\u4ee4\u884c\u7a97\u53e3\uff1a"),"\uff08\u9009\u4e2d\u5219\u5141\u8bb8\u5b66\u5458\u540c\u65f6\u5f00\u542f\u591a\u4e2a\u547d\u4ee4\u884c\u7a97\u53e3\uff09")))):""):"",!0===this.state.vnc||!1===this.state.websshshow?"":h.a.createElement("div",{className:"clearfix mb20"},h.a.createElement("span",{className:"color-grey-6 mt5 fl font-16 ml17",style:{minWidth:"45px"}},"\u9690\u85cf\u4ee3\u7801\u7a97\u53e3\uff1a"),h.a.createElement("span",{className:"fl mt8"},h.a.createElement(ue.a,{checked:this.state.hide_code,onChange:this.Checkhide_code}),h.a.createElement("label",{style:{top:"6px"},className:"color-grey-9 ml10"},"\uff08\u9009\u4e2d\u5219\u5b66\u5458\u9875\u9762\u4e0d\u663e\u793a\u4ee3\u7801\u7a97\u53e3\uff09"))),!0===this.state.vnc||!0===this.state.hide_code?"":h.a.createElement("div",{className:"clearfix mb20"},h.a.createElement("span",{className:"color-grey-6 mt5 fl font-16 ml33",style:{minWidth:"45px"}},"\u516c\u5f00\u7248\u672c\u5e93\uff1a"),h.a.createElement("span",{className:"fl mt8"},h.a.createElement(ue.a,{checked:this.state.code_edit_permission,onChange:this.Checkis_secret_repository}),h.a.createElement("label",{style:{top:"6px"},className:"color-grey-9 ml10"},"\uff08\u9009\u4e2d\u5219\u5141\u8bb8\u5b66\u5458\u4fee\u6539\u7248\u672c\u5e93\u4e2d\u7684\u5168\u90e8\u6587\u4ef6\uff09"))),!0===this.state.vnc?"":h.a.createElement("div",{className:"clearfix mb20"},h.a.createElement("span",{className:"color-grey-6 mt5 fl font-16 ml17",style:{minWidth:"45px"}},"\u9690\u85cf\u4ee3\u7801\u76ee\u5f55\uff1a"),h.a.createElement("span",{className:"fl mt8"},h.a.createElement(ue.a,{checked:this.state.code_hidden,onChange:this.Checkcode_hidden}),h.a.createElement("label",{style:{top:"6px"},className:"color-grey-9 ml10"},"\uff08\u9009\u4e2d\u5219\u5b66\u5458\u9875\u9762\u4e0d\u663e\u793a\u7248\u672c\u5e93\u76ee\u5f55\uff09"))),!0===this.state.vnc?"":h.a.createElement("div",{className:"clearfix mb20"},h.a.createElement("span",{className:"color-grey-6 mt5 fl font-16 ml17",style:{minWidth:"45px"}},"\u7981\u7528\u590d\u5236\u7c98\u8d34\uff1a"),h.a.createElement("span",{className:"fl mt8"},h.a.createElement(ue.a,{checked:this.state.forbid_copy,onChange:this.Checkforbid_copy}),h.a.createElement("label",{style:{top:"6px"},className:"color-grey-9 ml10"},"\uff08\u9009\u4e2d\u5219\u5b66\u5458\u9875\u9762\u4e0d\u5141\u8bb8\u4f7f\u7528\u590d\u5236\u548c\u7c98\u8d34\u529f\u80fd\uff09"))),h.a.createElement("div",{className:"clearfix mb20"},h.a.createElement("span",{className:"color-grey-6 mt5 fl font-16 ml80",style:{minWidth:"45px"}},"\u8df3\u5173\uff1a"),h.a.createElement("span",{className:"fl mt8"},h.a.createElement(ue.a,{checked:this.state.task_pass,onChange:this.Checktask_pass}),h.a.createElement("label",{style:{top:"6px"},className:"color-grey-9 ml10"},"\uff08\u9009\u4e2d\u5219\u5141\u8bb8\u5b66\u5458\u8df3\u5173\u5b66\u4e60\u5b9e\u8bad\u5173\u5361\u4efb\u52a1\uff09"))),h.a.createElement("div",{className:"clearfix mb20"},h.a.createElement("span",{className:"color-grey-6 mt5 fl font-16 ml32s",style:{minWidth:"45px"}},"\u6d4b\u8bd5\u96c6\u89e3\u9501\uff1a"),h.a.createElement("span",{className:"fl mt8"},h.a.createElement(ue.a,{checked:this.state.test_set_permission,onChange:this.Checktest_set_permission}),h.a.createElement("label",{style:{top:"6px"},className:"color-grey-9 ml10"},"\uff08\u9009\u4e2d\u5219\u5141\u8bb8\u5b66\u5458\u5141\u8bb8\u5b66\u5458\u901a\u8fc7\u91d1\u5e01\u89e3\u9501\u67e5\u770b\u9690\u85cf\u6d4b\u8bd5\u96c6\u7684\u5185\u5bb9\uff09")))),this.props.identity<5?h.a.createElement(ve.a,Object.assign({},this.props,this.state,{url:"/shixuns/".concat(this.props.match.params.shixunId,"/challenges"),onSubmits:this.onSubmits,loadings:this.state.loading})):"")}}]),t}(d.Component),Fe=le.a.TabPane,Ve=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).getdatas=function(e){var t="/shixuns/"+n.props.match.params.shixunId+"/settings.json";j.a.get(t).then((function(e){200===e.status&&(e.data&&e.data.shixun&&0<e.data.shixun.scope_partment.length&&n.setState({scopetype:!0}),n.setState({data:e.data}))}))},n.operateshixuns=function(e){n.setState({operateshixunstype:!0,delType:e})},n.hideoperateshixuns=function(){n.setState({operateshixunstype:!1})},n.shixunsdel=function(){var e="/shixuns/"+n.props.match.params.shixunId+".json";j.a.delete(e).then((function(e){1===e.data.status&&(n.props.showNotification("\u64cd\u4f5c\u6210\u529f"),n.setState({operateshixunstype:!1}),window.location.href="/shixuns")})).catch((function(e){}))},n.shixunsclose=function(){var e=n.props.match.params.shixunId,t="/shixuns/"+e+"/close.json";j.a.post(t).then((function(t){1===t.data.status&&(n.props.showNotification("\u64cd\u4f5c\u6210\u529f"),n.setState({operateshixunstype:!1}),window.location.href="/shixuns/"+e+"/challenges")})).catch((function(e){}))},n.callback=function(e){n.setState({activeKeys:e})},n.state={activeKeys:"1"},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getdatas("1")}},{key:"render",value:function(){var e=this,t=void 0===this.props.shixunsDetails||this.props.shixunsDetails&&!0===this.props.shixunsDetails.is_jupyter?"":"\u5b66\u4e60\u9875\u9762\u8bbe\u7f6e";return h.a.createElement("div",{id:"TPMsettings"},h.a.createElement("style",null,"\n .ant-tabs-bar{\n width: 1200px;\n margin: 0 auto;\n background: #fff;\n border-bottom: 0px;\n margin-top: 30px!important;\n }\n .ant-tabs-nav{\n margin-left:20px;\n }\n .ant-tabs-nav .ant-tabs-tab {\n font-size: 16px;\n }\n "),h.a.createElement(le.a,{activeKey:this.state.activeKeys,onChange:this.callback,animated:!1,tabBarExtraContent:h.a.createElement("div",{className:"mb20 mr20"},this.props.identity<5&&this.state.data&&0==this.state.data.shixun.status?h.a.createElement(w.a,{type:"primary",ghost:!0,className:"Permanentban mr20",onClick:function(){return e.operateshixuns(1)}},"\u5220\u9664\u5b9e\u8bad"):"",1==this.props.identity&&this.state.data&&2==this.state.data.shixun.status?h.a.createElement(w.a,{type:"primary",ghost:!0,className:"Permanentban mr20",onClick:function(){return e.operateshixuns(1)}},"\u5220\u9664\u5b9e\u8bad"):"",1===this.props.identity&&this.state.data&&2==this.state.data.shixun.status?h.a.createElement(w.a,{type:"primary",ghost:!0,className:"Permanentban",onClick:function(){return e.operateshixuns(2)}},"\u6c38\u4e45\u5173\u95ed"):"")},h.a.createElement(Fe,{tab:"\u57fa\u672c\u4fe1\u606f",key:"1"},h.a.createElement(_e,Object.assign({},this.state,this.props,{getdatas:function(t){return e.getdatas(t)}}))),h.a.createElement(Fe,{tab:"\u6743\u9650\u914d\u7f6e",key:"2"},h.a.createElement(je,Object.assign({},this.state,this.props,{getdatas:function(t){return e.getdatas(t)}}))),void 0!==this.props.shixunsDetails&&this.props.shixunsDetails&&!1===this.props.shixunsDetails.is_jupyter?h.a.createElement(Fe,{tab:t,key:"3"},h.a.createElement(Ae,Object.assign({},this.state,this.props,{getdatas:function(t){return e.getdatas(t)}}))):""),h.a.createElement(S.a,{keyboard:!1,title:"\u63d0\u793a",visible:this.state.operateshixunstype,closable:!1,footer:null},h.a.createElement("div",{className:"task-popup-content"},1===this.state.delType?h.a.createElement("p",{className:"task-popup-text-center font-16 pb20"},"\u662f\u5426\u786e\u8ba4\u5220\u9664 \uff1f"):h.a.createElement("p",{className:"task-popup-text-center font-16 pb20"},"\u5173\u95ed\u540e,",h.a.createElement("br",null),"\u7528\u6237\u4e0d\u80fd\u518d\u5f00\u59cb\u6311\u6218\u4e86\u662f\u5426\u786e\u8ba4\u5173\u95ed \uff1f")),h.a.createElement("div",{className:"task-popup-submit clearfix"},h.a.createElement("a",{onClick:this.hideoperateshixuns,className:"task-btn fl"},"\u53d6\u6d88"),1===this.state.delType?h.a.createElement("a",{className:"task-btn task-btn-orange fr",onClick:this.shixunsdel},"\u786e\u5b9a"):h.a.createElement("a",{className:"task-btn task-btn-orange fr",onClick:this.shixunsclose},"\u786e\u5b9a"))))}}]),t}(d.Component),We=(n(803),n(804)),Be=(n(2069),window.$),He=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).ChallengesList=function(){var e="/shixuns/"+n.props.match.params.shixunId+"/challenges.json";j.a.get(e).then((function(e){200===e.status&&(403===e.data.status||401===e.data.status||500===e.data.status||(Object(b.F)(n.props.shixunsDetails.name,e.data.description),n.setState({ChallengesDataList:e.data,sumidtype:!1}),""!==e.data.description&&null!==e.data.description&&void 0!==e.data.description||n.setState({isopentitletype:"Less"}),n.getjianjiesize()))})).catch((function(e){}))},n.getjianjiesize=function(){var e,t=n.state.ChallengesDataList,o=document.getElementById("shixunchallengesid");o&&(e=o.offsetHeight,void 0===t||t&&""===t.description||t&&null===t.description||t&&void 0===t.description||"greater"===n.state.isopentitletype||(300<=e?n.setState({opentitletype:!0,isopentitletype:"greater",boxoffsetHeigh:e}):n.setState({isopentitletype:"Less",boxoffsetHeigh:e})))},n.componentDidUpdate=function(e,t){t.ChallengesDataList!=n.state.ChallengesDataList&&("greater"===n.state.isopentitletype||n.getjianjiesize())},n.updatamakedown=function(e){setTimeout((function(){window.editormd.markdownToHTML(e,{htmlDecode:"style,script,iframe",taskList:!0,tex:!0,flowChart:!0,sequenceDiagram:!0}),Be("#"+e+" p:first").addClass("ReactMarkdown")}),200)},n.operations=function(e,t){n.setState({operationstrue:!0});var o,i=n.state.ChallengesDataList;"up"===t?o="/shixuns/"+i.shixun_identifier+"/challenges/"+e+"/index_up.json":"down"===t&&(o="/shixuns/"+i.shixun_identifier+"/challenges/"+e+"/index_down.json"),n.state.operate&&(n.setState({operate:!1}),j.a.get(o).then((function(e){200===e.status&&(n.setState({operate:!0,operationstrue:!1}),n.ChallengesList())})).catch((function(e){n.setState({operate:!0,operationstrue:!1}),n.ChallengesList()})))},n.delOperations=function(e){n.setState({sumid:e,sumidtype:!0})},n.clonedelOperationss=function(){n.setState({sumidtype:!1})},n.delOperationss=function(){var e=n.state,t=e.ChallengesDataList,o=e.sumid,i="/shixuns/"+t.shixun_identifier+"/challenges/"+o+".json";n.state.operate&&(n.setState({operate:!1,sumidtype:!1}),j.a.delete(i,{withCredentials:!0}).then((function(e){200===e.status&&(n.setState({operate:!0,sumidtype:!1}),n.ChallengesList()),n.ChallengesList()})).catch((function(e){n.setState({operate:!0,sumidtype:!1}),n.ChallengesList()})))},n.startgameid=function(e){var t="/shixuns/"+e+"/shixun_exec.json";j.a.get(t).then((function(e){-2===e.data.status?n.setState({shixunsreplace:!0,hidestartshixunsreplacevalue:e.data.message+".json"}):-1===e.data.status||(-3===e.data.status?n.setState({shixunsmessage:e.data.message,startshixunCombattype:!0}):window.location.href="/tasks/"+e.data.game_identifier)})).catch((function(e){}))},n.hidestartshixunsreplace=function(e){n.setState({isSpin:!0}),j.a.get(e).then((function(e){200===e.status&&(L.a.success("\u91cd\u7f6e\u6210\u529f\uff0c\u6b63\u5728\u8fdb\u5165\u5b9e\u8bad\uff01"),n.startgameid(e.data.shixun_identifier),n.setState({shixunsreplace:!1,isSpin:!1}))})).catch((function(e){}))},n.EditTraining=function(e,t,o){var i=n.state.ChallengesDataList;window.location.href="/shixuns/"+i.shixun_identifier+"/challenges/"+t+o},n.startshixunCombat=function(e,t,o){if(!1!==n.props.checkIfLogin())if(!1!==n.props.checkIfProfileCompleted()){var i=n.state.ChallengesDataList;n.setState({startbtns:!0});var r="/shixuns/"+i.shixun_identifier+"/shixun_exec.json?challenge_id="+o;j.a.get(r).then((function(e){-2===e.data.status?n.setState({startbtns:!1,shixunsreplace:!0,hidestartshixunsreplacevalue:e.data.message+".json"}):-1===e.data.status?n.setState({startbtns:!1}):-3===e.data.status?n.setState({shixunsmessage:e.data.message,startshixunCombattype:!0,startbtns:!1}):window.location.href="/tasks/"+e.data.game_identifier})).catch((function(e){}))}else n.setState({AccountProfiletype:!0});else n.props.showLoginDialog()},n.hidestartshixunCombattype=function(){n.setState({startshixunCombattype:!1})},n.hideAccountProfile=function(){n.setState({AccountProfiletype:!1})},n.opentitle=function(){n.setState({opentitletype:!n.state.opentitletype})},n.state={ChallengesDataList:void 0,operate:!0,startbtns:!1,sumid:"",sumidtype:!1,startshixunCombattype:!1,shixunsreplace:!1,shixunsmessage:"",hidestartshixunsreplacevalue:"",operationstrue:!1,isSpin:!1,boxoffsetHeigh:0,opentitletype:!0,isopentitletype:"Less"},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){"greater"===this.state.isopentitletype||this.ChallengesList()}},{key:"render",value:function(){var e=this,t=this.state,n=t.ChallengesDataList,o=t.startbtns,i=t.sumidtype,r=t.startshixunCombattype,a=t.shixunsreplace,s=t.shixunsmessage,l=t.hidestartshixunsreplacevalue,c=t.operationstrue,u=t.AccountProfiletype,d=this.props.loadingContent;null!=n&&this.updatamakedown("ReactMarkdown");var f=this.props.match.params.shixunId,g=h.a.createElement(D.a,{type:"loading",style:{fontSize:24},spin:!0});return h.a.createElement(h.a.Fragment,null,!0===u?h.a.createElement(T.a,Object.assign({hideAccountProfile:function(){return e.hideAccountProfile()}},this.props,this.state)):"",d?h.a.createElement(U.a,null):h.a.createElement("div",null,h.a.createElement("style",null,"\n .task-item{\n margin-bottom: 20px;\n padding-bottom: 20px;\n margin-top: 10px;\n }\n "),h.a.createElement("p",{className:"clearfix mb20 edu-back-white"},h.a.createElement("div",{className:"shixunjianjie"},h.a.createElement("span",{className:"font-16 fl"},"\u7b80\u4ecb"),this.props.identity<5&&n&&n.shixun_status<3?h.a.createElement("a",{href:"/shixuns/"+f+"/settings?edit=1",className:"fr color-blue font-14"},"\u7f16\u8f91"):"",this.props.user&&!0===this.props.user.main_site&&this.props.identity<5?h.a.createElement("a",{className:"fr font-14 color-blue mr20",href:"/forums/2943",target:"_blank"},"\u5b9e\u8bad\u5236\u4f5c\u6307\u5357"):""),h.a.createElement("div",null,h.a.createElement("div",{className:"pd20",id:"shixunchallengesid"},h.a.createElement("style",null,"\n .editormd-html-preview, .editormd-preview-container {\n width: 100% !important;\n }\n "),h.a.createElement("style",null,"\n .markdown-body img{\n min-height: 200px;\n }\n "),void 0===n||n&&""===n.description||n&&null===n.description||n&&void 0===n.description?h.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t#shixunchallengesid{\n\t\t\t\t\t\t\t\t \tmax-height: 300px;\n\t\t\t\t\t\t\t\t\t overflow: hidden;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t"):"",void 0===n||n&&""===n.description||n&&null===n.description||n&&void 0===n.description||"greater"!==this.state.isopentitletype||!0!==this.state.opentitletype?"":h.a.createElement("style",null,"\n #shixunchallengesid{\n max-height:260px;\n overflow: hidden;\n }\n "),h.a.createElement("div",{className:"justify break_full_word new_li ",id:"challenge_editorMd_description"},void 0===n||n&&""===n.description||n&&null===n.description||n&&void 0===n.description?h.a.createElement("div",{className:"edu-tab-con-box clearfix edu-txt-center"},this.props.identity<5?h.a.createElement("img",{className:"newedu-nodata-img mb20",src:Object(b.L)("images/educoder/shixunnodata.png")}):h.a.createElement("img",{className:"edu-nodata-img mb20",src:Object(b.L)("images/educoder/nodata.png")}),h.a.createElement("p",{className:"edu-nodata-p mb80"},"\u6682\u65f6\u8fd8\u6ca1\u6709\u76f8\u5173\u6570\u636e\u54e6\uff01")):h.a.createElement("p",{id:"ReactMarkdown",style:{overflow:"hidden"}},void 0===n||n&&null===n.description?"":h.a.createElement("div",{className:"markdown-body",dangerouslySetInnerHTML:{__html:Object(b.Z)(n.description).replace(/\u2581/g,"\u2581\u2581\u2581")}})))),h.a.createElement("style",null,"\n .ant-divider-horizontal.ant-divider-with-text-center.ant-divider-dashed::before{\n border: none !important\n }\n .ant-divider-horizontal.ant-divider-with-text-center.ant-divider-dashed::after{\n border: none !important\n }\n "),"Less"===this.state.isopentitletype?"":!0===this.state.opentitletype?h.a.createElement(We.a,{dashed:!0,onClick:function(){return e.opentitle()},className:"pointer Breadcrumbfont color-grey-9 "},h.a.createElement("a",{className:"font-14 color-grey-9"},"\u9605\u8bfb\u5168\u6587 ",h.a.createElement("i",{className:"iconfont icon-jiantou9 font-14"}))):h.a.createElement(We.a,{dashed:!0,onClick:function(){return e.opentitle()},className:"pointer Breadcrumbfont color-grey-9 "},h.a.createElement("a",{className:"font-14 color-grey-9"},"\u6536\u8d77\u5168\u6587 ",h.a.createElement("i",{className:"iconfont icon-changyongtubiao-xianxingdaochu-zhuanqu- font-14"}))))),h.a.createElement("div",{className:"shixunjianjiecballenges edu-back-white boreee"},h.a.createElement("span",{className:"font-16 fl"},"\u5168\u90e8\u4efb\u52a1"),h.a.createElement("span",{className:"fr mt2"},this.props.identity<5&&n&&0===n.shixun_status?h.a.createElement(p.b,{to:"/shixuns/"+f+"/challenges/new",className:"fr"},h.a.createElement(w.a,{type:"primary",className:"edu-default-btn edu-greenback-btn"},"\u65b0\u589e\u5b9e\u8df5\u4efb\u52a1")):"",this.props.identity<5&&n&&0===n.shixun_status?h.a.createElement(p.b,{to:"/shixuns/"+f+"/challenges/newquestion",className:"fr mr20"},h.a.createElement(w.a,{type:"primary",className:"edu-default-btn edu-greenback-btn"},"\u65b0\u589e\u9009\u62e9\u9898\u4efb\u52a1")):"")),h.a.createElement("div",{className:"alltask edu-back-white padding1020pxshixun"},void 0===n||void 0===n.challenge_list||0===n.challenge_list.length?h.a.createElement("div",{className:"alltask"},h.a.createElement("div",{className:"edu-tab-con-box clearfix edu-txt-center"},this.props.identity<5?h.a.createElement("img",{className:"newedu-nodata-img mb20",src:Object(b.L)("images/educoder/shixunnodata.png")}):h.a.createElement("img",{className:"edu-nodata-img mb20",src:Object(b.L)("images/educoder/nodata.png")}),h.a.createElement("p",{className:"edu-nodata-p mb80"},"\u6682\u65f6\u8fd8\u6ca1\u6709\u76f8\u5173\u6570\u636e\u54e6\uff01"))):n.challenge_list.map((function(t,i){return h.a.createElement("div",{className:"task-item",key:i,id:"shixun_index_"+t.position},h.a.createElement("div",{className:"clearfix mb5"},h.a.createElement("div",{className:"mr15 font-16 fl shixunstartbutton666666"},"\u7b2c",i+1,"\u5173\uff1a",0===t.st?"\u5b9e\u8df5\u9898":"\u9009\u62e9\u9898",2===t.status?h.a.createElement(w.a,{type:"primary",shape:"round",size:"small",className:"ml30 shixunstartbutton33BD8C"},"\u5df2\u5b8c\u6210"):"",!0===n.allow_skip&&1===t.status?h.a.createElement(w.a,{type:"primary",shape:"round",size:"small",className:"ml30 shixunstartbuttonFF6601"},"\u672a\u5b8c\u6210"):"",!1===n.allow_skip&&1===t.status?h.a.createElement(w.a,{type:"primary",shape:"round",size:"small",className:"ml30 shixunstartbuttonFF6601"},"\u672a\u5b8c\u6210"):"",0===t.status?h.a.createElement(w.a,{type:"primary",shape:"round",size:"small",className:"ml30 shixunstartbuttonFF6601"},"\u672a\u5b8c\u6210"):""),h.a.createElement("span",{className:"fr"},null!=t.delete_url&&h.a.createElement(O.a,{placement:"bottom",title:"\u5220\u9664"},h.a.createElement("a",{onClick:function(){return e.delOperations(t.challenge_id)},style:{display:!0===e.props.user.admin||e.props.identity<5&&0===n.shixun_status?"block":"none"},className:"fl mr25"},h.a.createElement("i",{className:"iconfont icon-shanchu_Hover"}))),null!=t.up_url&&h.a.createElement(O.a,{placement:"bottom",title:"\u5411\u4e0a\u79fb\u52a8"},h.a.createElement("a",{onClick:!0===c?"":function(){return e.operations(t.challenge_id,"up")},style:{display:!0===e.props.user.admin||e.props.identity<5&&0===n.shixun_status?"block":"none"},className:"fl mr25"},h.a.createElement("i",{className:"iconfont icon-shangyi_Hover"}))),null!=t.down_url&&h.a.createElement(O.a,{placement:"bottom",title:"\u5411\u4e0b\u79fb\u52a8"},h.a.createElement("a",{onClick:!0===c?"":function(){return e.operations(t.challenge_id,"down")},style:{display:!0===e.props.user.admin||e.props.identity<5&&0===n.shixun_status?"block":"none"},className:"fl mr25"},h.a.createElement("i",{className:"iconfont icon-xiayi_Hover"}))),1===t.st?h.a.createElement(O.a,{placement:"bottom",title:"\u7f16\u8f91"},h.a.createElement(p.b,{style:{display:!0===e.props.user.admin||e.props.identity<5&&n.shixun_status<3?"block":"none"},to:"/shixuns/"+n.shixun_identifier+"/challenges/"+t.challenge_id+"/editquestion",className:"fl"},h.a.createElement("i",{className:"iconfont icon-bianji_Hover"}))):h.a.createElement(O.a,{placement:"bottom",title:"\u7f16\u8f91"},h.a.createElement(p.b,{style:{display:!0===e.props.user.admin||e.props.identity<5&&n.shixun_status<3?"block":"none"},to:"/shixuns/"+n.shixun_identifier+"/challenges/"+t.challenge_id+"/editcheckpoint",className:"fl"},h.a.createElement("i",{className:"iconfont icon-bianji_Hover"}))))),h.a.createElement("div",{className:"clearfix mb5"},(e.props.identity<5&&t.st,h.a.createElement("div",{className:"font-16 color05101a fonthiddens"},t.name)),h.a.createElement(S.a,{keyboard:!1,visible:o,closable:!1,footer:null,className:"startbtnModal"},h.a.createElement(C.a,{size:"large"}))),h.a.createElement("div",{className:"clearfix"},h.a.createElement("style",null,"\n .task-colspan {\n min-width: 18% !important;\n }\n "),h.a.createElement("span",{className:"task-colspan"},h.a.createElement("span",{className:"shixunbingbaocun12"},"\u6b63\u5728\u6311\u6218\uff1a "),h.a.createElement("span",{className:"shixunbingbaocun33312"},t.playing_count,"\u4eba")),h.a.createElement("span",{className:"task-colspan"},h.a.createElement("span",{className:"shixunbingbaocun12"},"\u5b8c\u6210\u6311\u6218\uff1a "),h.a.createElement("span",{className:"shixunbingbaocun33312"},t.passed_count,"\u4eba")),h.a.createElement("span",{className:"task-colspan"},h.a.createElement("span",{className:"shixunbingbaocun12"},"\u53ef\u83b7\u7ecf\u9a8c\uff1a "),h.a.createElement("span",{className:"shixunbingbaocun33312"},t.score,"\u70b9"))))}))),h.a.createElement(S.a,{keyboard:!1,title:"\u63d0\u793a",visible:i,closable:!1,footer:null},h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16"},h.a.createElement("span",{className:"font-17 mt10"},"\u662f\u5426\u5220\u9664\u8be5\u5173\u5361\uff1f")),h.a.createElement("p",{className:"task-popup-text-center font-16 mt30"},h.a.createElement("a",{className:"pop_close task-btn mr20",onClick:function(){return e.clonedelOperationss()}},"\u53d6\u6d88"),h.a.createElement("a",{onClick:function(){return e.delOperationss()},className:"task-btn task-btn-orange "},"\u786e\u5b9a")))),h.a.createElement(S.a,{keyboard:!1,title:"\u63d0\u793a",visible:r,closable:!1,footer:null},h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16 pb20"},"\u76ee\u524d\u8be5\u5b9e\u8bad\u9879\u76ee\u5c1a\u5728\u5185\u6d4b\u4e2d\uff0c\u5c06\u4e8e",s,"\u4e4b\u540e\u5f00\u653e\uff0c\u8c22\u8c22\uff01 ")),h.a.createElement("div",{className:"task-popup-submit clearfix"},h.a.createElement("a",{className:"task-btn task-btn-orange fr mr51",onClick:this.hidestartshixunCombattype},"\u77e5\u9053\u4e86\u5566"))),h.a.createElement(S.a,{keyboard:!1,title:"\u63d0\u793a",visible:a,closable:!1,footer:null},h.a.createElement(C.a,{indicator:g,spinning:this.state.isSpin},h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("p",{className:"task-popup-text-center font-16 pb20"},"\u5b9e\u8bad\u5df2\u7ecf\u66f4\u65b0\u4e86\uff0c\u6b63\u5728\u4e3a\u60a8\u91cd\u7f6e!")),h.a.createElement("div",{className:"task-popup-submit clearfix"},h.a.createElement("a",{className:"task-btn task-btn-orange fr mr51",onClick:function(){return e.hidestartshixunsreplace(l)}},"\u77e5\u9053\u4e86"))))))}}]),t}(d.Component),ze=n(35),Ke=(n(1909),n(1940)),Ue=n(1128),qe=(n(45),window.$,Ke.a.Countdown),Ge=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).ChallengesList=function(){var e="/shixuns/"+n.props.match.params.shixunId+"/challenges.json";j.a.get(e).then((function(e){200===e.status&&(403===e.data.status||401===e.data.status||500===e.data.status||(Object(b.F)(n.props.shixunsDetails.name,e.data.description),n.setState({ChallengesDataList:e.data,sumidtype:!1}),""!==e.data.description&&null!==e.data.description&&void 0!==e.data.description||n.setState({isopentitletype:"Less"}),n.getjianjiesize()))})).catch((function(e){}))},n.getjianjiesize=function(){var e,t=n.state.ChallengesDataList,o=document.getElementById("shixunchallengesid");o&&(e=o.offsetHeight,void 0===t||t&&""===t.description||t&&null===t.description||t&&void 0===t.description||"greater"===n.state.isopentitletype||(300<=e?n.setState({opentitletype:!1,isopentitletype:"greater",boxoffsetHeigh:e}):n.setState({isopentitletype:"Less",boxoffsetHeigh:e})))},n.componentDidUpdate=function(e,t){t.ChallengesDataList!=n.state.ChallengesDataList&&("greater"===n.state.isopentitletype||n.getjianjiesize())},n.gettimeinfo_with_tpm=function(e,t){j.a.get("/jupyters/timeinfo_with_tpm.json",{params:e}).then((function(e){if(403!==e.data.status&&401!==e.data.status&&500!==e.data.status&&0===e.data.status)if(null===e.data.remainingSeconds)n.handleClickResetTpi();else{var o=e.data.remainingSeconds,i=1e3*o,r=1e3*(o-300<=0?0:o-300);setTimeout((function(){n.setState({jupytertime:Date.now()+i,endtimes:0==r?Date.now()+1e3:Date.now()+r})}),500),!0===t&&n.props.showNotification("\u5ef6\u957f\u6210\u529f!")}})).catch((function(e){}))},n.updatamakedowns=function(){n.setState({loading:!0,booljupyterurls:!1});var e={identifier:n.props.match.params.shixunId};j.a.get("/jupyters/get_info_with_tpm.json",{params:e}).then((function(e){403!==e.data.status&&401!==e.data.status&&500!==e.data.status&&0===e.data.status?(setTimeout((function(){n.setState({jupyter_url:e.data.url,jupyter_urls:e.data.url,jupyter_port:e.data.port,booljupyterurls:!0})}),800),n.setState({})):setTimeout((function(){n.setState({booljupyterurls:!0})}),600)})).catch((function(e){setTimeout((function(){n.setState({booljupyterurls:!0})}),600)}))},n.modifyjupyter=function(){setTimeout((function(){var e=n.props.match.params.shixunId,t="";try{t=parseInt(n.state.jupyter_port)}catch(e){t=n.state.jupyter_port}var o={identifier:e,jupyter_port:t};j.a.get("/jupyters/save_with_tpm.json",{params:o}).then((function(e){0===e.data.status?(n.props.showNotification("\u4fdd\u5b58\u6210\u529f!"),setTimeout((function(){n.setState({showtime:!1})}),800)):(n.setState({showtime:!1}),n.props.showNotification(e.data.message))})).catch((function(e){n.setState({showtime:!1}),n.props.showNotification("\u5b9e\u8bad\u4fdd\u5b58\u5931\u8d25!")}))}),800)},n.opentitle=function(){n.setState({opentitletype:!n.state.opentitletype})},n.onclki=function(e){n.setState({enlarge:e})},n.Importingfiles=function(){},n.handleChange=function(e){if("done"==e.file.status||"uploading"==e.file.status||"removed"===e.file.status){var t=e.fileList;if(n.setState({fileList:Object(b.C)(t)}),"done"===e.file.status&&e.file.response&&(-1===e.file.response.status||e.file.response.status),e.file.response&&-1!==e.file.response.status&&"-1"!==e.file.response.status&&0===e.file.response.status){try{n.modifyjupyter()}catch(e){}try{n.setState({jupyter_url:null,booljupyterurls:!1}),setTimeout((function(){n.setState({jupyter_url:n.state.jupyter_urls,booljupyterurls:!0})}),1e3),n.props.showNotification("\u4e0a\u4f20\u6587\u4ef6\u6210\u529f!")}catch(e){n.setState({jupyter_url:null,booljupyterurls:!1}),setTimeout((function(){n.setState({jupyter_url:n.state.jupyter_urls,booljupyterurls:!0})}),1e3)}}}},n.handleClickResetTpisync_code=function(e){n.setState({jupyter_url:null,booljupyterurls:!1}),j.a.get("/jupyters/reset_with_tpm.json",{params:{identifier:e}}).then((function(e){0===e.data.status&&(setTimeout((function(){n.setState({jupyter_url:e.data.url,jupyter_port:e.data.port,booljupyterurls:!0})}),500),n.props.showNotification("\u91cd\u7f6e\u73af\u5883\u6210\u529f!"),setTimeout((function(){n.setState({booljupyterurls:!0})}),1e3))}))},n.handleClickResetTpi=function(){var e=n.props.match.params.shixunId,t=Object(ze.a)(n);S.a.confirm({title:"\u91cd\u7f6e\u73af\u5883",content:h.a.createElement("p",{style:{lineHeight:"24px"}},"\u662f\u5426\u786e\u5b9a\u91cd\u7f6e\u73af\u5883\uff1f"),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:function(){t.handleClickResetTpisync_code(e)},onCancel:function(){}})},n.onFinish=function(){S.a.destroyAll();var e=n.props.match.params.shixunId,t=Object(ze.a)(n);S.a.confirm({title:"\u5012\u8ba1\u65f6\u622a\u6b62",content:h.a.createElement("p",{style:{lineHeight:"24px"}},"\u670d\u52a1\u5df2\u4e2d\u65ad\uff0c\u662f\u5426\u786e\u8ba4\u91cd\u7f6e\u5b9e\u9a8c\u73af\u5883\uff1f"),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:function(){t.handleClickResetTpisync_code(e)}})},n.onendFinish=function(){var e=n.props.match.params.shixunId,t=Object(ze.a)(n);S.a.confirm({title:"\u670d\u52a1\u4e2d\u65ad\u63d0\u9192",content:h.a.createElement("p",{style:{lineHeight:"24px"}},"jupyter\u5c06\u4e8e",h.a.createElement("span",{className:"Countdownfonttpm"},h.a.createElement(qe,{value:n.state.jupytertime,format:"HH:mm:ss",onFinish:n.onFinish})),"\u65f6\u95f4\u540e\u670d\u52a1\u4e2d\u65ad\uff0c\u662f\u5426\u9700\u8981\u5ef6\u957f\u4f7f\u7528\u65f6\u95f4\uff1f"),okText:"\u7acb\u5373\u5ef6\u957f",cancelText:"\u4e0d\u9700\u8981",onOk:function(){t.onendhandleClickResetTpi(e)}})},n.onendhandleClickResetTpi=function(e){var t={identifier:e};j.a.get("/jupyters/active_with_tpm.json",{params:{identifier:e}}).then((function(e){0===e.data.status&&n.gettimeinfo_with_tpm(t,!0)}))},n.state={ChallengesDataList:void 0,operate:!0,startbtns:!1,iFrameHeight:"0px",jupyter_port:0,jupyter_url:null,jupyter_urls:null,username:"",booljupyterurls:!1,loading:!1,boxoffsetHeigh:0,opentitletype:!0,isopentitletype:"Less",enlarge:!1,fileList:[],shuaxin:!1,showtime:!1,jupytertime:Date.now()+36e5,endtimes:!1},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this;setTimeout(this.ChallengesList(),1e3);var n={identifier:this.props.match.params.shixunId};j.a.get("/jupyters/get_info_with_tpm.json",{params:n}).then((function(t){403!==t.data.status&&401!==t.data.status&&500!==t.data.status&&0===t.data.status?(e.gettimeinfo_with_tpm(n),setTimeout((function(){e.setState({jupyter_url:t.data.url,jupyter_urls:t.data.url,jupyter_port:t.data.port,booljupyterurls:!0})}),800)):setTimeout((function(){e.setState({booljupyterurls:!0})}),600)})).catch((function(t){setTimeout((function(){e.setState({booljupyterurls:!0})}),600)})),setTimeout(this.getjianjiesize(),1e3),window.addEventListener("message",(function(n){n&&n.data&&"jupytermessage"===n.data&&!1===e.state.showtime&&(t.modifyjupyter(),e.setState({showtime:!0}))}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.ChallengesDataList,o=t.booljupyterurls,i=t.enlarge,r=t.fileList,a=t.endtimes,s=this.props.match.params.shixunId,l=(!(this.props&&this.props.current_user&&this.props.current_user.is_teacher)||this.props.current_user.is_teacher,!!(this.props&&this.props.current_user&&this.props.current_user.business)&&this.props.current_user.business),c=!!(this.props&&this.props.current_user&&this.props.current_user.admin)&&this.props.current_user.admin,u=!1;try{u=!!(this.props.identity<5&&n&&n.shixun_status<3)}catch(t){}var d={width:600,fileList:r,multiple:!1,data:{identifier:s},action:"".concat(Object(b.R)()),showUploadList:!1,onChange:this.handleChange,beforeUpload:function(t){if(-1===t.name.indexOf(".ipynb"))return e.props.showNotification("\u8bf7\u4e0a\u4f2010m\u4ee5\u5185ipynb\u683c\u5f0f\u7684\u6587\u4ef6!"),!1;var n=t.size/1024/1024<10;return n||e.props.showNotification("\u8bf7\u4e0a\u4f2010m\u4ee5\u5185ipynb\u683c\u5f0f\u7684\u6587\u4ef6!"),n}};return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",null,h.a.createElement("style",null,"\n\t\t\t\t\t\t.ant-notification{\n\t\t\t\t\t\t\n\t\t\t\t\t\t position: fixed !important;\n z-index: 3000 !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t .ant-modal-wrap {\n position: fixed !important;\n z-index: 3000 !important;\n margin-top: 100px !important;\n\t\t\t\t\t }\n\t\t\t\t\t .Countdowntypes{\n\t\t\t\t\t width:1px;\n\t\t\t\t\t height:1px;\n\t\t\t\t\t overflow: hidden;\n\t\t\t\t display: block;\n\t\t\t\t\t }\n\t\t\t\t\t\t"),h.a.createElement("span",{className:"Countdowntypes"},h.a.createElement(qe,{value:this.state.jupytertime,format:"HH:mm:ss",onFinish:this.onFinish}),!1===a?"":h.a.createElement(qe,{value:a,format:"HH:mm:ss",onFinish:this.onendFinish})),h.a.createElement("p",{className:"clearfix mb20 edu-back-white"},h.a.createElement("div",{className:"shixunjianjie"},h.a.createElement("span",{className:"font-16 fl"},"\u7b80\u4ecb"),h.a.createElement(O.a,{placement:"bottom",title:"\u7f16\u8f91"},h.a.createElement("a",{style:{display:this.props.identity<5&&n&&n.shixun_status<3?"block":"none"},href:"/shixuns/"+s+"/settings?edit=1",className:"fr color-blue font-14"},"\u7f16\u8f91"))),h.a.createElement("div",null,h.a.createElement("style",null,"\n .markdown-body img{\n min-height: 200px;\n }\n "),void 0===n||n&&""===n.description||n&&null===n.description||n&&void 0===n.description?h.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t#shixunchallengesid{\n\t\t\t\t\t\t\t\t \tmax-height: 300px;\n\t\t\t\t\t\t\t\t\t overflow: hidden;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t"):"",void 0===n||n&&""===n.description||n&&null===n.description||n&&void 0===n.description||"greater"!==this.state.isopentitletype||!0!==this.state.opentitletype?"":h.a.createElement("style",null,"\n #shixunchallengesid{\n max-height:260px;\n overflow: hidden;\n }\n "),h.a.createElement("div",{className:"pd20",id:"shixunchallengesid"},h.a.createElement("p",{id:"ReactMarkdown",style:{overflow:"hidden"}},void 0===n||n&&""===n.description||n&&null===n.description||n&&void 0===n.description?h.a.createElement("div",{className:"edu-tab-con-box clearfix edu-txt-center"},this.props.identity<5?h.a.createElement("img",{className:"newedu-nodata-img mb20",src:Object(b.L)("images/educoder/shixunnodata.png")}):h.a.createElement("img",{className:"edu-nodata-img mb20",src:Object(b.L)("images/educoder/nodata.png")}),h.a.createElement("p",{className:"edu-nodata-p mb80"},"\u6682\u65f6\u8fd8\u6ca1\u6709\u76f8\u5173\u6570\u636e\u54e6\uff01")):h.a.createElement("p",{id:"ReactMarkdown",style:{overflow:"hidden"}},void 0===n||n&&null===n.description?"":h.a.createElement("div",{className:"markdown-body",dangerouslySetInnerHTML:{__html:Object(b.Z)(n.description).replace(/\u2581/g,"\u2581\u2581\u2581")}})))),h.a.createElement("style",null,"\n .ant-divider-horizontal.ant-divider-with-text-center.ant-divider-dashed::before{\n border: none !important\n }\n .ant-divider-horizontal.ant-divider-with-text-center.ant-divider-dashed::after{\n border: none !important\n }\n "))),h.a.createElement("div",{className:"justify break_full_word new_li edu-back-white",id:"challenge_editorMd_description"},h.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t.intermediatecenter{\n\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\tflex-direction: column;\n\t\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t.sortinxdirection{\n\t\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\t\tflex-direction:row;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t.xaxisreverseorder{\n\t\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\t\tflex-direction:row-reverse;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t;\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t"),null===this.state.jupyter_url||void 0===this.state.jupyter_url?!0===i?h.a.createElement("div",{style:{height:"63px"},className:i?"shixunjianjiecballenges edu-back-white intermediatecenter fangdaone":"shixunjianjiecballenges edu-back-white mt20"},h.a.createElement("div",{className:i?"sortinxdirection jupyterswidth":"sortinxdirection"},h.a.createElement("div",{className:"renwuxiangssi sortinxdirection"},h.a.createElement("div",null,h.a.createElement("p",{className:"renwuxiangqdiv"},"\u4efb\u52a1\u8be6\u60c5")),h.a.createElement("div",null,h.a.createElement("p",{className:"renwuxiangqdivtest ml1 shixunbingbaocun"},"\uff08\u8bf7\u5c06\u5b9e\u8bad\u9898\u76ee\u5199\u5728\u4e0b\u65b9\u5e76\u4fdd\u5b58\uff09"))),h.a.createElement("div",{className:"renwuxiangssit xaxisreverseorder"},!0===i?h.a.createElement("i",{className:"iconfont icon-suoxiao2 font-18 ml2 ysliconfont",style:{marginLeft:"30px"},onClick:function(){return e.onclki(!1)}}):h.a.createElement("i",{className:"iconfont icon-fangda font-18 ml2 ysliconfont",style:{marginLeft:"30px"},onClick:function(){return e.onclki(!0)}}),h.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t.ant-upload-list{\n\t\t\t\t\t\t\t\t\t\t\t display:none\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t"),h.a.createElement(ce.a,d,h.a.createElement("div",{className:"challenbaocun",type:"upload"},h.a.createElement("p",{className:"challenbaocuntest",type:"upload"},"\u5bfc\u5165"))),h.a.createElement("button",{type:"button",className:"ant-btn deletebuttom chongzhistyles",onClick:this.handleClickResetTpi},h.a.createElement("span",null,"\u91cd\u7f6e\u73af\u5883"))))):"":!0===c||!0===l||!0===u?h.a.createElement("div",{style:{height:"63px"},className:i?"shixunjianjiecballenges edu-back-white intermediatecenter fangdaone":"shixunjianjiecballenges edu-back-white mt20"},h.a.createElement("div",{className:i?"sortinxdirection jupyterswidth":"sortinxdirection"},h.a.createElement("div",{className:"renwuxiangssi sortinxdirection"},h.a.createElement("div",null,h.a.createElement("p",{className:"renwuxiangqdiv"},"\u4efb\u52a1\u8be6\u60c5")),h.a.createElement("div",null,h.a.createElement("p",{className:"renwuxiangqdivtest ml1 shixunbingbaocun"},"\uff08\u8bf7\u5c06\u5b9e\u8bad\u9898\u76ee\u5199\u5728\u4e0b\u65b9\u5e76\u4fdd\u5b58\uff09"))),h.a.createElement("div",{className:"renwuxiangssit xaxisreverseorder"},!0===i?h.a.createElement("i",{className:"iconfont icon-suoxiao2 font-18 ml2 ysliconfont",style:{marginLeft:"30px"},onClick:function(){return e.onclki(!1)}}):h.a.createElement("i",{className:"iconfont icon-fangda font-18 ml2 ysliconfont",style:{marginLeft:"30px"},onClick:function(){return e.onclki(!0)}}),h.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t.ant-upload-list{\n\t\t\t\t\t\t\t\t\t\t\t display:none\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t"),h.a.createElement(ce.a,d,h.a.createElement("div",{className:"challenbaocun",type:"upload"},h.a.createElement("p",{className:"challenbaocuntest",type:"upload"},"\u5bfc\u5165"))),h.a.createElement("button",{type:"button",className:"ant-btn deletebuttom chongzhistyles",onClick:this.handleClickResetTpi},h.a.createElement("span",null,"\u91cd\u7f6e\u73af\u5883"))))):"",h.a.createElement("style",null,"\n\t\t\t\t\t\t\t\tiframe {\n\t\t\t\t\t\t\t\t\tborder-width: 0px;\n\t\t\t\t\t\t\t\t\tborder-style: inset;\n\t\t\t\t\t\t\t\t\tborder-color: initial;\n\t\t\t\t\t\t\t\t\tborder-image: initial;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tiframe {\n\t\t\t\t\t\t\t\t border-left: 1px solid #eeeeee;\n\t\t\t\t\t\t\t\t\tborder-right: 1px solid #eeeeee;\n\t\t\t\t\t\t\t\t\tborder-bottom: 1px solid #eeeeee;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#header{\n\t\t\t\t\t\t\tvisibility:hidden;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t"),!0===c||!0===l||!0===u?h.a.createElement("div",null,h.a.createElement("div",{className:"pb47"},null===this.state.jupyter_url||void 0===this.state.jupyter_url?!1===o?h.a.createElement("div",{className:i?"fangdatwo edu-back-white fangdatwoswidth":""},h.a.createElement(Ue.a,null)):h.a.createElement("div",{className:i?"fangdatwo edu-back-white fangdatwoswidth":""},h.a.createElement("div",{className:"mt50 intermediatecenter juplbool"},h.a.createElement("span",{className:"icon iconfontysl icon-jiazaishibai1"}),h.a.createElement("p",{className:"intermediatecenter sortinxdirection mt5 juplboolp"},h.a.createElement("p",{className:"colorbluetest"},"\u52a0\u8f7d\u5b9e\u8bad\u5931\u8d25\uff0c"),h.a.createElement("p",{className:"colorbluetwo",onClick:function(){return e.updatamakedowns()}},"\u91cd\u65b0\u52a0\u8f7d")))):h.a.createElement("div",{className:i?"fangdatwo edu-back-white":""},h.a.createElement("iframe",{src:this.state.jupyter_url,className:i?"fangdatwo":"",scrolling:"no",id:"frame",name:"framename",width:"100%",height:"700",frameBorder:"0"})))):"")))}}]),t}(d.Component),Ye=function(e){function t(e){return Object(a.a)(this,t),Object(l.a)(this,Object(c.a)(t).call(this,e))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.shixun,n=e.user,o=e.match,i=e.is_jupyter;return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"educontent clearfix mt30 mb80"},h.a.createElement("div",{className:"with65 fl "},h.a.createElement(H,Object.assign({match:o,user:n,shixun:t},this.props,{is_jupyter:this.props.is_jupyter})),!0===i?h.a.createElement(Ge,this.props):h.a.createElement(He,this.props)),h.a.createElement("div",{className:"with35 fr pl20"},h.a.createElement(B,this.props))))}}]),t}(d.Component),Ze=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).state={tpmLoading:!0,creator:{owner_id:""}},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.tpmLoading;return this.props.current_user,h.a.createElement(h.a.Fragment,null,e?h.a.createElement("div",{style:{minHeight:"886px"}}):h.a.createElement(Ye,Object.assign({},this.props,{is_jupyter:this.props.is_jupyter})))}}]),t}(d.Component),$e=window.$,Xe=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).updatamakedown=function(e){setTimeout((function(){window.editormd.markdownToHTML(e,{htmlDecode:"style,script,iframe",taskList:!0,tex:!0,flowChart:!0,sequenceDiagram:!0}),$e("#"+e+" p:first").addClass("ReactMarkdown"),$e("#collaborators_list_info").show()}),200)},n.state={PropaedeuticsListcontent:void 0,shixunId:void 0},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.match.params.shixunId;this.setState({shixunId:t});var n="/shixuns/"+t+"/propaedeutics.json";j.a.get(n).then((function(t){403===t.data.status||401===t.data.status||500===t.data.status||(null!=t.data.content?e.setState({PropaedeuticsListcontent:t.data.content}):e.setState({PropaedeuticsListcontent:""}))})).catch((function(e){}))}},{key:"render",value:function(){var e=this.props.loadingContent,t=this.state,n=t.PropaedeuticsListcontent,o=t.shixunId;return null!=n&&this.updatamakedown("ReactMarkdown"),h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"clearfix mb10 pl20 pr20",style:{display:this.props.identity<5&&this.props.status<3?"block":"none"}},h.a.createElement(O.a,{placement:"bottom",title:"\u7f16\u8f91"},h.a.createElement(p.b,{to:"/shixuns/"+o+"/update_propaedeutics",className:"fr audit_situationactive mt20",id:"edit_propaedeutics"},"\u7f16\u8f91"))),h.a.createElement("style",null,"\n .editormd-html-preview, .editormd-preview-container {\n width:100% !important;\n }\n "),e?h.a.createElement(U.a,null):h.a.createElement("div",{id:"collaborators_list_info",style:{display:"none",minHeight:"640px",padding:"20px 30px 30px 30px"}},void 0===n?"":h.a.createElement("p",{id:"ReactMarkdown"},void 0===n||""===n?h.a.createElement("div",{className:"alltask"},h.a.createElement("div",{className:"alltask"},h.a.createElement("div",{className:"edu-tab-con-box clearfix edu-txt-center"},h.a.createElement("img",{className:"edu-nodata-img mb20",src:Object(b.L)("images/educoder/nodata.png")}),h.a.createElement("p",{className:"edu-nodata-p mb20"},"\u6682\u65f6\u8fd8\u6ca1\u6709\u76f8\u5173\u6570\u636e\u54e6\uff01")))):h.a.createElement("textarea",null,n))))}}]),t}(d.Component),Je=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).state={shixunId:void 0},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentWillReceiveProps",value:function(){}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this.props,t=e.shixun,n=e.user,o=e.match;return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"tpmComment educontent clearfix mt30 mb80"},h.a.createElement("div",{className:"with65 fl edu-back-white commentsDelegateParent"},h.a.createElement(H,Object.assign({match:o,user:n,shixun:t},this.state,this.props,{is_jupyter:this.props.is_jupyter})),h.a.createElement(Xe,Object.assign({},this.props,this.state))),h.a.createElement("div",{className:"with35 fr pl20"},h.a.createElement(B,this.props))))}}]),t}(d.Component),Qe=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).state={},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.tpmLoading;return h.a.createElement(h.a.Fragment,null,e?h.a.createElement("div",{style:{minHeight:"886px"}}):h.a.createElement(Je,Object.assign({},this.props,{is_jupyter:this.props.is_jupyter})))}}]),t}(d.Component),et=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).Ranking_listList=function(e){var t="/shixuns/"+e+"/ranking_list.json";j.a.get(t).then((function(e){200===e.status&&(403===e.data.status||401===e.data.status||500===e.data.status||n.setState({Ranking_listData:e.data}))})).catch((function(e){}))},n.checkAddZone=function(e){return e<10?"0"+e.toString():e},n.dateTimeFormatter=function(e){if(!e)return"";e=new Date(e).getTime();var t=(e=new Date(e)).getFullYear(),o=e.getMonth()+1;o=n.checkAddZone(o);var i=e.getDate();i=n.checkAddZone(i);var r=e.getHours();r=n.checkAddZone(r);var a=e.getMinutes();return t+"-"+o+"-"+i+" "+r+":"+n.checkAddZone(a)},n.formatSeconds=function(e){var t=parseInt(e),n=0,o=0;60<t&&(n=parseInt(t/60),t=parseInt(t%60),60<n&&(o=parseInt(n/60),n=parseInt(n%60)));var i=parseInt(t)+"\u79d2";return 0<n&&(i=parseInt(n)+"\u5206"+i),0<o&&(i=parseInt(o)+"\u5c0f\u65f6"+i),i},n.state={Ranking_listData:[]},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.match.params.shixunId;setTimeout(this.Ranking_listList(e),1e3)}},{key:"render",value:function(){var e=this,t=this.state.Ranking_listData,n=this.props.loadingContent;return h.a.createElement(h.a.Fragment,null,n?h.a.createElement(U.a,null):h.a.createElement("div",{className:"padding20 edu-back-white",style:{minHeight:"640px"}},void 0===t||0===t.length?h.a.createElement("div",{className:"edu-txt-center mt100"},h.a.createElement("img",{src:Object(b.L)("images/educoder/gold-big.png"),style:{width:"115px",height:"145px"}}),h.a.createElement("p",{className:"color-grey-9 mt20"},"\u6211\u4eec\u5728\u7b49\u4f60\uff0c\u4e0d\u8f7b\u8a00\u653e\u5f03")):t.map((function(t,n){var o=n+1;return h.a.createElement("div",{className:"mt20 clearfix rankings"},h.a.createElement("li",{className:"fl edu-txt-left with25 ml50"},h.a.createElement("img",{src:Object(b.L)("images/educoder/gold"+o+".png"),style:{display:n<3?"block":"none"},width:"24px",height:"30px",className:"mr20 fl mt5"}),h.a.createElement("span",{className:"mr20 fl rankingindex",style:{display:2<n?"block":"none"}},n+1),h.a.createElement("a",{href:t.users.user_url,className:"mr10 fl",target:"_blank"},h.a.createElement("img",{alt:"\u5934\u50cf",className:"radius",height:"40",src:Object(b.L)("images/"+t.users.image_url+"?1515212398"),width:"40"})),h.a.createElement("a",{href:t.users.user_url,className:"color-grey-6 task-hide",style:{maxWidth:"90px",display:"block"},target:"_blank"},t.users.name)),h.a.createElement("li",{className:"fl with23 edu-txt-center color-grey-9"},e.dateTimeFormatter(t.time),"\u901a\u5173"),h.a.createElement("li",{className:"fl with25 edu-txt-center"},null===t.use_time?"":e.formatSeconds(t.use_time)),h.a.createElement("li",{className:"fl with14 edu-txt-center color-yellow"},"+",t.gold,"\u91d1\u5e01 "))}))))}}]),t}(d.Component),tt=function(e){function t(e){return Object(a.a)(this,t),Object(l.a)(this,Object(c.a)(t).call(this,e))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.shixun,n=e.user,o=e.match;return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"tpmComment educontent clearfix mt30 mb80"},h.a.createElement("div",{className:"with65 fl edu-back-white commentsDelegateParent"},h.a.createElement(H,Object.assign({match:o,user:n,shixun:t},this.props,{is_jupyter:this.props.is_jupyter})),h.a.createElement(et,this.props)),h.a.createElement("div",{className:"with35 fr pl20"},h.a.createElement(B,this.props))))}}]),t}(d.Component),nt=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).state={},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.tpmLoading,t=this.props.current_user;return h.a.createElement(h.a.Fragment,null,e?h.a.createElement("div",{style:{minHeight:"886px"}}):h.a.createElement(tt,Object.assign({},this.props,this.state,{user:t,aboutFocus:this.props.aboutFocus,is_jupyter:this.props.is_jupyter})))}}]),t}(d.Component),ot=n(171),it=(n(2156),P.a.Group),rt=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).updatacomponentDiddata=function(e){var t="/shixuns/"+n.props.match.params.shixunId+"/collaborators.json";j.a.get(t,{params:{page:e||void 0}}).then((function(e){200===e.status&&(403===e.data.status||401===e.data.status||500===e.data.status||n.setState({collaboratorList:e.data}))})).catch((function(e){}))},n.CollaboratorsshowModal=function(e){"cooperation"===e?n.setState({Collaboratorsvisibleadmin:!1,Collaboratorslist:[],Searchadmin:[],addadminrediovalue:void 0}):"admin"===e?n.setState({Collaboratorsvisible:!1,Collaboratorslist:[],Searchadmin:[],addadminrediovalue:void 0}):"collaborators_deletetype"===e&&n.setState({collaborators_deletetype:!1,addadminrediovalue:void 0})},n.showCollaboratorsvisible=function(e){if(n.setState({Collaboratorslist:[],Searchadmin:void 0,onSearchcalue:""}),4<n.props.identity)n.props.showNotification("\u60a8\u6ca1\u6709\u6743\u9650");else if("cooperation"===e)n.setState({Collaboratorsvisibleadmin:!0,Collaboratorsvisible:!1});else{var t="/shixuns/"+n.props.match.params.shixunId+"/change_manager.json";j.a.get(t).then((function(e){200===e.status&&(403===e.data.status||401===e.data.status||500===e.data.status||n.setState({Collaboratorsvisible:!0,Collaboratorsvisibleadmin:!1,Collaboratorslist:e.data}))})).catch((function(e){}))}},n.onChange=function(e){n.setState({value:e.target.value})},n.onSearchadmins=function(e){n.setState({onSearchcalue:e.target.value})},n.onSearchadmin=function(e){var t=n.state,o=t.collaboratorList,i=t.user_name,r=t.school_name;n.setState({spinnings:!0});var a="/shixuns/"+n.props.match.params.shixunId+"/add_collaborators.json";j.a.get(a,{params:{user_name:i,school_name:r}}).then((function(e){if(403===e.data.status||401===e.data.status||500===e.data.status)n.setState({spinnings:!1});else{for(var t=e.data.users,i=0;i<t.length;i++)t[i].checked=!1;n.setState({Searchadmin:t,collaboratorList:o,spinnings:!1})}})).catch((function(e){}))},n.selectChangenickname=function(e,t){for(var o=n.state.Searchadmin,i=o,r=0;r<i.length;r++)i[t].checked=e.target.checked;for(var a,s=[],l=0;l<i.length;l++)!0===i[l].checked&&s.push(i[l]);a=o.length===s.length,0===i.length?n.setState({Searchadmin:i,allChangechecked:a}):n.setState({Searchadmin:i,allChangechecked:a,useristrue:!1})},n.allChange=function(e){for(var t=n.state.Searchadmin,o=0;o<t.length;o++)t[o].checked=e.target.checked;n.setState({Searchadmin:t,allChangechecked:e.target.checked})},n.submit_add_collaborators_form=function(){var e=n.props.match.params.shixunId,t=n.state,o=t.Searchadmin,i=t.collaboratorList,r=o,a=[];if(0!==r.length){for(var s=0;s<r.length;s++)!0===r[s].checked&&a.push(r[s].user_id);for(s=0;s<a.length;s++)for(var l=0;l<i.length;l++)if(a[s]===i[l].user.user_id)return void L.a.error("\u6dfb\u52a0\u5931\u8d25\uff0c\u91cd\u590d\u6dfb\u52a0\uff01");if(0!==a.length){var c="/shixuns/"+e+"/shixun_members_added.json";j.a.post(c,{user_ids:a}).then((function(e){n.updatacomponentDiddata(),n.props.showNotification(e.data.message),n.setState({Collaboratorsvisibleadmin:!1,Collaboratorslist:[],Searchadmin:[]})})).catch((function(e){}))}else n.setState({useristrue:!0})}else n.setState({Collaboratorslisttype:!0})},n.addadminredio=function(e){n.setState({addadminrediovalue:e})},n.submit_addadminredio=function(){var e=n.state.addadminrediovalue,t="/shixuns/"+n.props.match.params.shixunId+"/change_manager.json";if(void 0===e)return n.setState({addadminrediovalue:void 0}),void n.props.showNotification("\u6240\u9009\u4eba\u5458\u4e3a\u7a7a\uff0c\u6ca1\u6709\u66f4\u6362\u6210\u529f");j.a.post(t,{user_id:e}).then((function(e){n.setState({Collaboratorsvisible:!1,Collaboratorslist:[],Searchadmin:[],addadminrediovalue:void 0}),n.updatacomponentDiddata(),n.props.showNotification(e.data.message)})).catch((function(e){}))},n.collaborators_delete=function(e){n.setState({collaborators_deletetype:!0,collaborators_deletevalue:e})},n.collaborators_deletes=function(){var e=n.state.collaborators_deletevalue;if(null!==e){var t="/shixuns/"+n.props.match.params.shixunId+"/collaborators_delete.json?user_id="+e;j.a.delete(t).then((function(t){n.props.current_user.user_id!=e?(n.props.showNotification(t.data.message),n.updatacomponentDiddata(),n.setState({collaborators_deletetype:!1})):n.props.history.push("/shixuns")})).catch((function(e){}))}},n.loadMore=function(){var e=n.state.collaboratorList;n.setState({collaboratorListsum:e.length,collaboratorListsumtype:!1})},n.contentViewScrolledit=function(e){var t=parseInt(e.currentTarget.scrollTop),o=e.currentTarget.clientHeight+t;if(e.currentTarget.scrollHeight-o==0||e.currentTarget.scrollHeight-o==1||e.currentTarget.scrollHeight-o==-1){var i=n.state,r=i.page,a=i.collaboratorList,s=i.user_name,l=i.school_name,c=i.Searchadmin,u=r+1,d=c,h="/shixuns/"+n.props.match.params.shixunId+"/add_collaborators.json";j.a.get(h,{params:{user_name:s,school_name:l,page:u}}).then((function(e){if(403!==e.data.status&&401!==e.data.status&&500!==e.data.status){for(var t=e.data.users,o=0;o<t.length;o++)t[o].checked=!1,d.push(t[o]);n.setState({Searchadmin:d,collaboratorList:a,page:u})}})).catch((function(e){}))}},n.onChangepageNumber=function(e){n.updatacomponentDiddata(e)},n.toggleHover=function(e,t){n.setState({hovertype:e,hoverkey:!1===e?void 0:t})},n.state={collaboratorList:[],Collaboratorsvisible:!1,Collaboratorsvisibleadmin:!1,value:1,page:1,Searchadmin:void 0,allChangechecked:!1,Collaboratorslist:[],Collaboratorslisttype:!1,collaborators_deletetype:!1,collaborators_deletevalue:null,onSearchcalue:"",collaboratorListsum:10,collaboratorListsumtype:!0,user_name:void 0,school_name:void 0,spinnings:!1,useristrue:!1,mylistansum:6,limit:20},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this,t="/shixuns/"+this.props.match.params.shixunId+"/collaborators.json";j.a.get(t).then((function(t){200===t.status&&(403===t.data.status||401===t.data.status||500===t.data.status||e.setState({collaboratorList:t.data}))})).catch((function(e){}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.collaboratorList,o=t.Collaboratorsvisible,i=t.Collaboratorsvisibleadmin,r=t.Searchadmin,a=t.allChangechecked,s=t.Collaboratorslist,l=t.Collaboratorslisttype,c=t.collaborators_deletetype,u=(t.onSearchcalue,t.collaboratorListsum,t.collaboratorListsumtype,t.user_name),d=t.school_name,p=t.useristrue,f=(t.mylistansum,t.page,t.limit,this.props.loadingContent,{display:"block",height:"30px",lineHeight:"30px"}),g=h.a.createElement(D.a,{type:"loading",style:{fontSize:24},spin:!0});return h.a.createElement(h.a.Fragment,null,h.a.createElement("style",null,"\n .sortinxdirectionbox{\n height: 76px;\n border-bottom: 1px solid #F4F4F4;\n }\n .pt25{\n padding-top:25px;\n }\n "),h.a.createElement("div",{className:"edu-back-white"},h.a.createElement("p",{className:"sortinxdirection sortinxdirectionbox",style:{display:this.props.identity<5?"flex":"none"}},h.a.createElement("div",{className:"yslwushiwidth"},h.a.createElement("p",{className:"edu-default-btn edu-greenback-btn ml20 height28 mt25 color333hezuo"},n&&n.member_count,"\u4eba")),h.a.createElement("div",{className:"yslwushiwidth xaxisreverseorder pt25"},h.a.createElement(w.a,{type:"primary",onClick:function(){return e.showCollaboratorsvisible("cooperation")},className:"edu-default-btn edu-greenback-btn mr20 heighthezuo34 yslwushiwidthbuton"},"\u6dfb\u52a0\u5408\u4f5c\u8005"),h.a.createElement(w.a,{type:"primary",ghost:!0,style:{display:1===this.props.identity?"flex":"none"},onClick:function(){return e.showCollaboratorsvisible("admin")},className:"edu-default-btn mr20 heighthezuo34"},"\u66f4\u6362\u7ba1\u7406\u5458"))),h.a.createElement(S.a,{keyboard:!1,title:"\u66f4\u6362\u7ba1\u7406\u5458",visible:o,closable:!1,footer:null},h.a.createElement("div",{className:"mb15 font-14 edu-txt-center color-orange-tip"},"\u9009\u62e9\u7684\u6210\u5458\u5c06\u4f1a\u6210\u4e3a\u65b0\u7684\u7ba1\u7406\u5458",h.a.createElement("br",null)," \u60a8\u5c06\u4e0d\u518d\u62e5\u6709\u7ba1\u7406\u5458\u7684\u6743\u9650\uff0c\u4f46\u60a8\u4ecd\u662f\u5408\u4f5c\u56e2\u961f\u7684\u4e00\u5458"),h.a.createElement("div",{className:"clearfix mb15 edu-bg-light-blue edu-max-h200"},h.a.createElement("ul",{className:""},h.a.createElement("li",{className:s&&0===s.length?"centertop20 clearfix":"clearfix"},s&&0===s.length?h.a.createElement("span",null,"\u8bf7\u5148\u5c06\u65b0\u7684\u7ba1\u7406\u5458\u901a\u8fc7 ",h.a.createElement("a",{className:"color-blue",onClick:function(){return e.showCollaboratorsvisible("cooperation")}},'"\u6dfb\u52a0\u5408\u4f5c\u8005"')," \u52a0\u5165\u5408\u4f5c\u8005\u5217\u8868"):"",h.a.createElement(it,{onChange:this.onChange},0===s.length?"":s.map((function(t,n){return h.a.createElement(P.a,{key:n,style:f,value:t.user_id,defaultChecked:!1,onClick:function(){return e.addadminredio(t.user_id)}},t.name)})))))),h.a.createElement("div",{className:"clearfix edu-txt-center mt20"},h.a.createElement("a",{className:"pop_close task-btn mb10 mr40 colorFFF",onClick:function(){return e.CollaboratorsshowModal("admin")}},"\u53d6\u6d88"),h.a.createElement("a",{className:"task-btn task-btn-orange",onClick:this.submit_addadminredio},"\u786e\u5b9a"))),!0===i?h.a.createElement(S.a,{keyboard:!1,title:"\u6dfb\u52a0\u5408\u4f5c\u8005",visible:i,closable:!1,footer:null,width:800},h.a.createElement("span",{className:"mr10"},"\u59d3\u540d\u6216\u624b\u673a\u53f7:"),h.a.createElement(I.a,{placeholder:"\u8bf7\u8f93\u5165\u59d3\u540d\u6216\u624b\u673a\u53f7\u7801\u641c\u7d22",value:u,onInput:function(t){e.setState({user_name:t.target.value})},style:{width:"215px"}}),h.a.createElement("span",{className:"label ml10 ",style:{minWidth:"36px"}},"\u5355\u4f4d:"),h.a.createElement(I.a,{placeholder:"\u8bf7\u8f93\u5165\u5355\u4f4d\u540d\u79f0",className:"ml10",value:d,onInput:function(t){e.setState({school_name:t.target.value})},style:{width:"215px"}}),h.a.createElement("a",{className:"task-btn task-btn-orange ml20",onClick:function(){return e.onSearchadmin()},style:{height:"30px",lineHeight:"30px",width:"70px"}},"\u641c\u7d22"),h.a.createElement("p",{className:"clearfix pl35 mt20"},h.a.createElement("span",{className:"fl edu-txt-w100 task-hide font-bd ml10 edu-txt-left"},"\u59d3\u540d"),h.a.createElement("span",{className:"fl edu-txt-w100 task-hide font-bd"},"\u804c\u4e1a"),h.a.createElement("span",{className:"fl edu-txt-w180 task-hide font-bd ml80"},"\u5355\u4f4d")),h.a.createElement("div",{className:"mt5",style:{background:"#f7f9fd"}},h.a.createElement(C.a,{indicator:g,spinning:this.state.spinnings},h.a.createElement("div",{className:"clearfix"},h.a.createElement("ul",{className:"upload_select_box fl",id:"search_not_teachers_list",onScroll:this.contentViewScrolledit},void 0===r?h.a.createElement("li",{style:{textAlign:"center"}},h.a.createElement("span",null,"\u8bf7\u8bd5\u8bd5\u641c\u7d22\u4e00\u4e0b")):0===r.length?h.a.createElement(ot.a,null):r.map((function(t,n){return h.a.createElement("li",{key:n,style:{display:"\u4e13\u4e1a\u4eba\u58eb"===t.identify?"none":"block"}},h.a.createElement(ue.a,{className:"fl mr20",checked:t.checked,onChange:function(t){return e.selectChangenickname(t,n)},id:t.user_id}),h.a.createElement("a",{className:"task-hide color-grey3 fl span1 edu-txt-w80 edu-txt-left"},t.nickname),h.a.createElement("span",{className:"task-hide fl color-grey edu-txt-w80 span2"},t.identify),h.a.createElement("span",{title:t.school_name,style:{width:"150px"},className:"span3 color-grey fl edu-txt-w260 task-hide ml50 task-hide"},t.school_name))})))))),h.a.createElement("div",{className:"mt10 clearfix"},h.a.createElement("span",{className:"fl mr15"},h.a.createElement(ue.a,{className:"fl",checked:a,onChange:this.allChange},"\u5168\u9009"),h.a.createElement("div",{className:"fl",style:{height:"27px"}},h.a.createElement("span",{className:"color-orange fl",id:"add_teacher_notice",style:{display:!0===l?"inline":"none"}},"\u8bf7\u81f3\u5c11\u9009\u62e9\u4e00\u4e2a\u7528\u6237")))),!0===p?h.a.createElement("span",{className:"color-red"},"\u8bf7\u5148\u9009\u62e9\u7528\u6237"):"",h.a.createElement("div",{className:"clearfix edu-txt-center mt20"},h.a.createElement("a",{className:"pop_close task-btn mb10 mr40 colorFFF",onClick:function(){return e.CollaboratorsshowModal("cooperation")}},"\u53d6\u6d88"),h.a.createElement("a",{className:"task-btn task-btn-orange",onClick:function(){return e.submit_add_collaborators_form()}},"\u786e\u5b9a"))):"",h.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t.collaborators-item-middles{width: 100% !important;}\n\t\t\t\t\t\t\t\t\t.ysltithead{\n\t\t\t\t\t\t\t\t\t padding-bottom: 20px;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t"),h.a.createElement("div",{className:"pl20",id:"collaborators_list_info"},void 0===n||0===n.length?"":n.members.map((function(t,n){return h.a.createElement("div",{className:"collaborators-item clearfix sortinxdirection ysltithead",key:n},h.a.createElement("a",{href:t.user.user_url,target:"_blank",className:"mr20 fl edu-position"},h.a.createElement("img",{alt:"\u7528\u6237\u5934\u50cf",className:"radius",height:"48",src:Object(b.L)("images/"+t.user.image_url),width:"48"}),h.a.createElement("span",{className:t&&t.user&&!0===t.user.shixun_manager?"ml20 yslusercjz newyslusercjz":"none "},h.a.createElement("p",{className:"yslusercjztest newyslusercjztest"},!0===t.user.shixun_manager?"\u521b\u5efa\u8005":""))),h.a.createElement("div",{className:"fl collaborators-item-middles"},h.a.createElement("p",{className:"mb10 sortinxdirection space-between hezuozhe655"},h.a.createElement("a",{href:t.user.user_url,target:"_blank",className:"yslusername"},t.user.name),!0===t.user.shixun_manager?"":h.a.createElement("span",null,h.a.createElement("i",{className:!0===e.state.hovertype&&n===e.state.hoverkey?"fontnewreds iconfont icon-shanchu_Hover":"fontneweees iconfont icon-shanchu_moren",style:{display:!1===e.props.power?"none":"block"},onClick:function(){return e.collaborators_delete(t.user.user_id)},onMouseEnter:function(){return e.toggleHover(!0,n)},onMouseLeave:function(){return e.toggleHover(!1,n)}}))),h.a.createElement("p",{className:"color-grey-B2 font-12 mb10 sortinxdirection mt14"},h.a.createElement("p",{className:"hezuozhe655 sortinxdirection space-between"},h.a.createElement("p",{className:null===t.user.school_name||""===t.user.school_name?"":" font-12 color888hezuo maxfont450"},t.user.school_name),h.a.createElement("p",{className:"fabushixunwidth color888hezuo"},"\u53d1\u5e03\u5b9e\u8bad\u9879\u76ee\xa0\xa0",h.a.createElement("span",{className:"ml2"},t.user.user_shixuns_count))))))})),h.a.createElement(S.a,{keyboard:!1,title:"\u63d0\u793a",visible:c,closable:!1,footer:null},h.a.createElement("div",{className:"task-popup-content"},h.a.createElement("div",{className:"task-popup-text-center font-14"},"\u786e\u5b9a\u8981\u5220\u9664\u5417\uff1f")),h.a.createElement("div",{className:"task-popup-submit clearfix"},h.a.createElement("a",{className:"pop_close task-btn mb10 mr40 colorFFF",onClick:function(){return e.CollaboratorsshowModal("collaborators_deletetype")}},"\u53d6\u6d88"),h.a.createElement("a",{className:"task-btn task-btn-orange fr",onClick:this.collaborators_deletes},"\u786e\u5b9a"))))),n&&10<n.member_count?h.a.createElement("div",{className:"edu-txt-center mt30 "},h.a.createElement(_.a,{showQuickJumper:!0,defaultCurrent:1,total:n&&n.member_count,onChange:this.onChangepageNumber})):"")}}]),t}(d.Component),at=function(e){function t(e){return Object(a.a)(this,t),Object(l.a)(this,Object(c.a)(t).call(this,e))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"educontent clearfix mt30 mb80"},h.a.createElement("div",{className:" with65 fl "},h.a.createElement(rt,this.props)),h.a.createElement("div",{className:"with35 fr pl20"},h.a.createElement(B,this.props))))}}]),t}(d.Component),st=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).state={},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentWillReceiveProps",value:function(){}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this.props.tpmLoading,t=this.props.current_user;return h.a.createElement(h.a.Fragment,null,e?h.a.createElement("div",{style:{minHeight:"886px"}}):h.a.createElement(at,Object.assign({},this.props,this.state,{user:t,aboutFocus:this.props.aboutFocus,is_jupyter:this.props.is_jupyter})))}}]),t}(d.Component),lt=(n(1921),n(1942)),ct=(n(683),n(684)),ut=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).getdatas=function(){var e="/shixuns/".concat(n.props.match.params.shixunId,"/review_newest_record.json");j.a.get(e).then((function(e){if(void 0===e.data||"{}"==JSON.stringify(e.data)||null===e.data)n.setState({datas:[{name:"\u5185\u5bb9\u5ba1\u6838\u60c5\u51b5",id:"Content"},{name:"\u6027\u80fd\u5ba1\u6838\u60c5\u51b5",id:"Performance"}]});else{var t=[];null!=e.data.content_info&&void 0===e.data.perference_info&&(t=[{name:"\u5185\u5bb9\u5ba1\u6838\u60c5\u51b5",id:"Content",status:e.data.content_info.status,username:e.data.content_info.username,time:e.data.content_info.time},{name:"\u6027\u80fd\u5ba1\u6838\u60c5\u51b5",id:"Performance"}]),void 0===e.data.content_info&&null!=e.data.perference_info&&(t=[{name:"\u5185\u5bb9\u5ba1\u6838\u60c5\u51b5",id:"Content"},{name:"\u6027\u80fd\u5ba1\u6838\u60c5\u51b5",id:"Performance",status:e.data.perference_info.status,username:e.data.perference_info.username,time:e.data.perference_info.time}]),null!=e.data.content_info&&null!=e.data.perference_info&&(t=[{name:"\u5185\u5bb9\u5ba1\u6838\u60c5\u51b5",id:"Content",status:e.data.content_info.status,username:e.data.content_info.username,time:e.data.content_info.time},{name:"\u6027\u80fd\u5ba1\u6838\u60c5\u51b5",id:"Performance",status:e.data.perference_info.status,username:e.data.perference_info.username,time:e.data.perference_info.time}]),n.setState({datas:t})}})).catch((function(e){}))},n.showModal=function(e,t){n.setState({visible:!0,editid:e,value:t})},n.handleOk=function(e,t){var o="/shixuns/".concat(n.props.match.params.shixunId,"/review_shixun.json");j.a.post(o,{status:void 0===e?1:e,review_type:t}).then((function(e){0===e.data.status&&(n.props.showNotification(e.data.message),n.setState({visible:!1}),n.getdatas())})).catch((function(e){}))},n.handleCancel=function(e){n.setState({visible:!1})},n.onChange=function(e){n.setState({value:e.target.value})},n.state={datas:void 0,value:void 0},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getdatas()}},{key:"render",value:function(){var e=this,t=this.props,n=t.tpmLoading,o=t.shixun,i=t.user,r=t.match,a=this.state,s=a.value,l=a.editid,c=a.datas;return h.a.createElement(h.a.Fragment,null,!0===this.state.visible?h.a.createElement(S.a,{title:"\u5ba1\u6838\u60c5\u51b5\u66f4\u6539",visible:this.state.visible,keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,centered:!0},h.a.createElement("div",null,h.a.createElement("style",null,"\n\t\t\t\t\t\t body{\n\t\t\t\t\t\t\t width: 100% !important;\n\t\t\t\t\t\t }\n\n\t\t\t\t\t\t .ant-modal-body{\n\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t"),h.a.createElement(P.a.Group,{onChange:this.onChange,value:void 0===this.state.value?1:this.state.value},h.a.createElement(P.a,{value:1},"\u5df2\u5b8c\u6210"),h.a.createElement(P.a,{value:0},"\u672a\u5b8c\u6210")),h.a.createElement("div",{className:"mt30"},h.a.createElement("a",{className:"pop_close task-btn mr20 margin-tp26",onClick:function(){return e.handleCancel()}},"\u53d6\u6d88"),h.a.createElement("a",{className:"task-btn task-btn-orange margin-tp26",onClick:function(){return e.handleOk(s,l)}},"\u786e\u5b9a")))):"",h.a.createElement("style",null,"\n\t\t\t\t\t\t.Itemtitle{\n\t\t\t\t\t\t float: left;\n\t\t\t\t\t\t\t\tpadding-top: 2px;\n\t\t\t\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t"),n?h.a.createElement("div",{style:{minHeight:"886px"}}):h.a.createElement("div",{className:"tpmComment educontent clearfix mt30 mb80"},h.a.createElement("div",{className:"with65 fl edu-back-white commentsDelegateParent"},h.a.createElement(H,Object.assign({match:r,user:i,shixun:o},this.props,{is_jupyter:this.props.is_jupyter})),h.a.createElement("div",{className:"padding20 edu-back-white mt20",style:{minHeight:"640px"}},2<this.props.identity||void 0===this.props.identity?"":h.a.createElement(lt.a,{dataSource:c,bordered:!0,renderItem:function(t,n){return h.a.createElement(lt.a.Item,{key:t.id,actions:[h.a.createElement("a",{onClick:function(){return e.showModal(t.id,t.status)},key:n},h.a.createElement("i",{className:"iconfont icon-bianjidaibeijing font-22 color-green"}))]},h.a.createElement(lt.a.Item.Meta,{title:h.a.createElement("div",{className:"font-16"},h.a.createElement("div",{className:"Itemtitle"},t.name),void 0===t.status?"":1===t.status?h.a.createElement(ct.a,{color:"#FF6800"},"\u5df2\u5b8c\u6210"):h.a.createElement(ct.a,{color:"#bcbcbc"},"\u672a\u5b8c\u6210")),description:h.a.createElement("div",null,void 0===t.time?"":h.a.createElement("span",null,"\u5ba1\u6838\u65f6\u95f4: ",t.time),void 0===t.username?"":h.a.createElement("span",{className:"ml30"},"\u5ba1\u6838\u4eba: ",t.username))}))}}))),h.a.createElement("div",{className:"with35 fr pl20"},h.a.createElement(B,this.props))))}}]),t}(d.Component),dt=(n(680),n(682)),ht=(n(2157),n(2158),function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).modalCancel=function(){n.props.modalCancel()},n.state={},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return h.a.createElement(S.a,{keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,title:"\u63d0\u793a",centered:!0,visible:void 0!==this.props.modalsType&&this.props.modalsType,width:"530px"},h.a.createElement("div",{className:"educouddiv intermediatecenter"},!0===this.props.itemtypebool?h.a.createElement("div",{className:"tabeltext-alignleftysl mt10"},h.a.createElement("p",null,"\u6587\u4ef6\u540d\u91cd\u590d")):"",h.a.createElement("div",{className:"tabeltext-alignleftysltwo mt10"},h.a.createElement("p",null,this.props.tittest)),h.a.createElement("div",{className:"clearfix mt30 edu-txt-center task-btn-blues"},h.a.createElement("a",{className:" task-btn-blue-test bth100 ",onClick:function(){return e.modalCancel()}},"\u6211\u77e5\u9053\u5566"))))}}]),t}(d.Component)),pt=S.a.confirm;var ft=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).mysonChange=function(e){if(!0===e.target.checked){for(var t=[],o=[],i=0;i<n.state.collaboratorList.data_sets.length;i++)t.push(n.state.collaboratorList.data_sets[i].id),o.push(i);n.setState({selectedRowKeysdata:t,selectedRowKeys:o,checked:!0})}else n.setState({selectedRowKeysdata:[],selectedRowKeys:[],checked:!1})},n.getdatas=function(){var e=n.props.match.params.shixunId,t="/shixuns/".concat(e,"/get_data_sets.json");j.a.get(t,{params:{page:1,limit:10}}).then((function(e){if(200===e.status&&403!==e.data.status&&401!==e.data.status&&500!==e.data.status){for(var t=[],o=0;o<e.data.data_sets.length;o++){var i=e.data.data_sets,r=Ee()(i[o].created_on).format("YYYY-MM-DD HH:mm");t.push({timedata:r,author:i[o].author,filesize:i[o].filesize,id:i[o].id,title:i[o].title,file_path:i[o].file_path})}n.setState({collaboratorList:e.data,data_sets_count:e.data.data_sets_count,datalist:t,selectedRowKeysdata:[],selectedRowKeys:[],checked:!1,page:1})}setTimeout((function(){n.setState({loadingstate:!1})}),500)})).catch((function(e){setTimeout((function(){n.setState({loadingstate:!1})}),500)}))},n.getdatastwo=function(e,t){var o=n.props.match.params.shixunId,i="/shixuns/".concat(o,"/get_data_sets.json");j.a.get(i,{params:{page:e,limit:t}}).then((function(t){if(200===t.status&&403!==t.data.status&&401!==t.data.status&&500!==t.data.status){for(var o=[],i=0;i<t.data.data_sets.length;i++){var r=t.data.data_sets,a=Ee()(r[i].created_on).format("YYYY-MM-DD HH:mm");o.push({timedata:a,author:r[i].author,filesize:r[i].filesize,id:r[i].id,title:r[i].title,file_path:r[i].file_path})}n.setState({collaboratorList:t.data,data_sets_count:t.data.data_sets_count,datalist:o,selectedRowKeysdata:[],selectedRowKeys:[],checked:!1,page:e})}setTimeout((function(){n.setState({loadingstate:!1})}),500)})).catch((function(e){setTimeout((function(){n.setState({loadingstate:!1})}),500)}))},n.getdatasthree=function(e,t){var o=n.props.match.params.shixunId,i="/shixuns/".concat(o,"/get_data_sets.json");j.a.get(i,{params:{page:e,limit:t}}).then((function(e){200===e.status&&(403===e.data.status||401===e.data.status||e.data.status)})).catch((function(e){}))},n.paginationonChanges=function(e){n.setState({page:e,loadingstate:!0}),n.getdatastwo(e,10)},n.onSelectChange=function(e,t){n.setState({selectedRowKeys:e});for(var o=[],i=0;i<t.length;i++)o.push(t[i].id);n.setState({selectedRowKeysdata:o})},n.rowClassName=function(e,t){var n="light-row";return t%2==1&&(n="dark-row"),n},n.handleChange=function(e){if(n.setState({Buttonloading:!0}),e.file.status||n.setState({Buttonloading:!1}),"done"==e.file.status||"uploading"==e.file.status||"removed"===e.file.status){var t=e.fileList;if(n.setState({fileList:Object(b.C)(t)}),"done"===e.file.status&&e.file.response&&(-1===e.file.response.status||"-1"===e.file.response.status||n.getdatas(),n.setState({Buttonloading:!1})),e.file.response)if(-1===e.file.response.status||"-1"===e.file.response.status){var o=-1;try{o=e.file.response.message.indexOf("\u6587\u4ef6\u540d\u5df2\u7ecf\u5b58\u5728".toLowerCase())}catch(e){}n.setState({showmodel:!0,tittest:e.file.response.message,itemtypebool:-1<o,Buttonloading:!1})}else n.setState({Buttonloading:!1})}},n.onAttachmentRemove=function(e){if(!e.percent||100==e.percent)return pt({title:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u4e2a\u9644\u4ef6\u5417?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:function(){n.deleteAttachment(e)},onCancel:function(){}}),!1},n.deleteAttachment=function(e){var t=null==e.response?e.id:e.response.id;j.a.delete("/attachements/destroy_files.json",{id:[t]}).then((function(t){t.data&&0==t.data.status&&n.setState((function(t){var n=t.fileList.indexOf(e),o=t.fileList.slice();return o.splice(n,1),{fileList:o,deleteisnot:!0}}))})).catch((function(e){}))},n.ModalCancel=function(){n.setState({showmodel:!1})},n.ModalSave=function(){n.setState({showmodel:!1})},n.ButtonloadinghandleChange=function(){},n.state={value:void 0,columns:[{title:"\u6587\u4ef6",dataIndex:"title",key:"title",align:"left",className:" font-14 wenjiantit",width:"220px",render:function(e,t){return h.a.createElement("div",null,t.title)}},{title:"\u6700\u540e\u4fee\u6539\u65f6\u95f4",dataIndex:"timedata",key:"timedata",align:"center",className:"edu-txt-center font-14 zuihoushijian",width:"150px",render:function(e,t){return h.a.createElement("div",null,t.timedata)}},{title:"\u6700\u540e\u4fee\u6539\u4eba",dataIndex:"author",key:"author",align:"center",className:"edu-txt-center font-14 ",render:function(e,t){return h.a.createElement("div",null,t.author)}},{title:"\u6587\u4ef6\u5927\u5c0f",dataIndex:"filesize",key:"filesize",align:"center",className:"edu-txt-center font-14 ",render:function(e,t){return h.a.createElement("div",null,t.filesize)}},{title:"\u64cd\u4f5c",dataIndex:"operation",key:"operation",align:"center",className:"edu-txt-center font-14 ",render:function(e,t){return h.a.createElement("div",{style:{cursor:"pointer"},onClick:function(){!function(e){"getSelection"in window?window.getSelection().removeAllRanges():document.selection.empty(),document.getElementById(e).select(),document.execCommand("Copy")?L.a.success("\u590d\u5236\u6210\u529f"):L.a.error("\u590d\u5236\u5931\u8d25")}("file_path"+t.id)}},h.a.createElement("i",{className:"iconfont icon-fuzhi3 font-18 ml2 questiontype",style:{color:"#A0A7B4"}}),h.a.createElement("div",{style:{overflow:"hidden",height:"1px",width:"1px"}},h.a.createElement("input",{id:"file_path"+t.id,value:t.file_path})))}}],page:1,limit:10,selectedRowKeys:[],mylistansum:30,collaboratorList:[],fileList:[],fileListimgs:[],file:null,datalist:[],data_sets_count:0,selectedRowKeysdata:[],loadingstate:!1,checked:!1,showmodel:!1,itemtypebool:!1,Buttonloading:!1},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.setState({loadingstate:!0}),this.getdatas()}},{key:"deleteRemovedata",value:function(){var e=this;if(void 0!==this.state.selectedRowKeysdata&&null!==this.state.selectedRowKeysdata&&0!==this.state.selectedRowKeysdata.length){var t=this.props.match.params.shixunId;pt({title:"\u786e\u5b9a\u8981\u5220\u9664\u6587\u4ef6\u5417?",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:function(){var n="/shixuns/".concat(t,"/destroy_data_sets.json");j.a.delete(n,{params:{id:e.state.selectedRowKeysdata}}).then((function(t){t.data&&0==t.data.status&&(e.props.showNotification("\u5220\u9664\u6210\u529f"),e.getdatas())})).catch((function(e){}))},onCancel:function(){}})}else this.props.showNotification("\u8bf7\u9009\u62e9\u8981\u5220\u9664\u7684\u6587\u4ef6")}},{key:"render",value:function(){var e=this,t=this.props,n=(t.tpmLoading,t.shixun),o=t.user,i=t.match,r=this.state,a=r.columns,s=r.page,l=r.limit,c=r.selectedRowKeys,u=(r.mylistansum,r.fileList),d=r.datalist,p=r.data_sets_count,f=r.loadingstate,g={selectedRowKeys:c,onChange:this.onSelectChange},m=this.props.match.params.shixunId,v={width:600,fileList:u,multiple:!0,action:"".concat(Object(b.S)(m)),showUploadList:!1,onChange:this.handleChange,onRemove:this.onAttachmentRemove,beforeUpload:function(t){var n=t.size/1024/1024<=400;return n||e.props.showNotification("\u6587\u4ef6\u5927\u5c0f\u5fc5\u987b\u5c0f\u4e8e\u7b49\u4e8e400MB!"),n}};return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"tpmComment educontent clearfix mt30 mb80"},h.a.createElement("div",{className:"with65 fl edu-back-white commentsDelegateParent"},!0===this.state.showmodel?h.a.createElement(ht,{itemtypebool:this.state.itemtypebool,modalCancel:function(){return e.ModalSave()},tittest:this.state.tittest,modalsType:this.state.showmodel}):"",h.a.createElement(H,Object.assign({match:i,user:o,shixun:n},this.props,{is_jupyter:this.props.is_jupyter})),h.a.createElement("div",{className:"padding20 edu-back-white mt20 ",style:{minHeight:"463px"}},h.a.createElement("div",{className:"sortinxdirection"},h.a.createElement("div",{className:"tpmwidth"},h.a.createElement(ue.a,{checked:this.state.checked,onChange:this.mysonChange},"\u5168\u9009")),h.a.createElement("div",{className:"tpmwidth xaxisreverseorder"},h.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t.ant-upload-list{\n\t\t\t\t\t\t\t\t\t\t\t display:none\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t.deletebuttom{\n\t\t\t\t\t\t\t\t\t\t\t\tcolor: #fff !important;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t .deletebuttom:hover{\n\t\t\t\t\t\t\t\t\t\t\t\tcolor: #fff !important;\n\t\t\t\t\t\t\t\t\t\t\t\tbackground: #29BD8B !important;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t"),h.a.createElement("div",{className:"intermediatecenter deletebuttom"},h.a.createElement(ce.a,v,h.a.createElement(w.a,{className:"deletebuttom",loading:this.state.Buttonloading},!0===this.state.Buttonloading?"\u4e0a\u4f20\u4e2d":"\u4e0a\u4f20\u6587\u4ef6"))),0<p?h.a.createElement("div",{className:0<c.length?"deletebutomtextcode intermediatecenter mr21":"deletebutom intermediatecenter mr21",onClick:function(){return e.deleteRemovedata()}},h.a.createElement("p",{className:"deletebutomtext"},"\u5220\u9664")):"")),h.a.createElement("div",{className:"mt24"},h.a.createElement("style",null,"\n \t .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttop: 72%;}\n\t\t\t\t\t\t }\n\t\t\t\t\t\t .edu-table .ant-table-tbody > tr > td {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 42px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.edu-table .ant-table-thead > tr > th{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \theight: 42px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t \t\t\t.ysltableowss .ant-table-thead > tr > th{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \theight: 42px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t.ysltableowss .ant-table-tbody > tr > td{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \theight: 42px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .ysltableowss .ant-table-thead > tr > th, .ant-table-tbody > tr > td {\n\t\t\t\t\t\t\t\t\t\t\t\t\t padding: 9px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.mysjysltable4 .ant-table-thead > tr > th, .ant-table-tbody > tr > td {\n\t\t\t\t\t\t\t\t\t\t\t\t\t padding: 0px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.ant-table-thead .ant-table-selection-column span{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvisibility:hidden;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.ant-table-thead > tr > th {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t background:#FFFFFF !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.ant-table table {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttext-align: left;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder-radius: 4px 4px 0 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder-collapse: separate;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder-spacing: 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t border-left: 1px solid #eeeeee;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t border-top: 1px solid #eeeeee;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t border-right: 1px solid #eeeeee;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"),0===p?h.a.createElement("div",{className:"edu-table edu-back-white ysltableowss"},h.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t.ant-table-tbody{\n\t\t\t\t\t\t\t\t\t\t\tdisplay:none;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t.ant-table-placeholder{\n\t\t\t\t\t\t\t\t\t\t\t\tdisplay:none;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t \t.ant-table table {\n\t\t\t\t\t\t\t\t\t\t\t border-bottom: 1px solid #eeeeee !important;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t"),h.a.createElement(dt.a,{columns:a,pagination:!1,className:"mysjysltable4",rowSelection:g,rowClassName:this.rowClassName})):h.a.createElement("div",{className:"edu-table edu-back-white ysltableowss"},h.a.createElement(dt.a,{dataSource:d,columns:a,pagination:!1,className:"mysjysltable4",rowSelection:g,rowClassName:this.rowClassName,loading:f})),11<=p?h.a.createElement("div",{className:"edu-txt-center mt40 mb20"},h.a.createElement(_.a,{showQuickJumper:!0,current:s,onChange:this.paginationonChanges,pageSize:l,total:p})):"",0===p?h.a.createElement(b.u,{style:{width:"100%"}}):""))),h.a.createElement("div",{className:"with35 fr pl20"},h.a.createElement(B,this.props))))}}]),t}(d.Component),gt=(n(2004),v()({loader:function(){return n.e(233).then(n.bind(null,2378))},loading:g.a})),mt=v()({loader:function(){return n.e(234).then(n.bind(null,2379))},loading:g.a}),vt=v()({loader:function(){return n.e(232).then(n.bind(null,2380))},loading:g.a}),yt=v()({loader:function(){return n.e(190).then(n.bind(null,2404))},loading:g.a}),bt=v()({loader:function(){return n.e(210).then(n.bind(null,2381))},loading:g.a}),_t=v()({loader:function(){return n.e(231).then(n.bind(null,2382))},loading:g.a}),wt=v()({loader:function(){return n.e(235).then(n.bind(null,2383))},loading:g.a}),Ct=["repository.json","commits.json","propaedeutics.json","challenges.json","discusses.json","ranking_list.json","collaborators.json"],St={},Ot=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).openknow=function(){var e=window.localStorage;n.setState({openknows:!1});var t=n.props.user&&n.props.user.user_id+"newTPMsettings";e.setItem(t,!1)},n.getcomponentdidmount=function(){var e=n.props.user&&n.props.user.user_id,t=n.props.user&&n.props.user.user_id+"newTPMsettings",o=window.localStorage.getItem(t),i=n.props.match.params.shixunId,r="/shixuns/"+i+".json";j.a.get(r).then((function(t){if(200===t.status){document.title=t.data.name;for(var r=[],a=0;a<t.data.score_info.length;a++)0===a?r.push(t.data.score_info[a]):r.push(t.data.score_info[a]/100*5);var s=t.data.score_info;n.setState({shixunsDetails:t.data,shixunId:i,star_info:r,star_infos:s,power:t.data.power,identity:t.data.identity,propaedeutics:t.data.propaedeutics,status:t.data.shixun_status,secret_repository:t.data.secret_repository,public:t.data.public,is_jupyter:void 0!==t.data.is_jupyter&&null!==t.data.is_jupyter&&t.data.is_jupyter}),e&&t.data.identity<4&&(void 0===o||!1===o||null===o?n.setState({openknows:!0}):n.setState({openknows:!1}))}})).catch((function(e){n.setState({shixunsDetails:void 0,shixunId:void 0,star_info:void 0,star_infos:void 0,power:void 0,identity:void 0,status:void 0,propaedeutics:void 0,is_jupyter:!1})})),n.tpmContentRequestInterceptor=j.a.interceptors.request.use((function(e){for(var t=e.url,o=0;o<Ct.length;o++)-1!=t.indexOf(Ct[o])&&(t=t.split("?")[0],n.setState({loadingContent:!1}),St[t]=!0);return e}),(function(e){return Promise.reject(e)})),n.tpmContentResponseInterceptor=j.a.interceptors.response.use((function(e){var t=e.config.url.split("api")[1];return t=t.split("?")[0],St[t]&&(n.setState({loadingContent:!1}),delete St[e.url]),e}),(function(e){return Promise.reject(e)}));var a="/shixuns/"+i+"/show_right.json";j.a.get(a).then((function(e){e.data,n.setState({TPMRightSectionData:e.data})})),n.getnavdatas()},n.componentDidMount=function(){n.getcomponentdidmount()},n.componentWillUnmount=function(){j.a.interceptors.request.eject(n.tpmContentRequestInterceptor),n.tpmContentRequestInterceptor=null,j.a.interceptors.request.eject(n.tpmContentResponseInterceptor),n.tpmContentResponseInterceptor=null},n.setLoadingContent=function(e){},n.getnavdatas=function(){var e,t=n.props.location;-1!=t.pathname.indexOf("/challenges")?e="1":-1!=t.pathname.indexOf("/propaedeutics")?e="2":-1!=t.pathname.indexOf("/repository")?e="3":-1!=t.pathname.indexOf("/secret_repository")?e="4":-1!=t.pathname.indexOf("/collaborators")?e="5":-1!=t.pathname.indexOf("/dataset")?e="6":-1!=t.pathname.indexOf("/shixun_discuss")?e="7":-1!=t.pathname.indexOf("/ranking_list")?e="8":-1!=t.pathname.indexOf("/settings")&&(e="9"),n.setState({selectedKeys:e})},n.handleClick=function(e){n.setState({selectedKeys:e.key});var t=n.props.match.params.shixunId;"1"===e.key?n.props.history.replace("/shixuns/".concat(t,"/challenges")):"2"===e.key?n.props.history.replace("/shixuns/".concat(t,"/propaedeutics")):"3"===e.key?n.props.history.replace("/shixuns/".concat(t,"/repository")):"4"===e.key?n.props.history.replace("/shixuns/".concat(t,"/secret_repository")):"5"===e.key?n.props.history.replace("/shixuns/".concat(t,"/collaborators")):"6"===e.key?n.props.history.replace("/shixuns/".concat(t,"/dataset")):"7"===e.key?n.props.history.replace("/shixuns/".concat(t,"/shixun_discuss")):"8"===e.key?n.props.history.replace("/shixuns/".concat(t,"/ranking_list")):"9"===e.key&&n.props.history.replace("/shixuns/".concat(t,"/settings"))},n.state={loadingContent:!1,power:!1,shixunsDetails:{},shixunId:void 0,star_info:[0,0,0,0,0,0],star_infos:[0,0,0,0,0,0],identity:void 0,TPMRightSectionData:void 0,PropaedeuticsList:void 0,tpmindexjupyterbool:!1,is_jupyter:!1,selectedKeys:"",openknows:!1},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidUpdate",value:function(e){if(e!=this.props&&this.props.user&&this.props.user.user_id){var t=this.props.user&&this.props.user.user_id+"newTPMsettings";window.localStorage.getItem(t),this.setState({openknows:!1})}}},{key:"render",value:function(){var e=this,t=-1<window.location.href.indexOf("add_file");return h.a.createElement("div",{className:"newMain clearfix"},!t&&h.a.createElement(W,Object.assign({},this.props,this.state,{is_jupyter:this.state.is_jupyter})),h.a.createElement("style",null,"\n .ant-menu-item{\n margin:0 40px 0 0;\n padding:0px;\n } \n .ant-popover{\n z-index:1000 !important;\n }\n "),h.a.createElement(o.a,{type:"flex",className:"backgroudwhite"},h.a.createElement("div",{className:"educontent clearfix"},h.a.createElement(i.a,{span:24},h.a.createElement(r.a,{onClick:this.handleClick,selectedKeys:[this.state.selectedKeys],mode:"horizontal"},h.a.createElement(r.a.Item,{key:"1",className:"competitionmr50"},h.a.createElement("span",{className:"tpmbannernavstyler"},"\u4efb\u52a1")),void 0===this.state.propaedeutics||!1===this.state.propaedeutics?"":h.a.createElement(r.a.Item,{key:"2",className:"competitionmr50"},h.a.createElement("span",{className:"tpmbannernavstyler"},"\u80cc\u666f\u77e5\u8bc6")),4<this.state.identity||void 0===this.state.identity||!1!==this.state.is_jupyter?"":h.a.createElement(r.a.Item,{key:"3",className:"competitionmr50"},h.a.createElement("span",{className:"tpmbannernavstyler"},"\u7248\u672c\u5e93")),4<this.state.identity||void 0===this.state.identity?"":this.state.secret_repository&&h.a.createElement(r.a.Item,{key:"4",className:"competitionmr50"},h.a.createElement("span",{className:"tpmbannernavstyler"},"\u79c1\u5bc6\u7248\u672c\u5e93")),h.a.createElement(r.a.Item,{key:"5",className:"competitionmr50"},h.a.createElement("span",{className:"tpmbannernavstyler"},"\u5408\u4f5c\u8005")),4<this.state.identity||void 0===this.state.identity||!0!==this.state.is_jupyter?"":h.a.createElement(r.a.Item,{key:"6",className:"competitionmr50"},h.a.createElement("span",{className:"tpmbannernavstyler"},"\u6570\u636e\u96c6")),!1===this.state.is_jupyter?h.a.createElement(r.a.Item,{key:"7",className:"competitionmr50"},h.a.createElement("span",{className:"tpmbannernavstyler"},"\u8bc4\u8bba")):"",!1===this.state.is_jupyter?h.a.createElement(r.a.Item,{key:"8",className:"competitionmr50"},h.a.createElement("span",{className:"tpmbannernavstyler"},"\u6392\u884c\u699c")):"",4<this.state.identity||void 0===this.state.identity?"":h.a.createElement(r.a.Item,{key:"9",className:"competitionmr50"},h.a.createElement("span",{className:"tpmbannernavstyler"},"\u914d\u7f6e")),2<this.state.identity||void 0===this.state.identity?"":h.a.createElement("div",{className:"fr"},h.a.createElement(p.b,{to:"/shixuns/".concat(this.props.match.params.shixunId,"/audit_situation"),className:"".concat((this.props.match.url.indexOf("audit_situation"),"font-16 audit_situationactive")," fl")},"\u5ba1\u6838\u60c5\u51b5")))))),h.a.createElement(f.e,this.props,h.a.createElement(f.c,{path:"/shixuns/:shixunId/repository/:repoId/commits",render:function(t){return h.a.createElement(se,Object.assign({},e.props,e.state,t,{is_jupyter:e.state.is_jupyter}))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/secret_repository/:repoId/commits",render:function(t){return h.a.createElement(se,Object.assign({},e.props,e.state,t,{secret_repository_tab:!0,is_jupyter:e.state.is_jupyter}))}}),h.a.createElement(f.c,{exact:!0,path:"/shixuns/:shixunId/challenges",render:function(t){return h.a.createElement(Ze,Object.assign({},e.props,e.state,t,{is_jupyter:e.state.is_jupyter}))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/repository/add_file",render:function(t){return h.a.createElement(wt,Object.assign({},e.props,e.state,t))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/repository",render:function(t){return h.a.createElement(ae,Object.assign({},e.props,e.state,t,{is_jupyter:e.state.is_jupyter}))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/secret_repository",render:function(t){return h.a.createElement(ae,Object.assign({},e.props,e.state,t,{secret_repository_tab:!0,is_jupyter:e.state.is_jupyter}))}}),h.a.createElement(f.c,{exact:!0,path:"/shixuns/:shixunId/propaedeutics",render:function(t){return h.a.createElement(Qe,Object.assign({},e.props,e.state,t,{is_jupyter:e.state.is_jupyter}))}}),h.a.createElement(f.c,{exact:!0,path:"/shixuns/:shixunId/collaborators",render:function(t){return h.a.createElement(st,Object.assign({},e.props,e.state,t,{is_jupyter:e.state.is_jupyter}))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/shixun_discuss",render:function(t){return h.a.createElement(Y,Object.assign({},e.props,e.state,t,{is_jupyter:e.state.is_jupyter,initForumState:function(t){return e.initForumState(t)},setSearchValue:e.setSearchValue,setHotLabelIndex:e.setHotLabelIndex}))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/settings",render:function(t){return h.a.createElement(Ve,Object.assign({},e.props,e.state,t))}}),h.a.createElement(f.c,{exact:!0,path:"/shixuns/:shixunId/ranking_list",render:function(t){return h.a.createElement(nt,Object.assign({},e.props,e.state,t,{is_jupyter:e.state.is_jupyter}))}}),h.a.createElement(f.c,{exact:!0,path:"/shixuns/:shixunId/dataset",render:function(t){return h.a.createElement(ft,Object.assign({},e.props,e.state,t,{is_jupyter:e.state.is_jupyter}))}}),h.a.createElement(f.c,{exact:!0,path:"/shixuns/:shixunId/audit_situation",render:function(t){return h.a.createElement(ut,Object.assign({},e.props,e.state,t,{is_jupyter:e.state.is_jupyter}))}}),h.a.createElement(f.c,{exact:!0,path:"/shixuns/:shixunId/fork_list",render:function(t){return h.a.createElement(bt,Object.assign({},e.props,t))}}),h.a.createElement(f.c,{exact:!0,path:"/shixuns/:shixunId/update_propaedeutics",render:function(t){return h.a.createElement(_t,Object.assign({},e.props,t))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/challenges/:checkpointId/tab=2",render:function(t){return h.a.createElement(mt,Object.assign({},e.props,t,e.state))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/challenges/:checkpointId/tab=3",render:function(t){return h.a.createElement(vt,Object.assign({},e.props,t,e.state))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/challenges/new",render:function(t){return h.a.createElement(gt,Object.assign({},e.props,t,e.state))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/challenges/:checkpointId/editcheckpoint",render:function(t){return h.a.createElement(gt,Object.assign({},e.props,t,e.state))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/challenges/newquestion",render:function(t){return h.a.createElement(yt,Object.assign({},e.props,t,e.state))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/challenges/:checkpointId/editquestion/:choose_id",render:function(t){return h.a.createElement(yt,Object.assign({},e.props,t,e.state))}}),h.a.createElement(f.c,{path:"/shixuns/:shixunId/challenges/:checkpointId/editquestion",render:function(t){return h.a.createElement(yt,Object.assign({},e.props,t,e.state))}}),h.a.createElement(f.c,{exact:!0,path:"/shixuns/:shixunId",render:function(t){return h.a.createElement(Ze,Object.assign({},e.props,e.state,t,{is_jupyter:e.state.is_jupyter}))}})))}}]),t}(d.Component);t.default=Object(b.w)()(Object(y.a)(Ot))}])]); |